/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark: #0a0a0a;
    --color-emerald-deep: #022c22;
    --color-emerald: #059669;
    --color-gold: #D4A017;
    --color-gold-light: #F59E0B;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-gold-bg: rgba(212, 160, 23, 0.06);
    --glass-gold-border: rgba(212, 160, 23, 0.12);
    
    --font-ui: 'Montserrat', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-ui);
    color: var(--color-text);
    background-color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
}

.glass-gold-card {
    background: var(--glass-gold-bg);
    border: 1px solid var(--glass-gold-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
}

/* Typography Utilities */
.text-gold { color: var(--color-gold); }
.text-gold-light { color: var(--color-gold-light); }
.text-muted { color: var(--color-text-muted); }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.1em; }
.font-ui { font-family: var(--font-ui); }
.font-heading { font-family: var(--font-heading); }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-ui);
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-dark);
}

.btn-gold:hover {
    background-color: var(--color-gold-light);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    backdrop-filter: blur(4px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-outline-gold:hover {
    background: rgba(212, 160, 23, 0.1);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--color-text);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: white;
    font-family: var(--font-ui);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.08);
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: calc(100% - 1.5rem);
    background-position-y: 50%;
    cursor: pointer;
}

select.form-input option {
    background-color: var(--color-dark);
    color: white;
}

/* Sessions Grid */
.sessions-selection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 640px) {
    .sessions-selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .sessions-selection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.day-sessions-group {
    padding-bottom: 0.75rem;
}
.day-group-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.25rem;
}

/* Custom Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    color: white;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 1.25rem;
    width: 1.25rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkbox-checkmark {
    background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-container input:checked ~ .checkbox-checkmark {
    background-color: var(--color-emerald);
    border-color: var(--color-emerald);
}

.checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkbox-checkmark:after {
    display: block;
}

.checkbox-container .checkbox-checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-label-checkbox-group {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* 1. Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-title {
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 1.125rem;
}

.nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--color-gold);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1001;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.active {
    right: 0;
}

.mobile-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-link {
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* 2. Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(212, 160, 23, 0.15) 0%, rgba(2, 44, 34, 0.8) 40%, var(--color-dark) 100%);
    position: relative;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg-flyer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 2rem;
}

.hero-logo-container {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

.hero-logo-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}

.hero-year {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.hero-theme {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 3rem;
}

.hero-meta {
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-meta-sub {
    font-size: 0.875rem;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Section Headings */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtext {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* 3. About Section */
.about-section {
    background: linear-gradient(to bottom, var(--color-dark), #022218, var(--color-dark));
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    width: 100%;
    max-width: 100%;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card h4 {
    color: var(--color-gold);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1rem;
    color: var(--color-text);
}

/* 4 & 6. Speakers & Music */
.speakers-section {
    background-color: var(--color-dark);
    position: relative;
}

.speakers-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.speakers-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-dark), transparent, var(--color-dark));
    z-index: 0;
}

.portrait-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.portrait-card {
    aspect-ratio: 11/16;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portrait-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-family: var(--font-heading);
    color: rgba(0,0,0,0.2);
}

.portrait-card:hover .portrait-img {
    transform: scale(1.05);
}

.portrait-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.portrait-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.portrait-role {
    font-size: 0.75rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 5. What to Expect */
.expect-section {
    background: #022218;
}

.expect-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.expect-card h3 {
    color: var(--color-gold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 7. Schedule */
.schedule-section {
    background-color: var(--color-dark);
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.day-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.day-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-info {
    display: flex;
    flex-direction: column;
}

.day-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.day-date {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.day-toggle {
    color: var(--color-gold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-toggle svg {
    transition: transform 0.3s ease;
}

.day-card.active .day-toggle svg {
    transform: rotate(180deg);
}

.day-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    opacity: 0;
}

.day-card.active .day-content {
    max-height: 500px; /* arbitrary large value */
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.session-item {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.session-item:last-child {
    margin-bottom: 0;
}

.session-time {
    color: var(--color-gold);
    font-weight: 600;
    min-width: 60px;
}

/* 8. Registration */
.register-section {
    background: linear-gradient(135deg, var(--color-emerald-deep) 0%, var(--color-dark) 100%);
    position: relative;
}

.register-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 160, 23, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.register-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#step-1, #step-member-lookup, #step-success {
    max-width: 500px;
    margin: 0 auto;
}

.step-container {
    display: none;
}

.step-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.member-choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.success-panel {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: flyOff 2s ease-in-out infinite alternate;
}

@keyframes flyOff {
    from { transform: translateY(0) rotate(0); }
    to { transform: translateY(-10px) rotate(5deg); }
}

.message-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: none;
}

.message-box.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    display: block;
}

/* Footer */
.footer {
    background: var(--color-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h5 {
    color: var(--color-gold);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

/* Breakpoints */
@media (min-width: 640px) {
    .member-choices {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }

    .hero-title {
        font-size: 5rem;
    }

    .portrait-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .expect-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .portrait-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .expect-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    #music .portrait-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    #music .portrait-grid .portrait-card {
        flex: 0 0 calc(25% - 1.125rem);
        max-width: calc(25% - 1.125rem);
    }
}
