/* --- OPTION 3: REFINED & PLAYFUL (REVISED V5) --- */

:root {
    --bg-color: #FFFFFF;
    --text-color: #000000;
    --accent-color: #4299E1; 
    --secondary-accent: #ED64A6; 
    --nav-bg: #FFFFFF;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    overflow-x: hidden; 
}

html {
    scroll-padding-top: 55px;
}

section[id] {
    scroll-margin-top: 55px;
}

/* Inline Logo for Text */
.inline-logo {
    height: 1.6em;
    vertical-align: middle;
    display: inline-block;
    margin: 0 4px;
    filter: brightness(0) saturate(100%);
}

/* White inline logo for light text on dark backgrounds */
.inline-logo-white {
    height: 1.6em;
    vertical-align: middle;
    display: inline-block;
    margin: 0 4px;
    /* No filter needed if using Logo-white.png directly */
}

/* If you want to use the same logo.png but invert it */
.inline-logo.invert-white {
    filter: brightness(0) invert(1);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: var(--nav-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 2px solid #f0f0f0; 
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px; 
    text-decoration: none;
}
.nav-logo {
    height: 48px; 
    width: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-logo:hover {
    transform: rotate(-15deg) scale(1.1);
}
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 0;
}

.logo-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: #000000;
    letter-spacing: 0.3px;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9rem;
    color: #000000;
    line-height: 1;
}

/* --- NAV LINKS --- */
.nav-group {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 0;
    margin: 0;
}

.nav-group a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.2s;
}

.nav-group a:not(.donate-btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-group a:not(.donate-btn):hover { color: var(--accent-color); }
.nav-group a:not(.donate-btn):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- DONATE BUTTON --- */
.donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-accent);
    color: white !important;
    font-weight: 800; 
    font-size: 0.9rem;
    padding: 5px 15px 15px 15px;
    border-radius: 8px; 
    border: 2px solid var(--secondary-accent); 
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,0.15); 
    transform: translate(-2px, -2px); 
    transition: all 0.2s ease;
}
.donate-btn:hover {
    background-color: #e04f93; 
    border-color: #e04f93;
    transform: translate(0px, 0px);
    box-shadow: 2px 2px 0px 0px rgba(0,0,0,0.15);
    color: white !important;
}
.donate-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.15);
}

/* --- HAMBURGER MENU --- */
.hamburger {
    display: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh; 
    width: 100%;
    display: flex; 
    align-items: center;
    justify-content: center;
    padding-top: 80px; 
    background: white; 
    overflow: hidden;
    position: relative;
}

.hero-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
}

/* Hero Text Container */
.hero-text {
    z-index: 10;
    position: relative; 
    max-width: 600px;
    transition: opacity 0.1s linear, transform 0.1s linear;
}

/* Individual Elements - Prepared for Animation */
.hero-text h1, 
.hero-subtext, 
.hero-buttons {
    will-change: transform, opacity;
}

.hero-text h1 {
    font-size: 3.8rem; 
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

/* --- FOOTER --- */
.site-footer {
    background: #f8f8f8;
    color: #333;
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 2px solid #e0e0e0;
}

.site-footer .footer-inner {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Brand Section with Logo */
.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    flex: 0 0 auto;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-logo-link:hover {
    transform: translateY(-2px);
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) saturate(100%);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    color: #000;
}

.footer-tagline {
    font-size: 0.75rem;
    color: #000000;
    margin: 0;
    line-height: 1.2;
    font-weight: 400;
}

.brand-subline {
    letter-spacing: 0.2px;
    text-transform: none;
}

/* Social Icons - Centered Below Brand */
.footer-socials {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-top: 8px;
}

.site-footer .social-link {
    color: #333;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e8e8e8;
}

.site-footer .social-link:hover {
    color: #fff;
    background-color: #4299E1;
    transform: translateY(-3px);
}

/* Navigation Section */
.footer-nav-section {
    flex: 0 1 auto;
}

.site-footer .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer .footer-nav a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.site-footer .footer-nav a:hover {
    color: #4299E1;
}

/* Action Section */
.footer-action-section {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-action-btn {
    background-color: #4299E1;
    color: #fff;
    padding: 12px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.footer-action-btn:hover {
    background-color: #2d7cb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer .footer-inner {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
        justify-content: center;
    }
    
    .footer-brand-section {
        align-items: center;
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-brand {
        font-size: 1.3rem;
    }
    
    .site-footer .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .footer-action-section {
        align-items: center;
    }
}

/* Sitemap page tweaks */
.sitemap-wrap p{color:#444}
.sitemap-list a{font-weight:600}

/* Contact form styling */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Modal Popup Styles */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.modal-content h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #111;
}

.modal-wide {
    max-width: 720px;
}

/* Gallery Lightbox Styles */
.gallery-lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
    height: 95vh;
    margin: 2.5vh auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: #1a1a1a;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
    color: #000;
}

.lightbox-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(95vh - 240px);
    max-height: calc(95vh - 240px);
    overflow: visible;
}

.lightbox-main-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-lightbox-content .modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    display: grid;
    place-items: center;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.gallery-lightbox-content .modal-close:hover {
    color: #000;
    transform: scale(1.05);
}

.lightbox-thumbnail-strip {
    width: 100%;
    margin-top: 20px;
    overflow-x: auto;
    padding: 10px 0;
    max-height: 120px;
}

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.lightbox-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-thumbnail:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-thumbnail.active {
    border-color: #fff;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-thumbnail {
        width: 60px;
        height: 60px;
    }
}

.modal-subtitle {
    color: #666;
    margin-top: -10px;
    margin-bottom: 20px;
}

.tech-pack-form .form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.tech-pack-form .form-row + .form-row {
    margin-top: 12px;
}

.tech-pack-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.tech-pack-form input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.interest-label {
    font-weight: 600;
    color: #444;
}

.interest-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #333;
}

.pack-section {
    display: none;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.pack-section.active {
    display: block;
}

.pack-downloads {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    opacity: 1;
    pointer-events: auto;
}

.pack-section.unlocked .pack-downloads {
    opacity: 1;
    pointer-events: auto;
}

.pack-email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
}

.pack-email-link:hover {
    text-decoration: underline;
}

.pack-downloads a,
.pack-downloads span {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

.pack-note {
    color: #666;
    margin: 8px 0 0 0;
}

.tech-pack-success {
    margin-top: 16px;
    padding: 12px 16px;
    background: #ecfdf3;
    border: 1px solid #b7f0c5;
    border-radius: 10px;
    color: #1f7a3f;
}

.tech-pack-error {
    margin-top: 6px;
    color: #b42318;
    font-weight: 600;
}

.modal-dates .date-item {
    background: #fff;
}

/* Subscribe Section */
.subscribe-section {
    background: linear-gradient(135deg, #4299E1 0%, #ED64A6 100%);
    padding: 0;
    text-align: center;
    color: #fff;
}

.subscribe-banner {
    padding: 0;
}

.subscribe-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #fff;
}

.subscribe-banner p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    color: #fff;
}

.subscribe-banner .ml-embedded {
    max-width: 500px;
    margin: 0 auto;
}

/* Upcoming Dates */
.section-subtitle {
    text-align: center;
    color: #666;
    margin-top: 8px;
    font-size: 1rem;
}

.upcoming-dates-section {
    background: #f8fbff;
}

.dates-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.date-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.date-badge {
    min-width: 82px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f5f9ff;
    border: 1px solid #e2ecfb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.date-day {
    font-size: 2rem;
    font-weight: 800;
    color: #6B2C91;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
    font-weight: 700;
}

.date-item.is-range .date-day {
    font-size: 1.2rem;
    letter-spacing: 0.2px;
}

.date-item.is-range .date-month {
    font-size: 0.74rem;
    letter-spacing: 0.4px;
}

.date-details h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
}

.date-details .event-dates {
    margin: 0 0 4px 0;
    color: #5f6c7b;
    font-weight: 600;
    font-size: 0.92rem;
}

.date-details .location {
    margin: 0;
    color: #777;
}

.btn-ticket {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #4299E1;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.dates-footer {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .date-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .date-badge {
        min-width: 72px;
    }
}

/* Footer nav and socials */
.footer-center { flex: 1; display: flex; justify-content: center; }
.footer-nav { display:flex; gap:12px; flex-wrap:wrap; align-items:center }
.footer-nav a { color: #ddd; text-decoration: none; font-weight:600 }
.socials { display:flex; gap:8px; margin-top:8px }
.social-link { color: #fff; display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; background:transparent; border-radius:6px }
.social-link svg { display:block }

@media (max-width:900px){
    .footer-center { order: 3; margin-top: 12px }
    .footer-right { order: 2; margin-top: 12px }
}

.line1 { color: var(--accent-color); }
.line2 { color: var(--text-color); }

.brand-word {
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-color);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* --- NEW UNDERLINE STYLE --- */
/* This targets the specific words "Circus" and "Theatre" */
.highlight-word {
    position: relative;
    z-index: 1;
}
.highlight-word::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px; /* Adjust vertical position */
    width: 100%;
    height: 8px; /* Thickness of the underline */
    background: var(--secondary-accent);
    z-index: -1; /* Puts it behind the text */
    opacity: 0.6; /* Slightly see-through */
    border-radius: 4px;
}


/* --- STARS --- */
.star-graphic {
    display: block;
    position: absolute;
    background: var(--secondary-accent);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: pulse-star 3s infinite ease-in-out;
    opacity: 0.9;
    will-change: transform;
    z-index: 5;
    transition: transform 0.1s linear;
}

.star-1 { width: 22px; height: 22px; top: 20px; left: 0px; animation-delay: 0s; }
.star-2 { width: 14px; height: 14px; top: 100px; left: 45%; animation-delay: 0.5s; background: var(--accent-color); }
.star-3 { width: 18px; height: 18px; bottom: 80px; left: 10px; animation-delay: 1s; }
.star-4 { width: 12px; height: 12px; top: 0px; right: 20px; animation-delay: 1.5s; background: var(--accent-color); }
.star-5 { width: 15px; height: 15px; top: 40%; left: -40px; animation-delay: 2s; }
.star-6 { width: 10px; height: 10px; bottom: 150px; right: 50%; animation-delay: 0.8s; background: var(--accent-color); }

@keyframes pulse-star {
    0% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.3) rotate(15deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
}

.hero-subtext {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #555;
}

.hero-buttons { 
    display: flex; 
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 35px;
}

.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.2);
}

.btn-primary:hover {
    background-color: #3182ce;
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: white;
}

/* --- HERO VISUAL --- */
.hero-visual {
    position: relative;
    width: 100%;
    height: 500px; 
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    transition: transform 0.1s linear;
}

.blob, .blob-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 500px; 
    max-height: 500px;
}

.blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite both;
    overflow: hidden;
    z-index: 2;
    box-shadow: 10px 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.1s linear;
}

.blob-2 {
    top: 20px; 
    left: 20px; 
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent));
    border-radius: 60% 40% 50% 50% / 40% 70% 30% 60%;
    animation: morph-2 12s ease-in-out infinite both;
    z-index: 1;
    opacity: 0.6;
    will-change: transform;
    transition: transform 0.1s linear;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 60% 40% 50% 50% / 40% 70% 30% 60%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}
@keyframes morph-2 {
    0% { border-radius: 60% 40% 50% 50% / 40% 70% 30% 60%; transform: rotate(0deg); }
    50% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(45deg); }
    100% { border-radius: 60% 40% 50% 50% / 40% 70% 30% 60%; transform: rotate(0deg); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float-hero {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-visual img {
    width: 100%; height: 100%; object-fit: cover; transform: scale(1.1);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 968px) {
    .navbar { padding: 0 20px; }
    
    .hamburger { display: block; z-index: 2000; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-group {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        z-index: 1500;
        padding-top: 100px;
    }

    .nav-group.active { left: 0; }
    .nav-group li { margin: 20px 0; }
    .nav-group a { font-size: 1.5rem; }

    .hero-content { 
        grid-template-columns: 1fr; 
        gap: 40px; 
        text-align: center; 
    }
    
    .hero-text h1 { font-size: 2.8rem; }
    .hero-subtext { margin: 0 auto 30px auto; }
    .hero-buttons { justify-content: center; }
    
    .star-4, .star-5, .star-6 { display: none; }
    
    .hero-visual {
        height: 400px; 
    }
}
/* --- ABOUT SECTION STYLES --- */

.about-section {
    position: relative;
    background-color: #f8fbff;
    padding: 0;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Wave Divider at top */
.wave-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}
.wave-divider .shape-fill {
    fill: #FFFFFF;
}

/* --- BRAIN VS FOOL DUALITY --- */
.dual-brain-fools {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin-top: 100px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.duality-card {
    background: white;
    flex: 1;
    min-width: 280px;
    padding: 30px; /* Adjusted padding */
    border-radius: 24px; /* Softer radius */
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04); /* Softer shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #e2e8f0; /* Soft border */
    position: relative; 
    z-index: 1;
}

.duality-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 35px rgba(0,0,0,0.08);
}

.brain-side:hover { border-color: var(--accent-color); }
.fool-side:hover { border-color: var(--secondary-accent); }


.icon-wrapper {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.brain-side .icon-wrapper { animation: float-brain 4s ease-in-out infinite; }
.fool-side .icon-wrapper { animation: wiggle-fool 3s ease-in-out infinite; }

.duality-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
}

.connector {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: #ddd;
    font-family: var(--font-heading);
    margin: 20px 0; /* Add margin for spacing in column layout */
}

/* --- Scroll-in Animations for Duality Cards --- */
.slide-in-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInFromRight 0.8s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
}


/* --- MISSION SECTION --- */
.mission-container {
    text-align: center;
    margin-top: 80px; /* Added margin */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--text-color);
    position: relative;
    display: block;
    width: -moz-max-content;
    width: max-content;
    margin: 0 auto 12px auto;
    text-align: center;
}

/* Unified section spacing */
.section-shell {
    padding: 90px 0 140px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 50px;
}

.connecting-section .section-header {
    padding-top: 5px;
}

.section-header.spaced {
    margin-top: 60px;
}

/* Fun underline for Mission title - match the title width */
.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent));
    border-radius: 4px;
    margin: 8px auto 0;
}

.mission-intro {
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: #666;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* TICKET STYLE CARDS */
.mission-ticket {
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column; /* Stack image and content */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #eee;
}

.mission-ticket:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.ticket-photo {
    height: 180px; /* Give photo a fixed height */
    width: 100%;
    overflow: hidden;
}

.ticket-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mission-ticket:hover .ticket-photo img {
    transform: scale(1.05);
}

.ticket-content {
    padding: 25px;
    text-align: left;
    flex: 1;
}

.ticket-content h4 {
    margin: 0 0 10px 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Color variations for tickets */
.mission-ticket:nth-child(2) .ticket-content h4 { color: var(--secondary-accent); }
.mission-ticket:nth-child(3) .ticket-content h4 { color: #805AD5; } /* Purple accent */

@keyframes float-brain {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes wiggle-fool {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@media (max-width: 768px) {
    .dual-brain-fools {
        flex-direction: column;
        gap: 25px; /* Increased gap */
    }
    /* Keep the decorative connector visible on mobile and scale it down */
    .connector { display: flex; }
    .mission-grid { grid-template-columns: 1fr; }
}

/* --- ORGANIC BLOBS FOR ABOUT SECTION --- */
.photo-container {
    /* make photo containers more square while remaining responsive */
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    position: relative;
    margin: 0 auto 24px; /* center and space */
}

.organic-blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 10s ease-in-out infinite both;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); /* Softer shadow */
    height: 100%;
    width: 100%;
    position: absolute;
}

/* New class for the background-image blobs */
.about-photo-blob {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top; /* favor faces toward top */
}

/* image sources for about blobs (CSS-controlled so paths are correct from /public) */
.about-photo-blob--brain { background-image: url('images/about-brain.jpg'); }
.about-photo-blob--fools { background-image: url('images/about-fools.JPG'); }

/* Specific adjustment for the brain photo */
.brain-side .about-photo-blob {
    background-position: center 20%; /* slight vertical shift for composition */
}

/* connector plus styling placed between the two cards */
.connector.plus {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #dbeafe; /* subtle pale accent */
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(66,153,225,0.08), rgba(237,100,166,0.04));
    margin: 0 12px;
}

/* removed the hide rule for plus on smaller screens - we show it instead */

/* Mobile typography & spacing fixes to keep headings centered and reduce large gaps */
@media (max-width: 900px) {
    .section-title {
        margin: 0 auto 12px auto;
        font-size: 1.8rem;
        width: auto;
        max-width: 90%;
        display: inline-block;
        white-space: normal;
        word-break: break-word;
        text-wrap: balance;
    }

    .section-title::after { margin: 6px auto 0; width: 100%; }

    .container { padding-left: 12px; padding-right: 12px; }
    .hero-content { padding: 20px; gap: 20px; }
    .shows-list { gap: 40px; }
    .mission-grid { gap: 18px; }
    .dual-brain-fools { gap: 18px; }
    .archive-container { margin-top: 40px; padding: 30px 0; }

    /* Explicitly ensure history title centers on small screens (higher specificity) */
    .history-container .section-title { display: block; margin: 0 auto 10px; left: auto; transform: none; text-align: center; }
}

.duality-card {
    position: relative; /* Needed for positioning the vibe blob */
    z-index: 1;
}

.vibe-blob {
    position: absolute;
    width: 150px;
    height: 150px;
    z-index: -1;
    opacity: 0.2;
    animation: morph-2 12s ease-in-out infinite both;
}

.brain-side .vibe-blob {
    background: var(--accent-color);
    border-radius: 60% 40% 50% 50% / 40% 70% 30% 60%;
    top: -20px;
    left: -20px;
}

.fool-side .vibe-blob {
    background: var(--secondary-accent);
    border-radius: 40% 60% 60% 40% / 70% 40% 60% 30%;
    bottom: -20px;
    right: -20px;
    animation-delay: -3s; /* Offset animation */
}

/* --- HISTORY SECTION --- */
.history-container {
    text-align: center;
    margin-top: 80px;
}

/* --- HISTORY TIMELINE (UPDATED) --- */
.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding: 40px 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #e2e8f0;
    border-radius: 2px;
}

.history-event {
    position: relative;
    width: 50%;
    padding: 10px 40px;
    box-sizing: border-box;
}

.history-event:nth-child(odd) {
    left: 0;
    text-align: right;
}

.history-event:nth-child(even) {
    left: 50%;
}

.history-event::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 25px;
    height: 25px;
    background: var(--accent-color);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: pulse-star 3s infinite ease-in-out;
    z-index: 1;
}

.history-event:nth-child(odd)::after {
    right: -10px;
    transform: translateX(50%);
}

.history-event:nth-child(even)::after {
    left: -10px;
    transform: translateX(-50%);
}

.history-event:nth-child(2)::after,
.history-event:nth-child(4)::after {
    border-color: var(--secondary-accent);
}

.history-photo {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
}

.history-event:hover .history-photo {
    transform: scale(1.03);
}

.history-text h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.history-event:nth-child(even) h3 {
    color: var(--secondary-accent);
}

.history-text p {
    color: #555;
    line-height: 1.6;
}

/* --- RESPONSIVE TIMELINE --- */
@media (max-width: 768px) {
    .history-timeline::before {
        left: 20px;
    }

    .history-event {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .history-event:nth-child(odd),
    .history-event:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .history-event::after {
        left: 20px;
    }

    .history-event:nth-child(odd)::after {
        transform: translateX(-50%);
    }
}

.connecting-section {
    padding: 0;
    background-color: #f8fbff;
    position: relative;
    overflow: hidden;
}

.centered-title {
    text-align: center;
}

/* MailerLite Form Styles */
.ml-form-embedContainer {
    max-width: 500px;
    margin: 0 auto;
}

.ml-block-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ml-form-fieldRow {
    width: 100%;
}

.ml-field-group {
    width: 100%;
}

.ml-field-group input[type="email"],
.ml-field-group .form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.ml-field-group input[type="email"]:focus,
.ml-field-group .form-control:focus {
    outline: none;
    border-color: #4299E1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.ml-form-embedSubmit {
    text-align: center;
}

.ml-form-embedSubmit button[type="submit"],
.ml-form-embedSubmit .primary {
    background-color: #4299E1;
    color: #fff;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.ml-form-embedSubmit button[type="submit"]:hover,
.ml-form-embedSubmit .primary:hover {
    background-color: #2d7cb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.modal-content .ml-block-form {
    margin-top: 20px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #4299E1;
    outline-offset: 2px;
}

.media-consent-note {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 3000;
    background: #111827;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    border: 0;
    background: #4299E1;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.cookie-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-settings-btn {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2990;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(17, 24, 39, 0.88);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
}

.cookie-banner:not([hidden]) + .cookie-settings-btn {
    display: none;
}

@media (max-width: 700px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Live Events Grid (Firebase) */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.event-item {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #eee;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.event-date-pill {
    background: #E91E63;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    width: fit-content;
    margin-bottom: 15px;
}

.event-venue {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.event-city {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-ticket {
    background: #4299E1;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-top: auto;
    font-weight: bold;
}


