:root {
    --bg-outer: #663003;
    --bg-inner: #e99214;
    --text-color: #ffffff;
    --accent-color: #ff6b6b;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

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

/* Dynamic Layout Updates */
body {
    font-family: var(--font-family);
    background-color: var(--bg-outer);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    /* Increased z-index */
    padding: 15px 0;
    background-color: #000000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        padding-bottom: 10px;
    }

    /* Top Partition: Logo */
    .logo-container {
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* Bottom Partition: Info Elements (Side-by-Side) */
    .header-info {
        display: flex;
        flex-direction: row;
        /* Strict horizontal layout */
        align-items: center;
        justify-content: center;
        gap: 15px;
        /* Comfortable gap */
        width: 100%;
    }

    .event-date {
        padding: 5px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .status-badge {
        font-size: 0.8rem;
        font-weight: 800;
        white-space: nowrap;
    }
}



.logo-container {
    display: block;
    min-width: 120px;
    max-width: 180px;
}

.logo {
    height: 40px;
    width: auto;
    display: block;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
}

.status-badge {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 600;
    color: #e99214;
    /* Highlight color */
}

.event-date {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    /* Dynamic Viewport Height for mobile bars */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    padding-bottom: 2rem;
    overflow: hidden;
    /* Ensure no internal overflow triggers scroll */
}

@media (min-width: 992px) {
    .hero-section {
        height: auto;
        /* Remove fixed height constraint */
        min-height: 100dvh;
        /* Ensure it covers screen but allows growth */
        padding-bottom: 0;
    }
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--bg-inner) 0%, var(--bg-outer) 100%);
    z-index: 1;
}

.bottom-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #000000 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;

    /* Mobile Default: Flex Column */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* Image */
.profile-image {
    /* Base styles */
    width: 250px;
    height: 250px;
    width: min(70vw, 35vh);
    height: min(70vw, 35vh);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* animation: float 6s ease-in-out infinite; REMOVED */

    /* Mobile Order: 1 */
    order: 1;
}

/* Text */

.hero-subheadline {
    /* Fluid typography */
    font-size: clamp(1.35rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.3;
    /* text-shadow removed as requested */

    /* Mobile Order: 2 */
    order: 2;
    width: 100%;
}

/* CTA */
.cta-button {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    padding: 1.2em 2.5em;
    white-space: nowrap;
    background: linear-gradient(135deg, #ff8a65, #ff6b6b);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Mobile Order: 3 */
    order: 3;
    width: 90%;
    /* Wide on mobile */
    max-width: 380px;
    text-align: center;
    display: block;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.5);
    filter: brightness(1.1);
}

/* Desktop Layout */
@media (min-width: 992px) {
    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        /* Text row, CTA row */
        grid-template-areas:
            "text image"
            "cta image";
        gap: 2rem 5vw;
        /* row-gap col-gap */
        text-align: left;
        align-content: center;
        justify-items: start;
        /* Horizontal start alignment */
    }

    .profile-image {
        grid-area: image;
        justify-self: center;
        /* Center image in its column */
        width: min(35vw, 60vh);
        height: min(35vw, 60vh);
        order: unset;
        /* Flex order doesn't apply, but good to reset */
    }

    .hero-subheadline {
        grid-area: text;
        align-self: end;
        /* Push text to bottom of its cell */
        order: unset;
        max-width: 100%;
    }

    .cta-button {
        grid-area: cta;
        align-self: start;
        /* Push CTA to top of its cell */
        width: auto;
        /* Reset width */
        display: inline-block;
        order: unset;
    }
}

/* Specific overrides for very small screens */
@media (max-height: 700px) and (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
    }

    .profile-image {
        width: 25vh;
        height: 25vh;
    }

    .hero-content {
        gap: 1.5rem;
    }
}

/* Mobile Layout Overrides - Moved to end for Cascade Priority */
@media (max-width: 768px) {
    :root {
        --header-height: auto;
    }

    /* Header styles remain the same, just keeping them here for completeness/ordering */
    .header {
        position: relative;
        background-color: #000000;
        padding: 20px 0;
    }

    .header-content {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.5rem;
    }

    .logo-container {
        margin-bottom: 0;
        display: flex !important;
        justify-content: center !important;
        width: 100%;
        max-width: 250px;
    }

    .logo {
        height: auto;
        width: 100%;
        max-height: 60px;
    }

    /* Row 2: Info Elements (Side-by-Side, Centered) */
    .header-info {
        display: flex !important;
        flex-direction: row !important;
        /* Forced row for single line */
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        gap: 6px;
        /* Reduced gap to fit on one line */
        flex-wrap: wrap;
    }

    .status-badge {
        font-size: 0.75rem;
        /* Reduced to fit */
        font-weight: 800;
        white-space: nowrap;
    }

    .event-date {
        padding: 4px 10px;
        /* Reduced padding */
        font-size: 0.75rem;
        /* Reduced to fit */
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
    }

    /* Padding adjust for Hero since header is relative now */
    .hero-section {
        padding-top: 1rem;
        /* Slightly reduced top padding */
        min-height: auto;
        /* Allow natural height */
        height: auto;
        padding-bottom: 3rem;
        flex: 1;
        /* Ensure it fills remaining vertical space */
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        /* Stack vertically */
        gap: 1.5rem;
        /* Reduced gap */
    }

    /* Order: 1. Profile Image */
    .hero-image-column {
        order: 1;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .profile-image {
        /* Dynamic sizing to fit without scroll */
        width: auto;
        height: auto;
        max-width: 200px;
        /* Cap width */
        max-height: 200px;
        /* Cap height */

        /* Use viewport units to ensure it shrinks on short screens */
        width: 45vw;
        height: 45vw;
        max-height: 25vh;
        /* Never take up more than 1/4 of screen height */
        width: auto;
        /* Let aspect ratio handle width based on max-height */
        aspect-ratio: 1/1;

        display: block;
        /* Order 1 handled in main block, but safe to reiterate or leave to cascade */
    }

    /* Order: 2. Text */
    .hero-subheadline {
        font-size: 1.6rem;
        /* Reduced from 2rem */
        line-height: 1.3;
        text-shadow: none;
        font-weight: 700;
        /* Order 2 */
    }

    /* Order: 3. CTA */
    .cta-button {
        width: 100%;
        max-width: 100%;
        padding: 1.2em 1em;
        /* Slightly tighter padding */
        font-size: 1.1rem;
        /* Slightly reduced size */
        box-shadow: none;
        /* Order 3 */
    }
}