/* --- THEME VARIABLES --- */
:root {
    --bg: #ffffff;
    --text: #000000;
    --border-color: #000000;
    --accent: #5e17eb;
    --highlight-bg: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    --dot-color: #d1d1d1;
    --blob-opacity: 0.6;
    --nav-bg: rgba(255, 255, 255, 0.95); /* More opaque on mobile */
    --shadow: 4px 4px 0px rgba(0,0,0,1); /* Smaller shadow for mobile */
    --marquee-bg: #000000;
    --marquee-text: #ffffff;
    --card-bg: #ffffff;
}

[data-theme="dark"] {
    --bg: #050505;
    --text: #ffffff;
    --border-color: #333333;
    --accent: #ccff00;
    --highlight-bg: linear-gradient(120deg, #ccff00 0%, #00ffaa 100%);
    --dot-color: #222222;
    --blob-opacity: 0.4;
    --nav-bg: rgba(5, 5, 5, 0.95);
    --shadow: 4px 4px 0px #ccff00;
    --marquee-bg: var(--accent);
    --marquee-text: #000000;
    --card-bg: #111111;
}

/* --- CORE RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden; /* No side scroll */
    background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
    background-size: 20px 20px;
    transition: background-color 0.3s, color 0.3s;
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem; /* Compact padding */
    border-bottom: 2px solid var(--border-color);
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.2rem; /* Smaller logo */
    letter-spacing: -1px;
}

.year { color: var(--accent); }

.theme-btn {
    background: transparent;
    border: 1px solid var(--text);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- HERO SECTION --- */
/* --- HERO SECTION (FIXED FOR MOBILE) --- */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Removed side padding so text can go edge-to-edge */
    padding: 6rem 0 2rem 0; 
    position: relative;
    overflow: hidden;
    width: 100%;
}

.tagline {
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    font-weight: 700;
    opacity: 0.8;
}

/* RESPONSIVE TITLE FIX */
.glitch-title {
    /* Change font family here */
    font-family: 'Orbitron', sans-serif; 
    
    font-size: clamp(3rem, 13vw, 12rem); /* Adjusted for wide font */
    line-height: 1;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--text);
    position: relative;
    z-index: 2;
    cursor: default;
    white-space: nowrap;
    letter-spacing: -2px; /* Pull letters tighter */
}

/* Optional: Make the stroke thinner on mobile so it looks cleaner */
@media (max-width: 768px) {
    .glitch-title {
        -webkit-text-stroke: 1px var(--text);
    }
}

.date-strip {
    margin-top: 2rem;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    background: var(--card-bg);
    z-index: 2;
    box-shadow: var(--shadow);
    
    /* Ensure date strip doesn't overflow on very small phones (iPhone SE) */
    max-width: 90%;
    white-space: normal; /* Allow wrapping if needed */
    line-height: 1.4;
}

/* Adjust Blobs to not block text on mobile */
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: var(--blob-opacity);
    z-index: 1;
    pointer-events: none;
}

.blob-1 {
    width: 200px;
    height: 200px;
    background: #a8ff78;
    top: 10%;
    left: -20%; /* Push further off screen */
}

.blob-2 {
    width: 200px;
    height: 200px;
    background: #78ffd6;
    bottom: 5%;
    right: -20%; /* Push further off screen */
}

/* --- MARQUEE --- */
.marquee-container {
    background: var(--marquee-bg);
    color: var(--marquee-text);
    padding: 1rem 0;
    overflow: hidden;
    transform: rotate(-2deg) scale(1.05);
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.marquee-content {
    display: inline-block;
    animation: scroll 15s linear infinite; /* Faster on mobile */
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem; /* Smaller text */
}

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- ABOUT SECTION --- */
.about-section {
    padding: 4rem 1.5rem; /* More side padding */
    background: var(--bg);
}

.about-grid {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    gap: 2rem;
}

.about-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--text);
}

.about-text p {
    font-size: 1.1rem; /* Good reading size */
    line-height: 1.6;
}

.highlight {
    background: var(--highlight-bg);
    color: black;
    padding: 0 4px;
    font-weight: bold;
}

/* --- BUTTONS --- */
.explore-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bg);
    background: var(--text);
    border: none;
    box-shadow: 6px 6px 0px var(--accent);
    width: 100%; /* Full width on mobile */
}

/* --- FOOTER --- */
footer {
    border-top: 2px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
    color: var(--text);
    padding-bottom: 4rem; /* Space for bottom safe areas */
}
/* ==============================================
       UNIVERSAL RESOLUTION FIX (Paste at Bottom)
       Works on: iPhone SE, Pixel, iPad, Laptop, 4K
       ============================================== */

    /* 1. FLUID TYPOGRAPHY (The Magic Fix) */
    /* This forces the big Headers to scale smoothly like an image */
    h1 {
        /* Minimum: 2.5rem | Preferred: 12% of screen width | Max: 6rem */
        font-size: clamp(2.5rem, 12vw, 6rem) !important;
        line-height: 1.1 !important;
        word-wrap: break-word !important; /* Prevents overflow */
        width: 100%;
    }

    /* 2. SAFE AREA FIXES (For iPhone X/14/15 Home Bar) */
    body {
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
    
    /* 3. IMAGE SAFETY (Prevents posters from exploding layout) */
    img, .poster {
        max-width: 100% !important;
        display: block;
    }

    /* ==============================================
       DEVICE-SPECIFIC TWEAKS
       ============================================== */

    /* --- TINY PHONES (iPhone SE, Galaxy Fold - Width < 380px) --- */
    @media (max-width: 380px) {
        h1 { font-size: 13vw !important; } /* Make text slightly smaller */
        .content { padding: 1rem !important; } /* Reduce padding */
        .reg-btn { padding: 10px !important; width: 100% !important; } /* Full width button */
        
        /* Stack card vertically on tiny screens if horizontal is too squashed */
        .card { flex-direction: column !important; } 
        .poster { width: 100% !important; height: 200px !important; border-right: none !important; border-bottom: 2px solid var(--text) !important; }
    }

    /* --- TABLETS (iPad Air, Mini - Width 768px to 1024px) --- */
    @media (min-width: 768px) and (max-width: 1024px) {
        .grid {
            /* On tablets, use a 2-column Grid instead of a List */
            display: grid !important;
            grid-template-columns: 1fr 1fr !important; 
            gap: 20px !important;
        }
        
        .card {
            flex-direction: column !important; /* Stack image/text vertically */
            height: auto !important;
        }
        
        .poster {
            width: 100% !important;
            border-right: none !important;
            border-bottom: 2px solid var(--text) !important;
        }
    }

    /* --- LAPTOPS & DESKTOPS (Width > 1025px) --- */
    @media (min-width: 1025px) {
        .grid {
            max-width: 1000px !important; /* Cap the width so lines don't get too long */
        }
    }