@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --primary: #2C3E50;
  --primary-light: #34495E;
  --secondary: #5D6D7E;
  --accent: #A67C52;
  --accent-light: #C4975A;
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-alt: #F5F5F0;
  --border: #E5E5E0;
  --text: #1A1A2E;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --success: #6B8E6B;
  --info: #7B9EB5;
  --warning: #D4A843;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-height: 72px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); }

body {
  font-family: 'Source Sans 3', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Inter', sans-serif; line-height: 1.3; color: var(--primary); }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }

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

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

/* ═══ NAVBAR ═══ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 44px; }
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.nav-logo-sub { font-size: 0.7rem; color: var(--text-light); font-family: 'Inter', sans-serif; font-weight: 400; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; font-size: 0.88rem; font-weight: 500;
  color: var(--text); border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-menu > li > a:hover, .nav-menu > li > a.active {
  color: var(--accent); background: var(--surface-alt);
}
.nav-menu > li > a .arrow { font-size: 0.6rem; transition: var(--transition); }
.nav-menu > li:hover > a .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: var(--transition);
  list-style: none;
}
.nav-menu > li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 16px; font-size: 0.85rem;
  color: var(--text); border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown a:hover { background: var(--surface-alt); color: var(--accent); }

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══ HERO ═══ */
.hero {
  margin-top: var(--nav-height);
  min-height: 85vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
  position: relative; overflow: hidden; text-align: center; color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; padding: 40px 24px; max-width: 900px; }
.hero-badge {
  display: inline-block; padding: 6px 20px; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50px;
  font-size: 0.85rem; font-weight: 500; margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero h1 { color: #fff; margin-bottom: 16px; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero-theme {
  font-family: 'Playfair Display', serif; font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-style: italic; opacity: 0.9; margin-bottom: 24px; line-height: 1.5;
}
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 32px; font-size: 1rem; opacity: 0.9; }
.hero-meta span { display: flex; align-items: center; gap: 8px; }

/* Countdown */
.countdown { display: flex; justify-content: center; gap: 16px; margin-bottom: 32px; }
.countdown-item {
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius);
  padding: 16px 20px; min-width: 80px; text-align: center;
}
.countdown-value { font-size: 2rem; font-weight: 800; display: block; }
.countdown-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-size: 0.9rem; font-weight: 600;
  border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
  font-family: 'Inter', sans-serif; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(166,124,82,0.3); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.btn-secondary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); transform: translateY(-2px); color: #fff; }

/* ═══ SECTIONS ═══ */
.section { padding: 80px 0; }
.section-alt { background: var(--surface-alt); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-divider {
  width: 60px; height: 3px; background: var(--accent);
  margin: 16px auto 0; border-radius: 2px;
}

/* ═══ PAGE HEADER ═══ */
.page-header {
  margin-top: var(--nav-height); padding: 60px 0 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { opacity: 0.85; font-size: 1.05rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 0.85rem; opacity: 0.7; margin-bottom: 16px; }
.breadcrumb a { color: #fff; }

/* ═══ CARDS ═══ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-icon { width: 56px; height: 56px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; background: var(--surface-alt); color: var(--accent); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 0.95rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* ═══ PROFILE CARDS ═══ */
.profile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: center;
  transition: var(--transition);
}
.profile-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.profile-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: #fff; font-size: 2rem; font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.profile-card h4 { font-size: 1rem; margin-bottom: 4px; color: var(--primary); }
.profile-card .role { color: var(--accent); font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }
.profile-card .affiliation { color: var(--text-light); font-size: 0.82rem; }

/* ═══ TABS ═══ */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.tab-btn {
  padding: 12px 24px; font-size: 0.9rem; font-weight: 500;
  background: none; border: none; cursor: pointer;
  color: var(--text-light); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }

/* ═══ TIMELINE ═══ */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 32px; padding-left: 24px; }
.timeline-item::before {
  content: ''; position: absolute; left: -30px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item.past::before { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-date { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.timeline-title { font-weight: 600; color: var(--primary); }
.timeline-desc { color: var(--text-light); font-size: 0.9rem; }

/* ═══ TABLE ═══ */
.styled-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.styled-table thead { background: var(--primary); color: #fff; }
.styled-table th { padding: 14px 16px; font-size: 0.85rem; font-weight: 600; text-align: left; }
.styled-table td { padding: 12px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.styled-table tbody tr:hover { background: var(--surface-alt); }
.styled-table tbody tr:last-child td { border-bottom: none; }
.table-wrapper { overflow-x: auto; border-radius: var(--radius); }

/* ═══ ACCORDION ═══ */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--surface); cursor: pointer;
  font-weight: 600; font-size: 0.95rem; transition: var(--transition);
}
.accordion-header:hover { background: var(--surface-alt); }
.accordion-header .icon { transition: var(--transition); font-size: 1.2rem; }
.accordion-item.active .accordion-header .icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-body-inner { padding: 0 20px 20px; color: var(--text-light); line-height: 1.8; }
.accordion-item.active .accordion-body { max-height: 500px; }

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: var(--primary); }
.form-control {
  width: 100%; padding: 12px 16px; font-size: 0.95rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  transition: var(--transition); font-family: 'Source Sans 3', sans-serif;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(166,124,82,0.15); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }

/* ═══ BADGES ═══ */
.badge {
  display: inline-block; padding: 4px 12px; font-size: 0.75rem;
  font-weight: 600; border-radius: 50px; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-accent { background: rgba(166,124,82,0.12); color: var(--accent); }
.badge-info { background: rgba(123,158,181,0.12); color: var(--info); }
.badge-success { background: rgba(107,142,107,0.12); color: var(--success); }

/* ═══ FOOTER ═══ */
.footer { background: var(--primary); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center; font-size: 0.85rem;
}

/* ═══ BACK TO TOP ═══ */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  background: var(--accent); color: #fff; border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden;
  transition: var(--transition); z-index: 999; box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-light); transform: translateY(-3px); }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ═══ GALLERY ═══ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 4/3; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--surface-alt); border: 2px dashed var(--border);
  border-radius: var(--radius); padding: 60px 24px; text-align: center;
}

/* ═══ MISC ═══ */
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

.info-box {
  background: rgba(123,158,181,0.08); border-left: 4px solid var(--info);
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.warning-box {
  background: rgba(212,168,67,0.08); border-left: 4px solid var(--warning);
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

/* Venue map */
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-container iframe { width: 100%; height: 400px; border: none; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--surface); flex-direction: column; padding: 16px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-110%); transition: var(--transition);
    max-height: calc(100vh - var(--nav-height)); overflow-y: auto;
  }
  .nav-menu.active { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-menu > li > a { padding: 12px 16px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: none;
    background: var(--surface-alt); margin-top: 4px;
    display: none;
  }
  .nav-menu > li.dropdown-open > .dropdown { display: block; }
  .hero { min-height: 70vh; }
  .countdown { gap: 8px; }
  .countdown-item { padding: 10px 12px; min-width: 60px; }
  .countdown-value { font-size: 1.4rem; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-meta { flex-direction: column; gap: 8px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .countdown { flex-wrap: wrap; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tab-btn { white-space: nowrap; padding: 10px 16px; font-size: 0.82rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
