*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body.scrolling .cursor-glow{
    transform: scale(1.4);
    opacity: 1;
    transition: 0.3s ease;
}
body{
    font-family: system-ui, -apple-system, sans-serif;
    background: black;
    color: #e7e7e7;
    min-height: 100vh;
    overflow-x: hidden;
}
.back-vid{
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    object-fit: cover;
    object-position: center;

    z-index: -3;
    mix-blend-mode: screen;
}
/* 🌌 BACKGROUND */
.image-gradient{
    position: absolute;
    top: -10%;
    right: -10%;
    opacity: 0.25;
    filter: blur(40px);
    z-index: -2;
}

.layer-blur{
    position: absolute;
    top: 20%;
    right: 10%;
    width: 25rem;
    height: 25rem;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

/* 🖱️ CURSOR GLOW */
.cursor-glow{
    position: fixed;
    width: 300px;
    height: 300px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: blur(60px);
}

/* CONTAINER */
.container{
    width: 100%;
    padding: 0 2rem;
    margin-left: 5%;
}

/* 🔥 HEADER */
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 4rem;

    display: flex;
    justify-content: space-between;
    align-items: center;

    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 999;

    transform: translateY(-100%);
    animation: slideDown 1s ease forwards;

    transition: all 0.4s ease;

    /* 3D */
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 🎬 Slide animation */
@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

/* 📉 SHRINK ON SCROLL */
header.shrink{
    padding: 0.6rem 3rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(18px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.7);
}

/* LOGO */
.logo{
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    transition: transform 0.2s ease;
}

/* NAV */
nav{
    display: flex;
    gap: 2.5rem;
}

/* ✨ NAV LINKS */
nav a{
    position: relative;
    font-size: 1rem;
    text-decoration: none;
    color: inherit;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
}

/* underline animation */
nav a::before{
    content: "";

    position: absolute;

    left: -100%;
    bottom: -8px;

    width: 200%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #9348ee,
        transparent
    );

    transition: 0.5s;
}

nav a:hover::before{
    left: 100%;
}

/* 🚀 BUTTON */
.btn-contact{
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    border: none;

    background: linear-gradient(135deg, #ffffff, #cfcfcf);
    color: black;

    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.3s ease;

    box-shadow: 0 5px 15px rgba(255,255,255,0.15);
}

.btn-contact:hover{
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

/* 🎯 3D DEPTH ELEMENTS */
.logo, nav a, .btn-contact{
    transform: translateZ(0);
}
.menu-icon{
    font-size: 35px;
    cursor: pointer;
    display: none;
}
.sidebar{
    position: fixed;
    right: 0;
    top: 0;
    bottom: 70%;
    width: 0%;
    background-color: #000000b8;
    backdrop-filter: blur(10px);
    z-index: 1100;
    box-shadow: 0 0 20px rgba(211, 211, 211, 0.411);
    border-bottom-left-radius: 100%;
    opacity: 0;
}
.close-icon{
    font-size: 50px;
    padding-left: 10px;
    cursor: pointer;
}
.sidebar ul{
    padding-left: 20px;
}
.sidebar ul li{
    list-style: none;
    margin-bottom: 30px;
}
.sidebar ul li a{
    text-decoration: none;
    color: lightgray;
    font-size: 30px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(128, 128, 128, 0.256);
}
/* OPEN SIDEBAR */
.sidebar.open-sidebar{
    animation: openSidebarAnimation 1.5s forwards;
}
@keyframes openSidebarAnimation{
    to{
        width: 80%;
        opacity: 1;
        bottom: 0;
        border-radius: 0;
    }
}

.sidebar.close-sidebar{
    animation: closeSidebarAnimation 1.5s forwards;
}
@keyframes closeSidebarAnimation{
    from{
        width: 80%;
        opacity: 1;
        bottom: 0;
        border-radius: 0;
    }
    to{
        width: 0;
        opacity: 0;
        bottom: 70%;
        border-bottom-left-radius: 50%;

    }
}
section,
.about,
.info-section,
main{
    scroll-margin-top: 120px;
}
main{
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 100vh;

    padding: 7rem 5% 2rem;
    gap: 2rem;

    margin-left: 0;
}
.left{
    width: 50%;
}

.right{
    top: -20%;
    width: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: inset(0 0 10% 0);
}
.perspective{
    perspective: 1200px;
}
.content-wrapper{
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}
.content{
    max-width: 32rem;   /* reduced */
    margin-left: 0;     /* remove weird offset */
    z-index: 2;

    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1.2s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeUp{
    to{
        opacity: 1;
        transform: translateY(0);
    }
}
.tag-box{
    position: relative;
    width: 18rem;
    height: 2.5rem;
    border-radius: 50px;
    background: linear-gradient(to right, #656565, #7f42a7, #6600c5, #5300a0, #757575, #656565);
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(225, 225, 255, 0.3);
}
.tag-box:hover{
    box-shadow: 0 0 25px rgba(0,255,255,0.6);
}
@keyframes animationGradient{
    to{
        background-position: 200%;
    }

}
.tag-box .tag{
    position: absolute;
    inset: 3px;
    background-color: black;
    border-radius: 50px;

    display: flex;
    align-items: center;
    justify-content: center; /* 🔥 centers text */

    font-weight: 500;
    letter-spacing: 0.08rem;

    transition: 0.3s ease;
    cursor: pointer;
}
.tag-box .tag:hover{
    color: #5300a0;
}
.content h1{
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    margin: 2rem 0;
    line-height: 1.2;

    background: linear-gradient(90deg, #fff, #00ffff, #fff);
    background-size: 200%;
    background-clip: text; 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: shine 2.5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200%;
    }
}
.description{
    font-size: 1rem;
    letter-spacing: 0.05rem;
    max-width: 28rem;
    color: gray;
}
.buttons{
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.btn-projects{
    text-decoration: none;
    color: white;
    border: 1px solid #2a2a2a;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: background-color 0.2s ease;

}
.btn-projects:hover{
    background-color: #1a1a1a;
}

.btn-contacts{
    text-decoration: none;
    background-color: lightgray;
    color: black;
    padding: 0.6rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: background-color 0.2s ease;

}
.btn-contacts:hover{
    background-color: gray;
}
.btn-projects, .btn-contacts{
    position: relative;
    overflow: hidden;
}

.btn-projects::before,
.btn-contacts::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(0,255,255,0.4), transparent);
    opacity: 0;
    transition: 0.4s;
}

.btn-projects:hover::before,
.btn-contacts:hover::before{
    opacity: 1;
    animation: sweep 0.8s linear;
}

@keyframes sweep{
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.robot-3d{
    position: relative;
    
    height: 600px;
    right: 5%;
}
.about{
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 4rem;

    min-height: 100vh;

    padding: 4rem 5%;

    margin-top: -15%;
    margin-right: 10%;
}

/* LEFT (SPHERE) */
.left-about{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    clip-path: inset(0 0 21% 0);
}

.sphere{
    width: 650px;   /* keep container larger */
    height: 700px;

    transform: scale(0.7); /* shrink actual sphere */
    transform-origin: center;

   
}
/* RIGHT CONTENT */
.right-about{
    width: 55%;
    display: flex;
    align-items: center;
    margin-right: 5%;
}

/* REMOVE absolute positioning ❌ */
.hero-info{
    position: relative;
    left: 0;
    max-width: 520px;
}

.hero-info .hero-info-title{
    color: #727fde;
    padding: 8px 5px;
    border: 1px solid #727fde77;
    width: 240px;
    background-color: #2200493d;
    box-shadow: 0 0 5px #727fde88;
    border-radius: 50px;
}

.hero-info h1{
    font-size: 60px;
    max-width: 600px;
    font-weight: 700;
    line-height: 70px;
    margin-top: 40px;
    margin-bottom: 30px;
}
.hero-info p{
    max-width: 520px;
    line-height: 1.7;
    font-size: 16px;
    color: #bcbcbc;
}
.grad{
    background: linear-gradient(to right, #008baa, #7e42a7, #6600c5, #6070fd, #2a46ff, #0099ff, #008ead);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-grad 2.5s linear infinite;
}
@keyframes animate-grad {
    to{
        background-position: 200%;
    }
}
.hero-info-title{
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;
    border-radius: 50px;

    font-size: 14px;
    letter-spacing: 0.05rem;

    color: #9aa4ff;
    border: 1px solid rgba(114,127,222,0.4);

    background: rgba(34, 0, 73, 0.3);
    backdrop-filter: blur(10px);

    box-shadow: 0 0 10px rgba(114,127,222,0.2);

    transition: all 0.3s ease;
    cursor: pointer;
}

/* ICON STYLE */
.hero-info-title i{
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* 🔥 HOVER EFFECT */
.hero-info-title:hover{
    transform: translateY(-3px) scale(1.05);
    color: #ffffff;
    border-color: #7f42a7;
    box-shadow: 0 0 20px rgba(127,66,167,0.6);
}

/* ICON ANIMATION */
.hero-info-title:hover i{
    transform: rotate(-15deg) scale(1.2);
}
.info-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    margin-top: -5%;
    margin-left: 5%;
}
.section-title{
    font-size: 40px;
    font-weight: 700;
}
.info-cards{
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
    width: 100%;
    height: 100%;
    margin-top: 30px;
}
.card{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    width: auto;
    height: 40vh;
    overflow: hidden;
    border: 1px solid gray;
    background-color: #080020b7;
    border-radius: 20px;
    transition: 0.3s;
}
.card img{
    width: 80%;
    height: 50%;
    object-fit: cover;
}
.card h1{
    position: absolute;
    margin: 0;
    bottom: 40%;
    left: 5%;
    font-size: 25px;
    z-index: 1;
    color: lightgray;
}
.card p{
    position: absolute;
    bottom: 3%;
    left: 5%;
    z-index: 1;
    max-width: 300px;
    color: gray;
    font-size: 13px;
    line-height: 20px;
}
.card video{
    margin-top: 10%;
    width: 70%;
    height: 50%;
    object-fit: cover;
    mix-blend-mode: lighten;
}
.card button{
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #727fdeb4;
    background-color: #2200493d;
    box-shadow: 0 0 5px #727fde86;
    cursor: pointer;
    transition: 0.3s;
    position: absolute;
    bottom: 5%;
    left: 5%;
}
.card button:hover{
    box-shadow: 0 0 15px #727fde86; 
    opacity: 0.7;
}
.card:hover{
    box-shadow: 0 0 15px rgba(211, 211, 211, 0.5);
}
.card:nth-child(2) h1{
   bottom: 40%;
}
.card:nth-child(3){
    grid-row: span 2;
    height: 83vh;
}
.card:nth-child(3) p{
   bottom: 15%;
}
.card:nth-child(3) h1{
   bottom: 35%;
}
.card:nth-child(4) {
  grid-column: span 2;
}
.card:nth-child(4) p {
  max-width: 650px;
  bottom: 20%;
}
.card:nth-child(4) h1{
  bottom: 35%;
}





.my-projects{
    margin-left: 5%;
    display: flex;
    flex-direction: column;
    gap: 10%;
    align-items: center;
    position: relative;
    width: 80%;
    height: 100vh;
    margin-top: 0px;
    margin-bottom: 450px;

}
.project-card{
    display: flex;
    width: 100%;
    height: 40%;
    align-items: center;
    gap: 10%;
    justify-content: center;
}
.project-vidbox{
    
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    position: relative;
    cursor: pointer;
    min-width: 400px;
    transition: 0.5s;
    mix-blend-mode: exclusion;

}
.project-vidbox video{
    object-fit: cover;
    width: 100%;
    box-shadow: 0 0 10px lightgray;
    border-radius: 20px;
    transition: 0.5s;
}
.project-vidbox video:hover{
    box-shadow: 0 0 20px lightgray;
}
.project-info{
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 50%;
    padding-left: 10%;
}
.project-info h1{
    width: 90%;
    font-size: 25px;
    font-weight: bold;
    text-wrap: nowrap;
    margin-bottom: 10px;
    margin-top: 0;
    max-width: 450px;
}
.project-info p{
    width: 90%;
    max-width: 400px;
    min-width: 300px;
    margin-bottom: 50px;
    margin-top: 0;

}
@media (max-width: 768px){

    body{
        overflow-x: hidden;
    }
    .back-vid{
        width: 100vw;
        height: 100vh;

        object-fit: cover;
        object-position: center;

        transform: scale(1.25);
    }
    .container{
        padding: 0 1rem;
        margin-left: 0;
    }
    section,
    main,
    .about,
    .info-section{
        width: 100%;
        max-width: 1400px;
        margin-inline: auto;
    }
    /* HEADER */
    header{
        padding: 1rem;
    }

    nav{
        display: none;
    }

    .logo{
        font-size: 1.5rem;
    }

    .btn-contact{
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        display: none;
    }

    .menu-icon{
        display: inline;
        margin-right: 10%;
    }
    /* MAIN HERO */
    main{
        flex-direction: column;
        justify-content: center;
        align-items: center;

        padding: 7rem 0 2rem 0;
        margin-left: 0;
        gap: 2rem;
    }

    .left,
    .right{
        width: 100%;
    }

    .content{
        margin: 0;
        max-width: 100%;
        text-align: center;
    }

    .tag-box{
        width: 12rem;
        margin: auto;
    }

    .content h1{
        font-size: 2.8rem;
        line-height: 1.1;
        margin: 1.5rem 0;
    }

    .description{
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .buttons{
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-projects,
    .btn-contacts{
        font-size: 0.9rem;
        padding: 0.8rem 1.3rem;
    }

    /* ROBOT */
    .right{
        height: 350px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        clip-path: inset(0 0 18% 0);
    }

    .robot-3d{
        width: 100%;
        height: 350px;
        right: 0;
        scale: 1.3;
    }

    /* ABOUT SECTION */
    .about{
        flex-direction: column;
        gap: 2rem;
        margin-top: 0;
        padding: 3rem 1rem;
        min-height: auto;
    }

    /* LEFT (SPHERE) */

    .left-about{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    clip-path: inset(0 0 0% 0);
    }
    .right-about{
        width: 100%;
    }

    .sphere{
        width: 100%;
        max-width: 320px;
        display: none;

        height: 320px;

        transform: scale(0.9); /* shrink actual sphere */
        transform-origin: center;

    }

    .hero-info{
        max-width: 100%;
        text-align: center;
    }

    .hero-info .hero-info-title{
        margin: auto;
    }

    .hero-info h1{
        font-size: 2.8rem;
        line-height: 1.2;
        margin-top: 1.5rem;
    }

    .hero-info p{
        max-width: 100%;
        font-size: 0.95rem;
    }

    /* INFO SECTION */
    /* INFO SECTION */
    .info-section{
        width: 100%;
        margin: 0;
        padding: 2rem 0 4rem;
        align-items: center;
    }

    .section-title{
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .info-cards{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    /* MOBILE CARD FIX */
    .card{
        position: relative;
        width: 100%;
        height: auto !important;
        min-height: unset;

        display: flex;
        flex-direction: column;

        padding: 1rem;
        overflow: hidden;

        border-radius: 20px;

        background: rgba(8,0,32,0.75);
        border: 1px solid rgba(255,255,255,0.1);

        gap: 1rem;
    }

    /* RESET DESKTOP ABSOLUTE POSITIONING */
    .card h1,
    .card p,
    .card button{
        position: relative !important;
        inset: unset !important;
        left: unset !important;
        bottom: unset !important;
        top: unset !important;
        right: unset !important;
    }

    /* TEXT */
    .card h1{
        font-size: 1.35rem;
        line-height: 1.4;
        color: #fff;

        margin: 0;
        order: 2;
    }

    .card p{
        font-size: 0.92rem;
        line-height: 1.7;
        color: #bcbcbc;

        max-width: 100%;
        margin: 0;

        order: 3;
    }

    /* MEDIA */
    .card img,
    .card video{
        width: 100%;
        height: 220px;

        object-fit: cover;

        border-radius: 14px;

        margin: 0;

        order: 1;
    }

    /* BUTTON */
    .card button{
        width: fit-content;

        margin-top: 0.5rem;

        order: 4;
    }

    /* REMOVE DESKTOP GRID BEHAVIOUR */
    .card:nth-child(3){
        grid-row: unset;
        height: auto !important;
    }

    .card:nth-child(4){
        grid-column: unset;
    }

    .card:nth-child(4) p{
        max-width: 100%;
    }

    /* CLEAN CONTAINER FIXES */
    .container{
        margin-left: 0 !important;
        padding: 0 1rem;
    }

    main{
        margin-left: 0 !important;
    }

    .content{
        margin-top: 0 !important;
    }
}

/* ========================================= */
/* 🔥 SERVICES SECTION */
/* ========================================= */

.services-section{
    position: relative;
    width: 100%;
    padding: 8rem 5%;
    overflow: hidden;
    margin-left: -5%;
}

.services-header{
    text-align: center;
    max-width: 850px;
    margin: auto;
}

.services-tag{
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;

    border-radius: 50px;

    border: 1px solid rgba(114,127,222,0.4);

    background: rgba(34,0,73,0.3);

    backdrop-filter: blur(12px);

    color: #9aa4ff;

    box-shadow: 0 0 15px rgba(114,127,222,0.2);

    margin-bottom: 2rem;

    transition: 0.3s ease;
}

.services-tag:hover{
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(127,66,167,0.5);
}

.services-header h1{
    font-size: 4rem;
    line-height: 1.2;

    margin-bottom: 1.5rem;
}

.services-header p{
    color: #9f9f9f;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* GRID */

.services-grid{
    margin-top: 5rem;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 1.5rem;
}

/* CARD */

.service-card{
    position: relative;

    background: rgba(10,10,30,0.7);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 24px;

    padding: 2rem;

    overflow: hidden;

    backdrop-filter: blur(14px);

    transition: 0.4s ease;

    cursor: pointer;
}

.service-card::before{
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(147,72,238,0.15),
            transparent 40%
        );

    opacity: 0;

    transition: 0.4s ease;
}

.service-card:hover::before{
    opacity: 1;
}

.service-card:hover{
    transform: translateY(-8px);

    border-color: rgba(147,72,238,0.4);

    box-shadow:
        0 0 25px rgba(147,72,238,0.15),
        0 0 60px rgba(0,255,255,0.06);
}

/* ICON */

.service-top i{
    font-size: 3rem;

    color: #9d5cff;

    margin-bottom: 1.5rem;

    display: inline-block;

    transition: 0.3s ease;
}

.service-card:hover .service-top i{
    transform: scale(1.15) rotate(-5deg);
}

/* TEXT */

.service-top h2{
    font-size: 1.5rem;
    line-height: 1.4;

    margin-bottom: 1rem;

    color: #ffffff;
}

.service-top p{
    color: #a8a8a8;
    line-height: 1.7;

    font-size: 0.95rem;
}

/* BUTTON */

.learn-btn{
    margin-top: 1.4rem;

    display: inline-block;

    border: none;
    outline: none;

    background: transparent;

    color: #9d5cff;

    font-size: 0.95rem;
    font-weight: 600;

    letter-spacing: 0.03rem;

    cursor: pointer;

    position: relative;

    padding: 0;

    transition: 0.3s ease;
}

/* animated underline */
.learn-btn::after{
    content: "";

    position: absolute;

    left: 0;
    bottom: -4px;

    width: 0%;
    height: 2px;

    background: linear-gradient(
        90deg,
        #9348ee,
        #00ffff
    );

    transition: width 0.35s ease;
}

.learn-btn:hover{
    color: #ffffff;

    text-shadow: 0 0 10px rgba(147,72,238,0.6);
}

.learn-btn:hover::after{
    width: 100%;
}

/* EXPANDABLE CONTENT */

.service-expanded{
    max-height: 0;

    overflow: hidden;

    transition:
        max-height 0.5s ease,
        margin-top 0.4s ease,
        opacity 0.4s ease;

    opacity: 0;
}

.service-expanded p{
    color: #bcbcbc;
    line-height: 1.8;

    padding-top: 1.5rem;
}

/* ACTIVE CARD */

.service-card.active .service-expanded{
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
}

.service-card.active .learn-btn i{
    transform: rotate(45deg);
}

/* GLOW */

.services-section::before{
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    background: radial-gradient(
        circle,
        rgba(147,72,238,0.15),
        transparent 70%
    );

    top: 10%;
    left: -10%;

    filter: blur(80px);

    z-index: -1;
}
.slider{
    position: relative; /* changed from absolute */
    width: 100%;
    height: var(--height);

    margin-top: 5rem;
    overflow: hidden;

    mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );

    opacity: 0.8;
}

.slider .list{
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));

    position: relative; /* FIXED TYPO */
    height: 100%;
}

.slider .list .item{
    width: var(--width);
    height: var(--height);

    position: absolute;
    left: 100%;

    animation: autoRun 10s linear infinite;

    animation-delay: calc(
        (10s / var(--quantity)) * (var(--position) - 1) - 10s
    ) !important;
}

.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* animation */

@keyframes autoRun{
    from{
        left: 100%;
    }
    to{
        left: calc(var(--width) * -1);
    }
}

/* pause on hover */

.slider:hover .item{
    animation-play-state: paused !important;
    filter: grayscale(1);
}

.slider .item:hover{
    filter: grayscale(0);
}
/* ========================================= */
/* 📱 MOBILE */
/* ========================================= */

@media (max-width: 768px){

    .services-section{
        padding: 5rem 1rem;
    }

    .services-header h1{
        font-size: 2.5rem;
    }

    .services-header p{
        font-size: 0.95rem;
    }

    .services-grid{
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card{
        padding: 1.5rem;
    }

    .service-top h2{
        font-size: 1.3rem;
    }

    .service-top i{
        font-size: 2.4rem;
    }
    

    .project-info p{
        width: 100%;

        min-width: unset;

        max-width: 100%;

        font-size: 0.92rem;

        line-height: 1.7;
    }


    /* ========================= */
/* 📱 PROJECT SECTION MOBILE */
/* ========================= */

.my-projects{
    width: 100%;
    height: auto !important;

    margin: 0;
    padding: 4rem 0 2rem;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 3rem;
}

.my-projects .section-title{
    text-align: center;
    font-size: 2.2rem;

    margin-bottom: 1rem;
}

/* CARD */

.project-card{
    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 1.5rem;

    padding: 1rem;

    border-radius: 22px;

    background: rgba(8, 0, 32, 0.45);

    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(12px);

    overflow: hidden;
}

/* VIDEO */

.project-vidbox{
    width: 100%;

    min-width: unset;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    mix-blend-mode: normal;
}

.project-vidbox video{
    width: 100%;
    height: auto;

    display: block;

    border-radius: 16px;

    object-fit: cover;

    box-shadow: 0 0 15px rgba(255,255,255,0.12);
}

/* INFO */

.project-info{
    width: 100%;

    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;

    align-items: center;

    text-align: center;
}

/* TITLE */

.project-info h1{
    width: 100%;

    font-size: 1.45rem;
    line-height: 1.5;

    margin: 0 0 1rem 0;

    text-wrap: wrap;

    max-width: 100%;
}

/* PARAGRAPH */

.project-info p{
    width: 100%;

    min-width: unset;
    max-width: 100%;

    margin: 0;

    font-size: 0.92rem;
    line-height: 1.8;

    color: #bdbdbd;
}
}