body{
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: lightgray;
    background: #050816;
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

html[data-mode="light"] body{
    background: #e8eefc;
    color: #1c2340;
}

html[data-mode="light"] .container{
    background-color: rgba(120, 150, 220, 0.18);
}

html[data-mode="light"] .back-vid{
    opacity: 0.35;
    mix-blend-mode: multiply;
}

a{
    color: inherit;
}

button{
    font: inherit;
}

.container{
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3rem, 8vw, 100px);
    background-color: #001f7c38;
    overflow-x: hidden;
    box-sizing: border-box;
}

*,
*::before,
*::after{
    box-sizing: border-box;
}


.bg-layer{
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.back-vid{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
    will-change: transform;
}

.bg-canvas{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    mix-blend-mode: screen;
    opacity: 0.9;
}

.bg-glow{
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            520px circle at var(--mx, 50%) var(--my, 50%),
            rgba(114, 161, 222, 0.24),
            rgba(76, 29, 149, 0.1) 35%,
            transparent 62%
        ),
        radial-gradient(
            900px circle at calc(50% + var(--mxn, 0) * 8%) calc(50% + var(--myn, 0) * 6%),
            rgba(0, 153, 255, 0.09),
            transparent 55%
        );
    pointer-events: none;
}

.bg-aurora{
    position: absolute;
    inset: -10% -5% auto;
    height: 55%;
    background:
        radial-gradient(ellipse 60% 50% at 20% 40%, rgba(0, 200, 180, 0.14), transparent 70%),
        radial-gradient(ellipse 50% 45% at 75% 30%, rgba(120, 80, 255, 0.16), transparent 70%),
        radial-gradient(ellipse 40% 35% at 50% 60%, rgba(0, 140, 255, 0.1), transparent 70%);
    filter: blur(28px);
    opacity: 0.85;
    transform: translate3d(calc(var(--mxn, 0) * 28px), calc(var(--myn, 0) * 18px), 0);
    transition: transform 0.6s ease-out;
    pointer-events: none;
    animation: auroraDrift 14s ease-in-out infinite alternate;
}

@keyframes auroraDrift{
    0%{ opacity: 0.55; filter: blur(28px) hue-rotate(0deg); }
    100%{ opacity: 0.95; filter: blur(36px) hue-rotate(25deg); }
}

html[data-mode="light"] .bg-aurora{
    opacity: 0.45;
    filter: blur(32px);
}

.hero-orbit{
    position: absolute;
    inset: -18%;
    z-index: 2;
    pointer-events: none;
    animation: orbitSpin 18s linear infinite;
}

.hero-orbit span{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px;
    border-radius: 50%;
    background: #9eb7ff;
    box-shadow: 0 0 12px rgba(140, 180, 255, 0.9), 0 0 24px rgba(100, 140, 255, 0.45);
    --a: 0deg;
    --r: 52%;
    transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1));
}

.hero-orbit span:nth-child(1){ --a: 0deg; --r: 52%; width: 6px; height: 6px; }
.hero-orbit span:nth-child(2){ --a: 60deg; --r: 58%; background: #a78bfa; }
.hero-orbit span:nth-child(3){ --a: 120deg; --r: 48%; width: 5px; height: 5px; }
.hero-orbit span:nth-child(4){ --a: 180deg; --r: 55%; background: #7dd3fc; }
.hero-orbit span:nth-child(5){ --a: 240deg; --r: 50%; width: 8px; height: 8px; }
.hero-orbit span:nth-child(6){ --a: 300deg; --r: 60%; background: #c4b5fd; width: 4px; height: 4px; }

@keyframes orbitSpin{
    to{ transform: rotate(360deg); }
}

.hero-photo-wrap:hover .hero-orbit{
    animation-duration: 7s;
}

@keyframes photoGlow{
    50%{
        filter: drop-shadow(0 0 28px rgba(114, 161, 222, 0.35));
    }
}

.charge-ring{
    position: fixed;
    z-index: 9998;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(160, 200, 255, 0.85);
    box-shadow: 0 0 24px rgba(120, 170, 255, 0.55), inset 0 0 18px rgba(140, 180, 255, 0.25);
    pointer-events: none;
    translate: -50% -50%;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.15s ease;
}

.charge-ring.is-charging{
    opacity: 1;
    animation: chargePulse 0.9s ease-out forwards;
}

@keyframes chargePulse{
    to{
        transform: scale(3.2);
        opacity: 0.15;
        border-width: 1px;
    }
}

html[data-mode="light"] .hero-orbit span{
    box-shadow: 0 0 10px rgba(70, 110, 200, 0.55);
}

html[data-mode="light"] .bg-glow{
    background:
        radial-gradient(
            480px circle at var(--mx, 50%) var(--my, 50%),
            rgba(90, 130, 220, 0.2),
            rgba(120, 150, 220, 0.07) 40%,
            transparent 65%
        );
}

html[data-mode="light"] .bg-canvas{
    opacity: 0.4;
    mix-blend-mode: multiply;
}

[data-split]{
    cursor: default;
    position: relative;
    z-index: 2;
}

[data-split] .split-word{
    display: inline-block;
    white-space: nowrap;
}

[data-split] .split-char{
    display: inline-block;
    will-change: transform;
    transition: transform 0.28s var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)),
                text-shadow 0.28s ease;
}

[data-split].gradient .split-char,
[data-split] .gradient .split-char{
    background: linear-gradient(to right,#00aaa7, #7e42a7, #6600c5, #6070fd,#2a46ff, #0099ff, #008ead);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

/* Parent gradient would fight letter-level fills after split */
[data-split].gradient{
    background: none;
    -webkit-text-fill-color: unset;
    animation: none;
}


header,
.site-header{
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0;
    background-color: rgba(5, 8, 22, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(114, 161, 222, 0.18);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    transition: height 0.35s var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)),
                background-color 0.35s ease,
                box-shadow 0.35s ease,
                backdrop-filter 0.35s ease,
                border-color 0.35s ease;
}

.nav-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
    padding-left: max(clamp(16px, 3vw, 32px), env(safe-area-inset-left));
    padding-right: max(clamp(16px, 3vw, 32px), env(safe-area-inset-right));
}

.left{
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    color: white;
    min-width: 0;
}

.left img{
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 12px 0 0;
    border: 2px solid #72a1de;
    box-shadow: 0 0 12px #72a1de88;
}

.left span{
    color: #72a1dea2;
}

.left h2{
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    white-space: nowrap;
}


header ul,
.nav-links{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 28px);
    width: max-content;
    margin: 0;
    padding: 10px clamp(18px, 2.5vw, 36px);
    border-radius: 50px;
    background-color: rgba(0, 0, 69, 0.326);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 10px #72a1de63;
    box-sizing: border-box;
}

header ul li,
.nav-links li{
    list-style: none;
    flex-shrink: 0;
}

header ul a,
.nav-links a{
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    transition: 0.3s;
    white-space: nowrap;
}

header ul a:hover,
.nav-links a:hover{
    text-shadow: 0 0 15px black;
}

.box-icons{
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 14px;
}

.box-icons a,
.box-icons button,
.theme-toggle{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 34px;
    height: 34px;
    border: 2px solid #72a1de;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.5s;
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 0;
}

.box-icons a:hover,
.box-icons button:hover,
.theme-toggle:hover{
    background-color: #72a1de;
    color: black;
    box-shadow: 0 0 15px #72a1de;
}

.theme-toggle{
    position: relative;
}

.theme-toggle .icon-moon{
    position: absolute;
    opacity: 0;
    transform: scale(0.6) rotate(-30deg);
    transition: 0.3s ease;
}

.theme-toggle .icon-sun{
    transition: 0.3s ease;
}

html[data-mode="light"] .theme-toggle .icon-sun{
    opacity: 0;
    transform: scale(0.6) rotate(30deg);
}

html[data-mode="light"] .theme-toggle .icon-moon{
    opacity: 1;
    transform: none;
}

html[data-mode="light"] header,
html[data-mode="light"] .site-header{
    background-color: rgba(255, 255, 255, 0.72);
    color: #1c2340;
    border-bottom-color: rgba(70, 90, 140, 0.12);
}

html[data-mode="light"] .footer{
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.78) 100%
    );
    border-top-color: rgba(70, 90, 140, 0.16);
    color: #1c2340;
}

html[data-mode="light"] .footer-brand{
    color: #1c2340;
}

html[data-mode="light"] .footer-nav a{
    color: #4a5578;
}

html[data-mode="light"] .footer-nav a:hover{
    color: #3a5fd4;
}

html[data-mode="light"] .footer-copy{
    color: #6a7598;
}

html[data-mode="light"] .footer-socials a{
    color: #1c2340;
    border-color: #c5d0ef;
    background: rgba(255, 255, 255, 0.7);
}

html[data-mode="light"] .footer-socials a:hover{
    border-color: #9db0e0;
    background: #fff;
    color: #3a5fd4;
}

html[data-mode="light"] header ul a,
html[data-mode="light"] .nav-links a,
html[data-mode="light"] .left,
html[data-mode="light"] .box-icons a,
html[data-mode="light"] .box-icons button{
    color: #1c2340;
}

html[data-mode="light"] header ul,
html[data-mode="light"] .nav-links{
    background-color: rgba(255, 255, 255, 0.55);
}

.hero{
    position: relative;
    display: flex;
    width: 100%;
    max-width: 1400px;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    gap: clamp(1.75rem, 5vw, 4.5rem);
    padding: 6.5rem clamp(1.25rem, 5vw, 4rem) 5.5rem;
    box-sizing: border-box;
}

.hero-info{
    position: relative;
    flex: 1 1 52%;
    max-width: 560px;
    z-index: 2;
}

.hero-info .hero-info-title{
    color: #72a1de;
    padding: 8px 14px;
    border-radius: 50px;
    border: 1px solid #72a1de94;
    width: fit-content;
    max-width: 100%;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de84;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.hero-info h1{
    font-size: clamp(2rem, 5vw, 3.75rem);
    max-width: 600px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 40px;
    margin-bottom: 30px;
}

.hero-info p{
    max-width: 550px;
    line-height: 1.5;
    margin-bottom: 40px;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-info button,
.hero-btn{
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-info button:hover,
.hero-btn:hover{
    box-shadow: 0 0 15px #72a1de81;
}

/* Gradient Animation */
.gradient{
    background: linear-gradient(to right,#00aaa7, #7e42a7, #6600c5, #6070fd,#2a46ff, #0099ff, #008ead);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}
@keyframes animate-gradient {
    to{
        background-position: 200%;
    }
}

.skills-video-box{
    position: relative;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, clamp(280px, 34vw, 440px));
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    z-index: 1;
}

.skills-video,
.hero-photo-wrap{
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
}

.hero-photo-wrap{
    position: relative;
    border-radius: 50%;
    overflow: visible;
    isolation: isolate;
    background: transparent;
    animation: photoGlow 4s ease-in-out infinite;
}

.hero-photo-frame{
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    border: 2px solid rgba(114, 161, 222, 0.55);
    box-shadow:
        0 0 0 10px rgba(114, 161, 222, 0.08),
        0 0 40px rgba(114, 161, 222, 0.35),
        0 18px 50px rgba(10, 20, 60, 0.45);
    background:
        radial-gradient(circle at 30% 18%, rgba(114, 161, 222, 0.28), transparent 52%),
        #0a1228;
    transition:
        box-shadow 0.4s var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)),
        border-color 0.35s ease,
        transform 0.4s var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1));
}

.hero-photo-wrap:hover .hero-photo-frame,
.hero-photo-wrap.is-tilting .hero-photo-frame{
    border-color: rgba(160, 195, 255, 0.85);
    box-shadow:
        0 0 0 12px rgba(114, 161, 222, 0.14),
        0 0 55px rgba(114, 161, 222, 0.55),
        0 22px 60px rgba(10, 20, 60, 0.55);
    transform: scale(1.03);
}

.hero-photo{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    display: block;
    position: relative;
    z-index: 1;
    filter: saturate(1.05) contrast(1.05);
    transform-origin: center center;
    transition: filter 0.35s ease;
}

.hero-photo-wrap:hover .hero-photo,
.hero-photo-wrap.is-tilting .hero-photo{
    filter: saturate(1.12) contrast(1.08) brightness(1.04);
}

html[data-mode="light"] .hero-photo-frame{
    border-color: rgba(70, 100, 180, 0.35);
    box-shadow:
        0 0 0 10px rgba(90, 120, 200, 0.08),
        0 20px 50px rgba(40, 60, 140, 0.22);
    background:
        radial-gradient(circle at 30% 18%, rgba(120, 150, 220, 0.2), transparent 55%),
        #e8eefc;
}

html[data-mode="light"] .hero-photo-wrap{
    mix-blend-mode: normal;
}


.scroll-down {
    height: 50px;
    width: 30px;
    border: 2px solid lightgray;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.626);
    z-index: 0;
    pointer-events: auto;
  }
  .scroll-down::before,
  .scroll-down::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    height: 10px;
    width: 10px;
    transform: translate(-50%, -100%) rotate(45deg);
    border: 2px solid lightgray;
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 2s ease-in-out infinite;
  }
  .scroll-down::before {
    top: 30%;
    animation-delay: 0.5s;
    /* animation: scroll-down 1s ease-in-out infinite; */
  }
  
  @keyframes scroll-down {
    0% {
      /* top:20%; */
      opacity: 0;
    }
    30% {
      opacity: 1;
    }
    60% {
      opacity: 1;
    }
    100% {
      top: 90%;
      opacity: 0;
    }
  }




.info-section{
    display: flex;
    align-items: center;
    flex-direction: column;
    width: min(90%, 1200px);
    margin-top: clamp(2rem, 6vw, 100px);
    scroll-margin-top: 90px;
    padding: 0 1rem;
}

.section-title{
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
}

.info-cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    height: 100%;
    margin-top: 30px;
}

.card{
    display: flex;
    align-items:flex-start;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    min-height: 280px;
    height: auto;
    overflow: hidden;
    border: 1px solid gray;
    background-color: #080020b7;
    border-radius: 20px;
    transition: 0.5s;
    padding: 1.25rem 1.25rem 1.5rem;
}

.card h1{
    position: absolute;
    margin: 0;
    bottom: 26%;
    left: 5%;
    right: 5%;
    font-size: clamp(1.1rem, 2.2vw, 1.55rem);
    z-index: 2;
    color: lightgray;
    line-height: 1.25;
}

.card p{
    position: absolute;
    bottom: 4%;
    left: 5%;
    right: 5%;
    z-index: 2;
    max-width: 100%;
    color: gray;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    line-height: 1.45;
}

.card > img{
    position: absolute;
    top: 5%;
    left: 50%;
    translate: -50% 0;
    width: 78%;
    height: 40%;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    z-index: 0;
    pointer-events: none;
}

/* Cards 1–2: image + text stack in flow so title/body never overlap */
.info-cards .card:nth-child(1),
.info-cards .card:nth-child(2){
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.55rem;
    min-height: 0;
    height: auto;
    padding: 1.1rem 1.15rem 1.25rem;
}

.info-cards .card:nth-child(1) > img,
.info-cards .card:nth-child(2) > img{
    position: relative;
    top: auto;
    left: auto;
    translate: none;
    order: -1;
    width: 100%;
    height: 7.75rem;
    flex-shrink: 0;
    margin: 0;
}

.info-cards .card:nth-child(1) h1,
.info-cards .card:nth-child(2) h1{
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.info-cards .card:nth-child(1) p,
.info-cards .card:nth-child(2) p{
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 0;
}

.card:first-child > img{
    object-position: center top;
}

.card:nth-child(2) > img{
    object-fit: contain;
    object-position: center;
}

.card-video-wrap{
    position: absolute;
    top: 3%;
    left: 5%;
    right: 5%;
    height: 55%;
    margin: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    perspective: 700px;
    transform-style: preserve-3d;
    -webkit-mask-image: radial-gradient(
        ellipse 58% 68% at 50% 45%,
        #000 25%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.2) 68%,
        transparent 82%
    );
    mask-image: radial-gradient(
        ellipse 58% 68% at 50% 45%,
        #000 25%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.2) 68%,
        transparent 82%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.card-video-wrap[data-globe]{
    --gx: 0deg;
    --gy: 0deg;
    --gtx: 0px;
    --gty: 0px;
    --gs: 1;
    --glx: 50%;
    --gly: 40%;
}

.card-video-wrap[data-globe] video{
    transform:
        translate3d(var(--gtx), var(--gty), 0)
        rotateX(var(--gx))
        rotateY(var(--gy))
        scale(var(--gs));
    transform-origin: 50% 45%;
    transition: transform 0.12s linear;
    will-change: transform;
}

.card-video-wrap[data-globe].is-tracking video{
    transition: none;
}

.globe-specular{
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
        circle 28% at var(--glx) var(--gly),
        rgba(210, 230, 255, 0.55) 0%,
        rgba(140, 180, 255, 0.18) 35%,
        transparent 68%
    );
    mix-blend-mode: soft-light;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.card-video-wrap[data-globe].is-tracking .globe-specular{
    opacity: 1;
}

.card video{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.4) brightness(1.08) saturate(1.2);
}

.card button,
.card-btn{
    position: absolute;
    bottom: 5%;
    left: 5%;
    padding: 10px 25px;
    border: 1px solid gray;
    background-color: #0f1217;
    color: gray;
    border-radius: 20px;
    box-shadow: 0 0 5px lightgray;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card button:hover,
.card-btn:hover{
    box-shadow: 0 0 15px lightgray;
    opacity: 0.7;
}

.card:hover{
    box-shadow: 0 0 15px rgb(211, 211, 211);
}

.card:nth-child(3){
    grid-row: span 2;
    height: 83vh;
}

.card:nth-child(3) p{
    bottom: 12%;
}

.card:nth-child(3) h1{
    bottom: 21%;
}

.card:nth-child(4){
    grid-column: span 2;
}

.card:nth-child(4) p{
    max-width: 650px;
}

.card:nth-child(4) h1{
    bottom: 35%;
}

.passion-keyboard{
    position: relative;
    width: 80%;
    aspect-ratio: 4824 / 1944;
    border-radius: 16px;
    isolation: isolate;
    cursor: crosshair;
}

.passion-keyboard .passion-img{
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
    display: block;
    filter: brightness(2.4) contrast(1.35) saturate(1.1);
    mix-blend-mode: screen;
    opacity: 0.95;
    transition: filter 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
}

.passion-keyboard.is-lit .passion-img{
    filter: brightness(1.9) contrast(1.25) saturate(1);
    opacity: 0.72;
}

.passion-keys-svg{
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    mix-blend-mode: screen;
}

.passion-key{
    fill: rgba(255, 255, 255, calc(var(--glow, 0) * 0.12));
    stroke: rgba(220, 235, 255, calc(0.15 + var(--glow, 0) * 0.85));
    stroke-width: calc(1.4 + var(--glow, 0) * 2.4);
    filter: url(#passion-key-glow);
    opacity: calc(var(--glow, 0) * 1.05);
    transition: opacity 0.06s linear;
}

html[data-mode="light"] .passion-keyboard .passion-img{
    filter: invert(1) brightness(1.05) contrast(1.15);
    mix-blend-mode: multiply;
    opacity: 1;
    background: transparent;
}

html[data-mode="light"] .passion-keyboard.is-lit .passion-img{
    filter: invert(1) brightness(0.92) contrast(1.08);
    opacity: 0.85;
}

html[data-mode="light"] .passion-keys-svg{
    mix-blend-mode: multiply;
}

html[data-mode="light"] .passion-key{
    fill: rgba(15, 20, 35, calc(var(--glow, 0) * 0.12));
    stroke: rgba(15, 22, 40, calc(var(--glow, 0) * 0.95));
}



.my-project{
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    width: 80%;
    height: auto;
    margin-top: 120px;
    margin-bottom: 80px;
    scroll-margin-top: 90px;
}

.project-card {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 280px;
    align-items: center;
    gap: clamp(1.5rem, 6%, 4rem);
    justify-content: center;
}

.project-card:last-of-type {
    margin-bottom: 0;
}

.project-vidbox{
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(50%, 520px);
    flex: 1 1 280px;
    mix-blend-mode: normal;
    position: relative;
    cursor: pointer;
    transition: 0.5s;
    min-width: 0;
    text-decoration: none;
    overflow: hidden;
    border-radius: 20px;
    border: 1.5px solid rgba(140, 175, 255, 0.55);
    background: rgba(8, 12, 28, 0.55);
    box-shadow: 0 0 0 1px rgba(114, 161, 222, 0.12);
}

.project-vidbox video,
.project-vidbox img{
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: clamp(240px, 28vw, 320px);
    box-shadow: none;
    border: none;
    border-radius: 14px;
    outline: none;
    transition: box-shadow 0.5s ease;
    will-change: transform;
    pointer-events: none;
}

.project-card video:hover,
.project-vidbox:hover img{
    box-shadow: none;
}

.project-thumb--byd{
    object-position: center center;
}

.project-thumb--portrait{
    object-fit: cover;
    object-position: center top;
}

.project-info{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(50%, 420px);
    flex: 1 1 240px;
    min-width: 0;
    padding-left: 0;
}

.project-tag{
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #72a1de;
}

.project-info h1,
.project-title{
    width: 100%;
    max-width: none;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: bold;
    line-height: 1.2;
    text-wrap: balance;
    overflow-wrap: break-word;
    margin-top: 0;
    margin-bottom: 0.65rem;
}

.project-title-sub{
    display: block;
    margin-top: 0.4rem;
    font-size: clamp(0.92rem, 1.55vw, 1.1rem);
    font-weight: 600;
    line-height: 1.35;
    color: rgba(210, 222, 255, 0.82);
    text-wrap: balance;
}

.project-info p:not(.project-tag){
    width: 100%;
    max-width: 38ch;
    min-width: 0;
    margin-bottom: 1.5rem;
    margin-top: 0;
    line-height: 1.5;
}

.project-info button,
.project-btn{
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-info button:hover,
.project-btn:hover{
    opacity: 0.8;
    box-shadow: 0 0 15px #72a1de81;
}

.project-vidbox .hover-sign{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.35s ease;
}

.hover-sign span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #eef3ff;
    background: rgba(8, 12, 28, 0.72);
    border: 1px solid rgba(140, 175, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transform: translateY(6px) scale(0.96);
    opacity: 0.92;
    transition: transform 0.4s var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), opacity 0.35s ease;
}

.project-vidbox:hover .hover-sign span{
    transform: translateY(0) scale(1);
    opacity: 1;
}

.hover-sign.active{
    opacity: 0;
}




/* Skills section */
.skills-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    scroll-margin-top: 90px;
    width: 100%;
    padding: 4rem 0 5rem;
    box-sizing: border-box;
}

.skills-section .section-title{
    position: relative;
    top: auto;
    left: auto;
    margin: 0 0 2.5rem;
    text-align: center;
}

.skills-box{
    width: min(1100px, 92%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
    box-sizing: border-box;
}

.skills-stage{
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(150px, 18vw, 240px) minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: center;
}

.skills-image{
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 240px;
    justify-self: center;
    mix-blend-mode: screen;
    opacity: 0.9;
    -webkit-mask-image: radial-gradient(
        ellipse 72% 68% at 50% 50%,
        #000 35%,
        rgba(0, 0, 0, 0.65) 58%,
        transparent 82%
    );
    mask-image: radial-gradient(
        ellipse 72% 68% at 50% 50%,
        #000 35%,
        rgba(0, 0, 0, 0.65) 58%,
        transparent 82%
    );
    pointer-events: none;
    z-index: 0;
}

.skills-image.skills-brain-live{
    pointer-events: auto;
    cursor: grab;
    transform-origin: center center;
    will-change: transform;
    transition: filter 0.4s ease, opacity 0.4s ease;
    filter: drop-shadow(0 0 18px rgba(100, 160, 255, 0.25));
}

.skills-image.skills-brain-live:hover{
    opacity: 1;
    filter: drop-shadow(0 0 28px rgba(120, 180, 255, 0.45));
}

.skills-image.skills-brain-live:active{
    cursor: grabbing;
}

.skills-stage .skill-panel.Designer{
    grid-column: 1;
    grid-row: 1;
}

.skills-stage .skill-panel.coder{
    grid-column: 3;
    grid-row: 1;
}

.skill-panel{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: clamp(1.4rem, 2.5vw, 2rem);
    border: 1px solid rgba(114, 161, 222, 0.28);
    border-radius: 18px;
    background:
        linear-gradient(160deg, rgba(20, 18, 55, 0.82), rgba(8, 10, 28, 0.72));
    backdrop-filter: blur(10px);
    box-shadow: 0 0 24px rgba(72, 110, 220, 0.12);
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}

.skill-panel-icon{
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(118, 104, 255, 0.45);
    background: rgba(118, 104, 255, 0.12);
    color: #9aa0ff;
    font-size: 1.45rem;
}

.skill-panel h2{
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    margin: 0;
    line-height: 1.15;
}

.skill-panel p{
    margin: 0;
    line-height: 1.55;
    color: rgba(220, 225, 245, 0.88);
    max-width: 36ch;
}

.skill-list{
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.7rem;
}

.skill-list li{
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    color: #c9d2ff;
    border-bottom: 1px solid rgba(125, 150, 255, 0.45);
    padding-bottom: 0.15rem;
    white-space: nowrap;
    transition: transform 0.35s var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)),
                color 0.25s ease,
                border-color 0.25s ease;
    transition-delay: calc(var(--i, 0) * 30ms);
}

.skill-panel:hover .skill-list li{
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(170, 195, 255, 0.85);
}

.Designer,
.coder{
    position: relative;
    top: auto;
    left: auto;
    right: auto;
}

/* SLIDER  */

.slider{
    position: relative;
    width: min(80%, 780px);
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );
    opacity: 0.9;
}
.slider .list{
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}
.slider .list .item{
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc( (10s / var(--quantity)) * (var(--position) - 1) - 10s)!important;
}
.slider .list .item img{
    width: 100%;
}
@keyframes autoRun{
    from{
        left: 100%;
    }to{
        left: calc(var(--width) * -1);
    }
}
.slider:hover .item{
    animation-play-state: paused!important;
    filter: grayscale(1);
}
.slider .item:hover{
    filter: grayscale(0);
}


.contact-section{
    width: min(1100px, 92%);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    scroll-margin-top: 90px;
    padding: 4rem 0 5rem;
    box-sizing: border-box;
}

.contact-section .section-title{
    position: relative;
    top: auto;
    left: auto;
    margin: 0 0 1rem;
    text-align: center;
}

.contact-lead{
    max-width: 36rem;
    margin: 0 0 2.75rem;
    text-align: center;
    line-height: 1.6;
    color: #c8d0e8;
}

.contact-layout{
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: start;
}

.social-box {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-aside-title{
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: #9db7ff;
    letter-spacing: 0.02em;
}

.social-box a{
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: lightgray;
    text-decoration: none;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(114, 161, 222, 0.28);
    border-radius: 14px;
    background: rgba(8, 0, 32, 0.55);
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.social-box a:hover{
    border-color: rgba(114, 161, 222, 0.7);
    background: rgba(34, 0, 73, 0.45);
    transform: translateY(-2px);
}

.social-box a span{
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.social-box a strong{
    font-size: 0.98rem;
    font-weight: 600;
    color: #f0f3ff;
}

.social-box a small{
    font-size: 0.82rem;
    color: #9aa6c7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-box i{
    color: #7668ff;
    font-size: 1.55rem;
    flex-shrink: 0;
}

.contact-box{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
    padding: 1.5rem;
    border: 1px solid rgba(114, 161, 222, 0.28);
    border-radius: 18px;
    background: rgba(8, 0, 32, 0.55);
}

.contact-field{
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.contact-field--full{
    grid-column: 1 / -1;
}

.contact-box label{
    display: block;
    margin: 0;
    color: lightgray;
    font-size: 0.92rem;
}

.contact-box input,
.contact-box textarea{
    padding: 0.8rem 1rem;
    background-color: rgba(230, 234, 245, 0.92);
    width: 100%;
    max-width: none;
    border: 1px solid transparent;
    outline: none;
    border-radius: 10px;
    color: #111;
    font: inherit;
    transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.35s var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1));
}

.contact-box input:focus,
.contact-box textarea:focus{
    border-color: #72a1de;
    box-shadow: 0 0 0 3px rgba(114, 161, 222, 0.25), 0 12px 28px rgba(40, 70, 160, 0.18);
    transform: translateY(-1px);
}

.contact-field:focus-within label{
    color: #72a1de;
}

.contact-box textarea{
    min-height: 140px;
    resize: vertical;
}

.contact-honey{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.contact-status{
    grid-column: 1 / -1;
    max-width: none;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-status.is-pending{
    color: #9db7ff;
}

.contact-status.is-success{
    color: #7dffa5;
}

.contact-status.is-error{
    color: #ffb4b4;
}

.contact-box button{
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.35rem;
    color: white;
    padding: 0.9rem 1.75rem;
    border-radius: 10px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-box button:hover{
    opacity: 0.8;
    box-shadow: 0 0 15px #72a1de81;
}

.contact-box button:disabled{
    opacity: 0.55;
    cursor: wait;
    pointer-events: none;
}

.footer{
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 2rem;
    padding: 1.75rem 0 calc(1.5rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(114, 161, 222, 0.22);
    background: linear-gradient(
        180deg,
        rgba(8, 0, 32, 0.15) 0%,
        rgba(5, 8, 22, 0.72) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.footer-inner{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.25rem 2rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
    padding-left: max(clamp(16px, 3vw, 32px), env(safe-area-inset-left));
    padding-right: max(clamp(16px, 3vw, 32px), env(safe-area-inset-right));
}

.footer-brand{
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: #e8eefc;
    justify-self: start;
}

.footer-brand img{
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
    border: 1.5px solid rgba(114, 161, 222, 0.65);
    box-shadow: 0 0 10px rgba(114, 161, 222, 0.35);
}

.footer-brand span{
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.footer-brand strong{
    color: #72a1de;
    font-weight: 600;
}

.footer-nav{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 1.35rem;
}

.footer-nav a{
    text-decoration: none;
    color: rgba(220, 230, 255, 0.78);
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.footer-nav a:hover{
    color: #72a1de;
}

.footer-meta{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    justify-self: end;
}

.footer-copy{
    margin: 0;
    color: rgba(180, 195, 230, 0.7);
    font-size: 0.82rem;
}

.footer-socials{
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.footer-socials a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #dce6ff;
    text-decoration: none;
    border: 1px solid rgba(114, 161, 222, 0.28);
    background: rgba(114, 161, 222, 0.08);
    font-size: 1.15rem;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.footer-socials a:hover{
    background: rgba(114, 161, 222, 0.22);
    border-color: #72a1de;
    color: #fff;
    transform: translateY(-2px);
}

.menu-icon{
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    font-size: 28px;
    cursor: pointer;
    background: rgba(114, 161, 222, 0.12);
    border: 1px solid rgba(114, 161, 222, 0.35);
    border-radius: 12px;
    color: white;
    padding: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.menu-icon:hover{
    background: rgba(114, 161, 222, 0.28);
    border-color: #72a1de;
}

.menu-icon:active{
    transform: scale(0.94);
}

.close-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 32px;
    color: lightgray;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.close-icon:hover{
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

html[data-mode="light"] .card{
    background-color: rgba(255, 255, 255, 0.78);
    border-color: #c5d0ef;
}

html[data-mode="light"] .card h1,
html[data-mode="light"] .section-title,
html[data-mode="light"] .project-info h1,
html[data-mode="light"] .skill-panel p,
html[data-mode="light"] .contact-lead,
html[data-mode="light"] .contact-box label,
html[data-mode="light"] .social-box a strong,
html[data-mode="light"] .hero-info p{
    color: #1c2340;
}

html[data-mode="light"] .project-tag{
    color: #3a5fd4;
}

html[data-mode="light"] .project-title-sub{
    color: #4a5578;
}

html[data-mode="light"] .contact-aside-title{
    color: #3a5fd4;
}

html[data-mode="light"] .social-box a{
    background: rgba(255, 255, 255, 0.78);
    border-color: #c5d0ef;
}

html[data-mode="light"] .social-box a:hover{
    background: rgba(255, 255, 255, 0.95);
    border-color: #9db0e0;
}

html[data-mode="light"] .social-box a small{
    color: #4a5578;
}

html[data-mode="light"] .contact-box{
    background: rgba(255, 255, 255, 0.78);
    border-color: #c5d0ef;
}

html[data-mode="light"] .contact-status.is-pending{
    color: #3a5fd4;
}

html[data-mode="light"] .contact-status.is-success{
    color: #1a7a45;
}

html[data-mode="light"] .contact-status.is-error{
    color: #b42318;
}

html[data-mode="light"] .card p{
    color: #4a5578;
}

html[data-mode="light"] .card-video-wrap{
    mix-blend-mode: normal;
}

html[data-mode="light"] .card video{
    mix-blend-mode: normal;
    background: radial-gradient(circle at center, #1a2450 0%, #0a1024 70%);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(40, 60, 140, 0.22);
}

html[data-mode="light"] .info-cards .card:nth-child(3){
    display: none;
}

html[data-mode="light"] .info-cards .card:nth-child(4){
    grid-column: span 2;
}

html[data-mode="light"] .card-btn,
html[data-mode="light"] .card button{
    background-color: #eef2ff;
    color: #1c2340;
    border-color: #9eb0e0;
    box-shadow: 0 0 8px rgba(80, 110, 180, 0.25);
}

html[data-mode="light"] .project-vidbox{
    mix-blend-mode: normal;
}

html[data-mode="light"] .skills-box{
    opacity: 1;
}

html[data-mode="light"] .skills-stage{
    isolation: isolate;
}

html[data-mode="light"] .skills-image{
    mix-blend-mode: screen;
    opacity: 0.75;
    filter: brightness(1.35) contrast(1.35) saturate(1.6);
    -webkit-mask-image: radial-gradient(
        ellipse 68% 64% at 50% 50%,
        #000 0%,
        #000 32%,
        rgba(0, 0, 0, 0.45) 55%,
        transparent 78%
    );
    mask-image: radial-gradient(
        ellipse 68% 64% at 50% 50%,
        #000 0%,
        #000 32%,
        rgba(0, 0, 0, 0.45) 55%,
        transparent 78%
    );
}

html[data-mode="light"] .skill-panel{
    background: linear-gradient(160deg, #ffffff, #eef2ff);
    border-color: rgba(100, 120, 180, 0.28);
    box-shadow: 0 10px 28px rgba(70, 90, 140, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html[data-mode="light"] .skill-panel-icon{
    background: rgba(90, 110, 200, 0.1);
    border-color: rgba(90, 110, 200, 0.35);
    color: #4a5fd4;
}

html[data-mode="light"] .skill-list li{
    color: #3a4a78;
    border-bottom-color: rgba(80, 100, 170, 0.35);
}

html[data-mode="light"] .slider{
    opacity: 1;
}

html[data-mode="light"] .skill-panel h2{
    filter: none;
}

html[data-mode="light"] .menu-icon{
    color: #1c2340;
}


/* BLUR EFFECT ANIMAION */

.autoBlur{
    animation: autoBlurAnimation linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
}
@keyframes autoBlurAnimation{
    0%{
        filter: blur(20px);
        opacity: 0.55;
    }
    12%, 88%{
        filter: blur(0);
        opacity: 1;
    }
    100%{
        filter: blur(12px);
        opacity: 0.85;
    }
}


/* AUTO DISPLAY ANIMAION */
.autoDisplay{
    animation: autoDisplayAnimation both;
    animation-timeline: view();

}

@keyframes autoDisplayAnimation{
    from{
        filter: blur(10px);
        transform: translateY(-200px) scale(0);
    } 50%{
        opacity: 1;
        filter: blur(0px);
        transform: translateX(0) scale(1);
    }
}


/* FADEIN_LEFT */

.fadein-left{
    animation: fadeInLeftAnimation both;
    animation-timeline: view();
}

@keyframes fadeInLeftAnimation{
    0%{
        opacity: 0;
        transform: translateX(-500px) scale(0.2);
        filter: blur(10px);
    } 35%,65%{
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0px);
    }100%{
        filter: blur(10px);
    }
}

/* Custom AOS: bounce + drop-down */
[data-aos="bounce"] {
    opacity: 0;
    transform: scale(0.3) translateY(-40px);
    transition-property: transform, opacity;
}

[data-aos="bounce"].aos-animate {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: aosBounce 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes aosBounce {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-40px);
    }
    50% {
        opacity: 1;
        transform: scale(1.08) translateY(0);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

[data-aos="drop-down"] {
    opacity: 0;
    transform: translateY(-80px);
    transition-property: transform, opacity;
}

[data-aos="drop-down"].aos-animate {
    opacity: 1;
    transform: translateY(0);
    animation: aosDropDown 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes aosDropDown {
    0% {
        opacity: 0;
        transform: translateY(-80px);
    }
    60% {
        opacity: 1;
        transform: translateY(8px);
    }
    80% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-aos],
    [data-aos].aos-animate {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* Sidebar / mobile drawer */

.nav-overlay{
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(2, 4, 14, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.is-visible{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    max-width: 100%;
    padding: max(20px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
    background: linear-gradient(165deg, rgba(8, 12, 32, 0.97), rgba(12, 20, 48, 0.95));
    border-left: 1px solid rgba(114, 161, 222, 0.22);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar.open-sidebar{
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    animation: none;
}

.sidebar.close-sidebar{
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    animation: none;
}

.sidebar-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2rem;
}

.sidebar-brand h2{
    font-size: 1.15rem;
}

.sidebar-brand img{
    width: 36px;
    height: 36px;
}

.sidebar ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.sidebar ul li{
    margin: 0;
}

.sidebar ul li a{
    display: block;
    text-decoration: none;
    color: rgba(220, 228, 245, 0.9);
    font-size: clamp(1.25rem, 4.5vw, 1.55rem);
    font-weight: 800;
    padding: 12px 14px;
    border-radius: 14px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a.is-active{
    background: rgba(114, 161, 222, 0.16);
    color: #fff;
    transform: translateX(4px);
}

.social-sidebar{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 1.5rem;
}

.social-sidebar a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-size: 26px;
    color: #c8d6f0;
    border: 1px solid rgba(114, 161, 222, 0.35);
    border-radius: 50%;
    transition: 0.3s ease;
}

.social-sidebar a:hover{
    background: #72a1de;
    color: #050816;
    box-shadow: 0 0 16px #72a1de88;
}

html[data-mode="light"] .sidebar{
    background: linear-gradient(165deg, rgba(248, 250, 255, 0.98), rgba(232, 238, 252, 0.96));
    border-left-color: rgba(70, 90, 140, 0.18);
}

html[data-mode="light"] .sidebar ul li a,
html[data-mode="light"] .sidebar-brand,
html[data-mode="light"] .close-icon,
html[data-mode="light"] .social-sidebar a,
html[data-mode="light"] .menu-icon{
    color: #1c2340;
}

html[data-mode="light"] .close-icon,
html[data-mode="light"] .menu-icon{
    background: rgba(70, 90, 140, 0.08);
    border-color: rgba(70, 90, 140, 0.2);
}

html[data-mode="light"] .sidebar ul li a:hover,
html[data-mode="light"] .sidebar ul li a.is-active{
    background: rgba(90, 120, 200, 0.14);
}

html[data-mode="light"] .social-sidebar a{
    border-color: rgba(70, 90, 140, 0.28);
}

body.nav-open{
    overflow: hidden;
}






@media (max-aspect-ratio: 16/9){
    .back-vid{
        width: 100%;
        height: 100%;
    }
}

@media (min-aspect-ratio: 16/9){
    .back-vid{
        width: 100%;
        height: 100%;
    }
}


@media screen and (max-width: 1200px){
    .hero{
        gap: 1.5rem;
        padding: 5.5rem 4% 3.5rem;
    }

    .hero-info h1{
        font-size: clamp(1.85rem, 4vw, 2.5rem);
        max-width: 400px;
        line-height: 1.15;
    }

    .hero-info p{
        max-width: 360px;
    }

    .skills-video-box{
        margin-right: 0;
        width: min(100%, clamp(240px, 32vw, 360px));
        padding: clamp(1.4rem, 3vw, 2.25rem);
    }

    .skills-video-box video,
    .hero-photo-wrap{
        width: 100%;
        height: auto;
    }

    .info-cards{
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
    }

    .card:nth-child(3){
        grid-column: 2;
        grid-row: 1 / span 2;
        height: auto;
        min-height: 100%;
    }

    .card:nth-child(4){
        grid-column: 1 / -1;
    }

    .info-cards .card:nth-child(1),
    .info-cards .card:nth-child(2){
        flex-direction: column;
        align-items: stretch;
    }

    .info-cards .card:nth-child(1) > img,
    .info-cards .card:nth-child(2) > img{
        width: 100%;
        height: clamp(8.5rem, 18vw, 11rem);
    }

    .info-cards .card h1{
        font-size: 20px;
    }

    .info-cards .card:nth-child(3) h1{
        bottom: 25%;
    }

    .card-video-wrap{
        top: 4%;
        height: 52%;
    }

    .my-project{
        margin-bottom: 60px;
        width: 90%;
    }

}

@media screen and (max-width: 980px){
    .hero{
        gap: 1.75rem;
        padding: 5.75rem 4.5% 4.5rem;
        justify-content: center;
        align-items: center;
    }

    .hero-info{
        flex: 1 1 50%;
        max-width: 480px;
        z-index: 2;
    }

    .hero-info h1{
        margin-top: 1.25rem;
    }

    .hero-btn{
        position: relative;
        z-index: 3;
    }

    .skills-video-box{
        width: min(100%, clamp(220px, 34vw, 300px));
        padding: 1.35rem;
        flex-shrink: 0;
    }

    .hero-photo-wrap{
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
    }

    .hero-photo{
        object-position: center 12%;
    }

    .scroll-down{
        display: none;
    }

    .skills-stage{
        grid-template-columns: 1fr;
        gap: 1.25rem;
        justify-items: stretch;
    }

    .skills-image{
        grid-column: 1;
        grid-row: 1;
        width: min(220px, 48vw);
        max-width: 220px;
        opacity: 0.9;
        margin-bottom: 0.35rem;
    }

    .skills-stage .skill-panel.Designer{
        grid-column: 1;
        grid-row: 2;
    }

    .skills-stage .skill-panel.coder{
        grid-column: 1;
        grid-row: 3;
    }

    .skill-panel p{
        max-width: none;
    }

    .slider{
        width: 90%;
    }
}

@media screen and (max-width: 1100px) and (min-width: 901px){
    header ul,
    .nav-links{
        gap: 14px;
        padding: 9px 18px;
    }

    .box-icons{
        gap: 10px;
    }

    .left h2{
        font-size: 1.15rem;
    }
}

@media screen and (max-width: 900px){
    header,
    .site-header {
        position: fixed;
        padding-top: env(safe-area-inset-top);
        height: calc(60px + env(safe-area-inset-top));
    }

    html{
        scroll-padding-top: calc(4.5rem + env(safe-area-inset-top));
    }

    header ul,
    .nav-links{
        display: none;
    }

    header .box-icons > a{
        display: none;
    }

    header .box-icons{
        margin-left: auto;
        margin-right: 8px;
        gap: 10px;
        display: flex;
    }

    header .theme-toggle{
        display: flex;
    }

    .menu-icon{
        display: inline-flex;
    }

    .left img{
        width: 34px;
        height: 34px;
    }

    .autoBlur{
        animation: none;
    }

    .hero{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding: 5.25rem 5% 4.75rem;
    }

    .hero-info{
        order: 2;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-info h1{
        margin-top: 0.75rem;
    }

    .hero-info h1,
    .hero-info p{
        max-width: 100%;
    }

    .hero-info p{
        max-width: 36rem;
    }

    .scroll-down{
        bottom: 0.85rem;
    }

    .hero .skills-video-box{
        order: 1;
        margin: 0 auto;
        width: min(240px, 58vw);
        padding: 1.4rem;
    }

    .hero-photo-wrap{
        width: 100%;
        height: auto;
        border-radius: 50%;
        aspect-ratio: 1 / 1;
    }

    .hero-photo{
        object-position: center 12%;
    }



    .info-cards{
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
    }

    .card:nth-child(3){
        grid-column: auto;
        height: auto;
        min-height: 28rem;
    }

    .info-cards .card:nth-child(1),
    .info-cards .card:nth-child(2){
        flex-direction: column;
        align-items: stretch;
    }

    .info-cards .card:nth-child(1) > img,
    .info-cards .card:nth-child(2) > img{
        width: 100%;
        height: clamp(8rem, 28vw, 11rem);
    }

    .card-video-wrap{
        height: 48%;
    }
    
    .container{
        height: 100%;
    }

    .project-vidbox video,
    .project-vidbox img{
        width: 100%;
        height: 200px;
        margin-left: 0;
    }

    .project-info{
        overflow: visible;
        padding-left: 0;
        margin-left: 0;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .project-info h1{
        font-size: clamp(1.25rem, 5vw, 1.5rem);
        max-width: 100%;
        text-wrap: balance;
        text-align: center;
    }

    .project-info p:not(.project-tag){
        font-size: 0.9rem;
        text-wrap: wrap;
        max-width: 100%;
        min-width: 0;
        margin-bottom: 1.25rem;
        text-align: center;
    }

    .project-tag{
        text-align: center;
        width: 100%;
    }

    .project-info button,
    .project-btn{
        padding: 12px 24px;
    }

    .my-project{
        margin-top: 80px;
        margin-bottom: 48px;
        gap: 2.5rem;
        width: 92%;
    }

    .project-card{
        flex-direction: column;
        margin-left: 0;
        gap: 1.25rem;
        min-height: 0;
    }
    
    .project-vidbox{
        min-width: 0;
        width: 100%;
    }

    .project-info h1{
        text-wrap: wrap;
    }

    .project-info p{
        max-width: 100%;
    }

    .skills-box{
        width: min(100%, 92%);
        gap: 2.25rem;
    }

    .skills-image{
        width: min(190px, 50vw);
        max-width: 190px;
        opacity: 0.88;
    }

    .skill-panel{
        max-width: 100%;
    }

    .skill-panel p{
        max-width: none;
    }

    .slider{
        width: 92%;
    }

    .slider .list .item img{
        width: 70%;
    }

    .contact-section{
        padding: 3rem 0 3.5rem;
    }

    .contact-layout{
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-box{
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .contact-box button{
        width: 100%;
        justify-content: center;
    }

    .footer-inner{
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1rem;
    }

    .footer-brand,
    .footer-meta{
        justify-self: center;
    }

    .footer-meta{
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-nav{
        gap: 0.85rem 1.1rem;
    }
}


@media screen and (max-width: 480px) {

    .left {
        margin-left: -8px;
    }

    .left h2 {
        font-size: 1.1rem;
    }

    .hero {
        padding: 4.75rem 5% 4.5rem;
        gap: 1.5rem;
    }

    .hero .skills-video-box{
        width: min(190px, 54vw);
        padding: 1.15rem;
    }

    .hero-photo-wrap{
        width: 100%;
    }

    .hero-info h1{
        font-size: clamp(1.6rem, 7vw, 2.1rem);
    }

    .scroll-down{
        display: none;
    }

    .section-title {
        font-size: 25px;
    }

    .info-cards{
        display: flex;
        flex-direction: column;
    }

    .card {
        min-height: 20rem;
    }

    .info-cards .card:nth-child(1),
    .info-cards .card:nth-child(2){
        min-height: 0;
    }

    .info-cards .card:nth-child(1) > img,
    .info-cards .card:nth-child(2) > img{
        height: 7rem;
    }

    .card h1{
        bottom: 30%;
        font-size: clamp(1rem, 5vw, 1.25rem);
    }

    .info-cards .card:nth-child(1) h1,
    .info-cards .card:nth-child(2) h1{
        bottom: auto;
        font-size: clamp(1rem, 5vw, 1.25rem);
    }

    .project-card {
        height: auto;
    }

    .project-info p{
        margin-bottom: 1rem;
    }

    .project-info{
        margin-left: 0;
    }

    .skills-box{
        gap: 1.75rem;
    }

    .skills-section{
        padding: 3rem 0 3.5rem;
    }

    .slider{
        bottom: auto;
    }

    .contact-lead{
        margin-bottom: 2rem;
        font-size: 0.95rem;
    }

    .social-box a{
        padding: 0.85rem 1rem;
    }

    .footer{
        padding-top: 1.35rem;
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    }

    .footer-copy{
        font-size: 0.78rem;
    }


}


/* ——— Extreme reactivity layer ——— */
:root{
    --mx: 50vw;
    --my: 50vh;
    --mxn: 0;
    --myn: 0;
    --scroll: 0;
    --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

html.is-reactive{
    scroll-behavior: smooth;
}

html.has-cursor,
html.has-cursor *{
    cursor: none;
}

.cursor-orb,
.cursor-ring{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    translate: -50% -50%;
    will-change: transform;
}

html.cursor-on .cursor-orb,
html.cursor-on .cursor-ring{
    opacity: 1;
}

.cursor-orb{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9eb7ff;
    box-shadow: 0 0 18px rgba(120, 160, 255, 0.85);
    transition: width 0.25s var(--ease-spring), height 0.25s var(--ease-spring), background 0.25s ease;
}

.cursor-ring{
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(140, 170, 255, 0.55);
    transition: width 0.3s var(--ease-spring), height 0.3s var(--ease-spring), border-color 0.25s ease;
}

html.cursor-hover .cursor-orb{
    width: 16px;
    height: 16px;
    background: #c6d4ff;
}

html.cursor-hover .cursor-ring{
    width: 56px;
    height: 56px;
    border-color: rgba(180, 200, 255, 0.85);
}

header,
.site-header{
    transition: height 0.35s var(--ease-spring), background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}

header.is-scrolled,
.site-header.is-scrolled{
    height: 58px;
    background-color: rgba(5, 8, 22, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(114, 161, 222, 0.28);
}

html[data-mode="light"] header.is-scrolled,
html[data-mode="light"] .site-header.is-scrolled{
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(70, 90, 140, 0.15);
    border-bottom-color: rgba(70, 90, 140, 0.16);
}

@media screen and (max-width: 900px){
    header.is-scrolled,
    .site-header.is-scrolled{
        height: calc(56px + env(safe-area-inset-top));
    }
}

header ul a,
.nav-links a{
    position: relative;
    transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s var(--ease-spring);
}

header ul a::after,
.nav-links a::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #72a1de, #a78bfa);
    transition: width 0.3s var(--ease-spring), left 0.3s var(--ease-spring);
}

header ul a:hover,
header ul a.is-active,
.nav-links a:hover,
.nav-links a.is-active{
    transform: translateY(-1px);
}

header ul a:hover::after,
header ul a.is-active::after,
.nav-links a:hover::after,
.nav-links a.is-active::after{
    left: 0;
    width: 100%;
}

.box-icons a,
.box-icons button,
.theme-toggle,
.hero-btn,
.card-btn,
.project-btn,
.contact-box button,
.social-box a,
.menu-icon,
.close-icon{
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.box-icons a:hover,
.box-icons button:hover,
.theme-toggle:hover{
    transform: translateY(-3px) scale(1.08);
}

.hero-btn:hover,
.card-btn:hover,
.project-btn:hover,
.contact-box button:hover{
    transform: translateY(-3px) scale(1.03);
}

[data-magnetic]{
    will-change: transform;
}

.ripple{
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleOut 0.55s ease-out forwards;
    pointer-events: none;
    z-index: 2;
}

@keyframes rippleOut{
    to{
        transform: scale(2.4);
        opacity: 0;
    }
}

[data-parallax]{
    --px: 0px;
    --py: 0px;
    transform: translate3d(var(--px), var(--py), 0);
    transition: transform 0.45s var(--ease-spring);
    will-change: transform;
}

.back-vid[data-parallax]{
    transform: translate3d(calc(var(--px) * 1.6), calc(var(--py) * 1.6), 0) scale(1.12);
}

[data-tilt]{
    --rx: 0deg;
    --ry: 0deg;
    --sx: 50%;
    --sy: 50%;
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
    transition: transform 0.35s var(--ease-spring), border-color 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

[data-tilt].is-tilting{
    transition: transform 0.08s linear, border-color 0.35s ease, box-shadow 0.35s ease;
}

[data-spotlight]::before{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
        420px circle at var(--sx) var(--sy),
        rgba(130, 160, 255, 0.22),
        transparent 55%
    );
    transition: opacity 0.35s ease;
    z-index: 0;
}

[data-spotlight].is-tilting::before{
    opacity: 1;
}

.hero-photo-frame[data-spotlight]::before{
    z-index: 2;
    background: radial-gradient(
        280px circle at var(--sx) var(--sy),
        rgba(180, 210, 255, 0.28),
        transparent 58%
    );
}

.hero-photo-wrap.is-tilting .hero-photo-frame[data-spotlight]::before,
.hero-photo-wrap:hover .hero-photo-frame[data-spotlight]::before{
    opacity: 1;
}

.card,
.skill-panel,
.project-card,
.project-vidbox,
.hero-photo-wrap{
    position: relative;
}

.card h1,
.card p,
.card .card-btn,
.card button,
.skill-panel > *,
.project-card > *{
    z-index: 2;
}

.card-video-wrap,
.card video,
.card img,
.card .passion-keyboard{
    z-index: 0;
}

.card:hover,
.skill-panel:hover{
    border-color: rgba(140, 175, 255, 0.55);
    box-shadow: 0 18px 40px rgba(40, 70, 160, 0.28);
}

.hero-photo-wrap{
    transition: transform 0.35s var(--ease-spring), filter 0.35s ease;
}

.img-motion-host{
    overflow: hidden;
}

.left.img-motion-host,
.footer-brand.img-motion-host,
.skills-stage.img-motion-host{
    overflow: visible;
}

.img-motion{
    transform-origin: center center;
    will-change: transform;
    transition: none;
}

.hero-photo-frame.img-motion-host,
.hero-photo-wrap .hero-photo-frame{
    overflow: hidden;
    border-radius: inherit;
}

.hero-photo-wrap.img-motion-host{
    overflow: visible;
}

.skills-stage.img-motion-host .skills-image{
    pointer-events: auto;
}

.slider .item.img-motion-host{
    overflow: hidden;
}

.project-vidbox{
    transition: transform 0.4s var(--ease-spring), filter 0.4s ease, box-shadow 0.4s ease, border-color 0.35s ease;
}

.project-vidbox[data-tilt]{
    --lift: 0px;
    --pscale: 1;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)) scale(var(--pscale));
}

.project-vidbox[data-tilt].is-tilting,
.project-vidbox[data-tilt]:hover{
    --lift: -8px;
    --pscale: 1.02;
    border-color: rgba(170, 200, 255, 0.75);
    box-shadow: 0 0 0 1px rgba(114, 161, 222, 0.2), 0 16px 32px rgba(40, 70, 160, 0.22);
}

.project-vidbox img,
.project-vidbox video{
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center;
}

.project-vidbox.gaze-host{
    perspective: 800px;
    transform-style: preserve-3d;
}

.project-thumb--gaze{
    transform-style: preserve-3d;
    will-change: transform;
}

.contact-box input,
.contact-box textarea{
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.contact-box input:focus,
.contact-box textarea:focus{
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(114, 161, 222, 0.55), 0 10px 24px rgba(70, 110, 200, 0.25);
}

.social-box a:hover{
    transform: translateX(8px);
}

.slider .list .item{
    transition: filter 0.4s ease, transform 0.4s var(--ease-spring);
}

.slider .item:hover{
    transform: scale(1.12);
}

[data-magnetic]:hover{
    transition: transform 0.12s linear, box-shadow 0.35s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

/* ——— Mature interaction polish ——— */
.scroll-progress{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10001;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
    background: linear-gradient(90deg, #72a1de, #a78bfa 55%, #7dd3fc);
    box-shadow: 0 0 12px rgba(114, 161, 222, 0.55);
    transition: opacity 0.3s ease;
}

[data-reveal]{
    position: relative;
    opacity: 0.55;
    transform: translateY(18px);
    filter: blur(4px);
    transition:
        opacity 0.7s var(--ease-spring),
        transform 0.7s var(--ease-spring),
        filter 0.7s ease;
}

[data-reveal].is-revealed{
    opacity: 1;
    transform: none;
    filter: none;
}

[data-reveal]::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.45rem;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #72a1de, transparent);
    transform: translateX(-50%);
    transition: width 0.8s var(--ease-spring) 0.12s;
}

[data-reveal].is-revealed::after{
    width: min(7rem, 40%);
}

.project-card{
    transition: transform 0.45s var(--ease-spring);
}

.project-card:hover .project-info h1{
    letter-spacing: 0.01em;
}

.project-info h1,
.project-title{
    transition: letter-spacing 0.4s ease, transform 0.4s var(--ease-spring);
}

.project-vidbox{
    overflow: hidden;
    border-radius: 20px;
}

.hero-info-title{
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.3s ease;
}

.hero-info-title:hover{
    transform: translateY(-2px);
}

.footer-nav a,
.footer-socials a,
.footer-brand{
    transition: transform 0.35s var(--ease-spring), color 0.25s ease;
}

.footer-nav a:hover{
    transform: translateY(-2px);
}

html[data-mode="light"] .scroll-progress{
    background: linear-gradient(90deg, #3a5fd4, #6d8cff 55%, #4f9cf0);
    box-shadow: 0 0 10px rgba(58, 95, 212, 0.35);
}

/* ——— Extra motion layer ——— */

.hero-photo-float{
    animation: photoGlow 4s ease-in-out infinite, heroFloat 5.5s ease-in-out infinite;
}

@keyframes heroFloat{
    0%, 100%{ translate: 0 0; }
    50%{ translate: 0 -10px; }
}

.hero-photo-wrap.is-tilting,
.hero-photo-wrap.hero-photo-float.is-tilting{
    animation-play-state: paused;
}

.hero-title .split-char{
    opacity: 0;
    transform-origin: bottom center;
}

.hero-title.is-split-ready .split-char{
    animation: charRise 0.7s var(--ease-spring) both;
    animation-delay: calc(var(--char-i, 0) * 28ms + 180ms);
}

/* Keep gradient shimmer — charRise alone would replace animate-gradient */
.hero-title.is-split-ready .gradient .split-char{
    animation:
        charRise 0.7s var(--ease-spring) both,
        animate-gradient 2.5s linear infinite;
    animation-delay:
        calc(var(--char-i, 0) * 28ms + 180ms),
        0s;
}

.hero-title.is-split-ready .split-char.is-risen{
    opacity: 1;
    animation: none;
}

.hero-title.is-split-ready .gradient .split-char.is-risen{
    opacity: 1;
    animation: animate-gradient 2.5s linear infinite;
}

@keyframes charRise{
    from{
        opacity: 0;
        translate: 0 1.1em;
    }
    to{
        opacity: 1;
        translate: 0 0;
    }
}

.hero-info-title i{
    display: inline-block;
    animation: iconNudge 2.8s ease-in-out infinite;
}

@keyframes iconNudge{
    0%, 100%{ transform: rotate(0deg) scale(1); }
    40%{ transform: rotate(-8deg) scale(1.08); }
    60%{ transform: rotate(6deg) scale(1.05); }
}

[data-animate]{
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
    transition:
        opacity 0.75s var(--ease-spring),
        transform 0.75s var(--ease-spring),
        filter 0.75s ease;
    transition-delay: calc(var(--stagger, 0) * 70ms);
    will-change: transform, opacity, filter;
}

[data-animate="slide-left"]{
    transform: translateX(-36px);
}

[data-animate="slide-right"]{
    transform: translateX(36px);
}

[data-animate="zoom"]{
    transform: scale(0.92);
}

[data-animate="fade-up"]{
    transform: translateY(24px);
}

[data-animate="rise"]{
    transform: translateY(40px) scale(0.97);
}

[data-animate].is-inview{
    opacity: 1;
    transform: none;
    filter: none;
}

.skill-list li{
    opacity: 0;
    transform: translateY(10px);
}

.skill-panel.is-inview .skill-list li{
    opacity: 1;
    transform: none;
    transition:
        opacity 0.45s var(--ease-spring),
        transform 0.45s var(--ease-spring),
        color 0.25s ease,
        border-color 0.25s ease;
    transition-delay: calc(var(--i, 0) * 80ms + 180ms);
}

.skill-panel.is-inview:hover .skill-list li{
    transform: translateY(-2px);
}

.skill-panel-icon{
    transition: transform 0.45s var(--ease-spring), box-shadow 0.35s ease, background-color 0.3s ease;
}

.skill-panel:hover .skill-panel-icon{
    transform: translateY(-4px) rotate(-6deg) scale(1.08);
}

.skill-panel-icon i{
    display: inline-block;
    transition: transform 0.45s var(--ease-spring);
}

.skill-panel:hover .skill-panel-icon i{
    transform: scale(1.12);
    animation: iconPulse 0.9s var(--ease-spring);
}

@keyframes iconPulse{
    0%{ transform: scale(1); }
    40%{ transform: scale(1.22); }
    100%{ transform: scale(1.12); }
}

.hover-sign span{
    position: relative;
}

.hover-sign span::before{
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 1px solid rgba(160, 190, 255, 0.55);
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
}

.project-vidbox:hover .hover-sign span::before,
.hover-sign.active span::before{
    animation: signRing 1.2s ease-out infinite;
}

@keyframes signRing{
    0%{
        opacity: 0.7;
        transform: scale(0.85);
    }
    100%{
        opacity: 0;
        transform: scale(1.45);
    }
}

.project-tag{
    display: inline-block;
    transition: transform 0.35s var(--ease-spring), letter-spacing 0.35s ease;
}

.project-card:hover .project-tag{
    transform: translateX(4px);
    letter-spacing: 0.04em;
}

.contact-field{
    position: relative;
}

.contact-field::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #72a1de, #a78bfa, #7dd3fc);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s var(--ease-spring);
    pointer-events: none;
}

.contact-field:focus-within::after{
    transform: scaleX(1);
}

.contact-field label{
    display: inline-block;
    transition: transform 0.3s var(--ease-spring), color 0.25s ease;
}

.contact-field:focus-within label{
    transform: translateY(-2px);
    color: #c9d6ff;
}

.sidebar ul li{
    opacity: 0;
    transform: translateX(24px);
    transition:
        opacity 0.4s var(--ease-spring),
        transform 0.4s var(--ease-spring);
    transition-delay: 0s;
}

.sidebar.open-sidebar ul li{
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 55ms + 80ms);
}

.sidebar.close-sidebar ul li{
    opacity: 0;
    transform: translateX(24px);
    transition-delay: 0s;
}

.social-sidebar a{
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    transition:
        opacity 0.35s var(--ease-spring),
        transform 0.35s var(--ease-spring),
        background-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.sidebar.open-sidebar .social-sidebar a{
    opacity: 1;
    transform: none;
    transition-delay: calc(0.28s + var(--i, 0) * 60ms);
}

.sidebar.close-sidebar .social-sidebar a{
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    transition-delay: 0s;
}

.slider .list .item img{
    animation: iconGlow 3.2s ease-in-out infinite;
    animation-delay: calc(var(--position) * 0.18s);
}

@keyframes iconGlow{
    0%, 100%{ filter: brightness(1) drop-shadow(0 0 0 transparent); }
    50%{ filter: brightness(1.12) drop-shadow(0 0 10px rgba(140, 180, 255, 0.45)); }
}

.slider .item:hover img{
    animation-play-state: paused;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon{
    transition: transform 0.45s var(--ease-spring), opacity 0.3s ease;
}

.theme-toggle:hover .icon-sun,
.theme-toggle:hover .icon-moon{
    transform: rotate(25deg) scale(1.1);
}

.scroll-down{
    animation: scrollCue 2.4s ease-in-out infinite;
}

@keyframes scrollCue{
    0%, 100%{
        transform: translateX(-50%) translateY(0);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
    }
    50%{
        transform: translateX(-50%) translateY(6px);
        box-shadow: 0 0 18px rgba(140, 180, 255, 0.7);
    }
}

.footer-nav a,
.footer-socials a{
    position: relative;
}

.footer-nav a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #72a1de, #a78bfa);
    transition: width 0.3s var(--ease-spring);
}

.footer-nav a:hover::after{
    width: 100%;
}

.footer-socials a:hover{
    transform: translateY(-4px) scale(1.1);
}

.card-btn i,
.hero-btn i,
.project-btn i,
.contact-box button i{
    display: inline-block;
    transition: transform 0.35s var(--ease-spring);
}

.hero-btn:hover i,
.card-btn:hover i,
.project-btn:hover i,
.contact-box button:hover i{
    transform: translateX(3px) rotate(-8deg);
}

html[data-mode="light"] .hover-sign span{
    color: #1c2340;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(70, 90, 140, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal].is-revealed{
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    [data-reveal]::after{
        width: min(7rem, 40%);
        transition: none !important;
    }

    .scroll-progress{
        transition: none !important;
    }
}

@media (pointer: coarse){
    html.has-cursor,
    html.has-cursor *{
        cursor: auto;
    }

    .cursor-orb,
    .cursor-ring{
        display: none;
    }

    [data-tilt]{
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-aos],
    [data-aos].aos-animate {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    .cursor-orb,
    .cursor-ring,
    .ripple,
    .bg-canvas,
    .bg-glow,
    .bg-aurora,
    .hero-orbit,
    .charge-ring{
        display: none !important;
    }

    [data-tilt],
    [data-parallax],
    [data-magnetic]{
        transform: none !important;
        transition: none !important;
    }

    .card-video-wrap[data-globe] video{
        transform: none !important;
        transition: none !important;
    }

    .globe-specular{
        display: none !important;
    }

    .back-vid,
    .split-char{
        transform: none !important;
    }

    .hero-photo-float,
    .hero-info-title i,
    .scroll-down,
    .slider .list .item img,
    .hero-title .split-char,
    .hero-title.is-split-ready .split-char{
        animation: none !important;
        opacity: 1 !important;
        translate: none !important;
    }

    [data-animate],
    [data-animate].is-inview{
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .skill-list li,
    .skill-panel.is-inview .skill-list li{
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .sidebar ul li,
    .sidebar.open-sidebar ul li,
    .social-sidebar a,
    .sidebar.open-sidebar .social-sidebar a{
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media screen and (max-width: 980px){
    html.has-cursor,
    html.has-cursor *{
        cursor: auto;
    }

    .cursor-orb,
    .cursor-ring{
        display: none;
    }
}









