/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    background: #111;
    color: #fff;
    transition: background-color 0.7s ease, color 0.7s ease;
}

/* ========== GRAIN ========== */
.grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200vw;
    height: 200vh;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    pointer-events: none;
    z-index: 9998;
    animation: grainAnimation 8s steps(10) infinite;
}

@keyframes grainAnimation {

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

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-10%, 5%);
    }

    30% {
        transform: translate(5%, -15%);
    }

    40% {
        transform: translate(-5%, 15%);
    }

    50% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(15%, 0);
    }

    70% {
        transform: translate(0, 15%);
    }

    80% {
        transform: translate(3%, 30%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

/* ========== INFO SECTION UPGRADES ========== */
.ambient-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -2;
    background: radial-gradient(circle 1000px at 50% 50%, rgba(220, 180, 100, 0.06) 0%, rgba(245, 240, 235, 1) 40%, rgba(200, 210, 230, 0.05) 100%);
    opacity: 0;
    pointer-events: none;
    animation: slowAmbientFlow 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slowAmbientFlow {
    0% {
        transform: translate(0%, 0%) scale(1);
    }

    100% {
        transform: translate(-5%, -5%) scale(1.1);
    }
}


body.bg-light {
    background-color: #f5f0eb;
    color: #111;
}

::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ========== NAVBAR ========== */
#navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 0;
    background: rgba(80, 80, 80, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    padding: 0;
    overflow: hidden;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.06rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    padding: 13px 42px;
    transition: background 0.3s, opacity 0.3s;
    position: relative;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link.active {
    font-weight: 700;
}

/* ========== SECTIONS & PINNING ========== */
.pin-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 10;
}

/* ========== HERO ========== */
.hero-section {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

/* Dynamic cursor glow â€” more vivid purple-pink */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle 700px at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(140, 70, 255, 0.22), rgba(255, 60, 120, 0.08) 50%, transparent 80%);
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Scan-line element removed per request */

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5vw;
}

.rubber-text-container {
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
}

.rubber-line {
    font-size: clamp(1.8rem, 3.8vw, 4rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: #fff;
    display: block;
    position: relative;
    cursor: default;
}

.rubber-line .word {
    display: inline-block;
    white-space: pre;
    vertical-align: bottom;
}

.rubber-line .char {
    display: inline-block;
    will-change: transform;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

/* === HERO INTRO TAG & SUBTITLE === */
.hero-intro-tag {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.65rem, 1vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(12px);
}

.hero-intro-tag::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(0.7rem, 1.1vw, 1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.04em;
    margin-top: 2rem;
    max-width: 520px;
    text-align: center;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(12px);
}



.rubber-line .char.space {
    width: 0.3em;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #fff;
}

.scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ========== ABOUT SECTION ========== */
.about-section {
    position: relative;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-section ::selection { background: rgba(0,0,0,0.1); color: #111; }

.about-content {
    width: 100%;
    padding: 11vh 10vw 9vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* -------- Greeting -------- */
.about-greeting {
    font-family: inherit;
    font-size: clamp(1.2rem, 1.8vw, 2.2rem);
    font-weight: 500;
    color: rgba(17, 17, 17, 0.55);
    letter-spacing: -0.01em;
    line-height: 1;
    margin-bottom: 2.8vh;
    display: flex;
    align-items: center;
}

.greet-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
}

.greet-hi { display: inline-block; }
.greet-name {
    display: inline-block;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
}

/* -------- Display Title -------- */
.about-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(4.5rem, 9.5vw, 13rem);
    font-weight: 800;
    color: #0d0d0d;
    letter-spacing: -0.04em;
    line-height: 0.87;
    text-transform: lowercase;
    display: block;
    margin-bottom: 4.8vh;
}

.title-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.35em;
    margin-bottom: -0.35em;
}

.title-word {
    display: block;
}

/* -------- Descriptor -------- */
.about-descriptor {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.6rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(17, 17, 17, 0.65);
    letter-spacing: 0.005em;
    line-height: 1.65;
    margin-bottom: 5.5vh;
    max-width: 48vw;
}
.desc-word { display: inline-block; }
/* -------- CTA Button -------- */
.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(0.72rem, 0.85vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    color: #111;
    text-decoration: none;
    border: 1.5px solid rgba(17, 17, 17, 0.22);
    padding: 0.9em 2em;
    border-radius: 100px;
    transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
    opacity: 0;   
}

.about-cta:hover {
    background: #111;
    color: #f5f0eb;
    border-color: #111;
}
.about-cta:hover svg {
    transform: translate(2px, -2px);
}
.about-cta svg {
    transition: transform 0.28s ease;
    flex-shrink: 0;
}

/* -------- Year anchor -------- */
.about-year {
    position: absolute;
    bottom: 6vh;
    right: 6vw;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.25);
    opacity: 0;   
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    #navbar { 
        padding: 12px 14px; 
        gap: 10px; 
        width: 90%;
        max-width: 400px;
        justify-content: space-around;
    }
    .nav-link {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
    .rubber-line { white-space: normal; }
    .about-content { padding: 10vh 8vw 9vh; }
    .about-descriptor { max-width: 85vw; }
    .about-year { display: none; }
}

/* ========== BG LOOP ========== */
.bg-loop-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -3; /* place it all the way behind */
    pointer-events: none;
    overflow: hidden;
    opacity: 0.8; /* adjust for brightness */
}

.bg-loop-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* covers the whole screen exactly like a background */
}
