/*
 * ANGELS MASQUERADE BALL - ULTIMATE NEW YEAR'S EVE VVIP EXPERIENCE
 * STRUCTURED CSS: Section-by-Section
 * * Based on index.html structure:
 * 1. Global / Reset
 * 2. Header / Navigation
 * 3. Hero Section
 * 4. General Content Sections
 * 5. Video Section (Highlights) - CONSOLIDATED INLINE STYLES HERE
 * 6. Gallery Section
 * 7. Footer (Details / Dress Code)
 * 8. Lightbox (Modal)
 * 9. Media Queries (Mobile/Tablet)
 */

/* ===================================
   1. GLOBAL / RESET
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette: Dark Pink, Pure Black, Pure White */
    --color-dark: #000000;
    /* Pure Black - Background and Primary Text Color for White buttons */
    --color-accent: #FF1493;
    /* Deep Pink - Titles, Highlights, and Hover Color */
    --color-text-light: #FFFFFF;
    /* Pure White - Primary Text Color and Button Background */
    --color-soft-dark: #111111;
    /* Slight offset black for section depth */

    /* Button Colors */
    --button-bg: var(--color-text-light);
    /* White Button */
    --button-text: var(--color-dark);
    /* Black Text */
    --button-hover-bg: var(--color-accent);
    /* Dark Pink Hover Background */
    --button-hover-text: var(--color-text-light);
    /* White Hover Text */

    /* Typography */
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Lato', sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevents horizontal scroll on small devices */
}

/* Global image responsiveness for all screens */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Utility class to stop body scrolling when menu is open */
body.no-scroll {
    overflow: hidden;
}


/* ===================================
   2. HEADER / NAVIGATION
   =================================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--color-accent);
    top: 0;
}

.logo {
    color: var(--color-accent);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5em;
}

.nav-menu a {
    color: var(--color-text-light);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.95em;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

/* Navigation Button (White BG, Black Text) */
.cta-nav {
    border: 1px solid var(--button-bg);
    padding: 8px 15px;
    border-radius: 4px;
    background-color: var(--button-bg);
    color: var(--button-text) !important;
    /* Ensures black text overrides link color */
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.cta-nav:hover {
    /* Hover: Dark Pink BG, White Text */
    background-color: var(--button-hover-bg);
    color: var(--button-hover-text) !important;
    border-color: var(--button-hover-bg);
}

/* Mobile Menu Toggle (Hidden by Default) */
.menu-toggle {
    display: none;
    /* Hide on desktop */
    cursor: pointer;
    padding: 10px;
    z-index: 150;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    margin: 5px 0;
    transition: 0.4s;
}

/* X-Transformation CSS */
.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ===================================
   3. HERO SECTION
   =================================== */
.hero-section {
    position: relative;
    padding: 150px 5% 100px;

    /* CRITICAL: Background Image Setup (Full Section) */
    background-image: url('./hero_image.jpg');
    background-size: cover;
    /* PC POSITION: Shifts the image 20% to the right from the left edge */
    background-position: 20% center;
    background-repeat: no-repeat;

    min-height: 85vh;

    /* CRITICAL: Flexbox for Content Positioning (Desktop: Top-Right) */
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.dark-bg-primary {
    /* Fallback color */
    background-color: var(--color-dark);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay for better text contrast */
    background: rgba(0, 0, 0, 0.47);
}

/* Container for all hero content (Max width control) */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
}

/* TEXT WRAPPER: Transparent, positioned top-right (PC) */
.hero-text-wrapper {
    width: 45%;
    margin-left: 55%;

    /* Transparent background / No box */
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;

    text-align: right;
}

/* Titles */
.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3em;
    /* Reduced PC font size */
    text-transform: uppercase;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

.theme-title {
    color: var(--color-accent);
}

/* Ensure sub-elements respect the right alignment */
.hero-text-wrapper p,
.hero-text-wrapper h1,
.hero-text-wrapper h2 {
    text-align: right;
}

/* PRIMARY CTA BUTTON (FIXED) */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.primary-cta {
    /* VVIP Experience Button Styling */
    border: 2px solid var(--button-bg);
    background-color: var(--button-bg);
    /* White background */
    color: var(--button-text);
    /* Black text */
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

.primary-cta:hover {
    /* Hover state: Pink */
    background-color: var(--color-accent);
    color: var(--button-hover-text);
    border-color: var(--color-accent);
    box-shadow: 0 5px 25px var(--color-accent);
}

/* COUNTDOWN TIMER (FIXED) */
.countdown-timer {
    display: flex;
    justify-content: flex-end;
    /* Align timer boxes to the right on PC */
    margin: 40px 0 40px auto;
    border: 1px solid rgba(255, 20, 147, 0.2);
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    max-width: 500px;
}

.timer-box {
    text-align: center;
    margin: 0 15px;
    font-size: 1.2em;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-accent);
    /* Pink label text (Days, Hours, etc.) */
}

.timer-box span {
    display: block;
    /* Makes the number break onto a new line */
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text-light);
    /* White number text */
    margin-bottom: 5px;
}


/* ===================================
   4. GENERAL CONTENT SECTIONS (Shared Styles)
   =================================== */
.content-section {
    padding: 80px min(5vw, 60px);
    text-align: center;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1em;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.8);
}

/* Feature Grid (The Experience Section) */
.feature-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    flex: 1;
    min-width: 250px;
    text-align: left;
    padding-left: 20px;
    border-left: 3px solid var(--color-accent);
}

.feature-item .icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

.feature-item h3 {
    font-family: var(--font-serif);
    color: var(--color-accent);
    margin-bottom: 10px;
    font-size: 1.4em;
}


/* ===================================
   5. VIDEO SECTION (HIGHLIGHTS)
   =================================== */
#video {
    /* Set a neutral background color to make the video stand out */
    background-color: #060000;
    /* Add vertical padding to give the section breathing room */
    padding: 60px 20px;
    text-align: center;
    /* Center the text content */
}

/* Titles and subtitles - Shared styles moved to Section 4, keeping specific overrides here if needed */
#video .section-title {
    color: #fafafa;
    /* Lighter title color for this section's background */
    margin-bottom: 5px;
}

#video .section-subtitle {
    color: #fdfcfc;
    /* Lighter subtitle color for this section's background */
    margin-bottom: 30px;
}

/* Container holds the video, ensures max size, and centers it */
.video-container {
    /* Forces the iframe to fill the responsive container */
    position: relative;
    width: 100%;
    padding-bottom: 350px;
    /* 9/16 = 0.5625 for 16:9 ratio */
    height: 0;
    margin: 0 auto;
    max-width: 900px;

    /* Styling for the video box */
    border: 5px solid var(--color-accent);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
    border-radius: 8px;
    /* Smooth corners */
    overflow: hidden;
    /* Ensure iframe respects border-radius */
}

.video-container iframe {
    /* Forces the iframe to fill the responsive container */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ===================================
   6. GALLERY SECTION
   =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border: 3px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s, transform 0.3s;
}

.gallery-item:hover {
    border-color: var(--color-accent);
    transform: scale(1.05);
}

.gallery-item img {
    object-fit: cover;
    aspect-ratio: 4/3;
    width: 100%;
    transition: opacity 0.3s;
}

.gallery-item:hover img {
    opacity: 0.8;
}

/* Secondary CTA Buttons (White BG, Black Text) - Reused in packages/footer */
.secondary-cta {
    background-color: var(--button-bg);
    color: var(--button-text);
    border-color: var(--button-bg);
    width: 100%;
    text-align: center;
}

.secondary-cta:hover {
    background-color: var(--button-hover-bg);
    color: var(--button-hover-text);
    border-color: var(--button-hover-bg);
}


/* ===================================
   7. FOOTER (DETAILS & DRESS CODE)
   =================================== */
.main-footer {
    background-color: var(--color-soft-dark);
    padding: 50px 5%;
    border-top: 5px solid var(--color-accent);
    text-align: center;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    text-align: left;
    /* Default text alignment for the grid context */
}

.footer-block {
    flex: 1;
    min-width: 250px;
}

/* TARGET THE LAST FOOTER BLOCK (General Admission) for centering on Desktop */
.footer-grid .footer-block:last-child {
    text-align: center;
}

.footer-block h4 {
    font-family: var(--font-serif);
    color: var(--color-accent);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.dress-code {
    color: var(--color-accent);
    font-weight: 700;
}

.dress-code-detail {
    text-transform: uppercase;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* --- SUBSCRIPTION FORM STYLES --- */
.subscribe-text {
    font-size: 0.9em;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-input {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: var(--color-dark);
    color: var(--color-text-light);
    font-size: 1em;
    transition: border-color 0.3s;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.subscribe-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.subscribe-button {
    /* Reuses .general-cta base styles */
    width: 100%;
    margin-top: 0;
    text-align: center;
}

/* Secondary CTA Buttons (White BG, Black Text) - Used in Footer */
.general-cta {
    background-color: var(--button-bg);
    color: var(--button-text);
    border-color: var(--button-bg);
    font-size: 0.9em;
    padding: 10px 20px;
    /* Ensure button is centered since parent block is centered */
    display: block;
    margin: 10px auto 0 auto;
    max-width: 250px;
    /* Optional: Constrain button width */
}

.general-cta:hover {
    background-color: var(--button-hover-bg);
    color: var(--button-hover-text);
    border-color: var(--button-hover-bg);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   9. RESPONSIVENESS (Mobile/Tablet Media Queries)
   =================================== */
@media (max-width: 900px) {

    /* ... (other section media queries) ... */

    /* FOOTER RESPONSIVENESS */
    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }

    .footer-block {
        /* All blocks are centered on mobile/tablet */
        text-align: center;
        min-width: unset;
    }

    /* Override the specific last-child rule for mobile/tablet to ensure consistency */
    .footer-grid .footer-block:last-child {
        text-align: center;
    }

    /* Center subscribe form elements in mobile view */
    .subscribe-form {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ===================================
   9. RESPONSIVENESS (Mobile/Tablet Media Queries)
   =================================== */
@media (max-width: 900px) {

    /* ... (other section media queries) ... */

    /* FOOTER RESPONSIVENESS */
    .footer-grid {
        /* Stack columns vertically on smaller screens */
        flex-direction: column;
        gap: 30px;
    }

    .footer-block {
        /* Center text for all blocks on mobile */
        text-align: center;
        min-width: unset;
    }

    /* Center subscribe form elements in mobile view */
    .subscribe-form {
        max-width: 300px;
        /* Optional: Limit width for better centering */
        margin: 0 auto;
    }
}


/* ===================================
   8. LIGHTBOX (MODAL) STYLES 
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid var(--color-accent);
    animation: zoom 0.6s;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* ===================================
   9. RESPONSIVENESS (Mobile/Tablet Media Queries)
   =================================== */
@media (max-width: 900px) {

    /* NAVIGATION */
    .menu-toggle {
        display: block;
        /* Show the Hamburger Icon on mobile */
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: var(--color-soft-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 110;
        gap: 40px;
    }

    .nav-menu.active {
        transform: translateX(0);
        /* Slide the menu in */
    }

    body {
        padding-top: 70px;
        /* Ensure content is below fixed header */
    }

    .nav-menu a {
        font-size: 1.5em;
        margin-left: 0;
        padding: 15px 0;
    }

    .nav-menu a.cta-nav {
        padding: 15px 35px;
        display: inline-block;
        margin-top: 20px;
        border: 2px solid var(--color-accent);
        border-radius: 50px;
    }

    /* HERO SECTION */
    .hero-section {
        justify-content: center;
        align-items: flex-end;
        /* MOBILE IMAGE POSITION: Pulled 100px towards the left from the right edge */
        background-position: left -350px top;

        min-height: 100vh;
        padding: 50px 0 50px 0;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-text-wrapper {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        padding: 20px 0;
        text-align: center;
    }

    .hero-text-wrapper p,
    .hero-text-wrapper h1,
    .hero-text-wrapper h2 {
        text-align: center;
    }

    .countdown-timer {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* OTHER SECTIONS */
    .feature-grid,
    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }

    .feature-item {
        padding-left: 0;
        border-left: none;
        border-bottom: 3px solid var(--color-accent);
        padding-bottom: 20px;
        text-align: center;
    }

    .footer-block {
        text-align: center;
        min-width: unset;
    }
}

@media (max-width: 500px) {
    .main-header {
        padding: 15px 3%;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .timer-box {
        margin: 0 10px;
        font-size: 1em;
    }

    .timer-box span {
        font-size: 1.8em;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .section-title {
        font-size: 2em;
    }
}


/* ===================================
   10. SUBSCRIPTION MODAL STYLES (New Section)
   =================================== */
.subscription-modal {
    display: none;
    /* Starts hidden */
    position: fixed;
    z-index: 210;
    /* Higher than the lightbox/header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Dark, semi-transparent background */
    background-color: rgba(0, 0, 0, 0.95);
    /* Ensures content is centered vertically and horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--color-soft-dark);
    margin: 15% auto;
    /* Centering override for general block positioning */
    padding: 30px;
    border: 5px solid var(--color-accent);
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    box-shadow: 0 5px 30px rgba(255, 20, 147, 0.5);
    animation: fadeInScale 0.4s ease-out;
}

/* Close Button (X) style */
.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #f1f1f1;
    font-size: 30px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal-btn:hover,
.close-modal-btn:focus {
    color: var(--color-accent);
}

/* Animation for the modal pop-up effect */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ensure subscription block styles look good inside the modal */
.subscription-block {
    text-align: center;
    /* Center all content */
    margin: 0 auto;
}

.subscribe-form {
    /* Stack buttons for mobile/pop-up clarity */
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.ignore-button {
    /* Style the "Ignore" button to be less prominent than "Sign Me Up" */
    background-color: transparent !important;
    color: var(--color-text-light) !important;
    border: 1px solid var(--color-text-light);
}

.ignore-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-text-light) !important;
    border-color: var(--color-accent) !important;
}