/* ResearchReel Website - Dark Elegant Theme v3 */
/* Inspired by Zachariah: dark prince, sharp edges, gold & silver accents, vibrant starfire */
/* Color additions from Zachariah palette: #42479e, #6e26e0, #4f4ccf */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Primary deep blue — the anchor */
  --primary: #392D8A;
  --primary-light: #4E42A4;
  --primary-glow: #5B4FC7;

  /* Zachariah accent purples */
  --violet: #6e26e0;
  --violet-light: #8B4EF0;
  --violet-dim: rgba(110, 38, 224, 0.15);
  --violet-glow: rgba(110, 38, 224, 0.2);
  --indigo-bright: #4f4ccf;
  --indigo-bright-dim: rgba(79, 76, 207, 0.15);
  --indigo-bright-glow: rgba(79, 76, 207, 0.2);
  --indigo-mid: #42479e;
  --indigo-mid-dim: rgba(66, 71, 158, 0.12);

  /* Gold & Silver highlights */
  --accent: #C9A84C;
  --accent-light: #E8D5A0;
  --accent-dim: rgba(201, 168, 76, 0.15);
  --silver: #B8C0D8;
  --silver-light: #D8DDF0;
  --silver-dim: rgba(184, 192, 216, 0.1);
  --silver-glow: rgba(184, 192, 216, 0.15);

  /* Bright particle colors */
  --light-blue: #6B8FD8;
  --light-blue-bright: #8DB4F0;
  --light-purple: #9878E0;
  --light-purple-bright: #B898F0;
  --ice-blue: #8EA8D8;
  --lavender: #A898D8;

  /* Backgrounds — layered for depth */
  --bg: #0D0D14;
  --bg-elevated: #151520;
  --bg-card: #181828;
  --bg-hover: #1E1E30;
  --bg-section-alt: #12121E;
  --bg-tint-indigo: rgba(66, 71, 158, 0.06);
  --bg-tint-violet: rgba(110, 38, 224, 0.04);
  --bg-tint-blue: rgba(79, 76, 207, 0.05);

  /* Text */
  --text: #E0E0EC;
  --text-dim: #A8A8C0;
  --text-muted: #6B6B8A;

  /* Borders */
  --border: #2A2A40;
  --border-gold: rgba(201, 168, 76, 0.3);
  --border-silver: rgba(184, 192, 216, 0.2);
  --border-violet: rgba(110, 38, 224, 0.3);
  --border-indigo-bright: rgba(79, 76, 207, 0.3);

  /* Status */
  --success: #5BCC92;
  --error: #E06C75;

  /* Glows */
  --glow-purple: 0 0 40px rgba(57, 45, 138, 0.2);
  --glow-violet: 0 0 30px rgba(110, 38, 224, 0.15);
  --glow-gold: 0 0 30px rgba(201, 168, 76, 0.1);
  --glow-silver: 0 0 30px rgba(184, 192, 216, 0.08);
  --glow-ice: 0 0 30px rgba(142, 168, 216, 0.08);
  --glow-indigo-bright: 0 0 30px rgba(79, 76, 207, 0.12);

  /* Radius & transitions */
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
}

/* ===== STARFIELD CANVAS ===== */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Sit content above starfield */
.navbar,
.hero,
.section,
.page-header,
.footer,
.passcode-screen,
.toast-container,
.modal-overlay {
  position: relative;
  z-index: 1;
}

/* ===== CSS FALLBACK STARS — brighter, more blue/purple ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background:
    /* light blue dots — bigger, brighter */
    radial-gradient(1.5px 1.5px at 10% 8%,  var(--light-blue-bright), transparent),
    radial-gradient(1.5px 1.5px at 22% 15%, var(--light-blue), transparent),
    radial-gradient(2px 2px at 35% 5%,  var(--light-blue-bright), transparent),
    radial-gradient(1.5px 1.5px at 48% 22%, var(--light-blue), transparent),
    radial-gradient(1px 1px at 55% 10%, var(--ice-blue), transparent),
    radial-gradient(1.5px 1.5px at 68% 18%, var(--light-blue-bright), transparent),
    radial-gradient(1px 1px at 75% 7%,  var(--light-blue), transparent),
    radial-gradient(1.5px 1.5px at 85% 25%, var(--light-blue-bright), transparent),
    radial-gradient(1px 1px at 92% 12%, var(--ice-blue), transparent),
    /* light purple dots — bigger, brighter */
    radial-gradient(2px 2px at 15% 35%, var(--light-purple-bright), transparent),
    radial-gradient(1.5px 1.5px at 30% 40%, var(--light-purple), transparent),
    radial-gradient(2px 2px at 50% 32%, var(--light-purple-bright), transparent),
    radial-gradient(1.5px 1.5px at 65% 38%, var(--light-purple), transparent),
    radial-gradient(2px 2px at 80% 42%, var(--light-purple-bright), transparent),
    /* lavender accents */
    radial-gradient(1.5px 1.5px at 8% 55%,  var(--lavender), transparent),
    radial-gradient(2px 2px at 25% 60%, var(--lavender), transparent),
    radial-gradient(1.5px 1.5px at 42% 52%, var(--lavender), transparent),
    radial-gradient(2px 2px at 60% 58%, var(--lavender), transparent),
    radial-gradient(1.5px 1.5px at 78% 50%, var(--lavender), transparent),
    /* deeper layer dots */
    radial-gradient(1px 1px at 18% 70%, var(--light-blue), transparent),
    radial-gradient(1px 1px at 38% 75%, var(--light-purple), transparent),
    radial-gradient(1px 1px at 55% 68%, var(--light-blue), transparent),
    radial-gradient(1px 1px at 72% 78%, var(--light-purple), transparent),
    radial-gradient(1px 1px at 90% 65%, var(--light-blue), transparent),
    radial-gradient(1px 1px at 12% 85%, var(--lavender), transparent),
    radial-gradient(1px 1px at 45% 88%, var(--light-blue), transparent);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

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

a:hover {
  color: var(--accent-light);
}

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

/* ===== NAVIGATION ===== */
.navbar {
  background: rgba(13, 13, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.navbar-logo span {
  background: linear-gradient(135deg, var(--indigo-bright), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.navbar-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: var(--transition);
  position: relative;
}

.navbar-links a:hover {
  color: var(--violet-light);
}

.navbar-links a.active {
  color: var(--silver-light);
}

.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-bright), var(--violet), var(--silver));
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(110, 38, 224, 0.4);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, #1A1535 0%, #121022 50%, var(--bg) 100%);
  color: var(--text);
  padding: 100px 32px 80px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(110, 38, 224, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 50%, rgba(79, 76, 207, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(142, 168, 216, 0.08) 0%, transparent 50%);
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.65; }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo-bright), var(--violet), var(--silver), transparent);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--silver-light) 0%, var(--text) 40%, var(--violet-light) 80%, var(--indigo-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 40px;
  line-height: 1.7;
}

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

/* Gold + Silver divider */
.gold-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--indigo-bright), var(--violet), var(--silver));
  margin: 24px auto;
  opacity: 0.6;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

/* Subtle shimmer on buttons */
.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: none;
}

.btn:hover::after {
  transform: translateX(100%);
  transition: transform 0.8s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--indigo-bright) 100%);
  color: var(--text);
  border: 1px solid rgba(110, 38, 224, 0.25);
  box-shadow:
    0 0 20px rgba(79, 76, 207, 0.2),
    0 0 12px rgba(110, 38, 224, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--indigo-bright) 100%);
  color: var(--text);
  border-color: var(--violet);
  box-shadow:
    0 0 30px rgba(79, 76, 207, 0.3),
    0 0 18px rgba(110, 38, 224, 0.2),
    0 0 12px rgba(184, 192, 216, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.btn-accent {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.1);
}

.btn-accent:hover {
  background: var(--accent-dim);
  color: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow:
    0 0 25px rgba(201, 168, 76, 0.15),
    0 0 15px rgba(184, 192, 216, 0.08);
  transform: translateY(-1px);
}

.btn-silver {
  background: transparent;
  color: var(--silver);
  border: 1px solid var(--border-silver);
  box-shadow: 0 0 15px rgba(184, 192, 216, 0.06);
}

.btn-silver:hover {
  background: var(--silver-dim);
  color: var(--silver-light);
  border-color: var(--silver);
  box-shadow:
    0 0 25px rgba(184, 192, 216, 0.12),
    0 0 15px rgba(142, 168, 216, 0.08);
  transform: translateY(-1px);
}

.btn-violet {
  background: transparent;
  color: var(--violet-light);
  border: 1px solid var(--border-violet);
  box-shadow: 0 0 15px rgba(110, 38, 224, 0.08);
}

.btn-violet:hover {
  background: var(--violet-dim);
  color: var(--violet-light);
  border-color: var(--violet);
  box-shadow:
    0 0 25px rgba(110, 38, 224, 0.2),
    0 0 15px rgba(79, 76, 207, 0.1);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  color: var(--text);
  border-color: var(--violet);
  background: var(--violet-dim);
  box-shadow: 0 0 15px rgba(110, 38, 224, 0.08);
}

.btn-light {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-light:hover {
  background: var(--bg-hover);
  color: var(--silver-light);
  border-color: var(--border-silver);
  box-shadow: var(--glow-silver);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-danger {
  background: rgba(224, 108, 117, 0.15);
  color: var(--error);
  border: 1px solid rgba(224, 108, 117, 0.3);
}

.btn-danger:hover {
  background: rgba(224, 108, 117, 0.25);
  color: #F0A0A8;
  border-color: rgba(224, 108, 117, 0.5);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== SECTION ===== */
.section {
  padding: 80px 0;
  position: relative;
}

/* Alternate section backgrounds for visual variety */
.section-alt {
  background: var(--bg-section-alt);
}

.section-tint-indigo {
  background: var(--bg-tint-indigo);
}

.section-tint-violet {
  background: var(--bg-tint-violet);
}

.section-tint-blue {
  background: var(--bg-tint-blue);
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 76, 207, 0.15), rgba(110, 38, 224, 0.1), transparent);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--silver-light) 0%, var(--text) 50%, var(--violet-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-family: var(--font-body);
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

/* Top accent strip — colorful gradient */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-bright), var(--violet), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.card:hover::after {
  opacity: 0.7;
}

/* Inner gradient shimmer on hover */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(79, 76, 207, 0.05) 0%,
    rgba(110, 38, 224, 0.03) 40%,
    rgba(184, 192, 216, 0.03) 70%,
    rgba(201, 168, 76, 0.02) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: var(--border-violet);
  box-shadow:
    var(--glow-violet),
    var(--glow-indigo-bright),
    var(--glow-silver),
    0 4px 24px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.card-body {
  padding: 28px;
  position: relative;
  z-index: 2;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.card-text {
  font-family: var(--font-body);
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== BADGE / PILL ===== */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: var(--transition);
}

.badge:hover {
  transform: scale(1.03);
}

.badge-subject {
  background: linear-gradient(135deg, rgba(66, 71, 158, 0.25), rgba(110, 38, 224, 0.15));
  color: var(--violet-light);
  border: 1px solid rgba(79, 76, 207, 0.35);
}

.badge-subject:hover {
  box-shadow: 0 0 12px rgba(110, 38, 224, 0.25);
  border-color: var(--violet);
}

.badge-school {
  background: rgba(184, 192, 216, 0.06);
  color: var(--silver);
  border: 1px solid rgba(184, 192, 216, 0.18);
}

.badge-school:hover {
  box-shadow: 0 0 10px rgba(184, 192, 216, 0.12);
}

.badge-status {
  background: rgba(91, 204, 146, 0.1);
  color: var(--success);
  border: 1px solid rgba(91, 204, 146, 0.2);
}

.badge-status-pending {
  background: rgba(201, 168, 76, 0.08);
  color: var(--accent);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-required::after {
  content: ' *';
  color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text);
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow:
    0 0 0 2px rgba(110, 38, 224, 0.1),
    0 0 15px rgba(79, 76, 207, 0.08),
    0 0 20px rgba(142, 168, 216, 0.05);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-error {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 6px;
}

/* ===== FILE UPLOAD ===== */
.file-upload {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
  position: relative;
}

.file-upload:hover,
.file-upload.dragover {
  border-color: var(--violet);
  background: var(--violet-dim);
  box-shadow:
    0 0 20px rgba(110, 38, 224, 0.1),
    0 0 15px rgba(79, 76, 207, 0.06);
}

.file-upload-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.7;
}

.file-upload-text {
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.file-upload-name {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-body);
}

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text);
}

.search-input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow:
    0 0 0 2px rgba(110, 38, 224, 0.1),
    0 0 15px rgba(79, 76, 207, 0.08),
    0 0 20px rgba(142, 168, 216, 0.05);
}

/* ===== FILTER CHIPS ===== */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.chip {
  padding: 8px 20px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.chip:hover {
  border-color: var(--indigo-bright);
  color: var(--silver);
  background: var(--indigo-bright-dim);
  box-shadow: 0 0 12px rgba(79, 76, 207, 0.1);
}

.chip.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--indigo-bright) 100%);
  color: var(--silver-light);
  border-color: var(--violet);
  box-shadow:
    0 0 20px rgba(79, 76, 207, 0.3),
    0 0 10px rgba(110, 38, 224, 0.15);
}

/* ===== PROJECT CARD ===== */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

/* Top accent strip */
.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-bright), var(--violet), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.project-card:hover::after {
  opacity: 0.8;
}

/* Inner glow overlay */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(79, 76, 207, 0.06) 0%,
    rgba(110, 38, 224, 0.04) 35%,
    rgba(184, 192, 216, 0.03) 70%,
    rgba(201, 168, 76, 0.02) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  border-color: var(--border-violet);
  box-shadow:
    var(--glow-violet),
    var(--glow-indigo-bright),
    var(--glow-silver),
    0 6px 28px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}

.project-card-poster {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 3rem;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.project-card-poster::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg-card), transparent);
  pointer-events: none;
}

.project-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-body {
  padding: 24px;
  position: relative;
  z-index: 2;
}

.project-card-subjects {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-card-meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 40px rgba(79, 76, 207, 0.15),
    0 0 20px rgba(110, 38, 224, 0.08),
    0 0 10px rgba(184, 192, 216, 0.04);
  transform: translateY(20px);
  transition: var(--transition);
  position: relative;
}

/* Top accent on modal */
.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-bright), var(--violet), var(--silver), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 3;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 28px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  padding-right: 16px;
  letter-spacing: 0.5px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--violet-light);
}

.modal-body {
  padding: 0 28px 28px;
}

.modal-poster {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: var(--bg);
}

/* ===== SPEAKER CARD ===== */
.speaker-card {
  text-align: center;
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: var(--transition);
  position: relative;
}

/* Top accent */
.speaker-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-bright), var(--violet), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 3;
}

.speaker-card:hover::after {
  opacity: 0.7;
}

.speaker-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(79, 76, 207, 0.05) 0%,
    rgba(110, 38, 224, 0.03) 35%,
    rgba(184, 192, 216, 0.03) 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.speaker-card:hover::before {
  opacity: 1;
}

.speaker-card:hover {
  border-color: var(--border-violet);
  box-shadow:
    var(--glow-violet),
    var(--glow-indigo-bright),
    var(--glow-silver),
    0 8px 30px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

.speaker-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--indigo-bright) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text);
  margin: 0 auto 20px;
  overflow: hidden;
  border: 2px solid var(--border-silver);
  box-shadow:
    0 0 20px rgba(79, 76, 207, 0.2),
    0 0 15px rgba(110, 38, 224, 0.1),
    0 0 10px rgba(184, 192, 216, 0.08);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.speaker-card:hover .speaker-avatar {
  border-color: var(--violet-light);
  box-shadow:
    0 0 30px rgba(79, 76, 207, 0.3),
    0 0 20px rgba(110, 38, 224, 0.2),
    0 0 15px rgba(184, 192, 216, 0.12);
}

.speaker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}

.speaker-role {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--violet-light);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

.speaker-bio {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* ===== ICON CIRCLE (for about page, etc.) ===== */
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-mid) 0%, var(--indigo-bright) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
  box-shadow:
    0 0 15px rgba(79, 76, 207, 0.2),
    0 0 8px rgba(110, 38, 224, 0.1);
  transition: var(--transition);
}

.icon-circle:hover {
  box-shadow:
    0 0 25px rgba(79, 76, 207, 0.3),
    0 0 12px rgba(110, 38, 224, 0.2);
}

/* ===== ADMIN TABLE ===== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
}

.admin-table th {
  background: var(--bg-elevated);
  color: var(--silver);
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--indigo-bright-dim);
  box-shadow: inset 0 0 20px rgba(110, 38, 224, 0.04);
}

.admin-actions {
  display: flex;
  gap: 8px;
}

/* ===== PASSCODE SCREEN ===== */
.passcode-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1A1535 0%, #0D0D14 100%);
  position: relative;
}

.passcode-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background:
    radial-gradient(ellipse, rgba(110, 38, 224, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse at 60% 60%, rgba(79, 76, 207, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 40%, rgba(142, 168, 216, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.passcode-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo-bright), var(--violet), var(--silver), transparent);
  opacity: 0.4;
}

.passcode-box {
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 420px;
  width: 100%;
  box-shadow:
    var(--glow-violet),
    var(--glow-indigo-bright),
    var(--glow-silver),
    0 4px 30px rgba(0,0,0,0.3);
  text-align: center;
}

/* Top accent on passcode box */
.passcode-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-bright), var(--violet), var(--silver));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.passcode-box h2 {
  font-family: var(--font-heading);
  color: var(--text);
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.passcode-box p {
  font-family: var(--font-body);
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 28px;
}

.passcode-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 16px;
  background: var(--bg-card);
  color: var(--text);
  transition: var(--transition);
}

.passcode-input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow:
    0 0 0 2px rgba(110, 38, 224, 0.1),
    0 0 15px rgba(79, 76, 207, 0.08);
}

/* ===== LOADING & EMPTY STATES ===== */
.loading {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-dim);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--violet-light);
  border-right-color: var(--indigo-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
  box-shadow: 0 0 15px rgba(110, 38, 224, 0.15);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-dim);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow:
    var(--glow-violet),
    var(--glow-indigo-bright),
    0 4px 20px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease;
  max-width: 380px;
  border: 1px solid;
}

.toast-success {
  background: rgba(91, 204, 146, 0.08);
  color: var(--success);
  border-color: rgba(91, 204, 146, 0.3);
}

.toast-error {
  background: rgba(224, 108, 117, 0.08);
  color: var(--error);
  border-color: rgba(224, 108, 117, 0.3);
}

.toast-info {
  background: linear-gradient(135deg, rgba(66, 71, 158, 0.12), rgba(110, 38, 224, 0.08));
  color: var(--silver-light);
  border-color: rgba(79, 76, 207, 0.3);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  padding: 56px 32px 28px;
  margin-top: auto;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo-bright), var(--violet), var(--silver), transparent);
  opacity: 0.35;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer h4 {
  font-family: var(--font-heading);
  color: var(--silver-light);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer p,
.footer li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.footer ul {
  list-style: none;
}

.footer a {
  color: var(--text-dim);
}

.footer a:hover {
  color: var(--violet-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative;
  background: linear-gradient(180deg, #1A1535 0%, #0D0D14 100%);
  color: var(--text);
  padding: 56px 32px;
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 250px;
  background:
    radial-gradient(ellipse, rgba(110, 38, 224, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse at 60% 50%, rgba(79, 76, 207, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 50%, rgba(142, 168, 216, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo-bright), var(--violet), var(--silver), transparent);
  opacity: 0.35;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--silver-light) 0%, var(--text) 40%, var(--violet-light) 80%, var(--indigo-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-family: var(--font-body);
  opacity: 0.8;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  color: var(--text-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--glow-violet);
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero {
    padding: 64px 24px 48px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary-glow); }
.text-accent { color: var(--accent); }
.text-silver { color: var(--silver); }
.text-violet { color: var(--violet-light); }
.text-light { color: var(--text-dim); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
