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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #e2e8f0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(30, 41, 59, 0.75) 50%, rgba(51, 65, 85, 0.72) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    animation: fade-in-up 1s ease-out;
}

@keyframes fade-in-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-title { font-size: 4rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.04em; }
.hero-subtitle { font-size: 1.5rem; font-weight: 500; color: #fbbf24; margin-bottom: 1.5rem; animation: fade-in-up 1s ease-out 0.2s both; }
.hero-description { font-size: 1.25rem; color: #cbd5e1; max-width: 600px; margin: 0 auto 2.5rem; animation: fade-in-up 1s ease-out 0.4s both; }

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-in-up 1s ease-out 0.6s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.cta-button.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4); }

.cta-button.secondary {
    background: rgba(248, 250, 252, 0.1);
    color: #e2e8f0;
    border: 2px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover { background: rgba(251, 191, 36, 0.1); border-color: #fbbf24; transform: translateY(-2px); }

/* Hero background crossfade */
.hero-bg.fade-out { opacity: 0; }
.hero-bg.fade-in { opacity: 1; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 1.5rem; font-weight: 700; color: #fbbf24; text-decoration: none; }
.nav-menu { display: flex; gap: 2rem; }
.nav-link { color: #e2e8f0; text-decoration: none; font-weight: 500; transition: color 0.3s ease; position: relative; }
.nav-link:hover { color: #fbbf24; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: #fbbf24; transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }

/* Section Styles */
section { padding: 6rem 0; position: relative; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 3rem; margin-bottom: 1rem; color: #f8fafc; }
.section-subtitle { font-size: 1.25rem; color: #94a3b8; max-width: 600px; margin: 0 auto; }

/* Talks Table */
.talks { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }

.talks-explainer {
    max-width: 720px;
    margin: -2rem auto 2.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.7;
}

.talks-explainer strong {
    color: #cbd5e1;
}

.talks-table-wrapper {
    overflow-x: auto;
}

.talks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.talks-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: #fbbf24;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
    font-weight: 600;
    white-space: nowrap;
}

.talks-table tbody td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(248, 250, 252, 0.05);
    color: #cbd5e1;
}

.talks-table tbody tr:hover {
    background: rgba(251, 191, 36, 0.05);
}

.talks-table .month-group td {
    padding: 0.6rem 1rem 0.3rem;
    font-weight: 600;
    color: #f59e0b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
    background: rgba(251, 191, 36, 0.03);
}

.talks-table tbody td:first-child {
    white-space: nowrap;
    color: #94a3b8;
    font-size: 0.85rem;
}

.talks-table tbody td:nth-child(2) {
    white-space: nowrap;
    font-weight: 500;
    color: #e2e8f0;
}

/* Gallery Section */
.gallery { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }

.gallery-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-nav {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: rgba(251, 191, 36, 0.3);
    transform: scale(1.1);
}

.gallery-display {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.gallery-month {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.gallery-image-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-container img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 12px;
    object-fit: contain;
}

.gallery-image-container .no-photo {
    color: #64748b;
    font-size: 1.125rem;
    font-style: italic;
}

/* Location Section */
.location { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }

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

.location-details h3 { font-size: 2rem; color: #fbbf24; margin-bottom: 1rem; }
.location-details p { color: #cbd5e1; margin-bottom: 2rem; font-size: 1.125rem; line-height: 1.6; }
.location-features { display: flex; flex-direction: column; gap: 1rem; }
.feature { display: flex; align-items: center; gap: 1rem; color: #e2e8f0; }
.feature-icon { width: 24px; height: 24px; stroke: #fbbf24; stroke-width: 2; flex-shrink: 0; }
.location-map iframe { filter: grayscale(20%) contrast(1.2); transition: filter 0.3s ease; }
.location-map:hover iframe { filter: grayscale(0%) contrast(1); }

/* Community Section */
.community { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.community-card {
    background: rgba(248, 250, 252, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.community-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.community-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.community-card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.community-card:hover .card-icon { transform: scale(1.1); }

.card-icon svg { width: 30px; height: 30px; stroke: #fbbf24; stroke-width: 2; }
.whatsapp-icon { width: 30px; height: 30px; filter: brightness(1.2) sepia(1) hue-rotate(25deg); }
.community-card h3 { font-size: 1.5rem; color: #f8fafc; margin-bottom: 1rem; }
.community-card p { color: #cbd5e1; margin-bottom: 1.5rem; line-height: 1.6; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-link:hover { transform: translateX(5px); }
.link-arrow { width: 20px; height: 20px; stroke-width: 2; }

/* Newsletter form styling */
.newsletter-card #form-acm_33489 {
    text-align: left;
}

.newsletter-card #form-acm_33489 input[type="email"],
.newsletter-card #form-acm_33489 input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.newsletter-card #form-acm_33489 input[type="submit"],
.newsletter-card #form-acm_33489 button {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f172a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-card #form-acm_33489 input[type="submit"]:hover,
.newsletter-card #form-acm_33489 button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    padding: 3rem 0 1rem;
}

.footer-content { display: grid; grid-template-columns: 1fr auto; gap: 3rem; margin-bottom: 2rem; align-items: start; }
.footer-main h3 { font-size: 1.5rem; color: #fbbf24; margin-bottom: 1rem; }
.footer-main p { color: #94a3b8; line-height: 1.6; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.footer-links a:hover { color: #fbbf24; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(248, 250, 252, 0.1); color: #64748b; }

/* Responsive Design */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .hero-description { font-size: 1.125rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .section-title { font-size: 2rem; }
    .community-grid { grid-template-columns: 1fr; }
    .location-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-links { justify-content: center; }
    .nav-menu { display: none; }
    .nav-container { padding: 0.75rem 1rem; }
    section { padding: 4rem 0; }
    .talks-table { font-size: 0.85rem; }
    .talks-table thead th, .talks-table tbody td { padding: 0.4rem 0.5rem; }
    .gallery-viewer { gap: 0.75rem; }
    .gallery-nav { width: 40px; height: 40px; font-size: 1.5rem; }
}