/* =========================================================
   All About Music — Main Stylesheet
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg2: #f8f8f8;
  --bg3: #111111;
  --text: #111111;
  --text-muted: #666666;
  --accent: #f0a500;
  --accent2: #e09000;
  --border: #e0e0e0;
  --card-bg: #ffffff;
  --nav-bg: #ffffff;
  --nav-text: #111111;
  --footer-bg: #111111;
  --footer-text: #cccccc;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 8px;
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg2: #1a1a1a;
  --bg3: #f8f8f8;
  --text: #f0f0f0;
  --text-muted: #aaaaaa;
  --border: #333333;
  --card-bg: #1a1a1a;
  --nav-bg: #0d0d0d;
  --nav-text: #f0f0f0;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
  font-size: 16px;
}

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

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-fluid { width: 100%; padding: 0 24px; }

/* ---- Skip Link ---- */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--accent); color: #000;
  padding: 8px 16px; z-index: 9999;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { top: 0; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.navbar-brand img { height: 48px; }
.navbar-brand span {
  font-size: 22px; font-weight: 800; color: var(--text);
  letter-spacing: -0.5px;
}
.navbar-brand span span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 8px; list-style: none;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 6px;
  color: var(--nav-text); font-weight: 500; font-size: 15px;
  transition: var(--transition);
}

.nav-links > li > a:hover,
.nav-links > li.active > a {
  background: rgba(240,165,0,0.1);
  color: var(--accent);
}

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 200px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition);
  list-style: none; padding: 8px 0; z-index: 100;
}

.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.nav-dropdown li a {
  display: block; padding: 10px 20px;
  color: var(--text); font-size: 14px;
  transition: var(--transition);
}
.nav-dropdown li a:hover { background: rgba(240,165,0,0.1); color: var(--accent); }

/* Theme toggle */
.theme-toggle {
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  padding: 8px 12px; border-radius: 20px;
  font-size: 18px; transition: var(--transition); line-height: 1;
}
.theme-toggle:hover { background: var(--accent); color: #000; border-color: var(--accent); }

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

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: var(--bg);
  padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(240,165,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(240,165,0,0.15);
  color: var(--accent);
  border: 1px solid rgba(240,165,0,0.3);
  padding: 6px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 24px;
  max-width: 900px; margin-left: auto; margin-right: auto;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted); max-width: 700px;
  margin: 0 auto 40px; line-height: 1.7;
}

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

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 6px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.5px;
  text-transform: uppercase; cursor: pointer; border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent); color: #000;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); color: #000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(240,165,0,0.35); }

.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-dark {
  background: var(--text); color: var(--bg);
  border-color: var(--text);
}
.btn-dark:hover { background: var(--accent); border-color: var(--accent); color: #000; }

.btn-sm { padding: 10px 22px; font-size: 13px; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--bg2); }
.section-dark { background: var(--bg3); color: #fff; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .eyebrow {
  display: inline-block; color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 5vw, 52px); font-weight: 900;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 16px;
}
.section-header p {
  font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto;
}

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-strip {
  background: var(--accent);
  padding: 48px 0;
}

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; text-align: center;
}

.stat-item h3 {
  font-size: clamp(36px, 5vw, 60px); font-weight: 900;
  color: #000; line-height: 1; margin-bottom: 8px;
}
.stat-item p { font-size: 14px; font-weight: 700; color: #000; text-transform: uppercase; letter-spacing: 1px; opacity: 0.75; }

/* =========================================================
   SESSION TYPES GRID
   ========================================================= */
.sessions-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.session-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  transition: var(--transition); cursor: default;
}
.session-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(240,165,0,0.15);
}
.session-card .icon {
  width: 48px; height: 48px; background: rgba(240,165,0,0.1);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.session-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.session-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* =========================================================
   SPEAKERS / CURATORS GRID
   ========================================================= */
.people-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

.person-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition);
}
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }

.person-card .photo {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; object-position: top;
  background: var(--bg2);
}

.person-card .photo-placeholder {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg2), var(--border));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--text-muted);
}

.person-card .info { padding: 20px; }
.person-card .info h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.person-card .info .role { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.person-card .info .company { font-size: 13px; color: var(--text-muted); }

/* =========================================================
   PHOTO GALLERY
   ========================================================= */
.gallery-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px;
}
.gallery-tab {
  padding: 8px 20px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg2);
  color: var(--text); cursor: pointer; font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.gallery-tab.active, .gallery-tab:hover {
  background: var(--accent); border-color: var(--accent); color: #000;
}

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3; cursor: pointer;
  background: var(--bg2);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 32px;
}
.gallery-item:hover .overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center;
  z-index: 9000; padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 36px; color: #fff; cursor: pointer;
  line-height: 1; background: none; border: none;
}
.lightbox-close:hover { color: var(--accent); }

/* =========================================================
   PARTNERS
   ========================================================= */
.partners-section { padding: 80px 0; }
.partner-type-title {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 32px; text-align: center;
}
.partners-logo-grid {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: center; align-items: center;
  margin-bottom: 56px;
}
.partner-logo-item {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 24px;
  transition: var(--transition); display: flex; align-items: center;
  max-width: 160px;
}
.partner-logo-item:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(240,165,0,0.15); }
.partner-logo-item img { max-height: 48px; object-fit: contain; filter: grayscale(1); transition: var(--transition); }
.partner-logo-item:hover img { filter: grayscale(0); }
.partner-logo-placeholder {
  font-size: 13px; font-weight: 700; color: var(--text-muted); text-align: center; width: 100%;
}

/* =========================================================
   AUDIENCE SECTION
   ========================================================= */
.audience-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.audience-item {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px;
  text-align: center; transition: var(--transition);
}
.audience-item:hover { border-color: var(--accent); }
.audience-item .icon { font-size: 36px; margin-bottom: 14px; }
.audience-item p { font-size: 15px; font-weight: 600; }

/* =========================================================
   JOURNEY / TIMELINE
   ========================================================= */
.journey-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.journey-item {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px; text-align: center;
  transition: var(--transition);
}
.journey-item:hover, .journey-item.current {
  background: var(--accent); border-color: var(--accent); color: #000;
}
.journey-item h4 { font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.journey-item p { font-size: 13px; opacity: 0.75; }

/* =========================================================
   REGISTRATION FORM
   ========================================================= */
.form-section { padding: 100px 0; background: var(--bg2); }
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 15px; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,165,0,0.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-success, .form-error {
  padding: 14px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; font-weight: 600;
}
.form-success { background: rgba(76,175,80,0.15); border: 1px solid rgba(76,175,80,0.4); color: #4caf50; }
.form-error { background: rgba(244,67,54,0.15); border: 1px solid rgba(244,67,54,0.4); color: #f44336; }

/* =========================================================
   PAGE HERO (Inner pages)
   ========================================================= */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(240,165,0,0.1) 0%, transparent 60%);
}
.page-hero h1 {
  font-size: clamp(36px, 6vw, 72px); font-weight: 900;
  letter-spacing: -2px; margin-bottom: 16px;
}
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 14px; color: var(--text-muted); margin-top: 20px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--footer-bg); color: var(--footer-text);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
}
.footer-brand .logo { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 16px; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { font-size: 14px; line-height: 1.7; opacity: 0.7; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; transition: var(--transition);
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: #000; }

.footer-col h5 { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--footer-text); opacity: 0.7; transition: var(--transition); }
.footer-col ul li a:hover { opacity: 1; color: var(--accent); }
.footer-contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 14px; opacity: 0.8; }
.footer-contact-item .icon { font-size: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; opacity: 0.6; flex-wrap: wrap; gap: 12px;
}

/* =========================================================
   ALERT / NOTICE BAR
   ========================================================= */
.notice-bar {
  background: var(--accent); color: #000;
  text-align: center; padding: 10px 24px;
  font-size: 14px; font-weight: 600;
  position: relative; z-index: 999;
}

/* =========================================================
   UTILITY
   ========================================================= */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.badge-gold { background: rgba(240,165,0,0.15); color: var(--accent); }
.badge-dark { background: var(--text); color: var(--bg); }

/* =========================================================
   PRELOADER
   ========================================================= */
#preloader {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 48px; height: 48px; border-radius: 50%;
  border: 4px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   SCROLL TO TOP
   ========================================================= */
#scroll-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #000; border: none;
  cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(240,165,0,0.4);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: var(--transition); z-index: 500;
}
#scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#scroll-top:hover { background: var(--accent2); transform: translateY(-2px); }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-content h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -1px; margin-bottom: 24px; }
.about-content p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.about-image img { border-radius: 16px; box-shadow: var(--shadow); }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.value-item { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.value-item .icon { font-size: 28px; margin-bottom: 10px; }
.value-item h5 { font-weight: 700; margin-bottom: 6px; }
.value-item p { font-size: 14px; color: var(--text-muted); }

/* =========================================================
   PAST SPEAKERS PAGE
   ========================================================= */
.year-filter {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px;
}
.year-btn {
  padding: 8px 22px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg2);
  color: var(--text); cursor: pointer; font-size: 14px; font-weight: 600;
  transition: var(--transition);
}
.year-btn.active, .year-btn:hover {
  background: var(--accent); border-color: var(--accent); color: #000;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { display: none; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--nav-bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 0; max-height: calc(100vh - 72px);
    overflow-y: auto;
    transform: translateX(-100%); transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li > a { padding: 12px 24px; border-radius: 0; }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-top: 1px solid var(--border); border-radius: 0; display: none; }
  .nav-links > li.dropdown-open .nav-dropdown { display: block; }

  .hero { padding: 100px 24px 60px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .about-values { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .people-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
