/* ═══════════════════════════════════════════════════════
   Tech@Home — Public Stylesheet
   ═══════════════════════════════════════════════════════ */

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

:root {
  --navy:       #0A1628;
  --navy-mid:   #112240;
  --navy-card:  #131F35;
  --blue:       #2563EB;
  --blue-d:     #1d4ed8;
  --cyan:       #06B6D4;
  --amber:      #F59E0B;
  --green:      #10B981;
  --purple:     #8B5CF6;
  --pink:       #EC4899;
  --text-muted: #8892A4;
  --text-body:  #a8b8d0;
  --white:      #FFFFFF;
  --radius:     14px;
  --radius-sm:  8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 68px;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6,182,212,0.1);
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.4rem; letter-spacing: -0.5px;
  color: var(--white); text-decoration: none;
}
.nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex; gap: 0.25rem; list-style: none;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--cyan); background: rgba(6,182,212,0.08); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-cta {
  background: var(--blue); color: var(--white);
  padding: 0.45rem 1.2rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-d); transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; border: none; background: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--white);
  border-radius: 2px; display: block; transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(10,22,40,0.98);
  backdrop-filter: blur(16px);
  padding: 1.5rem 5vw;
  z-index: 99;
  border-bottom: 1px solid rgba(6,182,212,0.1);
  flex-direction: column; gap: 0.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-muted); text-decoration: none;
  font-size: 1rem; padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--cyan); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-cta { margin-top: 1rem; text-align: center; }

/* ── HERO (Homepage) ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 5vw 60px;
  overflow: hidden;
}

#circuit-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-glow {
  position: absolute; width: 650px; height: 650px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.28) 0%, transparent 70%);
  top: -150px; right: -100px; pointer-events: none;
}
.hero-glow2 {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.14) 0%, transparent 70%);
  bottom: 0; left: 8%; pointer-events: none;
}

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

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.28);
  border-radius: 999px; padding: 0.35rem 1rem;
  font-size: 0.78rem; font-weight: 600; color: var(--cyan);
  letter-spacing: 0.07em; margin-bottom: 1.4rem;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800; line-height: 1.07;
  letter-spacing: -2px; margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: clamp(0.97rem, 2vw, 1.13rem);
  color: var(--text-body); line-height: 1.75;
  max-width: 540px; margin-bottom: 2.2rem;
}

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

.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 3.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem; font-weight: 800; color: var(--white);
}
.stat-num span { color: var(--cyan); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.activity-ticker {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1.5rem; padding: 0.6rem 1rem;
  background: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.18);
  border-radius: 999px;
  font-size: 0.82rem; color: var(--text-body);
  max-width: fit-content;
  animation: activity-fade-in 0.4s ease;
}
.activity-ticker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10B981; flex-shrink: 0;
  animation: activity-pulse 2s ease-in-out infinite;
}
@keyframes activity-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}
@keyframes activity-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  .activity-ticker { font-size: 0.76rem; max-width: 100%; }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 130px 5vw 70px;
  background: var(--navy-mid);
  position: relative; overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 65%);
  top: -200px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.25);
  border-radius: 999px; padding: 0.3rem 1rem;
  font-size: 0.78rem; font-weight: 600; color: var(--cyan);
  letter-spacing: 0.07em; margin-bottom: 1.2rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 1rem;
}
.page-hero p {
  color: var(--text-body); font-size: 1.05rem; line-height: 1.7;
}

/* ── SECTIONS ── */
section { padding: 80px 5vw; }

.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.5px; margin-bottom: 0.8rem;
}
.section-sub {
  color: var(--text-muted); font-size: 0.97rem;
  line-height: 1.75; max-width: 580px; margin-bottom: 2.5rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white); padding: 0.8rem 1.8rem;
  border-radius: 10px; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.45);
}

.btn-secondary {
  display: inline-block;
  background: transparent; color: var(--white);
  padding: 0.8rem 1.8rem; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(6,182,212,0.07);
}

.btn-outline-cyan {
  display: inline-block;
  background: transparent; color: var(--cyan);
  padding: 0.6rem 1.4rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(6,182,212,0.4);
  transition: background 0.2s;
}
.btn-outline-cyan:hover { background: rgba(6,182,212,0.1); }

/* ── CARDS ── */
.card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(6,182,212,0.25);
  box-shadow: 0 10px 32px rgba(6,182,212,0.08);
}

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }

/* ── SERVICES PREVIEW (home) ── */
.services-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.sp-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 1.6rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  text-decoration: none; color: inherit;
}
.sp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6,182,212,.25);
  box-shadow: 0 8px 28px rgba(6,182,212,.08);
}
.sp-card h3 { font-size: 0.97rem; font-weight: 700; margin-bottom: 0.3rem; }
.sp-card p  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* ── ICON BOX ── */
.icon-box {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.ic-blue   { background: rgba(37,99,235,0.15); }
.ic-cyan   { background: rgba(6,182,212,0.15); }
.ic-amber  { background: rgba(245,158,11,0.15); }
.ic-green  { background: rgba(16,185,129,0.15); }
.ic-purple { background: rgba(139,92,246,0.15); }
.ic-pink   { background: rgba(236,72,153,0.15); }

/* ── ABOUT STRIP ── */
.about-strip {
  background: var(--navy-mid);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-visual {
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #112240, #1e3a5f);
  border: 1px solid rgba(6,182,212,0.12);
  padding: 2rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.av-cell {
  aspect-ratio: 1;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  animation: float 4s ease-in-out infinite;
}
.av-cell:nth-child(2) { animation-delay: .4s; }
.av-cell:nth-child(3) { animation-delay: .8s; }
.av-cell:nth-child(4) { animation-delay: 1.2s; }
.av-cell:nth-child(5) { animation-delay: 1.6s; }
.av-cell:nth-child(6) { animation-delay: 2s; }
.av-cell:nth-child(7) { animation-delay: 2.4s; }
.av-cell:nth-child(8) { animation-delay: 2.8s; }
.av-cell:nth-child(9) { animation-delay: 3.2s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ── PROCESS STEPS ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
}
.process-step { padding: 0 1.5rem 0 0; }
.step-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; font-weight: 800;
  color: var(--white); margin-bottom: 1.4rem;
  box-shadow: 0 0 0 6px var(--navy), 0 0 0 7px rgba(6,182,212,0.2);
}
.process-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.process-step p  { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

/* ── TESTIMONIALS ── */
.tcard {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 1.8rem;
  transition: border-color 0.2s;
}
.tcard:hover { border-color: rgba(6,182,212,0.2); }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 0.88rem; margin-bottom: 0.9rem; }
.tcard blockquote {
  font-size: 0.9rem; color: var(--text-body);
  line-height: 1.75; font-style: italic; margin-bottom: 1.4rem;
}
.t-author { display: flex; gap: 0.7rem; align-items: center; }
.t-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.85rem;
}
.t-name  { font-weight: 600; font-size: 0.86rem; }
.t-role  { font-size: 0.74rem; color: var(--text-muted); }

/* ── CTA STRIP ── */
.cta-strip {
  background: linear-gradient(135deg, var(--navy-mid), #0d1f3c);
  padding: 70px 5vw; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.cta-strip-inner { position: relative; z-index: 1; max-width: 580px; margin: 0 auto; }
.cta-strip h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; }
.cta-strip p  { color: var(--text-muted); font-size: 0.97rem; line-height: 1.7; margin-bottom: 2rem; }
.cta-strip-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT PAGE ── */
.contact-layout {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 3rem; align-items: start;
}
.contact-form-wrap {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem; color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color .2s; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cyan); }
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-group select option { background: #112240; }
.form-full { grid-column: 1 / -1; }
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff; border: none; border-radius: 10px;
  padding: 0.95rem; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  margin-top: 0.5rem; font-family: 'Inter', sans-serif;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.4); }

.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.info-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: border-color .2s;
}
.info-card:hover { border-color: rgba(6,182,212,0.25); }
.info-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.info-label {
  font-size: 0.72rem; font-weight: 700; color: var(--cyan);
  letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 0.3rem;
}
.info-val   { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.1rem; }
.info-sub   { font-size: 0.78rem; color: var(--text-muted); }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 0; }

/* ── TAGS ── */
.tag {
  display: inline-block;
  background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.2);
  color: #7aa3e0; padding: 0.25rem 0.7rem;
  border-radius: 6px; font-size: 0.75rem; font-weight: 500;
}

/* ── PULSE DOT ── */
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); display: inline-block;
  animation: pdot 2s infinite;
}
@keyframes pdot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.6)} }

/* ── ABOUT PAGE ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* ── SUPPORT PAGE ── */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* ── AI TRAINING PAGE ── */
.ai-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }

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

/* ── FOOTER ── */
footer {
  background: #060f1c;
  padding: 3.5rem 5vw 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-brand p {
  font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.75; margin: 0.8rem 0 1.2rem;
}
.social-links { display: flex; gap: 0.6rem; }
.social-link {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: var(--blue); color: var(--white); }
.footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 0.88rem; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col ul a {
  font-size: 0.82rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem; color: var(--text-muted);
  flex-wrap: wrap; gap: 0.5rem;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #273549; border-radius: 99px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .about-strip, .about-grid,
  .ai-grid, .support-grid,
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-right .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  section { padding: 60px 5vw; }
  .page-hero { padding: 110px 5vw 50px; }
  .hero-stats { gap: 1.5rem; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-strip { grid-template-columns: 1fr; }
  .cta-strip-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1px; }
  .process-steps { grid-template-columns: 1fr; }
  .services-preview { grid-template-columns: 1fr; }
}

/* ── HERO: TWO-COLUMN GRID + ORBIT VISUAL ── */
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
.hero-content { max-width: 100%; }

.hero-orbit-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(6, 182, 212, 0.18);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.orbit-ring-1 { width: 230px; height: 230px; }
.orbit-ring-2 { width: 380px; height: 380px; border-color: rgba(37, 99, 235, 0.14); }

.orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(6,182,212,0.2));
  border: 1px solid rgba(6,182,212,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 0 40px rgba(6,182,212,0.25);
  animation: orbitPulse 3s ease-in-out infinite;
  z-index: 2;
}
@keyframes orbitPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(6,182,212,0.2); }
  50% { box-shadow: 0 0 55px rgba(6,182,212,0.4); }
}

.orbit-card {
  position: absolute;
  top: 50%; left: 50%;
  width: 52px; height: 52px;
  margin: -26px;
  border-radius: 14px;
  background: rgba(18, 33, 61, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  transform-origin: 0 0;
  z-index: 1;
}

/* Orbit 1 — small ring (3 icons, 9s) */
.orbit-card-1 { animation: orbitA 9s linear infinite; }
.orbit-card-3 { animation: orbitA 9s linear infinite; animation-delay: -3s; }
.orbit-card-5 { animation: orbitA 9s linear infinite; animation-delay: -6s; }

/* Orbit 2 — large ring (3 icons, 14s, reverse) */
.orbit-card-2 { animation: orbitB 14s linear infinite; }
.orbit-card-4 { animation: orbitB 14s linear infinite; animation-delay: -4.66s; }
.orbit-card-6 { animation: orbitB 14s linear infinite; animation-delay: -9.33s; }

@keyframes orbitA {
  from { transform: rotate(0deg) translateX(115px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(115px) rotate(-360deg); }
}
@keyframes orbitB {
  from { transform: rotate(0deg) translateX(190px) rotate(0deg); }
  to   { transform: rotate(-360deg) translateX(190px) rotate(360deg); }
}

/* Counter-rotate icon glyphs so they stay upright (handled by inner rotate above) */
.orbit-card:hover {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.3);
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-orbit-wrap { max-width: 340px; height: 340px; order: -1; }
  .orbit-ring-1 { width: 190px; height: 190px; }
  .orbit-ring-2 { width: 310px; height: 310px; }
  .orbit-card-1, .orbit-card-3, .orbit-card-5 { animation-name: orbitA-sm; }
  .orbit-card-2, .orbit-card-4, .orbit-card-6 { animation-name: orbitB-sm; }
  @keyframes orbitA-sm {
    from { transform: rotate(0deg) translateX(95px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(95px) rotate(-360deg); }
  }
  @keyframes orbitB-sm {
    from { transform: rotate(0deg) translateX(155px) rotate(0deg); }
    to   { transform: rotate(-360deg) translateX(155px) rotate(360deg); }
  }
}

@media (max-width: 640px) {
  .hero-orbit-wrap { max-width: 280px; height: 280px; }
  .orbit-ring-1 { width: 160px; height: 160px; }
  .orbit-ring-2 { width: 260px; height: 260px; }
  .orbit-center { width: 68px; height: 68px; font-size: 1.8rem; }
  .orbit-card { width: 44px; height: 44px; margin: -22px; font-size: 1.25rem; }
  .orbit-card-1, .orbit-card-3, .orbit-card-5 { animation-name: orbitA-xs; }
  .orbit-card-2, .orbit-card-4, .orbit-card-6 { animation-name: orbitB-xs; }
  @keyframes orbitA-xs {
    from { transform: rotate(0deg) translateX(78px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(78px) rotate(-360deg); }
  }
  @keyframes orbitB-xs {
    from { transform: rotate(0deg) translateX(128px) rotate(0deg); }
    to   { transform: rotate(-360deg) translateX(128px) rotate(360deg); }
  }
}

/* ── AMBIENT BACKGROUND TWINKLE (site-wide) ── */
#bg-twinkle {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* Ensure page content sits above the ambient canvas */
nav, main, footer, #cookie-banner, .mobile-menu {
  position: relative;
  z-index: 1;
}

/* ── LEGAL PAGES (Privacy Policy / Terms of Use) ── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-body);
}
.legal-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.legal-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  padding-top: 0.4rem;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-body);
}
.legal-content ul {
  margin: 0 0 1.2rem 0;
  padding-left: 0;
  list-style: none;
}
.legal-content ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-body);
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.legal-content strong { color: var(--white); font-weight: 600; }
.legal-contact-box {
  background: var(--navy-card);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.legal-contact-box strong { color: var(--cyan); margin-right: 0.4rem; }

@media (max-width: 640px) {
  .legal-content h2 { font-size: 1.05rem; }
}

/* ── LANGUAGE SWITCHER ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.lang-switch:hover {
  background: rgba(6,182,212,0.1);
  border-color: rgba(6,182,212,0.35);
}
.lang-switch-icon { font-size: 0.85rem; }
.lang-switch-label { letter-spacing: 0.02em; }

.mobile-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan) !important;
  font-weight: 600;
  padding: 0.65rem 0.5rem !important;
}

@media (max-width: 768px) {
  .lang-switch { display: none; }
}

/* ── BANGLA TYPOGRAPHY ── */
html.lang-bn body {
  font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
}
html.lang-bn h1, html.lang-bn h2, html.lang-bn h3, html.lang-bn h4,
html.lang-bn .hero-title, html.lang-bn .section-title,
html.lang-bn .nav-logo, html.lang-bn .stat-num {
  font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}
/* Bangla script needs slightly larger line-height for proper rendering of conjuncts */
html.lang-bn p, html.lang-bn li, html.lang-bn .hero-sub, html.lang-bn .section-sub {
  line-height: 1.9;
}
html.lang-bn .hero-title, html.lang-bn .page-hero h1 {
  line-height: 1.3;
}

/* ── LEARNING VIDEOS PAGE ── */
.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.vid-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.vid-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6,182,212,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.vid-thumb {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.vid-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.vid-card:hover .vid-thumb img { opacity: 0.85; }

.vid-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.vid-card:hover .vid-play-btn {
  background: rgba(6,182,212,0.4);
  transform: translate(-50%, -50%) scale(1.1);
}

.vid-category-badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  background: rgba(0,0,0,0.7);
  color: #06B6D4;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.vid-info {
  padding: 1rem 1.1rem 1.2rem;
}
.vid-info h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vid-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Featured video responsive */
@media (max-width: 768px) {
  .vid-featured-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .videos-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .videos-grid { grid-template-columns: 1fr; }
}
