/* ========================================
   Full-Screen Landing Hero
   Homepage Only
   ======================================== */

/* Apply full-screen only to homepage */
body.index #page-header.full_page {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Center site branding vertically and horizontally */
body.index #page-header #site-info {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    text-align: center;
    z-index: 10;
    width: 100%;
    padding: 0 20px;
}

/* Enhanced site title for full-screen hero */
body.index #page-header #site-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInDown 1.2s ease-out;
    letter-spacing: 2px;
}

body.index #page-header #site-subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    animation: fadeInUp 1.2s ease-out 0.3s both;
    opacity: 0.95;
}

/* Fade-in animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Animated Scroll Indicator
   ======================================== */

/* Hide existing scroll indicator if present */
body.index #page-header #scroll-down {
    display: none;
}

/* Create custom scroll indicator */
body.index #page-header::after {
    content: '';
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    z-index: 5;
    animation: scrollPrompt 2.5s infinite ease-in-out;
    cursor: pointer;
}

/* Inner dot for scroll indicator */
body.index #page-header::before {
    content: '';
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 6;
    animation: scrollDot 2.5s infinite ease-in-out;
}

@keyframes scrollPrompt {

    0%,
    100% {
        opacity: 0.7;
        bottom: 60px;
    }

    50% {
        opacity: 1;
        bottom: 50px;
    }
}

@keyframes scrollDot {
    0% {
        bottom: 90px;
        opacity: 1;
    }

    50% {
        bottom: 70px;
        opacity: 0.5;
    }

    100% {
        bottom: 65px;
        opacity: 0;
    }
}

/* Dark background variant */
body.index.dark-background #page-header::after {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

body.index.dark-background #page-header::before {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Light background variant */
body.index.light-background #page-header::after {
    border-color: rgba(0, 0, 0, 0.7);
}

body.index.light-background #page-header::before {
    background: rgba(0, 0, 0, 0.8);
}

/* ========================================
   Scroll Hint Text
   ======================================== */

/* Optional: Add "Scroll Down" text */
body.index #page-header .scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 5;
    animation: fadeInUp 1.5s ease-out 0.8s both;
    pointer-events: none;
}

body.index.dark-background .scroll-hint {
    color: rgba(255, 255, 255, 0.9);
}

body.index.light-background .scroll-hint {
    color: rgba(0, 0, 0, 0.7);
}

/* ========================================
   Mobile Responsive
   ======================================== */

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

    /* Adjust for mobile browser UI elements */
    body.index #page-header.full_page {
        min-height: 100vh;
        height: 100vh;
    }

    /* Smaller title on mobile */
    body.index #page-header #site-title {
        font-size: 2.5rem;
    }

    body.index #page-header #site-subtitle {
        font-size: 1.1rem;
    }

    /* Adjust scroll indicator position */
    body.index #page-header::after {
        bottom: 40px;
    }

    body.index #page-header::before {
        bottom: 60px;
    }

    @keyframes scrollPrompt {

        0%,
        100% {
            opacity: 0.7;
            bottom: 40px;
        }

        50% {
            opacity: 1;
            bottom: 30px;
        }
    }

    @keyframes scrollDot {
        0% {
            bottom: 70px;
            opacity: 1;
        }

        50% {
            bottom: 50px;
            opacity: 0.5;
        }

        100% {
            bottom: 45px;
            opacity: 0;
        }
    }

    body.index #page-header .scroll-hint {
        bottom: 10px;
        font-size: 0.75rem;
    }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
    body.index #page-header #site-title {
        font-size: 2rem;
    }

    body.index #page-header #site-subtitle {
        font-size: 1rem;
    }
}

/* Tablet landscape */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    body.index #page-header #site-title {
        font-size: 3.5rem;
    }
}

/* ========================================
   Accessibility
   ======================================== */

/* Ensure keyboard navigation works */
body.index #page-header:focus-within::after {
    border-color: rgba(0, 196, 182, 0.9);
    box-shadow: 0 0 20px rgba(0, 196, 182, 0.5);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    body.index #page-header #site-title,
    body.index #page-header #site-subtitle,
    body.index #page-header::after,
    body.index #page-header::before,
    body.index #page-header .scroll-hint {
        animation: none;
    }

    body.index #page-header #site-title,
    body.index #page-header #site-subtitle {
        opacity: 1;
        transform: none;
    }
}