/* =============================================
   BASE & VARIABLES
   ============================================= */
:root {
    --text-primary: #ffffff;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --cyan: #00e5ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Shining blue arrow cursor - keeps default arrow shape, blue color */
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cpath fill='%2300e5ff' stroke='%230090a8' stroke-width='1' d='M4 2l6 17 2.5-6.5L19 10z'/%3E%3C/svg%3E"), auto !important;
}

body {
    background-color: #000;
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =============================================
   WATER RIPPLE CANVAS
   ============================================= */
#ripple-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    /* Above video, below nav and content */
    mix-blend-mode: overlay;
    /* Changed from screen for more vivid ripple colors */
    opacity: 0.8;
    /* Increased visibility */
}

/* =============================================
   NAVIGATION
   =============================================*/
/* --- Elegant Custom Glowing Blue Cursor --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    /* Subtle frosted glass bar */
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: var(--font-sans);
    padding: 0.5rem 0;
}

.logo:hover {
    color: var(--cyan);
    transition: color 0.3s;
}

.nav-btn {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    padding: 0.65rem 1.4rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: inherit;
    letter-spacing: 0.3px;
}

.nav-btn:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.45);
    color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.talk-btn {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--cyan);
}

.talk-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.4);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(5, 8, 18, 0.92);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    min-width: 220px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.08);
    /* Keep open longer by adding padding buffer zone */
    padding-bottom: 6px;
}

/* The key trick: keep open when moving toward menu */
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
    animation: ddFadeIn 0.25s ease forwards;
}

@keyframes ddFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.9rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.92rem;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan);
    padding-left: 2rem;
}

/* =============================================
   VIDEO BACKGROUNDS
   ============================================= */
.video-backgrounds {
    position: fixed;
    top: -5vh;
    left: -5vw;
    width: 110vw;
    height: 110vh;
    z-index: -1;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#bg-video-3 {
    z-index: -3;
    opacity: 0;
}

#bg-video-2 {
    z-index: -2;
    opacity: 0;
}

#bg-video-1 {
    z-index: -1;
    opacity: 1;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
}

.hero-content * {
    pointer-events: auto;
}

/* Astronaut - float + cursor-driven rotation done in JS */
.astronaut {
    position: absolute;
    left: 8vw;
    height: 70vh;
    max-height: 650px;
    object-fit: contain;
    z-index: 2;
    animation: float 2s ease-in-out infinite;
    transform-origin: center center;
    transform-style: preserve-3d;
}

.profile-img {
    position: absolute;
    right: -50%;
    /* Start off-screen */
    top: 50%;
    transform: translateY(-50%);
    height: 60vh;
    max-height: 550px;
    object-fit: contain;
    z-index: 2;
    opacity: 0;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Bio text container */
.text-container {
    position: absolute;
    right: 8vw;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    z-index: 3;
    text-align: right;
    opacity: 1;
}

.headline-1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

.intro-tagline {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Explore Button */
.explore-btn {
    position: absolute;
    bottom: 8vh;
    left: 5vw;
    z-index: 10;
    padding: 1rem 2.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 50px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.4);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.explore-btn:hover {
    background: rgba(0, 229, 255, 0.18);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

/* =============================================
   SCROLL INDICATOR
   Starts at bottom-center, GSAP moves to bottom-right
   ============================================= */
/* Pulsing Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 6vh;
    /* Moved up away from button area */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: indicatorPulse 2s infinite alternate;
    pointer-events: none;
}

@keyframes indicatorPulse {
    0% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.07);
    }
}

.mouse {
    width: 28px;
    height: 44px;
    border: 2.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    margin: 0 auto 8px;
    position: relative;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.mouse::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 9px;
    background: white;
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 14px);
        opacity: 0;
    }
}

/* =============================================
   EXPLORE SECTION / ABOUT SECTION
   ============================================= */
.about-section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 5%;
}

.about-container {
    background: rgba(10, 12, 25, 0.82);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(24px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
}

.about-image-wrapper {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
}

.profile-img-static {
    width: 100%;
    max-width: 350px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.2));
    border-radius: 20px;
}

.about-text-wrapper {
    flex: 1;
    text-align: left;
}

.about-text-wrapper h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.intro-tagline-static {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .about-image-wrapper {
        flex: 0 0 auto;
    }

    .profile-img-static {
        max-width: 250px;
    }

    .about-text-wrapper {
        text-align: center;
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .text-container.left-text {
        width: 85%;
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .intro-tagline {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--cyan);
        padding-top: 1rem;
    }

    .astronaut {
        left: 50%;
        transform: translateX(-50%);
        height: 55vh;
        top: 5%;
    }

    .headline-1 {
        font-size: 2.5rem;
    }
}