/* ============================================================
   PRODIGY EDUCATIONS — Representation Website
   Shares the design language of the Prodigy LMS.
   ============================================================ */

:root {
  --primary: #005bb5;
  --primary-glow: rgba(0, 91, 181, 0.3);
  --secondary: #6b21a8;
  --bg-light: #f8fafc;
  --bg-light-glass: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.65);
  --border-glass: rgba(0, 0, 0, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --overlay-subtle: rgba(0, 0, 0, 0.05);
  --overlay-medium: rgba(0, 0, 0, 0.1);
  --surface-subtle: rgba(255, 255, 255, 0.5);
  --surface-hover: rgba(255, 255, 255, 0.8);
  --navbar-bg: #ffffff;
  --footer-bg: rgba(255, 255, 255, 0.5);
  --modal-overlay: rgba(15, 23, 42, 0.55);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-md: 12px;
  --radius-lg: 24px;
}

/* ========== DARK THEME ========== */
[data-theme="dark"] {
  --primary: #5b9cf5;
  --primary-glow: rgba(91, 156, 245, 0.3);
  --secondary: #a855f7;
  --bg-light: #0f172a;
  --bg-light-glass: rgba(15, 23, 42, 0.85);
  --bg-card: rgba(30, 41, 59, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --overlay-subtle: rgba(255, 255, 255, 0.03);
  --overlay-medium: rgba(255, 255, 255, 0.06);
  --surface-subtle: rgba(30, 41, 59, 0.5);
  --surface-hover: rgba(30, 41, 59, 0.8);
  --navbar-bg: #1e293b;
  --footer-bg: rgba(15, 23, 42, 0.8);
  --modal-overlay: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .app-bg-texture {
  opacity: 0.15;
  filter: blur(12px) brightness(0.3);
}
[data-theme="dark"] .nav-logo img { filter: brightness(0) invert(1); }
[data-theme="dark"] .btn-outline { background: var(--surface-subtle); color: var(--text-primary); }
[data-theme="dark"] .btn-outline:hover { background: var(--surface-hover); border-color: rgba(255,255,255,0.15); }
[data-theme="dark"] .glass-card:hover { border-color: rgba(255,255,255,0.12); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
[data-theme="dark"] .filter-pill { background: var(--surface-subtle); }
[data-theme="dark"] .filter-pill.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-color: transparent; color:#fff; }
[data-theme="dark"] .nav-mobile-panel { background: var(--navbar-bg); }

/* ========== RESET ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

.app-bg-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../assets/light_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  pointer-events: none;
  filter: blur(8px);
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: all 0.3s ease; border: none; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: 0 4px 14px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-glow); }
.btn-outline { background: var(--bg-light-glass); color: var(--text-primary); border: 1px solid var(--border-glass); backdrop-filter: blur(10px); }
.btn-outline:hover { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.15); }

/* ========== NAVBAR ========== */
.navbar {
  padding: 16px 0; position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 100;
  background: var(--navbar-bg); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass); box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: var(--text-primary); text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 600; transition: color 0.3s; font-size: 0.95rem; cursor: pointer; }
.nav-links a:hover { color: var(--primary); }

.theme-toggle {
  background: none; border: 1.5px solid var(--border-glass); border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-secondary); transition: all 0.25s ease; flex-shrink: 0;
}
.theme-toggle:hover { background: var(--overlay-medium); color: var(--text-primary); border-color: var(--primary); }

.nav-mobile-actions { display: none; }
.nav-hamburger {
  background: none; border: 1.5px solid var(--border-glass); border-radius: 8px;
  width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-primary); transition: all 0.2s ease;
}
.nav-hamburger:hover { background: var(--overlay-medium); border-color: var(--primary); color: var(--primary); }
.nav-mobile-panel {
  display: none; flex-direction: column; gap: 12px; padding: 16px;
  border-top: 1px solid var(--border-glass); background: var(--navbar-bg); animation: slideDown 0.25s ease;
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel .container { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.nav-mobile-panel a { display: block; width: 100%; color: var(--text-secondary); text-decoration: none; font-weight: 600; padding: 12px 4px; border-bottom: 1px solid var(--border-glass); cursor: pointer; }
.nav-mobile-panel a:last-child { border-bottom: none; }
.nav-mobile-panel a:hover { color: var(--primary); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px);} to { opacity: 1; transform: translateY(0);} }

/* ========== GLASS CARD ========== */
.glass-card {
  background: var(--bg-card); backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover { border-color: rgba(0,0,0,0.12); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 2.6rem; margin-bottom: 14px; }
.section-head p { color: var(--text-secondary); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.8rem; color: var(--primary); margin-bottom: 10px;
}

/* ========== HERO ========== */
.hero { padding: 170px 0 90px; text-align: center; }
.hero h1 { font-size: 4rem; margin-bottom: 24px; }
.hero p { font-size: 1.2rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto 40px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; margin-top: 64px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; }
.hero-stat .label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }

/* ========== FILTER PILLS ========== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-pill {
  padding: 8px 18px; border-radius: 50px; border: 1.5px solid var(--border-glass);
  background: rgba(255,255,255,0.7); color: var(--text-secondary);
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: all 0.25s ease; backdrop-filter: blur(8px);
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px var(--primary-glow); }

/* ========== TEACHERS ========== */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.teacher-card {
  text-align: center; cursor: pointer; padding: 26px 20px; border: none;
  font-family: var(--font-body); width: 100%; color: var(--text-primary);
}
.teacher-avatar {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.8rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 18px var(--primary-glow); overflow: hidden;
  border: 3px solid rgba(255,255,255,0.6);
}
.teacher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.teacher-card .t-subject { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.teacher-card .t-level { color: var(--text-secondary); font-size: 0.8rem; margin-top: 2px; }
.teacher-card .t-view {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--secondary); opacity: 0; transition: opacity 0.25s;
}
.teacher-card:hover .t-view { opacity: 1; }

/* ========== GALLERY ========== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.gallery-item { cursor: pointer; overflow: hidden; padding: 0; }
.gallery-thumb {
  height: 190px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); position: relative; overflow: hidden;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb i { font-size: 3rem; color: rgba(255,255,255,0.9); }
.gallery-cat {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.9); color: var(--primary);
  font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; backdrop-filter: blur(4px);
}
.gallery-body { padding: 18px 20px; }
.gallery-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.gallery-body .g-date { color: var(--text-secondary); font-size: 0.82rem; display: flex; align-items: center; gap: 6px; }

/* ========== BLOG ========== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card { cursor: pointer; display: flex; flex-direction: column; }
.blog-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-size: 1.3rem; margin-bottom: 18px;
}
.blog-meta { display: flex; gap: 10px; align-items: center; font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 10px; flex-wrap: wrap; }
.blog-tag { background: var(--overlay-subtle); color: var(--primary); font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.blog-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.blog-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; flex-grow: 1; }
.blog-card .read-more { margin-top: 16px; color: var(--secondary); font-weight: 600; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }

/* ========== REVIEWS (auto-scrolling marquee) ========== */
.reviews-marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reviews-track { display: flex; gap: 24px; width: max-content; animation: reviewScroll 100s linear infinite; }
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
@keyframes reviewScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .reviews-track { animation: none; } .reviews-marquee { overflow-x: auto; } }
.review-card { display: flex; flex-direction: column; flex: 0 0 340px; width: 340px; }
.review-quote { color: var(--primary); font-size: 1.5rem; opacity: 0.4; line-height: 1; margin-bottom: 10px; }
.review-stars { color: #f5b301; font-size: 0.95rem; letter-spacing: 3px; margin-bottom: 14px; }
.review-text { color: var(--text-primary); font-size: 1rem; line-height: 1.7; flex-grow: 1; font-style: italic; }
.review-author { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-glass); display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.review-author .r-name { font-weight: 700; font-size: 0.92rem; }
.review-author .r-subject { color: var(--text-secondary); font-size: 0.8rem; margin-top: 2px; }

/* ========== SHOW MORE (blog / notes) ========== */
.show-more-wrap { text-align: center; margin-top: 32px; }
.show-more-wrap:empty { margin-top: 0; }
.show-more-btn { display: inline-flex; align-items: center; gap: 8px; }

/* ========== NOTES ========== */
.note-card { display: flex; flex-direction: column; }
.note-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; font-size: 1.3rem; margin-bottom: 18px;
}
.note-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.note-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; flex-grow: 1; }
.note-dl { margin-top: 16px; align-self: flex-start; }

/* Drill-down cards (Level / Subject / Teacher) */
.notes-drill { display: flex; flex-direction: column; align-items: flex-start; text-align: left; cursor: pointer; font-family: inherit; border: 1px solid var(--border-glass); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.notes-drill:hover { transform: translateY(-4px); box-shadow: 0 12px 34px var(--primary-glow); }
.notes-drill h3 { font-size: 1.2rem; margin: 0 0 4px; }
.notes-drill-sub { color: var(--text-secondary); font-size: 0.85rem; flex-grow: 1; }
.notes-drill .t-view { margin-top: 14px; color: var(--secondary); font-weight: 600; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }

/* Breadcrumb */
.notes-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.notes-breadcrumb:empty { margin-bottom: 0; }
.notes-crumb { background: none; border: none; padding: 4px 6px; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--secondary); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; }
.notes-crumb:hover { background: var(--overlay-subtle); }
.notes-crumb-current { color: var(--text-primary); cursor: default; }
.notes-crumb-current:hover { background: none; }
.notes-sep { color: var(--text-secondary); }

/* ========== ABOUT ========== */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 2.6rem; margin-bottom: 20px; }
.about-text p { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.75; margin-bottom: 16px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.about-feature { display: flex; gap: 12px; align-items: flex-start; }
.about-feature i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; }
.about-feature strong { display: block; font-size: 0.95rem; }
.about-feature span { color: var(--text-secondary); font-size: 0.85rem; }
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-stat-card { text-align: center; padding: 30px 18px; }
.about-stat-card .num { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; }
.about-stat-card .num.gr { background: linear-gradient(135deg,var(--primary),var(--secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about-stat-card .label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 6px; }

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; background: var(--modal-overlay); backdrop-filter: blur(6px);
  z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.25s ease; }
.modal {
  background: var(--bg-light); border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3); animation: popIn 0.3s cubic-bezier(0.16,1,0.3,1);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: 1px solid var(--border-glass); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text-primary); font-size: 1rem;
  transition: all 0.2s;
}
[data-theme="dark"] .modal-close { background: var(--surface-hover); }
.modal-close:hover { background: var(--primary); color: #fff; }

/* Teacher modal */
.modal-teacher-head {
  padding: 44px 32px 28px; text-align: center;
  background: linear-gradient(135deg, rgba(0,91,181,0.12), rgba(107,33,168,0.12));
  border-bottom: 1px solid var(--border-glass); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-teacher-avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 2.4rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 30px var(--primary-glow); border: 4px solid rgba(255,255,255,0.7); overflow: hidden;
}
.modal-teacher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.modal-teacher-head h2 { font-size: 1.7rem; margin-bottom: 6px; }
.modal-teacher-head .m-subject { color: var(--primary); font-weight: 700; }
.modal-body { padding: 28px 32px 32px; }
.modal-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.modal-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 50px;
  background: var(--overlay-subtle); color: var(--text-secondary); font-size: 0.82rem; font-weight: 600;
}
.modal-body .bio { color: var(--text-secondary); line-height: 1.75; font-size: 0.98rem; }
/* Inline video (16:9 responsive) for the recorded demo lecture */
.video-wrap { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--border-glass); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Blog & gallery modal shared */
.modal-wide { max-width: 680px; }
.modal-article-head { padding: 40px 36px 24px; border-bottom: 1px solid var(--border-glass); }
.modal-article-head .blog-meta { margin-bottom: 14px; }
.modal-article-head h2 { font-size: 1.9rem; }
.modal-article-body { padding: 28px 36px 36px; }
.modal-article-body p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; white-space: pre-line; }
.modal-gallery-img {
  height: 300px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden;
}
.modal-gallery-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-gallery-img i { font-size: 5rem; color: rgba(255,255,255,0.9); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.94) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== FOOTER ========== */
.footer {
  margin-top: auto; border-top: 1px solid var(--border-glass); padding: 56px 0 32px;
  background: var(--footer-bg); backdrop-filter: blur(10px);
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; margin-bottom: 14px; }
.footer-brand img { height: 34px; }
[data-theme="dark"] .footer-brand img { filter: brightness(0) invert(1); }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; margin-bottom: 10px; cursor: pointer; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--border-glass); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--text-secondary); font-size: 0.85rem; }
.social-links { display: flex; gap: 16px; font-size: 1.4rem; }
.social-links a { color: var(--text-secondary); transition: color 0.3s; }
.social-links a:hover { color: var(--primary); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links-desktop { display: none !important; }
  .nav-mobile-actions { display: flex; align-items: center; gap: 8px; }
  .navbar { padding: 10px 0; }
  .nav-logo { font-size: 1.1rem; }
  .nav-logo img { height: 28px; }
  .hero { padding: 120px 0 50px; }
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 56px 0; }
  .section-head h2, .about-text h2 { font-size: 2rem; }
  .hero-stats { gap: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .modal-article-head, .modal-article-body, .modal-body { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .about-features { grid-template-columns: 1fr; }
  .about-visual { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   INTERACTIVE EFFECTS
   Custom cursor, card spotlight glow, scroll progress,
   navbar scroll reaction, directional reveals.
   ============================================================ */

:root { --card-glow: rgba(0, 91, 181, 0.12); }
[data-theme="dark"] { --card-glow: rgba(91, 156, 245, 0.18); }

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

/* ---- Navbar reacts to scroll ---- */
.navbar { transition: padding 0.3s ease, box-shadow 0.3s ease; }
.navbar.scrolled { padding: 8px 0; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); }
[data-theme="dark"] .navbar.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); }

/* ---- Card spotlight glow (mouse devices only) ---- */
@media (hover: hover) and (pointer: fine) {
  .glass-card { position: relative; }
  .glass-card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), var(--card-glow), transparent 65%);
    opacity: 0; transition: opacity 0.35s ease; z-index: 1;
  }
  .glass-card:hover::after { opacity: 1; }
}

/* ---- Directional reveals (with subtle 3D perspective) ---- */
.reveal { transform: perspective(700px) translateY(28px) rotateX(6deg); }
.reveal.reveal-left { transform: perspective(700px) translateX(-36px) rotateY(8deg); }
.reveal.reveal-right { transform: perspective(700px) translateX(36px) rotateY(-8deg); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { transform: none; }

/* ---- Scroll-spy: active nav link ---- */
.nav-links-desktop a { position: relative; }
.nav-links-desktop a.active { color: var(--primary); }
.nav-links-desktop a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* ---- Magnetic hero buttons ---- */
.btn.magnetic { transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.3s ease, background 0.3s ease; }

/* ---- Word-by-word hero reveal ---- */
.hero-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-word-inner { display: inline-block; transform: translateY(115%); transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.hero h1.words-in .hero-word-inner { transform: translateY(0); }

/* ---- Showcase: scroll-driven full-bleed → card shrink ---- */
.showcase { height: 260vh; position: relative; }
.showcase-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* the cap artwork zooms out over the normal page bg. The zoom is driven by
   the inline SVG's viewBox (true vector re-render every frame — no CSS
   transform rasterization, so it stays sharp at any depth). */
.showcase-stage {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 2;
}
/* statement overlaid on the two-tone opening screen */
.showcase-inner {
  position: absolute; inset: 0; z-index: 3; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none;
}
.showcase.sc-live .showcase-inner { opacity: 0; }
.showcase-eyebrow {
  display: inline-block; font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); margin-bottom: 16px;
}
.showcase-title { color: #fff; font-size: clamp(2.2rem, 6vw, 4.4rem); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25); }
/* darker gradient in dark theme so the white statement keeps WCAG contrast */
/* caption starts hidden only when the JS scroll driver is active (.sc-live) */
.showcase.sc-live .showcase-caption { opacity: 0; }
.showcase-caption {
  position: absolute; bottom: 5vh; left: 0; right: 0; text-align: center;
  color: var(--text-secondary); font-size: 1.05rem; padding: 0 24px; pointer-events: none;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Showcase on small screens / reduced motion ---- */
@media (max-width: 768px) {
  .showcase { height: 220vh; }
  .showcase-caption { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-progress { display: none; }
  .hero-word-inner { transform: none !important; transition: none !important; }
  .navbar, .btn.magnetic { transition: none; }
  /* showcase becomes a static cap + caption (statement hidden) */
  .showcase { height: auto; padding: 80px 24px; }
  .showcase-sticky { position: static; height: auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .showcase-stage { position: static; width: min(64vw, 620px); height: auto; }
  .showcase-inner { display: none; }
  .showcase-caption { position: static; opacity: 1 !important; }
}
