/* ========================================
   BDG EVENTS CHENNAI — Violet Modern Theme
   ======================================== */

:root {
  --violet-50: #f3f0ff;
  --violet-100: #e9e0ff;
  --violet-200: #d5c4ff;
  --violet-300: #b8a0ff;
  --violet-400: #9b7aff;
  --violet-500: #7c5cfc;
  --violet-600: #6344e0;
  --violet-700: #5033b8;
  --violet-800: #402894;
  --violet-900: #35207a;
  --violet-950: #1a0e4a;

  --bg-primary: #080415;
  --bg-secondary: #0e0824;
  --bg-card: rgba(16, 10, 40, 0.75);
  --bg-glass: rgba(99, 68, 224, 0.08);

  --text-primary: #eee8ff;
  --text-secondary: #a89bd4;
  --text-muted: #6a5f96;

  --accent: #7c5cfc;
  --accent-glow: rgba(100, 70, 240, 0.45);
  --accent-light: #a99bfa;

  --border: rgba(100, 70, 240, 0.15);
  --border-hover: rgba(100, 70, 240, 0.35);

  --success: #34d399;
  --warning: #fbbf24;
  --error: #f87171;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--violet-700);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--violet-600); }

/* Particles Canvas */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: rgba(10, 6, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(140, 110, 255, 0.6)) brightness(1.6);
  margin: -8px 0;
}

.brand-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.brand-text {
  color: var(--text-primary);
}

.brand-location {
  color: var(--accent-light);
  font-weight: 500;
  font-size: 0.75rem;
  background: rgba(124, 58, 237, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #7c5cfc, #5a32c8);
  color: white;
  box-shadow: 0 4px 20px rgba(100, 70, 240, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(100, 70, 240, 0.55);
  background: linear-gradient(135deg, #9b7aff, #6344e0);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
  background: var(--bg-glass);
  border-color: var(--accent);
}

.btn-register {
  background: linear-gradient(135deg, var(--violet-500), var(--violet-600));
  color: white;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-back {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-light);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

.btn-back:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--accent);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 4rem;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  background: linear-gradient(135deg, #eee8ff, #c8b8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-accent {
  display: block;
  background: linear-gradient(135deg, #9b7aff, #6344e0, #5a32c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #c8b8ff, #7c5cfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero Glow Orbs */
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(90, 50, 200, 0.25), rgba(50, 30, 140, 0.08));
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(120, 70, 230, 0.18), rgba(70, 40, 160, 0.05));
  top: 45%;
  right: 25%;
  animation-delay: 2s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(150, 100, 250, 0.12), rgba(80, 50, 180, 0.04));
  top: 25%;
  right: 48%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Meteor Shower */
.meteors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.meteor {
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.1), rgba(255,255,255,0.4), rgba(200,210,255,0.7));
  border-radius: 0 0 2px 2px;
  transform: rotate(-35deg);
  animation: meteorFall 3.5s ease-in forwards;
  opacity: 0;
}

@keyframes meteorFall {
  0% { opacity: 0; transform: rotate(-35deg) translateY(0); }
  8% { opacity: 1; }
  70% { opacity: 0.4; }
  100% { opacity: 0; transform: rotate(-35deg) translateY(600px); }
}

/* Hero Bottom Bridge */
.hero-bridge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-bridge svg {
  display: block;
  width: 100%;
  height: 180px;
}

/* ============ SECTIONS COMMON ============ */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-light);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  padding: 0.35rem 1rem;
  border-radius: 30px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #eee8ff, #c0aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ============ EVENTS SECTION ============ */
.events-section {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.event-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: var(--transition);
  overflow: hidden;
}

.event-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.event-card.featured {
  border-color: rgba(100, 70, 240, 0.3);
  background: linear-gradient(
    135deg,
    rgba(90, 50, 200, 0.1),
    rgba(60, 30, 150, 0.05)
  );
}

.card-glow {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c5cfc, transparent);
  opacity: 0;
  transition: var(--transition);
}

.event-card:hover .card-glow {
  opacity: 1;
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--violet-300);
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.card-icon {
  width: 64px;
  height: 64px;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.card-icon.muted {
  color: var(--text-muted);
}

.card-content {
  display: flex;
  flex-direction: column;
}

.card-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.coming-soon {
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 350px;
}

.coming-soon .card-icon {
  margin-bottom: 1rem;
}

.coming-soon .card-title {
  font-size: 1.2rem;
}

.card-status {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--accent-light);
  cursor: pointer;
  transition: var(--transition);
}

.card-status:hover {
  color: var(--text-primary);
}

/* ============ EVENT DETAIL VIEW ============ */
.event-detail {
  display: none;
  position: relative;
  z-index: 1;
  padding: 7rem 3rem 4rem;
  min-height: 100vh;
}

.event-detail.active {
  display: block;
}

.detail-header {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.detail-header .section-tag {
  margin-bottom: 0.75rem;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--violet-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meta-icon {
  font-size: 1.1rem;
}

.detail-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 1.5rem;
  max-width: 700px;
}

/* Module Navigation */
.modules-nav {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.module-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.module-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.module-tab.active {
  background: rgba(90, 50, 200, 0.25);
  border-color: #7c5cfc;
  color: var(--text-primary);
}

/* Module Content */
.modules-container {
  max-width: 900px;
  margin: 0 auto;
}

.module-panel {
  display: none;
  animation: fadeSlideIn 0.4s ease;
}

.module-panel.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.module-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}

.module-block:hover {
  border-color: var(--border-hover);
}

.module-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  background: rgba(124, 58, 237, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.module-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.module-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.module-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.module-text em {
  color: var(--accent-light);
  font-style: italic;
}

/* Resource Links */
.resources-box {
  background: rgba(90, 50, 200, 0.08);
  border: 1px solid rgba(100, 70, 240, 0.18);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.resources-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.resource-link:last-child {
  border-bottom: none;
}

.resource-link:hover {
  color: var(--accent-light);
}

.resource-dot {
  width: 6px;
  height: 6px;
  background: #7c5cfc;
  border-radius: 50%;
  flex-shrink: 0;
}

.resource-link svg {
  margin-left: auto;
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
}

.resource-link:hover svg {
  opacity: 1;
  transform: translateX(0);
}

/* Key Takeaway */
.takeaway {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.06), rgba(52, 211, 153, 0.02));
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.takeaway-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.takeaway-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.takeaway-text strong {
  color: var(--success);
}

/* Register CTA in detail */
.detail-register {
  max-width: 900px;
  margin: 3rem auto 0;
  background: linear-gradient(135deg, rgba(90, 50, 200, 0.12), rgba(60, 30, 150, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.detail-register-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.detail-register-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============ ABOUT SECTION ============ */
.about-section {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: left;
  transition: var(--transition);
}

.feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ CONTACT SECTION ============ */
.contact-section {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
}

.contact-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.contact-role {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(100, 70, 240, 0.12);
  border: 1px solid rgba(100, 70, 240, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* ============ FAQ CHAT ============ */
.faq-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.faq-msg.user {
  flex-direction: row-reverse;
}

.faq-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(124, 92, 252, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.faq-msg.user .faq-avatar {
  background: rgba(100, 70, 240, 0.25);
}

.faq-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 80%;
  backdrop-filter: blur(10px);
}

.faq-msg.user .faq-bubble {
  background: rgba(100, 70, 240, 0.12);
  border-color: rgba(100, 70, 240, 0.25);
  color: var(--text-primary);
}

.faq-typing {
  display: flex;
  gap: 4px;
  padding: 0.5rem 0;
}

.faq-typing span {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: faqBounce 1.2s ease-in-out infinite;
}

.faq-typing span:nth-child(2) { animation-delay: 0.15s; }
.faq-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes faqBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ============ MODAL ============ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.15);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.modal-header p {
  color: var(--accent-light);
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23a89ec8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.success-message {
  text-align: center;
  padding: 1rem 0;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.success-message h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.success-message p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ============ WAVE DIVIDERS ============ */
.wave-divider {
  position: relative;
  z-index: 0;
  width: 100%;
  margin: -4rem 0;
  pointer-events: none;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 120px;
}

.wave-divider.wave-down {
  margin: 0 0 -3rem;
}

@media (max-width: 600px) {
  .wave-divider svg { height: 80px; }
  .wave-divider { margin: -2rem 0; }
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(100, 70, 240, 0.3));
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .hero-title { font-size: 3rem; }
  .title-accent { font-size: 3.5rem; }

  .about-features,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .detail-register {
    flex-direction: column;
    text-align: center;
  }

  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-title { font-size: 2.2rem; }
  .title-accent { font-size: 2.6rem; }
  .hero-stats { gap: 1.5rem; }
  .events-section,
  .about-section,
  .contact-section { padding: 4rem 1.5rem; }
  .section-title { font-size: 1.8rem; }
  .module-block { padding: 1.5rem; }
  .detail-title { font-size: 2rem; }
  .detail-meta { flex-direction: column; gap: 0.75rem; }
  .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}
