/* ============================================================
   HematoForum 2026 — Main Stylesheet
   Dark Premium Theme with Blood/Medical accent colours
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Backgrounds */
  --bg-primary: #0a0a1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1e1e3a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-strong: rgba(255, 255, 255, 0.1);

  /* Accent colours — hematology / blood / medical */
  --accent-primary: #dc2626;
  --accent-primary-glow: rgba(220, 38, 38, 0.35);
  --accent-secondary: #ef4444;
  --accent-tertiary: #8b5cf6;
  --accent-purple: #a855f7;
  --accent-gold: #f59e0b;

  /* Section colours */
  --section-clinical: #3b82f6;
  --section-onco: #ef4444;
  --section-trans: #10b981;
  --section-pediatric: #f59e0b;
  --section-lab: #8b5cf6;

  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #0f172a;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 40%, #2d0a0a 100%);
  --gradient-accent: linear-gradient(135deg, #dc2626, #8b5cf6);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  --gradient-btn: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --gradient-btn-hover: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--accent-primary-glow);

  /* Header scrolled bg */
  --header-scrolled-bg: rgba(10, 10, 26, 0.85);
  --map-filter: grayscale(0.6) invert(0.92) contrast(0.9);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --container-max: 1280px;
  --section-padding: 100px 0;
  --card-radius: 16px;
  --card-radius-sm: 12px;
  --btn-radius: 12px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
  /* Backgrounds */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.04);
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-strong: rgba(0, 0, 0, 0.06);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-dark: #0f172a;

  /* Borders */
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.2);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #f1f5f9 0%, #ede9fe 40%, #fee2e2 100%);
  --gradient-card: linear-gradient(145deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);

  /* Shadows — softer for light */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(220, 38, 38, 0.12);

  --accent-primary-glow: rgba(220, 38, 38, 0.15);
  --header-scrolled-bg: rgba(255, 255, 255, 0.85);
  --map-filter: none;
}

/* Adjust specific elements for light theme */
[data-theme="light"] .hero-deco .cell {
  border-color: rgba(220, 38, 38, 0.08);
}

[data-theme="light"] .speaker-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .speaker-avatar-placeholder {
  background: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .mobile-nav {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .mobile-nav a {
  color: #475569;
}

[data-theme="light"] .mobile-nav a:hover {
  color: var(--accent-primary);
}

[data-theme="light"] .lang-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .footer-social-link {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .section-card-icon {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .gallery-placeholder {
  background: #e2e8f0;
}

[data-theme="light"] .btn-outline {
  border-color: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(220, 38, 38, 0.06);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f1f5f9;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

/* ---------- Theme Toggle Button ---------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-glass);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-left: 8px;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--bg-glass-strong);
  transform: scale(1.05);
}

/* Smooth theme transition */
html {
  transition: background-color 0.4s ease, color 0.4s ease;
}

body,
.header,
.header.scrolled,
.footer,
.about-section,
.sections-area,
.speakers-section,
.gallery-section,
.map-section,
.register-section,
.contact-section,
.sponsors-page-hero,
.sponsors-section {
  transition: background 0.4s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: var(--gradient-accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ---------- Header / Navbar ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  height: 44px;
  width: auto;
}

.header-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.header-logo-text span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 4px;
  margin-left: 20px;
}

.lang-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 7px;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
  color: var(--text-primary);
  background: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(135deg,
      rgba(10, 10, 26, 0.88) 0%,
      rgba(26, 10, 46, 0.85) 40%,
      rgba(45, 10, 10, 0.82) 100%),
    url('../assets/images/backgrounds/background.jpg') center / cover no-repeat;
  overflow: hidden;
  padding: 120px 0 80px;
}

[data-theme="light"] .hero {
  background:
    linear-gradient(135deg,
      rgba(241, 245, 249, 0.88) 0%,
      rgba(237, 233, 254, 0.85) 40%,
      rgba(254, 226, 226, 0.82) 100%),
    url('../assets/images/backgrounds/background.jpg') center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite reverse;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Decorative blood cells */
.hero-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-deco .cell {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(220, 38, 38, 0.15);
  animation: float 15s ease-in-out infinite;
}

.hero-deco .cell:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 15%;
  right: 8%;
  animation-delay: 0s;
}

.hero-deco .cell:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 15%;
  animation-delay: -3s;
  border-color: rgba(139, 92, 246, 0.12);
}

.hero-deco .cell:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 30%;
  left: 5%;
  animation-delay: -6s;
}

.hero-deco .cell:nth-child(4) {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 10%;
  animation-delay: -9s;
  border-color: rgba(139, 92, 246, 0.1);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-20px) rotate(120deg);
  }

  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero h1 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.hero h1 .accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-meta-item .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--btn-radius);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.45);
}

.btn-outline {
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(220, 38, 38, 0.1);
  transform: translateY(-2px);
}

/* ---------- Countdown Timer ---------- */
.countdown {
  margin-top: 48px;
}

.countdown-grid {
  display: flex;
  gap: 16px;
}

.countdown-item {
  text-align: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius-sm);
  padding: 16px 20px;
  min-width: 80px;
  backdrop-filter: blur(10px);
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- About Section ---------- */
.about-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Sections / Tracks ---------- */
.sections-area {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.section-card {
  position: relative;
  padding: 32px 24px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--section-color, var(--accent-primary));
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.section-card:hover {
  border-color: var(--section-color, var(--accent-primary));
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.section-card:hover::before {
  opacity: 1;
}

.section-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 1.5rem;
}

.section-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.section-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Speakers Section ---------- */
.speakers-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

/* Filter Tabs */
.speakers-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  background: transparent;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-glass);
}

.filter-btn.active {
  color: #fff;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Speaker Cards Grid */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.speaker-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.speaker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--section-color, var(--accent-primary));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.speaker-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-card-hover);
}

.speaker-card:hover::before {
  opacity: 1;
}

.speaker-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid var(--border-subtle);
  transition: border-color var(--transition-base);
  position: relative;
}

.speaker-card:hover .speaker-avatar {
  border-color: var(--section-color, var(--accent-primary));
}

.speaker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Default avatar placeholder */
.speaker-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  font-size: 2rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
}

.speaker-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.speaker-topic {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  min-height: 40px;
}

.speaker-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.speaker-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 20px;
}

.speaker-section-badge {
  display: inline-flex;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: var(--section-color, var(--accent-primary));
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.speakers-show-more {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Gallery Section ---------- */
.gallery-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--card-radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay span {
  font-size: 2rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--card-radius);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Gallery placeholder */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 0.8rem;
  gap: 8px;
}

.gallery-placeholder .icon {
  font-size: 2rem;
  opacity: 0.5;
}

/* ---------- Map Section ---------- */
.map-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.map-wrapper {
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: none;
  filter: grayscale(0.6) invert(0.92) contrast(0.9);
}

.map-info {
  text-align: center;
  margin-top: 24px;
}

.map-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.map-info .icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

/* ---------- Registration Section ---------- */
.register-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
}

.register-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
}

.register-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 48px;
  position: relative;
  backdrop-filter: blur(10px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-submit {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.form-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 12px;
  border-radius: var(--card-radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-message.error {
  display: block;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #ef4444;
}

/* ---------- Contact Section (footer area) ---------- */
.contact-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.contact-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 30px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-logo img {
  height: 36px;
}

.footer-brand-logo span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-item .icon {
  font-size: 1rem;
  min-width: 20px;
  text-align: center;
  color: var(--accent-primary);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Sponsors Page ---------- */
.sponsors-page-hero {
  padding: 140px 0 60px;
  background: var(--gradient-hero);
  text-align: center;
}

.sponsors-page-hero h1 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.sponsors-page-hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
}

.sponsors-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.sponsors-category {
  margin-bottom: 64px;
}

.sponsors-category:last-child {
  margin-bottom: 0;
}

.sponsors-category-title {
  text-align: center;
  margin-bottom: 36px;
}

.sponsors-category-title h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.sponsors-category-title .line {
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* General sponsor — full width */
.sponsors-grid-general {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.sponsor-card-general {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background: var(--gradient-card);
  border: 2px solid var(--accent-gold);
  border-radius: var(--card-radius);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.1);
}

.sponsor-card-general .sponsor-logo {
  width: 180px;
  height: 120px;
}

/* Gold sponsors — 3 columns */
.sponsors-grid-gold {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Silver sponsors — 4 columns */
.sponsors-grid-silver {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Info partners — logos in a row */
.sponsors-grid-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.sponsor-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition-base);
}

.sponsor-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-card-hover);
}

.sponsor-logo {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--card-radius-sm);
  overflow: hidden;
}

.sponsor-logo img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.sponsor-logo-placeholder {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
}

.sponsor-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sponsor-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.sponsor-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: gap var(--transition-fast);
}

.sponsor-link:hover {
  gap: 10px;
}

/* Info partner card (minimal) */
.sponsor-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius-sm);
  transition: all var(--transition-base);
  min-width: 150px;
}

.sponsor-card-info:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
}

.sponsor-card-info .sponsor-logo {
  width: 100px;
  height: 60px;
  margin: 0;
}

.sponsor-card-info .sponsor-name {
  font-size: 0.85rem;
}

/* ---------- Registration & Contact Sections ---------- */
.register-section,
.contact-section {
  padding: var(--section-padding);
}

.register-section {
  background: var(--bg-secondary);
}

.contact-section {
  background: var(--bg-primary);
}

.register-form-wrapper,
.contact-form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width,
.form-submit.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--card-radius-sm);
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
  outline: none;
}

/* Select dropdown — explicitly style options for visibility */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: #ffffff;
  color: #1e293b;
  padding: 8px 12px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-submit {
  margin-top: 8px;
}

.form-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 12px;
  border-radius: var(--card-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Light theme form adjustments */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

[data-theme="light"] .register-form-wrapper,
[data-theme="light"] .contact-form-wrapper {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* Speakers show more */
.speakers-show-more {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--accent-primary);
  color: #fff;
}

/* ---------- Mobile Nav Overlay ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--accent-primary);
}

.mobile-nav .lang-switcher {
  margin-left: 0;
  margin-top: 16px;
}

/* ---------- Utility Classes ---------- */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent-primary);
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}