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

html {
    font-size: 100%; /* 16px base – use rem from here */
    scroll-behavior: smooth;
}

body {
    min-height: 100dvh; /* dynamic viewport height – better for mobile */
    background-image: url('/assets/images/background.jpg'); /* assume optimized bg */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* optional – test performance */
    font-family: 'Arial', system-ui, -apple-system, sans-serif;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(75, 0, 130, 0.35));
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 1.2rem 2rem;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 0, 211, 0.3);
    transition: background 0.4s ease;
}

/* On mobile: make header scroll normally (not fixed) */
@media (max-width: 767px) {
    .site-header {
        position: relative;           /* ← key change: no longer fixed */
        padding: 1rem 1.2rem;
        background: rgba(0, 0, 0, 0.6); /* slightly stronger bg when scrolling */
    }
    
    .content {
        padding-top: 2rem;            /* reduce top padding since header is not fixed */
    }
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* mascot left, buttons right */
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.header-mascot {
    height: 64px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 1.8rem rgba(148, 0, 211, 0.7);
    animation: 
        float 7s ease-in-out infinite,
        glowPulse 3.2s ease-in-out infinite alternate,
        neonFlicker 5.5s linear infinite;
    flex-shrink: 0;
}

/* ==========================================================================
   Header Buttons & Social Icons
   ========================================================================== */
.header-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.2rem;
    justify-content: flex-end;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.5rem; /* icon size */
    color: #ffffff;    /* white icons by default */
}

.social-btn:hover {
    transform: scale(1.15);
    background: rgba(148, 0, 211, 0.4);
    box-shadow: 0 0 1.5rem rgba(148, 0, 211, 0.6);
    color: #00ffde;    /* neon hover color */
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* white icons – adjust if your icons are colored */
}

.header-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.98rem;
    background: linear-gradient(45deg, #ff00de, #00ffde, #9d00ff);
    background-size: 300% 300%;
    animation: bgShift 9s ease infinite;
    transition: all 0.35s ease;
    box-shadow: 0 0 1.1rem rgba(255, 0, 222, 0.4);
    border-radius: 999px;
    color: #000;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.header-buttons .btn:hover,
.header-buttons .btn:focus-visible {
    transform: scale(1.07) translateY(-3px);
    box-shadow: 0 0 2.2rem rgba(0, 255, 222, 0.85);
}

/* ==========================================================================
   Main Content - Full-width 3-column grid
   ========================================================================== */
.content {
    position: relative;
    z-index: 2;
    min-height: calc(100dvh - 80px); /* adjust for header height */
    padding: 8rem 2rem 6rem; /* space for fixed header and footer */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.three-column-grid {
    display: grid;
    grid-template-columns: 1fr minmax(600px, 800px) 1fr; /* wider center for dominance */
    gap: 3rem 5rem;
    width: 100%;
    max-width: 1600px;
    align-items: start;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Center column: dominant video */
.center-video {
    width: 100%;
    text-align: center;
}

.hero-video {
    width: 100%;
    height: auto;                     /* ← prefer auto over fixed height */
    max-height: 500px;
    border-radius: 1.2rem;
    box-shadow: 0 0 4rem rgba(148, 0, 211, 0.6);
    animation: glow 4s ease-in-out infinite alternate;
    object-fit: contain;              /* safer than cover for visibility */
    display: block;                   /* removes inline spacing issues */
    background: #000;                 /* fallback color if video fails */
}

/* Force mobile-friendly autoplay attributes are already in HTML, but reinforce sizing */
@media (max-width: 767px) {
    .hero-video {
        max-height: 380px;            /* smaller on mobile to avoid pushing content too far */
        min-height: 200px;            /* prevent collapse if aspect is weird */
        width: 100%;
        margin: 1rem auto 2rem;
    }
    
    .center-video {
        padding: 0 1rem;              /* side breathing on small screens */
    }
}

/* Ensure grid doesn't hide video on mobile stacking */
@media (max-width: 767px) {
    .three-column-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem 0;
    }
    
    .center-video {
        order: -1;                    /* video first */
        min-height: auto;
    }
}

.center-video h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 0 1.2rem #00ffde, 0 0 2.5rem #ff00de, 0 0 4rem #ff00de;
    animation: pulse 2.5s infinite ease-in-out;
}

.center-video p {
    font-size: clamp(1.5rem, 4vw, 2rem);
    opacity: 0.95;
    text-shadow: 0 0 0.8rem #00ffde;
}

/* Side images */
.left-placeholder,
.right-placeholder {
    max-width: 100%;
}

.placeholder-box {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(148, 0, 211, 0.18), rgba(0, 255, 222, 0.12));
    border-radius: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 2rem rgba(148, 0, 211, 0.4);
    transition: all 0.4s ease;
}

.placeholder-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 3rem rgba(0, 255, 222, 0.4);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(148, 0, 211, 0.35);
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-container p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 1.2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-top: 1rem;
}

.social-link {
    font-size: 2rem;   /* larger in footer */
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-4px);
    color: #00ffde;
    text-shadow: 0 0 12px rgba(0, 255, 222, 0.7);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }

    .social-link {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Animations (combined A+C)
   ========================================================================== */
@keyframes headerFadeIn {
    from { opacity: 0; transform: translateY(-35px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
    0%, 100% { background: rgba(0, 0, 0, 0.38); }
    50% { background: rgba(0, 0, 0, 0.52); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1.5deg); }
}

@keyframes glowPulse {
    from { 
        box-shadow: 0 0 1.4rem rgba(148, 0, 211, 0.65),
                    0 0 2.2rem rgba(0, 255, 222, 0.45); 
        filter: brightness(1);
    }
    to { 
        box-shadow: 0 0 2.8rem rgba(148, 0, 211, 1),
                    0 0 4.5rem rgba(0, 255, 222, 0.8); 
        filter: brightness(1.18);
    }
}

@keyframes neonFlicker {
    0%, 18%, 22%, 24%, 26%, 52%, 54%, 100% { 
        filter: brightness(1) drop-shadow(0 0 14px #9400d3);
    }
    19%, 23%, 53% { 
        filter: brightness(1.35) drop-shadow(0 0 28px #00ffde);
    }
}

@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glow {
    from { filter: brightness(1) drop-shadow(0 0 10px #9400d3); }
    to { filter: brightness(1.15) drop-shadow(0 0 25px #00ffde); }
}

@keyframes pulse {
    0%, 100% { text-shadow: 0 0 1.2rem #00ffde, 0 0 2.5rem #ff00de, 0 0 4rem #ff00de; }
    50% { text-shadow: 0 0 2rem #00ffde, 0 0 4.5rem #ff00de, 0 0 7rem #ff00de; }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablets / small landscape (~481–767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .hero-video {
        max-height: 400px;
    }
}

/* Small laptops / tablets landscape (~768–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-buttons {
        gap: 0.8rem;
    }
    .three-column-grid {
        grid-template-columns: 1fr minmax(500px, 600px) 1fr;
        gap: 2rem 3rem;
    }
}

/* Mobile: stack header and grid */
@media (max-width: 767px) {
    .site-header {
        padding: 0.8rem 1.2rem;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .header-buttons {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .header-buttons .btn {
        flex: 1 1 100%;
        text-align: center;
    }

    .content {
        padding: 10rem 1.5rem 6rem; /* more top space for stacked header */
    }

    .three-column-grid {
        grid-template-columns: 1fr;
        gap: 3rem 0;
    }

    .hero-video {
        max-height: 380px;
    }

    .left-placeholder,
    .right-placeholder {
        max-width: 90%;
    }

    .center-video {
        order: -1; /* video first on mobile */
    }
}

/* Very small mobile (~ < 480px) */
@media (max-width: 480px) {
    .header-buttons .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero-video {
        max-height: 320px;
    }

    .site-footer {
        padding: 1rem 1.2rem;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* In Development Notice */
.in-dev-notice {
    margin: 4rem auto 2rem;
    text-align: center;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 
        0 0 10px #ff00de,
        0 0 20px #ff00de,
        0 0 30px #9400d3,
        0 0 40px #9400d3,
        0 0 50px #ff00de;
    animation: 
        neonGlow 2.5s ease-in-out infinite alternate,
        subtlePulse 6s ease-in-out infinite;
    background: linear-gradient(90deg, #ff00de, #9400d3, #ff00de);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite, neonGlow 2.5s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    from {
        text-shadow: 
            0 0 8px #ff00de,
            0 0 16px #ff00de,
            0 0 24px #9400d3,
            0 0 32px #9400d3;
    }
    to {
        text-shadow: 
            0 0 20px #ff00de,
            0 0 40px #ff00de,
            0 0 60px #9400d3,
            0 0 80px #9400d3;
    }
}

@keyframes subtlePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}

@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive sizing for the notice */
@media (max-width: 768px) {
    .in-dev-notice {
        margin: 3rem auto 2rem;
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }
}

/* Status Section – below main content */
.status-section {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem 5rem;
    text-align: center;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
}

/* Brand reinforcement (smaller, subtle) */
.in-dev-notice {
    margin: 1.5rem auto 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c084fc;                   /* lighter purple-pink */
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
    /* no animation */
}

/* Optional tiny hover effect if you want interactivity */
.in-dev-notice:hover {
    text-shadow: 0 0 15px rgba(255, 0, 222, 0.7);
    transition: text-shadow 0.4s ease;
}
.status-brand {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
}

/* Gentle breathing effect only */
@keyframes softPulse {
    0%, 100% { opacity: 0.92; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.015); }
}

/* Animations (already in your file – just confirming they're present) */
@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes neonGlow {
    from {
        text-shadow: 
            0 0 10px #ff00de,
            0 0 20px #ff00de,
            0 0 30px #9400d3,
            0 0 40px #9400d3;
    }
    to {
        text-shadow: 
            0 0 25px #ff00de,
            0 0 50px #ff00de,
            0 0 70px #9400d3,
            0 0 90px #9400d3;
    }
}