@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Boldonse&display=swap');
@import url(https://db.onlinewebfonts.com/c/9c7a3d7da54a2dd5efe92b3339d41b52?family=Britanica-HeavySemiExpanded);
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Montserrat";
    

}

p{
    font-family: "Poppins";
    font-style: normal;
    font-weight: 300;
}

.page-wrapper {
    overflow-x: hidden;
    width: 100%;
}

/* body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: white;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(223, 57, 148, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(218, 0, 120, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 238, 238, 0.3) 0%, transparent 60%);
    z-index: -1;
    animation: bgMove 20s ease-in-out infinite alternate;
} */

@keyframes bgMove {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(2%, 2%); }
}
.freelance-text h3{
    background-color: rgba(255, 219, 239, 0.61);
    outline: 1px solid rgb(126, 87, 108);
    color: var(--primary-accent-hover);
    width: 253px;
    border-radius: 20px;
    height: 30px;
    padding-left: 17px;
    padding-top: 5px;
    font-weight: 0;
    font-size: 15px;
}

body.dark-mode .freelance-text h3 {
    background-color: rgba(85, 26, 56, 0.7); /* Darker, semi-transparent accent color */
    color: #fce4ec; /* A light pink for high contrast */
    outline-color: rgba(223, 57, 148, 0.5); /* A lighter outline */
}

.land-cont{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 12%;
    gap: 40px;
}
.my-pic{
    width: 40%;
    max-width: 450px;
    height: auto;
    border-radius: 30px;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
.header-text{
    margin-top: 70px;
}
.header-text h1{
    display: inline-block;
    transform: scaleX(0.9);
    transform-origin: left;
    font-family: "Britanica-HeavySemiExpanded";
    font-size: 60px;
    color: var(--text-color-secondary);   /*change text color here*/
    font-weight: 100;
    
}
.header-text h1 span{
    background: linear-gradient(90deg, rgb(218, 0, 120), rgb(255, 240, 248));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 70px;
    font-family: "Britanica-HeavySemiExpanded";
    /* font-style: normal; */
    /* font-weight: lighter; */
}

.header-text p{
    font-size: 1rem; /* 16px */
    padding-bottom: 18px;
    color: var(--text-color-primary);
    line-height: 1.5;
}
.hero-btns{
    display: flex;
    gap: 20px;
}
.btn-readmore button{
    height: 40px;
    width: 160px;
    color: white;
    font-weight: 600;
    font-family: "montserrat";
    background-color: var(--primary-accent);
    outline: none;
    border: none;
    border-radius: 20px;
    transition: ease-in-out 0.3s;
}
.btn-readmore1 button{
    height: 40px;
    width: 180px;
    color: var(--text-color-primary);
    font-weight: 600;
    font-family: "montserrat";
    background-color: transparent;
    outline: 1px solid var(--text-color-primary);
    border: none;
    border-radius: 20px;
    transition: ease-in-out 0.3s;
}
.btn-readmore button i,
.btn-readmore1 button i,
.btn-readmore-keyskills button i,
.aboutme-readmore button i {
    vertical-align: middle;
    margin-left: 5px;
}

.btn-readmore button:hover{
    transform: scale(1.1);
    box-shadow: 3px 3px 40px rgba(218, 0, 120, 0.815) inset;
    background-color: var(--primary-accent-hover);
    cursor: pointer;
}
.btn-readmore1 button:hover{
    transform: scale(1.1);
    box-shadow: 3px 3px 40px rgba(218, 0, 120, 0.815) inset;
    background-color: var(--primary-accent-hover);
    cursor: pointer;
    color: white;
}
.just-hr1{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 60px;
    width: 100%;
    background-color: var(--primary-accent);
    color: white;
    transform: rotate(-0.8deg);
}
.just-hr{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 40px;
    width: 100%;
    background-color: #131313;
    color: white;
    margin-top: -20px;
    /* transform: rotate(-2deg); */
}
.total-skills-cont{
    background-color: var(--section-bg-light);
    padding: 50px 0;
    margin-top: 40px; /* Matches Hero bottom margin */
}

.head-key-skill-cont{
    display: flex;
    justify-content: space-between;
    margin: 0 10%; /* Adjusted to flex properties */
    margin-bottom: 35px;
    /* padding: 0 30px; */
}
.head-key-skill-cont h1{
    color: var(--text-color-primary);
}
.btn-readmore-keyskills {
    display: block; /* Ensure the anchor tag behaves like a block */
    margin: 0 10%; /* Align with the content above */
}
.btn-readmore-keyskills button{
    height: 40px;
    width: 160px;
    color: white;
    font-family: "montserrat";
    background-color: var(--primary-accent);
    outline: none;
    border: none;
    border-radius: 20px;
    transition: ease-in-out 0.3s;
    cursor: pointer;
}
.btn-readmore-keyskills button:hover{
    transform: scale(1.1);
}
.headtext-keyskills{
    font-size: 28px;
}
.headtext-skills{
    color: var(--primary-accent);
}
.toolkit-text{
    margin-left: 10%;
    font-size: 1.05rem; /* ~17px */
    color: var(--text-color-primary);
}
/* key-skills container */
.key-skills{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 100px 10% 40px 10%;
    color: var(--text-color-primary);
}
.graphics-icon{
    width: 18%;
    padding-top: 30px;
}
.visual-icon{
    width: 16%; /* Adjusted for better visual balance */
    padding-top: 30px;
}
.code-icon{
    width: 18%;
    padding-top: 30px;
}
.key-skill-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.key-skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}
.key-skill-card p{
    font-size: 0.9rem; /* ~14.4px */
    color: var(--text-color-secondary);
    line-height: 1.5;
    margin-top: 20px;
}
.key-skill-card h1{
    padding-top: 20px;
    font-size: 25px;
}
.total-abt-cont{
    /* background-color: #f4f4f4; */
    /* background-image:
        linear-gradient(45deg, #f9f9f9 25%, transparent 25%),
        linear-gradient(-45deg, #f9f9f9 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f9f9f9 75%),
        linear-gradient(-45deg, transparent 75%, #f9f9f9 75%); */
    background-size: 20px 20px;
    padding: 50px 0;
    margin-top: 40px;
    position: relative;
}
.aboutme-snipet{
    display: flex;
    align-items: center;
    gap: 5%;
    margin: 0 auto; /* Center the container */
    max-width: 1200px; /* Set a max-width for better control */
    padding: 0 10%; /* Maintain side spacing */
    position: relative;
}
.myaboutmepic{
    width: 40%;
    max-width: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 10px 10px 0px var(--primary-accent);
    border: 4px solid white;
    z-index: 2;
}
.aboutme-snipet-writeup{
    background: var(--card-bg);
    padding: 40px 40px 40px 60px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    width: 65%;
    display: flex;
    flex-direction: column;
    position: relative;
    left: -5%; /* Pull the card to overlap the image */
    z-index: 1;
}
.aboutme-snipet-writeup h1{
    font-size: 18px;
    padding-bottom: 10px;
    color: var(--text-color-secondary);
}
.name{
    color: var(--primary-accent);
}
.aboutme-snipet-writeup h2{
    font-size: 2.2rem; /* ~35px */
    padding-bottom: 10px;
    color: var(--text-color-primary);
}
.aboutme-snipet-writeup p{
    line-height: 1.5;
    font-size: 1rem; /* 16px */
    color: var(--text-color-secondary);
}
.figures{
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin: 20px 0;
}
.aboutme-readmore button{
    height: 40px;
    width: 140px;
    color: white;
    font-family: "montserrat";
    background-color: var(--primary-accent);
    outline: none;
    border: none;
    border-radius: 20px;
    margin-top: auto; /* Pushes button to the bottom */
    transition: 0.3s ease;
}
.aboutme-readmore button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(218, 0, 120, 0.3);
    cursor: pointer;
}

/* Work Carousel Section */
.work-carousel {
    width: 100%;
    padding: 40px 0;
    background-color: var(--section-bg-light);
    overflow: hidden;
    position: relative;
    white-space: nowrap; /* Prevents wrapping of the track */
}

.work-carousel::before,
.work-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.work-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--section-bg-light), transparent);
}

.work-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--section-bg-light), transparent);
}

.carousel-track {
    display: inline-block; /* Changed from flex to inline-block for animation */
    animation: scroll 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused; /* Pause on hover */
}

.carousel-track img {
    height: 180px; /* Slightly increased height for more impact */
    transition: transform 0.3s ease;
    /* Removed margin, padding, background, and shadow for a seamless look */
}

.carousel-track img:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move the track by half its width (the width of the original images) */
        transform: translateX(-50%);
    }
}






/* Responsive Design */

/* Large Screens & Laptops (max-width: 1200px) */
@media screen and (max-width: 1200px) {
    .land-cont, .head-key-skill-cont, .toolkit-text, .key-skills, .aboutme-snipet{
        margin-left: 40px;
        margin-right: 40px;
    }
    .aboutme-snipet{
        align-items: center;
    }
}

@media screen and (max-width: 1024px) {
}
/* Tablet View (max-width: 1024px) */
@media screen and (min-width: 851px) and (max-width: 1035px) {
    .freelance-text h3{
        font-size: 13px;
        padding-left: 10px;
        padding-top: 7px;
        width: 220px;
    }
    .header-text h1{
        font-size: 45px;
    }
    
    .land-cont, .head-key-skill-cont, .toolkit-text, .key-skills, .aboutme-snipet {
        margin-left: 40px;
        margin-right: 40px;
    }
    .header-text h1 span {
        font-size: 50px;
    }
    .header-text p{
        font-size: 0.9rem; /* ~14.4px */
        padding-right: 50px;
        margin-top: 10px;
    }
    .btn-readmore button{
        font-size: 12px;
        height: 32px;
        width: 110px;
        font-weight: 600;
    }
    .btn-readmore1 button{
        font-size: 12px;
        height: 30px;
        width: 140px;
        font-weight: 600;
        outline: 1px solid;
    }
    .btn-readmore-keyskills button{
        width: 120px;
        height: 35px;
        font-size: 12px;
        font-weight: 600;
    }
    .toolkit-text{
        font-size: 1rem; /* 16px */
    }
    .key-skills{
        margin: 50px 40px;
        grid-template-columns: 1fr;
    }
    .key-skill-card {
        padding: 25px;
    }
    .key-skill-card h1{
        font-size: 23px;
    }
    .key-skill-card p {
        font-size: 0.85rem; /* ~13.6px */
        margin-top: 15px;
        color: #505050;
        line-height: 1.5;
    }
    .total-abt-cont{
        margin-top: -30px;
    }
    .aboutme-snipet-writeup{
        padding: 30px 30px 30px 40px;
    }
    .aboutme-snipet{
        gap: 3%;
        left: -3%;
    }
    .aboutme-snipet-writeup h1{
    font-size: 15px;
    }
    .aboutme-snipet-writeup h2{
    font-size: 30px;
    }
    .aboutme-snipet-writeup p{
        font-size: 0.9rem; /* ~14.4px */
    }
    .aboutme-readmore button{
        width: 100px;
        height: 36px;
        font-size: 12px;
        font-weight: 600;
    }
    .figure-item h1{
    font-size: 20px;
    }
    .figure-item p{
    font-size: 0.8rem; /* ~12.8px */
    }

}

/* Small Tablets & Large Phones (max-width: 850px) */
/* @media screen and (max-width: 850px) {
    .land-cont {
        flex-direction: column;
        text-align: left;
        gap: 30px;
        margin-top: 50px;
    }
    .freelance-text h3{
        font-size: 12px;
    }
    .my-pic {
        width: 100%;
        margin: 0;
    }
    .header-text {
        margin-top: 0;
    }
    .header-text h1 {
        font-size: 32px;
        text-align: left;
    }
    .header-text h1 span {
        font-size: 45px;
    }
    .header-text p {
        text-align: left;
        font-size: 14px;
    }
    .toolkit-text {
        text-align: left;
        margin-left: 10%;
        font-size: 15px;
    }
    .hero-btns {
        justify-content: flex-start;
    }
    .key-skill1, .key-skill2, .key-skill3 {
        width: 100%;
    }
    .key-skill1 h1, .key-skill2 h1, .key-skill3 h1 {
        font-size: 22px;
    }
    .key-skill1 p, .key-skill2 p, .key-skill3 p {
        text-align: left;
        font-size: 14px;
    }
    .aboutme-snipet {
        text-align: left;
    }
    .aboutme-snipet-writeup h1 {
        font-size: 16px;
    }
    .aboutme-snipet-writeup h2 {
        font-size: 28px;
    }
    .aboutme-snipet-writeup p {
        font-size: 14px;
        text-align: left;
    }
    .figures h1 {
        font-size: 20px;
    }
    .figures p {
        font-size: 13px;
    }
} */



/* Mobile & Small Tablets (max-width: 768px) */
@media screen and (max-width: 850px) {
    /* Hero Consistency */
    .land-cont {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 50px;
        gap: 35px;
    }
    .land-cont, 
    .head-key-skill-cont, 
    .toolkit-text, 
    .key-skills, 
    .aboutme-snipet {
        margin-left: 10%;
        margin-right: 10%;
        width: auto;
    }
    .freelance-text h3{
        width: 240px;
        margin: 0 auto;
        text-align: center;
        padding-left: 0;
    }


    .header-text {
        margin-top: 0;
        width: 100%;
    }

    .header-text h1 {
        font-size: 40px;
        text-align: center;
    }

    .header-text h1 span {
        font-size: 50px;
    }

    .header-text p {
        text-align: center;
        margin: 10px auto 20px auto;
        max-width: 550px;
        font-size: 0.95rem; /* ~15.2px */
    }

    .hero-btns {
        justify-content: center;
        margin-top: -20px;
    }
    .btn-readmore button{
        height: 35px;
        width: 120px;
        font-size: 12px;
        font-weight: 600;
    }
    .btn-readmore1 button{
        outline: 1px solid;
        height: 35px;
        font-size: 12px;
        font-weight: 600;
    }

    .my-pic {
        width: 100%;
        /* max-width: 420px; */
        margin: 0 auto;
    }
    /* Wrapper Consistency */
    .total-skills-cont, .total-abt-cont {
        padding: 40px 0;
    }
    /* Skills Section */
    .head-key-skill-cont {
        flex-direction: column;
        text-align: left; /* Re-align title to the left */
        margin-top: 30px;
    }
    .btn-readmore-keyskills {
        display: block; /* Make it a block to center it */
        text-align: center;
        margin-top: 30px; /* Add space above the button */
    }
    .headtext-keyskills {
        font-size: 26px;
        margin-bottom: 10px; /* Add space below the title */
    }
    .key-skills {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 20px;
    }
    .key-skill-card {
        width: 100%;
        padding: 25px;
    }
    .key-skill-card p {
        text-align: center;
        font-size: 0.9rem; /* ~14.4px */
        margin-top: 15px;
        line-height: 1.5;
    }
    .key-skill-card h1 {
        font-size: 20px;
        text-align: center;
    }
    .graphics-icon, .visual-icon, .code-icon {
        width: 60px;
        height: auto;
        padding-top: 20px;
    }
    /* About Section */
    .aboutme-snipet {
        flex-direction: column;
        text-align: center;
        height: auto;
        gap: 20px;
        left: 0;
        margin: 0 10%;
    }


    .myaboutmepic {
        width: 100%;
        padding: 0;
        border-radius: 30px 30px 0 0;
    }

    .myaboutmepic {
        width: auto;
        max-width: 400px;
        box-shadow: none;
        border: 0;
        border-radius: 20px;
    }

    .aboutme-snipet-writeup {
        width: 100%;
        padding: 30px 25px;
        max-width: 460px;
        left: 0;
        text-align: center;
    }
    .aboutme-snipet-writeup h1 {
        font-size: 16px;
        padding-bottom: 5px;
    }
    .aboutme-snipet-writeup h2, .headtext-keyskills {
        font-size: 26px;
    }
    .aboutme-snipet-writeup p {
        font-size: 0.9rem; /* ~14.4px */
        line-height: 1.5;
    }

    .figures {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .figure-item h1 {
        font-size: 18px;
    }
    .figure-item p {
        font-size: 0.85rem; /* ~13.6px */
    }
}

    
    @media screen and (min-width: 300px) and (max-width: 479px){
    .land-cont {
        align-items: flex-start;
        text-align: left;
    }
    .freelance-text h3{
        font-size: 11px;
        width: 180px;
        height: 26px;
        padding-left: 10px;
        margin: 0;
        text-align: left;
    }
    .header-text h1{
        font-size: 43px;
        text-align: left;
    }
    .header-text h1 span{
        font-size: 48px;
    }    
     .header-text p{
        font-size: 0.85rem; /* ~13.6px */
        padding: 10px 0;
        padding-right: 20px;
        color: var(--text-color-primary);
        line-height: 1.5;
        text-align: left;
        margin: 0;
    }
    .hero-btns{
        display: flex;
        flex-wrap: wrap; /* Allow buttons to wrap onto the next line if needed */
        gap: 10px;
        justify-content: flex-start;
        margin-top: 15px;
    }
    .btn-readmore button{
        height: 35px;
        width: auto; /* Let padding define the width */
        padding: 0 15px;
        font-weight: 600;
        font-size: 11px;
    }
    .btn-readmore1 button{
        height: 34px;
        width: auto; /* Let padding define the width */
        padding: 0 15px;
        font-weight: 600;
        font-size: 11px;
    }
    .my-pic{
        width: 115%;
        max-width: 120%;
        margin-left: -18px;
    }
    .head-key-skill-cont{
        display: flex;
        margin-top: 20px;
        justify-content: center;
        margin: 0 10%;
        margin-bottom: 10px;
    
    }
    .toolkit-text{
        margin-top: -15px;
        margin-left: 10%; /* This is fine */
        font-size: 13px;
        color: var(--text-color-primary);
    }
    
    .key-skill-card {
        width: 100%;
        padding: 25px;
        text-align: left;
        align-items: flex-start;
    }

    .key-skill-card h1 {
        padding-top: 15px;
        text-align: left;
    }

    .key-skill-card p {
        text-align: left;
    }

    .graphics-icon, .visual-icon, .code-icon {
        width: 40px; /* Standardize icon size for small mobile */
        padding-top: 0;
    }

    .myaboutmepic {
        width: 140%;
        max-width: 140%;
    }

    .aboutme-snipet-writeup {
        width: 140%;
        max-width: 140%;
        padding: 25px; /* Matches the padding of key-skill cards for consistency */
    }
}

    @media screen and (min-width: 398px) and (max-width: 479px){
        .header-text h1{
        font-size: 55px;
        text-align: left;
    }
    .header-text h1 span{
        font-size: 60px;
    }    
    }