/* ═══════════════════════════════════════════════════════════════
   SOVEREIGN SYSTEMS PORTFOLIO — Tc_shaksham
   Aesthetic: Palantir × Anduril × BlackRock Terminal
   ═══════════════════════════════════════════════════════════════ */

/* ── 0. DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Surface hierarchy */
  --void:        #050506;
  --obsidian:    #0a0a0b;
  --graphite:    #111113;
  --slate:       #18181b;
  --titanium:    #1f1f23;
  --steel:       #27272a;

  /* Text */
  --text-max:    #fafafa;
  --text-high:   #e4e4e7;
  --text-mid:    #a1a1aa;
  --text-low:    #52525b;
  --text-ghost:  #3f3f46;

  /* Accents — restrained */
  --gold:        #c9a962;
  --gold-dim:    rgba(201,169,98,0.12);
  --gold-glow:   rgba(201,169,98,0.06);
  --emerald:     #34d399;
  --emerald-dim: rgba(52,211,153,0.08);
  --crimson:     #ef4444;
  --crimson-dim: rgba(239,68,68,0.06);

  /* Glass */
  --glass-bg:    rgba(17,17,19,0.55);
  --glass-border:rgba(255,255,255,0.04);
  --glass-hover: rgba(255,255,255,0.06);

  /* Type system */
  --font-display:'Outfit', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --font-mono:   'JetBrains Mono', 'SF Mono', monospace;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:    0.5s;

  /* Layout */
  --max-w:       1280px;
  --gap:         clamp(1rem, 3vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--void);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text-mid);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--gold);
  color: var(--void);
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: var(--steel);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-low); }

/* ── 2. AMBIENT BACKGROUNDS ──────────────────────────────────── */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ── 3. TYPOGRAPHY SYSTEM ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-high);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-low);
}

.gold { color: var(--gold); }
.emerald { color: var(--emerald); }

/* ── 4. LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  z-index: 2;
}

.section-spacing {
  padding: clamp(80px, 12vh, 160px) 0;
}

/* Section Header */
.section-header {
  margin-bottom: clamp(40px, 6vh, 80px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-label span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  max-width: 600px;
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── 5. NAVIGATION ───────────────────────────────────────────── */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.4s var(--ease-out);
  padding: 20px 0;
}

.nav-wrapper.scrolled {
  background: rgba(5,5,6,0.82);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.nav-brand {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-shrink: 0;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.nav-id {
  display: flex;
  flex-direction: column;
}

.nav-id .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-high);
  letter-spacing: 0.02em;
}

.nav-id .role {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
}

.india-flag {
  background: linear-gradient(to right, #FF9933, #FFFFFF, #138808);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}


.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  margin-top: 4px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-high);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
}

.nav-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--emerald-dim); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text-mid);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-out);
}

.mobile-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── 6. HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 880px;
  padding-top: 160px;
}

/* Terminal typing line */
.hero-terminal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.hero-terminal .prompt {
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.hero-terminal .typed-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mid);
}

.hero-terminal .cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--gold);
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero h1 {
  margin-bottom: 28px;
  color: var(--text-max);
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold) 0%, #e8d5a3 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-gold 6s ease-in-out infinite;
}

@keyframes shimmer-gold {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 20px;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 48px;
}

.hero-roles span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
}

.hero-roles .dot {
  color: var(--gold);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--void);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
}

.btn-primary:hover {
  background: #dbb96e;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,169,98,0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-mid);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--steel);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--text-low);
  color: var(--text-high);
  background: var(--glass-hover);
}

/* Hero Metrics Bar */
.hero-metrics {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}

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

.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-high);
  line-height: 1;
}

.metric-value .unit {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 400;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-top: 6px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

.scroll-indicator .label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-ghost);
}

/* ── 7. ABOUT ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-text strong {
  color: var(--text-high);
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease-out);
}

.info-card:hover {
  border-color: rgba(201,169,98,0.15);
  background: rgba(201,169,98,0.03);
}

.info-card .card-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.info-card .card-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-high);
  line-height: 1.3;
}

.info-card .card-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-top: 6px;
  line-height: 1.5;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
  margin-top: 60px;
}

.stat-cell {
  background: var(--obsidian);
  padding: 32px 24px;
  text-align: center;
  transition: background 0.4s var(--ease-out);
}

.stat-cell:hover {
  background: var(--graphite);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-high);
  line-height: 1;
}

.stat-suffix {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 400;
}

.stat-desc {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-top: 8px;
}

/* ── 8. PROJECTS ─────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
}

.project-card {
  background: var(--obsidian);
  padding: clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: transparent;
  transition: background 0.5s var(--ease-out);
}

.project-card:hover {
  background: var(--graphite);
}

.project-card:hover::before {
  background: var(--gold);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.project-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  transition: all 0.4s var(--ease-out);
}

.project-card:hover .project-icon {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.project-classification {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-ghost);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-high);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.project-stack span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-low);
  padding: 4px 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.01);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.project-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot.live { background: var(--emerald); }
.status-dot.dev { background: var(--gold); }
.status-dot.classified { background: var(--crimson); }

.project-status span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
}

.project-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s var(--ease-out);
}

.project-link:hover {
  gap: 10px;
}

/* Full-width project card */
.project-card.full-width {
  grid-column: 1 / -1;
}

/* ── 9. CLINIQUEX SHOWCASE ───────────────────────────────────── */
.showcase-section {
  background: var(--obsidian);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--glass-border);
  margin-top: 48px;
}

.showcase-card {
  background: var(--void);
  padding: 36px;
  transition: all 0.4s var(--ease-out);
}

.showcase-card:hover {
  background: rgba(201,169,98,0.02);
}

.showcase-card .sc-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.showcase-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-high);
  margin-bottom: 10px;
}

.showcase-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.showcase-deploy-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding: 20px 24px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
}

.showcase-deploy-bar .deploy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-dot 2s ease-in-out infinite;
}

.showcase-deploy-bar span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-mid);
}

.showcase-deploy-bar strong {
  color: var(--text-high);
}

/* ── 10. CERTIFICATIONS ──────────────────────────────────────── */
.certs-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cert-filter {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-low);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.cert-filter:hover {
  border-color: var(--text-ghost);
  color: var(--text-mid);
}

.cert-filter.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ── EXPANDABLE UNIVERSITY GROUPS ── */
.org-groups-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.org-group-container {
  margin-bottom: 0px;
  background: rgba(12, 12, 14, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.org-group-container:hover {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.org-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(18, 18, 22, 0.6);
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}

.org-group-header:hover {
  background: rgba(26, 26, 32, 0.8);
}

.org-title-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.org-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px;
  transition: border-color 0.3s ease;
}

.org-group-container:hover .org-logo-wrapper {
  border-color: rgba(212, 175, 55, 0.25);
}

.org-logo-wrapper svg,
.org-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.org-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-high);
  letter-spacing: 0.02em;
}

.org-meta-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.org-course-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-mid);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.org-chevron {
  color: var(--text-ghost);
  font-size: 0.9rem;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

.org-group-container.active .org-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.org-group-container.active {
  border-color: var(--gold-mid);
}

.org-courses-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.org-courses-drawer.expanded {
  grid-template-rows: 1fr;
}

.org-courses-inner {
  overflow: hidden;
  padding: 0 24px;
  transition: padding 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.org-courses-drawer.expanded .org-courses-inner {
  padding: 20px 24px 24px 24px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  background: transparent;
  border: none;
}

.cert-card {
  background: rgba(12, 12, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.cert-card:hover::before {
  transform: translateX(100%);
}

.cert-card:hover {
  background: rgba(22, 22, 26, 0.9);
  border-color: var(--gold-mid);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.05);
  transform: translateY(-2px);
}

.cert-card .cert-org {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.cert-card .cert-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-high);
  line-height: 1.4;
  margin-bottom: 16px;
  flex-grow: 1;
}

.cert-card .cert-id {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-ghost);
}

.cert-card .cert-link {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-low);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s var(--ease-out);
}

.cert-card:hover .cert-link {
  color: var(--gold);
}

.cert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cert counter */
.cert-counter {
  text-align: center;
  margin-bottom: 48px;
}

.cert-counter .big-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--text-high);
  line-height: 1;
}

.cert-counter .big-suffix {
  font-size: 2.5rem;
  color: var(--gold);
}

.cert-counter .big-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-top: 8px;
}

/* Search */
.cert-search-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.cert-search-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-ghost);
  font-size: 0.9rem;
}

.cert-search {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 14px 14px 14px 44px;
  color: var(--text-high);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color 0.3s var(--ease-out);
}

.cert-search:focus {
  outline: none;
  border-color: var(--gold);
}

.cert-search::placeholder {
  color: var(--text-ghost);
}

.cert-results-count {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-ghost);
  margin-bottom: 20px;
}

/* ── 11. SIMULATIONS ─────────────────────────────────────────── */
.sims-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
  margin-top: 48px;
}

.sim-col {
  background: var(--obsidian);
  padding: 36px;
}

.sim-col-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.sim-col-header i {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 4px;
}

.sim-col-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.sim-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sim-list li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.sim-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--gold);
}

.sim-list li strong {
  color: var(--text-high);
  font-weight: 600;
}

/* ── 12. LEADERSHIP ──────────────────────────────────────────── */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
}

.leader-card {
  background: var(--obsidian);
  padding: 36px;
  transition: background 0.4s var(--ease-out);
}

.leader-card:hover {
  background: var(--graphite);
}

.leader-card .leader-role {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-high);
  margin-bottom: 4px;
}

.leader-card .leader-org {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.leader-card .leader-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── 13. CONTACT ─────────────────────────────────────────────── */
.contact-section {
  border-top: 1px solid var(--glass-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-line {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-line i {
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 4px;
}

.contact-line .cl-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 4px;
}

.contact-line .cl-value {
  font-size: 0.95rem;
  color: var(--text-high);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
}

.form-field input,
.form-field textarea {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 14px 16px;
  color: var(--text-high);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color 0.3s var(--ease-out);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* ── 14. FOOTER ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-ghost);
}

.footer-right {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-ghost);
  text-transform: uppercase;
}

/* ── 15. SCROLL ANIMATIONS ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.06s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.18s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── 16. RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .projects-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .sims-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero-metrics { gap: 32px; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(5,5,6,0.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid var(--glass-border); }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-status { display: none; }
  .showcase-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
  .hero-metrics { gap: 24px; }
  .metric-value { font-size: 1.5rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .certs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ── 17. GROUPED INSTITUTION CERTIFICATIONS ──────────────────── */
.courses-grouped-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.institution-group {
  background: var(--obsidian);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  transition: all 0.3s var(--ease-out);
  overflow: hidden;
}

.institution-group:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.05);
}

.institution-header {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(10, 10, 10, 0.4);
  user-select: none;
  transition: background 0.3s var(--ease-out);
}

.institution-header:hover {
  background: rgba(212, 175, 55, 0.02);
}

.institution-header .inst-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.institution-header .inst-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-high);
  letter-spacing: 0.01em;
}

.institution-header .inst-count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2px 8px;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.institution-header .inst-toggle-icon {
  color: var(--text-low);
  transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
  font-size: 0.8rem;
}

.institution-group.active .inst-toggle-icon {
  transform: rotate(180deg);
  color: var(--gold);
}

.inst-courses-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(5, 5, 5, 0.6);
}

.institution-group.active .inst-courses-list {
  max-height: 1200px;
  border-top: 1px solid var(--glass-border);
}

.course-table-header {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 0.8fr;
  align-items: center;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-ghost);
}

.course-table-row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 0.8fr;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  transition: background 0.2s var(--ease-out);
}

.course-table-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.course-table-row:last-child {
  border-bottom: none;
}

.course-row-name {
  color: var(--text-high);
  font-weight: 500;
  padding-right: 16px;
  line-height: 1.4;
}

.course-row-cat {
  display: inline-flex;
}

.category-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 600;
}

.category-badge.ai_ml {
  background: rgba(212, 175, 55, 0.08);
  color: #e5c158;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.category-badge.cybersec {
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.category-badge.hacking {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.category-badge.law {
  background: rgba(59, 130, 246, 0.08);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.category-badge.quantum {
  background: rgba(139, 92, 246, 0.08);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.category-badge.business {
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.category-badge.programming {
  background: rgba(6, 182, 212, 0.08);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.category-badge.data {
  background: rgba(236, 72, 153, 0.08);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.course-row-id {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-ghost);
}

.course-row-link {
  display: flex;
  justify-content: flex-end;
}

.course-row-link a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-low);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s var(--ease-out);
}

.course-row-link a:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .course-table-header {
    display: none;
  }
  .course-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 20px;
  }
  .course-row-link {
    justify-content: flex-start;
    margin-top: 4px;
  }
}

/* Elegant Hover for Anti Corruption Association Links */
.aca-link:hover {
  color: var(--gold) !important;
  text-shadow: 0 0 8px rgba(201,169,98,0.3);
}


