/* =========================================================
   Varanasi Diabetes Association — Custom Styles
   ========================================================= */

:root {
  --navy:    #0F2454;
  --royal:   #1B4F8A;
  --saffron: #E85D04;
  --gold:    #C9A227;
  --cream:   #F8F6F0;
  --dark:    #1A1A2E;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

/* Anchor scroll offset — clears the fixed header (≈80px) on all anchor targets */
section[id], footer[id] {
  scroll-margin-top: 80px;
}

body { font-family: 'Inter', sans-serif; background: var(--cream); color: #2d2d2d; }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #e8e4dc; }
::-webkit-scrollbar-thumb { background: var(--royal); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* ---------- Announcement bar ---------- */
.announce-bar {
  background: linear-gradient(90deg, var(--saffron) 0%, #c04a00 100%);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* ---------- Site Header wrapper ---------- */
#site-header {
  transition: box-shadow 0.4s ease;
}
#site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

/* ---------- Navbar ---------- */
#navbar {
  background: transparent;
  transition: background 0.4s ease;
}
#navbar.scrolled {
  background: rgba(15, 36, 84, 0.97);
  backdrop-filter: blur(12px);
}

/* Hide announce bar once scrolled to keep header compact */
#site-header.scrolled .announce-bar {
  display: none;
}
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero-section {
  background: linear-gradient(145deg, #060f24 0%, var(--navy) 40%, #163972 80%, #0a1e44 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
/* subtle circuit/mandala overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,162,39,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(232,93,4,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-badge {
  background: rgba(232,93,4,0.15);
  border: 1px solid rgba(232,93,4,0.4);
  color: #ffb38a;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 4px 16px;
  display: inline-block;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.hero-year {
  -webkit-text-stroke: 2px var(--saffron);
  color: transparent;
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  line-height: 0.9;
  display: block;
}

.hero-info-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 8px 20px;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-info-pill i { color: var(--gold); }

.btn-primary {
  background: linear-gradient(135deg, var(--saffron) 0%, #c04a00 100%);
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,93,4,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* Countdown */
.countdown-unit {
  text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 80px;
}
.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.event-concluded-pill {
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold);
  border-radius: 100px;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Ghats SVG */
.ghats-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none; /* decorative only — clicks pass through to content */
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Section headings ---------- */
.section-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--saffron);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.section-divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 2px;
  margin: 16px 0;
}
.section-divider.center { margin: 16px auto; }

/* ---------- About ---------- */
.quote-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: '"';
  position: absolute;
  top: -20px; left: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 10rem;
  color: rgba(255,255,255,0.06);
  line-height: 1;
}

/* ---------- Topic cards ---------- */
.topic-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.topic-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.topic-card:hover {
  border-color: var(--royal);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(27,79,138,0.12);
}
.topic-card:hover::after { transform: scaleX(1); }
.topic-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(27,79,138,0.1), rgba(232,93,4,0.08));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.topic-icon i { font-size: 1.5rem; color: var(--royal); }

/* ---------- Committee ---------- */
.committee-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.committee-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(15,36,84,0.15);
}
.committee-avatar {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 700;
}
.committee-card-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  padding: 32px 24px 48px;
  text-align: center;
  position: relative;
}
.committee-card-body {
  padding: 24px;
  text-align: center;
  margin-top: -32px;
  position: relative;
}

/* ---------- Speakers ---------- */
.speaker-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e8e4dc;
}
.speaker-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15,36,84,0.12);
}
.speaker-avatar {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 auto 16px;
}
.speaker-tag {
  background: rgba(27,79,138,0.08);
  color: var(--royal);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ---------- Programme ---------- */
.programme-session {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid rgba(232,93,4,0.25);
  margin-left: 8px;
}
/* dot auto-attached to each card — no more absolute-positioned divs */
.programme-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--saffron);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
  position: relative;
}
.programme-card::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 18px;
  width: 12px; height: 12px;
  background: var(--saffron);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(232,93,4,0.2);
  z-index: 1;
}
.programme-card.gold-card::before {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.2);
}
.programme-card:hover {
  box-shadow: 0 6px 24px rgba(27,79,138,0.12);
}
.programme-time {
  font-size: 0.75rem;
  color: var(--saffron);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.programme-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
.programme-speaker {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 2px;
}
.session-header {
  background: linear-gradient(135deg, var(--navy), var(--royal));
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Registration ---------- */
.reg-section {
  background: linear-gradient(160deg, #f0ece4 0%, var(--cream) 100%);
}
.reg-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(15,36,84,0.10);
  overflow: hidden;
}
.reg-sidebar {
  background: linear-gradient(160deg, var(--navy) 0%, var(--royal) 100%);
}
.reg-fee-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.reg-fee-type {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}
.reg-fee-amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1a1a2e;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: 'Inter', sans-serif;
}
.form-input:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 4px rgba(27,79,138,0.1);
}
.form-input.error { border-color: #ef4444; }

.submit-btn {
  background: linear-gradient(135deg, var(--saffron) 0%, #c04a00 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 10px;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,93,4,0.4);
}
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#form-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
}
#form-success.show { display: block; }

/* ---------- Venue ---------- */
.venue-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.venue-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,162,39,0.08) 0%, transparent 60%);
}
.venue-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.venue-icon {
  width: 40px; height: 40px;
  background: rgba(232,93,4,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.venue-icon i { color: var(--saffron); font-size: 1rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,36,84,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#lightbox.active { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
#lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
#lightbox-close:hover { color: var(--saffron); }

/* ---------- Event Cards ---------- */
.event-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #e8e4dc;
  transition: transform 0.3s, box-shadow 0.3s;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15,36,84,0.12);
  border-color: var(--royal);
}
.event-card-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.event-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,162,39,0.12), transparent 60%);
  pointer-events: none;
}
.event-concluded-badge {
  display: inline-block;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  color: #4ade80;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.event-coming-badge {
  display: inline-block;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.event-card-body {
  padding: 28px;
}
.event-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 0.875rem;
}
.event-detail-row i {
  color: var(--saffron);
  width: 16px;
  flex-shrink: 0;
}

/* ---------- Upcoming Event Teaser ---------- */
.teaser-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.teaser-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(201,162,39,0.07), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(232,93,4,0.05), transparent 40%);
  pointer-events: none;
}

/* ---------- Sponsors ---------- */
.sponsor-chip {
  background: #fff;
  border: 2px solid #e8e4dc;
  border-radius: 12px;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--royal);
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  min-height: 80px;
}
.sponsor-chip:hover {
  border-color: var(--royal);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27,79,138,0.12);
}
.sponsor-chip.gold-sponsor {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fffbef, #fff);
}
.sponsor-chip.gold-sponsor:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(201,162,39,0.2);
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(160deg, #060f24 0%, var(--navy) 100%);
}
.footer-link {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-link:hover { color: var(--gold); }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  text-decoration: none;
}
.social-btn:hover {
  background: var(--saffron);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Mobile nav ---------- */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(15,36,84,0.98);
  backdrop-filter: blur(16px);
}
#mobile-menu.open { transform: translateX(0); }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 10000;
  background: var(--navy);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
}
#toast.success { border-left: 4px solid #22c55e; }
#toast.error { border-left: 4px solid #ef4444; }

/* ---------- Utilities ---------- */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.float { animation: float 5s ease-in-out infinite; }

.text-gradient {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- AOS overrides ---------- */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ---------- Responsive helpers ---------- */
@media (max-width: 768px) {
  .hero-year { font-size: 5rem; }
  .hero-title { font-size: 2rem; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .countdown-num { font-size: 1.8rem; }
}
