/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: #000000;
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 100%;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body {
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 100%;
    width: 100%;
    max-width: 100vw;
    background: #ffffff;
    position: relative;
    overflow-x: hidden;
    z-index: 0;
    transition: background 0.6s ease, color 0.6s ease;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

body.is-loading {
    overflow: hidden !important;
    position: fixed !important;
    width: 100%;
}

/* Skip link: visible on focus for keyboard users (a11y) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000000;
    padding: 0.75rem 1.25rem;
    background: #0a0a0a;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Focus visible for keyboard navigation (award / a11y best practice) */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0a0a0a;
    outline-offset: 2px;
}
.dock-icon a:focus-visible {
    outline: 2px solid #0a0a0a;
    outline-offset: 2px;
}
.projects-carousel__nav:focus,
.projects-carousel__nav:focus-visible {
    outline: none;
}
.projects-carousel__nav:active {
    opacity: 0.7;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    pointer-events: none;
}

.loading-screen.fade-out {
    animation: blurFadeOut 0.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes blurFadeOut {
    0% {
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        filter: blur(10px);
    }
}

.loading-content {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.number-ticker {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    min-width: 3ch;
    text-align: right;
}

.loading-percent {
    font-size: 2rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Main container: stacking context so particles stay behind content */
.main-container {
    isolation: isolate;
}

/* All page content in one layer above particles. No transform so position:sticky works in about section. */
.main-content {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

/* Particles Background - first child of main-container, forced behind via transform layer */
.particles-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none;
    z-index: 0 !important;
    transform: translateZ(-1px);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    background: #ffffff;
    transition: background 0.6s ease;
}

.particles-background canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientVibrate {
    0% {
        transform: translate(var(--hover-x, 0px), var(--hover-y, 0px)) rotate(calc(var(--gradient-rotation, 0deg) + 0deg));
    }
    25% {
        transform: translate(calc(var(--hover-x, 0px) - 2px), calc(var(--hover-y, 0px) + 2px)) rotate(calc(var(--gradient-rotation, 0deg) + 0.3deg));
    }
    50% {
        transform: translate(calc(var(--hover-x, 0px) + 2px), calc(var(--hover-y, 0px) - 2px)) rotate(calc(var(--gradient-rotation, 0deg) - 0.3deg));
    }
    75% {
        transform: translate(calc(var(--hover-x, 0px) - 1px), calc(var(--hover-y, 0px) - 1px)) rotate(calc(var(--gradient-rotation, 0deg) + 0.15deg));
    }
    100% {
        transform: translate(calc(var(--hover-x, 0px) + 1px), calc(var(--hover-y, 0px) + 1px)) rotate(calc(var(--gradient-rotation, 0deg) - 0.15deg));
    }
}

body::before {
    display: none;
}

/* Scanlines Effect */
.scanlines {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 300;
    display: none;
}

.scanlines::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, .5) 51%);
    background-size: 100% 4px;
    will-change: background, background-size;
    animation: scanlines 1s linear infinite;
}

/* Noise Effect */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 400;
    display: none;
    pointer-events: none;
}

.noise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.01) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.005) 50%, transparent 70%);
    background-size: 200px 200px, 300px 300px, 100px 100px;
    pointer-events: none;
}

.noise-moving { display: none; }

.noise-moving::before {
    will-change: background-position;
    animation: noise 3s infinite alternate;
}

.geometric-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background: #000000;
    overflow: hidden;
    display: none;
}

.geometric-background::before {
    display: none;
}

.geometric-background::after {
    display: none;
}

@keyframes geometricFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
        opacity: 0.6;
    }
}

@keyframes geometricShift {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(10px) scale(1.02);
    }
}

/* Retro CRT Animations */
@keyframes noise {
    0%, 100% {background-position: 0 0;}
    10% {background-position: -5% -10%;}
    20% {background-position: -15% 5%;}
    30% {background-position: 7% -25%;}
    40% {background-position: 20% 25%;}
    50% {background-position: -25% 10%;}
    60% {background-position: 15% 5%;}
    70% {background-position: 0 15%;}
    80% {background-position: 25% 35%;}
    90% {background-position: -10% 10%;}
}

@keyframes opacity {
    0% {opacity: .4;}
    20% {opacity:.2;}
    35% {opacity:.3;}
    50% {opacity:.5;}
    60% {opacity:.25;}
    80% {opacity:.4;}
    100% {opacity:.4;}
}

@keyframes scanlines {
    from {
        background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, .5) 51%);
        background-size: 100% 4px;
    }
    to {
        background: linear-gradient(to bottom, rgba(0, 0, 0, .5) 50%, transparent 51%);
        background-size: 100% 4px;
    }
}

/* Continually scrolling boxes background */
@keyframes boxesScroll {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 0 48px, 0 48px;
    }
}

/* Aurora Text Animation */
@keyframes aurora {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 100%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-aurora {
    animation: aurora 8s ease-in-out infinite alternate;
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.aurora-text {
    position: relative;
    display: inline-block;
}



/* RGB Text Effect */
@keyframes rgbText {
    0% {
        text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), 0px 0 1px rgba(251, 0, 231, 0.8), 0 0px 3px rgba(0, 233, 235, 0.8), 0px 0 3px rgba(0, 242, 14, 0.8), 0 0px 3px rgba(244, 45, 0, 0.8), 0px 0 3px rgba(59, 0, 226, 0.8);
    }
    25% {
        text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), 0px 0 1px rgba(251, 0, 231, 0.8), 0 0px 3px rgba(0, 233, 235, 0.8), 0px 0 3px rgba(0, 242, 14, 0.8), 0 0px 3px rgba(244, 45, 0, 0.8), 0px 0 3px rgba(59, 0, 226, 0.8);
    }
    45% {
        text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), 5px 0 1px rgba(251, 0, 231, 0.8), 0 5px 1px rgba(0, 233, 235, 0.8), -5px 0 1px rgba(0, 242, 14, 0.8), 0 -5px 1px rgba(244, 45, 0, 0.8), 5px 0 1px rgba(59, 0, 226, 0.8);
    }
    50% {
        text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), -5px 0 1px rgba(251, 0, 231, 0.8), 0 -5px 1px rgba(0, 233, 235, 0.8), 5px 0 1px rgba(0, 242, 14, 0.8), 0 5px 1px rgba(244, 45, 0, 0.8), -5px 0 1px rgba(59, 0, 226, 0.8);
    }
    55% {
        text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), 0px 0 3px rgba(251, 0, 231, 0.8), 0 0px 3px rgba(0, 233, 235, 0.8), 0px 0 3px rgba(0, 242, 14, 0.8), 0 0px 3px rgba(244, 45, 0, 0.8), 0px 0 3px rgba(59, 0, 226, 0.8);
    }
    90% {
        text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), -5px 0 1px rgba(251, 0, 231, 0.8), 0 5px 1px rgba(0, 233, 235, 0.8), 5px 0 1px rgba(0, 242, 14, 0.8), 0 -5px 1px rgba(244, 45, 0, 0.8), 5px 0 1px rgba(59, 0, 226, 0.8);
    }
    100% {
        text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), 5px 0 1px rgba(251, 0, 231, 0.8), 0 -5px 1px rgba(0, 233, 235, 0.8), -5px 0 1px rgba(0, 242, 14, 0.8), 0 5px 1px rgba(244, 45, 0, 0.8), -5px 0 1px rgba(59, 0, 226, 0.8);
    }
}


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Main Container - Creates new stacking context above particles */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    background: transparent;
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.hero-content {
    width: 100%;
    padding: 2rem 0 0 0;
    margin-bottom: 0px;
    position: relative;
    z-index: 1000;
}

.profile-img-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    clip-path: circle(50%);
    opacity: 1;
    transform: scale(1);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 20;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%),
        rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(60px) saturate(180%);
    -webkit-backdrop-filter: blur(60px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.15),
        0 2px 8px 0 rgba(0, 0, 0, 0.1),
        inset 0 2px 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 50px 0 rgba(255, 255, 255, 0.06);
}

.profile-img-wrapper::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 0.5;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero.visible .profile-img-wrapper {
    opacity: 1;
    transform: scale(1);
}

.hero.visible .spinning-text {
    opacity: 1 !important;
    visibility: visible !important;
}

.hero.visible .spinning-text .letter {
    opacity: 1 !important;
    visibility: visible !important;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 0;
}

.profile-img-wrapper:hover {
    transform: scale(1.05);
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.12) 100%),
        rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 12px 60px 0 rgba(0, 0, 0, 0.2),
        0 4px 16px 0 rgba(0, 0, 0, 0.15),
        inset 0 2px 2px 0 rgba(255, 255, 255, 0.7),
        inset 0 -2px 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 0 70px 0 rgba(255, 255, 255, 0.1);
}

.profile-img-wrapper:hover::before {
    opacity: 0.8;
}

.hero-name {
    font-size: 5.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    overflow: hidden;
    color: #000000;
    text-shadow: none;
    animation: none;
    font-family: inherit;
    line-height: 1.1;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #555555;
    margin-bottom: 2.5rem;
    overflow: hidden;
    letter-spacing: -0.01em;
    text-shadow: none;
    font-family: inherit;
    line-height: 1.5;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-email {
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s;
    letter-spacing: 0.02em;
    text-shadow: none;
    font-family: inherit;
}

.hero.visible .hero-email {
    opacity: 1;
    transform: translateY(0);
}

/* Dock Container */
.dock-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    filter: none !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 999999 !important;
    isolation: isolate !important;
}

.hero.visible .dock-container {
    opacity: 1;
    transform: translateY(0);
}

.dock {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border-radius: 32px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.1),
        0 2px 8px 0 rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 10001 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
}

.dock-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center bottom;
    cursor: pointer;
}

.dock-icon a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 101;
    cursor: pointer !important;
}

.dock-icon a:hover {
    color: #000000;
}

.dock-icon a svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

/* Dock hover effect - macOS style scaling */
.dock-icon {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-icon:hover {
    transform: scale(1.5) translateY(-8px) !important;
}

/* Tooltip */
.dock-icon::after {
    content: attr(data-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.375rem 0.75rem;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 0.5rem;
    z-index: 1000;
}

.dock-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.dock-icon:hover::after,
.dock-icon:hover::before {
    opacity: 1;
}

.dock-icon:hover::after {
    transform: translateX(-50%) translateY(0);
}

/* Dock Separator */
.dock-separator {
    width: 1px;
    height: 32px;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 0.25rem;
    flex-shrink: 0;
}

/* Spinning Text Container */
.spinning-text-container {
    position: relative;
    width: 420px;
    height: 420px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinning Text - Magic UI style */
.spinning-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spinText 10s linear infinite;
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
}

.spinning-text .letter {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-block;
    font-size: 1rem;
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 500;
    color: #000000;
    transform-origin: center;
    white-space: pre;
    visibility: visible !important;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@keyframes spinText {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.orbit-path {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orbit-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    animation: orbit 20s linear infinite;
    --radius: 120px;
}

/* Pause orbit animation on hover - both parent and individual icons */
.orbiting-circles:hover .orbit-icon,
.orbit-icon:hover {
    animation-play-state: paused;
}

.social-link {
    color: #000000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: inline-flex;
    padding: 0.5rem;
    border-radius: 50%;
    text-shadow: none;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%),
        rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.12),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 40px 0 rgba(255, 255, 255, 0.05);
}

.social-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
}

.social-link:hover {
    color: #000000;
    border-color: rgba(255, 255, 255, 0.4);
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%),
        rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    box-shadow: 
        0 12px 48px 0 rgba(0, 0, 0, 0.18),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 0 60px 0 rgba(255, 255, 255, 0.08);
    transform: scale(1.1);
}

.social-link:hover::before {
    opacity: 0.6;
}

.social-link:hover svg {
    transform: scale(1.1);
}

.social-link:active {
    transform: scale(1.05);
}

@keyframes orbit {
    0% {
        transform: rotate(var(--angle, 0deg)) translateY(calc(var(--radius, 120px) * -1)) rotate(calc(var(--angle, 0deg) * -1));
    }
    100% {
        transform: rotate(calc(var(--angle, 0deg) + 360deg)) translateY(calc(var(--radius, 120px) * -1)) rotate(calc((var(--angle, 0deg) * -1) - 360deg));
    }
}


/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-top: 8rem;
    padding: 1.25rem 0;
    z-index: 10000;
    position: relative;
}

.scroll-indicator__text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #000000;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scroll-indicator__chevron {
    font-size: 1.1rem;
    color: #000000;
    line-height: 1;
}

/* Typing Animation */
.typing-text {
    display: inline-block;
    position: relative;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 2px;
}

.typing-text.typing-complete::after {
    display: none;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Gap scroll-down → sticky (margin-top) much shorter than gap sticky → cards (min-height) */
.about {
    position: relative;
    z-index: 1;
    min-height: 200vh;
    margin-top: 12vh;
    padding: 0;
    isolation: isolate;
}

.about-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}

/* Wrapper that ScrollTrigger pins so the card stays on screen; card is centered inside it */
.about-pin-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-text-reveal {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 2.4rem;
    line-height: 1.9;
    color: #0a0a0a;
    font-weight: 400;
    max-width: 850px;
    letter-spacing: -0.01em;
    margin: 0 auto;
    padding: clamp(1.75rem, 6vw, 3rem) 0;
    text-wrap: pretty;
    z-index: 5;
}

.about-text-reveal .reveal-char-wrapper {
    display: inline;
}

.about-text-reveal .reveal-char-actual {
    display: inline;
    opacity: 0.28;
    font-weight: 300;
    transition: opacity 0.12s ease-out, font-weight 0.18s ease-out;
}

.about-text-reveal .reveal-char-actual.reveal-char-space {
    display: inline-block;
    width: 0.35em;
}


/* Projects Carousel */
.projects {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(8rem, 12vw, 12rem) 0;
    background: transparent;
}

/* Gradient overlays removed for single-card arrow carousel */

.projects-carousel {
    position: relative;
    max-width: min(1100px, 92vw);
    margin: 0 auto;
    isolation: isolate;
    outline: none;
}

.projects-carousel__viewport {
    overflow: hidden;
    height: 600px;
    max-height: 80vh;
    position: relative;
    isolation: isolate;
}

.projects-carousel__track {
    display: flex;
    flex-direction: row;
    transform: translate3d(0, 0, 0);
    transition: transform 0.4s ease;
    will-change: transform;
    height: 100%;
}

.projects-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(48px, 10vw, 72px);
    height: clamp(48px, 10vw, 72px);
    border: none;
    background: transparent;
    color: #0a0a0a;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 20;
    padding: 0;
}

.projects-carousel__nav-icon {
    pointer-events: none;
    line-height: 1;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    display: block;
    text-align: center;
}

.projects-carousel__nav:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.15);
}

.projects-carousel__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.projects-carousel__nav--prev {
    left: clamp(-4rem, -6vw, -2.5rem);
}

.projects-carousel__nav--next {
    right: clamp(-4rem, -6vw, -2.5rem);
}

.projects-carousel__progress {
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
    display: flex;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.85rem, 1vw, 1rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.6);
}

.projects-carousel__counter {
    display: inline-flex;
    gap: 0.35rem;
    align-items: baseline;
}

.projects-carousel__counter .current {
    color: #0a0a0a;
}

.projects-carousel__counter .separator {
    opacity: 0.5;
}

.projects-carousel__counter .total {
    color: rgba(10, 10, 10, 0.7);
}

.projects-carousel .project-item {
    min-height: 500px;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    padding: clamp(2.25rem, 5vw, 3.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.4rem, 2vw, 2.25rem);
    color: #0a0a0a;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.projects-carousel .project-tag {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.7em;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    color: rgba(10, 10, 10, 0.6);
}

.projects-carousel .project-title {
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    line-height: 1.05;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-wrap: balance;
    position: relative;
    color: #0a0a0a;
}

.projects-carousel .project-desc,
.projects-carousel .project-note {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.85;
    color: #0a0a0a;
    text-wrap: pretty;
}

.projects-carousel .project-note {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(10, 10, 10, 0.7);
}

.projects-carousel .project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: auto;
}

.projects-carousel .project-links .link {
    padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(10, 10, 10, 0.3);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #0a0a0a;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.projects-carousel .project-links .link:hover {
    color: #0a0a0a;
    border-color: rgba(10, 10, 10, 0.6);
}

@media (max-width: 768px) {
    .projects-carousel {
        padding: clamp(1rem, 5vw, 1.5rem);
    }

    .projects-carousel__nav--prev {
        left: clamp(-2.5rem, -10vw, -1.25rem);
    }

    .projects-carousel__nav--next {
        right: clamp(-2.5rem, -10vw, -1.25rem);
    }
}


/* Make profile image interactive */
.profile-img-wrapper {
    cursor: pointer;
}


.projects-carousel .project-item:hover .project-tag {
    color: rgba(10, 10, 10, 0.9);
}



/* Responsive */
@media (max-width: 768px) {
    .main-container {
        padding: 0 1.5rem;
    }

    .hero-name {
        font-size: 3.5rem;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .project-title {
        font-size: 2.8rem;
    }

    .about-text {
        font-size: 1.1rem;
    }
    
    .project-desc {
        font-size: 1rem;
    }
    
    .projects-carousel .project-item {
        padding: 2rem 1.5rem;
    }

    .orbiting-circles {
        width: 320px;
        height: 320px;
    }

    .orbit-path {
        width: 320px;
        height: 320px;
    }
    
    .orbit-path .orbit-circle {
        r: 100;
    }

    .orbit-icon {
        width: 35px;
        height: 35px;
        --radius: 100px;
    }

    .profile-img-wrapper {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .profile-img-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .project-title {
        font-size: 2.2rem;
    }
    
    .projects-carousel .project-item {
        padding: 1.5rem 1rem;
    }
}

/* Respect user preference for reduced motion (accessibility / award-site practice) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
