/* ==========================================================================
   Base
   ========================================================================== */
body {
    background-color: #000000;
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    color: #E5E5E5;
}

/* ==========================================================================
   Neumorphic Shadows for Dark Theme
   ========================================================================== */
.neu-raised {
    background: #18181C;
    box-shadow: 8px 8px 18px #040406, -8px -8px 18px #222228;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.neu-raised:hover {
    box-shadow: 12px 12px 26px #040406, -12px -12px 26px #222228;
    border-color: rgba(232, 163, 61, 0.35);
}

.neu-pressed {
    background: #0E0E12;
    box-shadow: inset 6px 6px 14px #040406, inset -6px -6px 14px #1C1C22;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Tactile Interactions
   ========================================================================== */
.clicky {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.clicky:active,
.neu-raised:active {
    transform: scale(0.985);
    box-shadow: inset 6px 6px 12px #040406, inset -6px -6px 12px #1C1C22;
    border-color: transparent;
}

/* ==========================================================================
   Fixed Background Layer — AMOLED Black with Orange Dots
   ========================================================================== */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-color: #000000;
    background-image: 
        /* Soft Ambient Orange Light Orbs */
        radial-gradient(circle at 20% 20%, rgba(232, 163, 61, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(255, 120, 0, 0.08) 0%, transparent 50%),

        /* Orange Dots Layer 1 (240px) */
        radial-gradient(1.5px 1.5px at 30px 45px, rgba(232, 163, 61, 0.75), transparent),
        radial-gradient(1px 1px at 150px 190px, rgba(255, 152, 0, 0.6), transparent),
        radial-gradient(2px 2px at 220px 85px, rgba(232, 163, 61, 0.85), transparent),
        
        /* Layer 2 (360px) */
        radial-gradient(1.5px 1.5px at 80px 240px, rgba(255, 140, 0, 0.65), transparent),
        radial-gradient(1px 1px at 300px 115px, rgba(232, 163, 61, 0.5), transparent),
        radial-gradient(2px 2px at 330px 300px, rgba(255, 152, 0, 0.7), transparent),

        /* Layer 3 (520px) */
        radial-gradient(1px 1px at 165px 430px, rgba(232, 163, 61, 0.6), transparent),
        radial-gradient(2px 2px at 460px 75px, rgba(255, 120, 0, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 500px 350px, rgba(232, 163, 61, 0.55), transparent),

        /* Layer 4 (680px) */
        radial-gradient(1.5px 1.5px at 115px 590px, rgba(255, 140, 0, 0.7), transparent),
        radial-gradient(1px 1px at 390px 620px, rgba(232, 163, 61, 0.5), transparent),
        radial-gradient(2px 2px at 640px 220px, rgba(255, 152, 0, 0.75), transparent);

    background-size: 
        100% 100%, 100% 100%,
        240px 240px, 240px 240px, 240px 240px,
        360px 360px, 360px 360px, 360px 360px,
        520px 520px, 520px 520px, 520px 520px,
        680px 680px, 680px 680px, 680px 680px;
}

/* Content sections transparency */
.content-layer {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Active Nav Indicator
   ========================================================================== */
#nav-links {
    position: relative;
}

.nav-link {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.nav-active {
    color: #E8A33D !important;
}

#nav-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    background: #1C1C22;
    box-shadow: inset 4px 4px 8px #0E0E13, inset -4px -4px 8px #2A2A30;
    border-radius: 9999px;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    opacity: 0;
}

/* ==========================================================================
   Neumorphic Input
   ========================================================================== */
.neu-input {
    background: #1C1C22 !important;
    box-shadow: inset 6px 6px 12px #0E0E13, inset -6px -6px 12px #2A2A30;
    border: 1px solid rgba(255, 255, 255, 0.05);
    outline: none;
    color: #F5F5F7 !important;
    transition: all 0.3s ease;
}

.neu-input:focus {
    box-shadow: inset 8px 8px 16px #0E0E13, inset -8px -8px 16px #2A2A30, 0 0 0 2px rgba(232, 163, 61, 0.5);
    border-color: rgba(232, 163, 61, 0.5);
    color: #E8A33D !important;
}

/* Fix browser autofill override for input and textarea */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #E8A33D !important;
    -webkit-box-shadow: 0 0 0px 1000px #1C1C22 inset !important;
    box-shadow: 0 0 0px 1000px #1C1C22 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================================
   Intersection Observer Animation
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* ==========================================================================
   Hero name — bigger, blended into the background palette
   ========================================================================== */
.hero-name {
    font-size: clamp(48px, 9vw, 96px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #3A3A42 0%, #E8A33D 50%, #3A3A42 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(232, 163, 61, 0.18));
}

/* ==========================================================================
   Typewriter effect (hero subtitle)
   ========================================================================== */
.typewriter-line {
    display: inline-block;
    min-height: 32px;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    margin-left: 2px;
    background-color: #E8A33D;
    animation: blink-caret 0.8s step-end infinite;
}

@keyframes blink-caret {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ==========================================================================
   Hero info chips (replaces the old View Projects / Download Resume buttons)
   ========================================================================== */
.hero-chip {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: bounce-cue 2s ease-in-out infinite;
}

@keyframes bounce-cue {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ==========================================================================
   Hero Waving Hand & Floating Illustration
   ========================================================================== */
@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.wave-emoji {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: wave 2.1s infinite;
}

@keyframes float-img {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.hero-img-float {
    animation: float-img 4s ease-in-out infinite;
}

/* ==========================================================================
   Coding profiles section
   ========================================================================== */
.coding-card img {
    max-width: 100%;
    border-radius: 12px;
    display: block;
}