/* --- 1. Global Styles and Theme --- */
:root {
    /* Color Palette */
    --color-primary-dark: #121212; /* Deep Charcoal/Black */
    --color-secondary-dark: #1f1f1f; /* Slightly lighter for contrast */
    --color-accent-blue: #00FFFF; /* Electric Cyan/Blue */
    --color-text-light: #FFFFFF;
    
    /* Font Definitions */
    --font-primary: 'Montserrat', sans-serif; /* For body text and nav */
    --font-heading: 'Quantico', sans-serif; /* For major, geometric headings (H2s) */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- 2. Header Section Styling --- */
.main-header {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; 
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10; 
    border-bottom: 1px solid rgba(0, 255, 255, 0.2); 
}

.site-logo {
    display: flex; 
    align-items: center; 
    text-decoration: none;
}

/* Styling for the header logo image */
.header-logo-image {
    height: 30px; 
    width: auto;
    display: block;
    margin-right: 8px; /* Space between icon and text */
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3)); 
}

/* Re-introducing text styling for the site name */
.logo-text-header {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 30px; 
}

.header-nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.header-nav a::after { 
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--color-accent-blue);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

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

.header-nav a:hover::after {
    width: 100%;
}


/* --- 3. Hero Section Styling --- */

.hero-section {
    height: 90vh; 
    width: 100%;
    position: relative; 
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px; 
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1; 
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.75) 100%);
    z-index: 2; 
}

.hero-content {
    position: relative; 
    z-index: 3; 
    padding: 20px;
    max-width: 800px;
    margin-top: -50px; 
}

/* Styling for the main logo image in the hero section */
.hero-main-logo {
    max-width: 950px; 
    max-height: 400px; 
    width: 90%; 
    height: auto;
    margin-bottom: 0.1rem; 
    filter: drop-shadow(0 0 15px var(--color-accent-blue)); 
}

.slogan-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-blue);
    margin-top: -6rem; 
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--color-accent-blue);
    color: var(--color-primary-dark); 
    text-decoration: none; 
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.1s;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4); 
}

.cta-button:hover {
    background-color: #33FFFF;
    transform: translateY(-3px); 
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

/* --- 4. Company Description Section Styling --- */
.company-description-section {
    background-color: var(--color-primary-dark); 
    padding: 80px 0; 
    text-align: center;
}

.company-description-section h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.company-description-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--color-accent-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

.company-description-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #cccccc; 
    line-height: 1.8;
}

/* --- 5. Event Showcase Section Styling --- */

.event-showcase-section {
    background-color: var(--color-secondary-dark); 
    padding: 80px 0;
    text-align: center;
}

.event-showcase-section h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.event-showcase-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--color-accent-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
}

.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;

    /* Styling for the background image cycle */
    height: 400px; /* Fixed height for visual consistency */
    background-size: cover;
    background-position: center;
}

.event-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.3);
}

.event-card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark overlay is now lighter/more transparent to show image cycling */
    background: rgba(0, 0, 0, 0.1); 
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.3s ease;
}

/* Hiding the text on hover */
.event-card:hover .event-card-content {
    opacity: 0;
}

.event-card-content h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 5px;
    color: var(--color-text-light);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.event-card-content p {
    font-size: 1.1rem;
    color: var(--color-accent-blue);
}


/* --- 6. Mailing List Signup Section Styling --- */

.signup-section {
    background-color: var(--color-primary-dark);
    padding: 100px 0;
    text-align: center;
}

.signup-section h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 20px; 
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

/* Style for the thank you message heading */
.thank-you-heading {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-light); 
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--color-accent-blue); 
}

.signup-slogan {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent-blue);
    /* Space below slogan to push it away from the form */
    margin-bottom: 25px; 
    margin-top: 0; 
    letter-spacing: 2px;
}

.mailing-list-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    /* Space below the form to separate it from social icons */
    margin-bottom: 40px; 
}

.form-group {
    margin-bottom: 20px;
}

.mailing-list-form input[type="text"],
.mailing-list-form input[type="email"] {
    width: 100%;
    padding: 15px;
    background-color: var(--color-secondary-dark); 
    color: var(--color-text-light);
    border: 2px solid var(--color-secondary-dark);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mailing-list-form input:focus {
    border-color: var(--color-accent-blue); 
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.mailing-list-form input::placeholder {
    color: #888;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background-color: var(--color-accent-blue); /* Inherits base CTA style */
    color: var(--color-primary-dark);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.1s;
}

.submit-button:hover {
    background-color: #33FFFF; 
    transform: translateY(-2px); 
}

/* --- 7. Social Icons Styling --- */
.social-links {
    padding-top: 20px; 
}

.social-links p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.social-icons-wrapper a {
    color: var(--color-text-light);
    font-size: 2rem;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons-wrapper a:hover {
    color: var(--color-accent-blue); 
    transform: scale(1.1); 
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

/* --- 8. Lightbox Styling --- */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Very dark, semi-transparent overlay */
    z-index: 100; /* Ensure it's above everything else */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Utility class for hiding elements */
.hidden {
    display: none !important;
}

#lightbox-image {
    max-width: 90vw; 
    max-height: 90vh; 
    object-fit: contain; 
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5); 
    border: 3px solid var(--color-accent-blue);
    border-radius: 5px;
}

.lightbox-btn {
    background: none;
    border: none;
    color: var(--color-accent-blue);
    font-size: 3rem;
    cursor: pointer;
    position: absolute;
    padding: 10px;
    z-index: 101; 
    transition: color 0.2s;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.lightbox-btn:hover {
    color: var(--color-text-light);
}

#close-btn {
    top: 20px;
    right: 30px;
    font-size: 4rem;
    line-height: 1;
}

#prev-btn {
    left: 30px;
}

#next-btn {
    right: 30px;
}

/* Rule to ensure the hidden iframe for form submission is truly hidden */
#hidden_iframe {
    position: absolute;
    width: 0;
    height: 0;
    border: none;
}

/* --------------------------------------------------------
   --- 9. MOBILE RESPONSIVENESS (Max Width: 600px) ---
   -------------------------------------------------------- */
@media (max-width: 600px) {
    /* HEADER: Center navigation and allow space for the logo */
    .main-header {
        padding: 10px 15px;
        flex-direction: column; /* Stack logo and nav vertically */
        height: auto;
    }
    
    .header-nav ul {
        gap: 15px; /* Reduce spacing between navigation links */
        margin-top: 5px;
    }

    /* HERO SECTION: Scale down elements */
    .hero-content {
        margin-top: 0; /* Remove aggressive desktop margin */
    }

    /* Logo is the main issue on mobile */
    .hero-main-logo {
        max-width: 90%; /* Scale down logo to fit screen */
        max-height: 250px; /* Limit vertical size */
        filter: drop-shadow(0 0 10px var(--color-accent-blue)); /* Reduce glow complexity */
    }

    /* Slogan spacing fix for mobile (less aggressive needed) */
    .slogan-text {
        font-size: 1.1rem;
        margin-top: -3rem; /* Still negative, but less aggressive pull-up */
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    /* GENERAL SECTIONS: Reduce padding and font size */
    .container {
        padding: 30px 15px;
    }

    h2, .company-description-section h2, .event-showcase-section h2, .signup-section h2 {
        font-size: 2rem;
    }

    /* EVENT SHOWCASE: Force single column stack */
    .event-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .event-card {
        height: 300px; /* Reduce card height on mobile */
    }

    /* FORM: Ensure form elements look good */
    .mailing-list-form {
        padding: 0;
    }

    .social-icons-wrapper a {
        font-size: 1.5rem; /* Smaller icons */
        margin: 0 10px;
    }
}
