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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #16161f;
  --accent: #00e5ff;
  --accent2: #7c3aed;
  --text: #f0f0f8;
  --muted: #8888aa;
  --border: rgba(255,255,255,0.07);
  --card: rgba(255,255,255,0.04);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 64px;
  --shadow-accent: rgba(0,229,255,0.15);
}

/* ─── LIGHT THEME ─── */
body.light {
  --bg: #f4faf4;
  --bg2: #eaf4ea;
  --bg3: #dff0df;
  --accent: #00b4d8;
  --accent2: #6d28d9;
  --text: #0f1f0f;
  --muted: #4a6a4a;
  --border: rgba(0,0,0,0.08);
  --card: rgba(0,0,0,0.03);
  --shadow-accent: rgba(0,180,216,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 999;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(0,229,255,0.07);
}

.burger { display: none; font-size: 1.4rem; cursor: pointer; color: var(--text); }

/* ─── SECTIONS ─── */
section {
  padding: 7rem 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ─── HERO ─── */
#about {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  max-width: 100%;
  padding-left: 6vw;
  padding-right: 6vw;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0,229,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 60%, rgba(124,58,237,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-photo {
  flex-shrink: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0,229,255,0.35);
  box-shadow: 0 0 60px rgba(0,229,255,0.14), 0 0 0 8px rgba(0,229,255,0.04);
  position: relative;
  background: var(--bg3);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.photo-placeholder {
  display: none;
  width: 100%; height: 100%;
  background: var(--bg3);
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: var(--font-head);
}

.hero-text { flex: 1; }

.hero-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.accent { color: var(--accent); }

.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: #000;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(0,229,255,0.05); }

/* ─── COMPANY ─── */
.video-hero-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 4rem;
  border: 1px solid var(--border);
  background: var(--bg3);
  aspect-ratio: 16/7;
}
.video-hero {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.video-hero-overlay p {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}

.project-block { margin-bottom: 4rem; }

.project-label-row { margin-bottom: 1.5rem; }
.project-label-row h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0.3rem 0 0.25rem;
}
.project-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
}
.project-sub { color: var(--muted); font-size: 0.9rem; }

/* TrustID */
.trustid-layout {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.trustid-images {
  display: flex;
  gap: 1rem;
  flex: 1;
  align-items: stretch;
}

.trustid-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg3);
  flex: 1;
}

/* Phone mockup — tall portrait */
.trustid-img--phone {
  aspect-ratio: 9/19;
  max-width: 240px;
}
.trustid-img--phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Anti-spoofing demo — square-ish, same visual height */
.trustid-img--demo {
  aspect-ratio: 1/1;
  max-width: 340px;
  align-self: center;
}
.trustid-img--demo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.appstore-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trustid-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.trustid-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 260px;
}

.vf-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.vf-icon {
  font-size: 2rem;
  opacity: 0.3;
}
.appstore-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  background: var(--text);
  color: #000;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.appstore-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.appstore-btn svg { width: 20px; height: 20px; }

/* AccuVision */
.video-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.video-card {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg3);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.video-card:hover {
  border-color: rgba(0,229,255,0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.video-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  pointer-events: none;
  background: var(--bg3);
}

/* ─── UNIVERSITY ─── */
.section-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 760px;
  margin-top: 1rem;
}

/* Project rows */
.uniproject {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.uniproject:hover { border-color: rgba(0,229,255,0.2); }

/* Vertical card (Teleguard 9:16) */
.uniproject--vertical {
  flex-direction: row;
  align-items: stretch;
  min-height: 360px;
}
.uniproject--vertical .uniproject-video {
  flex-shrink: 0;
  width: 200px;
  background: #000;
  position: relative;
  overflow: hidden;
}
/* Pad to maintain 9:16 ratio */
.uniproject--vertical .uniproject-video::before {
  content: '';
  display: block;
  padding-top: 177.78%;
}

/* Horizontal card (16:9) */
.uniproject--horizontal {
  flex-direction: row;
  align-items: stretch;
}
.uniproject--horizontal .uniproject-video {
  flex-shrink: 0;
  width: 55%;
  background: #000;
  position: relative;
  overflow: hidden;
}
/* Pad to maintain 16:9 ratio */
.uniproject--horizontal .uniproject-video::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}
.uniproject--reverse {
  flex-direction: row-reverse;
}

.uniproject-video {
  position: relative;
  overflow: hidden;
}
.uniproject-video video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Make the container hold its aspect ratio */
.uniproject--vertical .uniproject-video::after,
.uniproject--horizontal .uniproject-video::after {
  content: '';
  display: block;
}

.uniproject-info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}
.uniproject-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}
.uniproject-info h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.uniproject-info p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.uniproject-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  width: fit-content;
  margin-top: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}
.uniproject-link:hover {
  border-color: var(--accent);
  background: rgba(0,229,255,0.07);
  color: var(--accent);
}

/* ─── OLD UNI GRID (kept for fallback) ─── */
.uni-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.uni-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}
.uni-card:hover {
  border-color: rgba(0,229,255,0.25);
  transform: translateY(-4px);
}
.uni-icon { font-size: 2rem; margin-bottom: 1rem; }
.uni-card h4 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.uni-card p { color: var(--muted); font-size: 0.85rem; line-height: 1.6; }

/* ─── ROADMAP ─── */
.roadmap-track {
  display: flex;
  gap: 0;
  position: relative;
  padding: 2rem 0;
}
.roadmap-track::before {
  content: '';
  position: absolute;
  top: 2.75rem;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background: var(--border);
}

.roadmap-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.rm-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--muted);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s;
}
.roadmap-item.done .rm-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,229,255,0.4);
}
.roadmap-item.active .rm-dot {
  background: var(--accent2);
  border-color: var(--accent2);
  box-shadow: 0 0 12px rgba(124,58,237,0.5);
  width: 18px; height: 18px;
}

.rm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  width: 90%;
  text-align: center;
}
.roadmap-item.done .rm-card { border-color: rgba(0,229,255,0.15); }
.roadmap-item.active .rm-card { border-color: rgba(124,58,237,0.3); }

.rm-date {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}
.roadmap-item.active .rm-date { color: var(--accent2); }
.rm-card h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.rm-card p { color: var(--muted); font-size: 0.75rem; line-height: 1.5; }

/* ─── WORKS ─── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.work-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg3);
  aspect-ratio: 4/3;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
  cursor: pointer;
}
.work-card:hover {
  transform: scale(1.02);
  border-color: rgba(0,229,255,0.2);
}
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.work-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.work-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ─── RESEARCH ─── */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.research-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.research-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.research-card:last-child::before {
  background: linear-gradient(90deg, var(--accent2), transparent);
}
.research-card:hover { border-color: rgba(0,229,255,0.2); transform: translateY(-4px); }
.research-card:last-child:hover { border-color: rgba(124,58,237,0.2); }

.research-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.research-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.research-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }

.research-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.research-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}
.research-card:last-child .research-tags span {
  color: var(--accent2);
  background: rgba(124,58,237,0.07);
  border-color: rgba(124,58,237,0.2);
}

/* ─── CONTACT ─── */
#contact {
  text-align: center;
  padding-bottom: 6rem;
}
.contact-inner { max-width: 600px; margin: 0 auto; }
#contact h2 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.contact-sub { color: var(--muted); margin-bottom: 2.5rem; font-size: 1rem; }

.contact-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.contact-btn:hover {
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.06);
  transform: translateY(-2px);
}
.contact-btn svg { width: 18px; height: 18px; }

/* ─── FOOTER ─── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .uniproject--vertical,
  .uniproject--horizontal,
  .uniproject--reverse {
    flex-direction: column !important;
  }
  .uniproject--vertical .uniproject-video { width: 100%; aspect-ratio: 9/16; max-height: 400px; }
  .uniproject--horizontal .uniproject-video { width: 100%; aspect-ratio: 16/9; }
  .uniproject-info { padding: 1.5rem; }

  .hero-content { flex-direction: column; text-align: center; gap: 2rem; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-btns { justify-content: center; }
  .uni-grid { grid-template-columns: repeat(2, 1fr); }
  .trustid-layout { flex-direction: column; }
  .trustid-images { justify-content: center; }
  .trustid-img--phone { max-width: 180px; }
  .trustid-img--demo { max-width: 260px; }
  .roadmap-track { flex-direction: column; gap: 1rem; }
  .roadmap-track::before { display: none; }
  .roadmap-item { flex-direction: row; align-items: flex-start; gap: 1rem; }
  .rm-dot { flex-shrink: 0; margin-bottom: 0; margin-top: 0.25rem; }
  .rm-card { width: 100%; text-align: left; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }
  section { padding: 5rem 1.25rem 3rem; }
  .section-header h2 { font-size: 1.8rem; }
  .uni-grid { grid-template-columns: 1fr 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .video-grid-3 { grid-template-columns: 1fr; }
  .trustid-layout { flex-direction: column; }
  .trustid-images { flex-direction: column; align-items: center; }
  .trustid-img--phone, .trustid-img--demo { max-width: 100%; }
}

/* ─── LANG SWITCHER ─── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.5rem;
}
.lang-sep {
  color: var(--border);
  font-size: 0.85rem;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-btn:hover {
  color: var(--text);
  border-color: var(--border);
}
.lang-btn.active {
  color: var(--accent);
  border-color: rgba(0,229,255,0.35);
  background: rgba(0,229,255,0.07);
}

/* ─── LIGHT THEME OVERRIDES ─── */
body.light #navbar {
  background: rgba(244,250,244,0.9);
  border-bottom-color: var(--border);
}
body.light .hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0,229,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 60%, rgba(124,58,237,0.07) 0%, transparent 70%);
}
body.light .uni-card,
body.light .research-card,
body.light .rm-card,
body.light .uniproject,
body.light .work-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.08);
}
body.light .appstore-btn {
  background: #0f1f0f;
  color: #fff;
}
body.light footer {
  border-top-color: var(--border);
}
body.light .video-fallback {
  background: var(--bg3);
}

/* ─── THEME TOGGLE BUTTON ─── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0,229,255,0.07);
}
body.light .theme-toggle:hover {
  background: rgba(0,180,216,0.07);
}

/* smooth theme transition */
body, body * {
  transition: background-color 0.3s ease, color 0.2s ease, border-color 0.2s ease;
}
/* but don't animate videos/images */
video, img { transition: none !important; }

/* ─── ANIMATED BACKGROUND CANVAS ─── */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
#bgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
body.light #bgCanvas {
  opacity: 0.25;
}

/* ─── FULLSCREEN BUTTON ─── */
.fs-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
}
.uniproject-video:hover .fs-btn,
.video-card:hover .fs-btn {
  opacity: 1;
}
.fs-btn:hover {
  background: rgba(0,229,255,0.25);
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── FULLSCREEN LIGHTBOX ─── */
#fsOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#fsOverlay.open {
  display: flex;
}
#fsVideo {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
  cursor: default;
  box-shadow: 0 0 60px rgba(0,229,255,0.15);
  outline: 1px solid rgba(0,229,255,0.2);
}
#fsClose {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}
#fsClose:hover {
  background: rgba(0,229,255,0.2);
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── CLICKABLE SECTION TAG LINK ─── */
.tag-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.tag-link:hover {
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 3px;
}
