/* ============================================================
   Aesthetology Inc. — Main Stylesheet
   Aesthetic: Schoolium glassmorphism, purple/indigo palette,
   Inter font, animated dot-grid background, dark/light modes
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

/* SVG base — block prevents inline spacing quirks */
svg {
  display: block;
  flex-shrink: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* light */
  --bg-primary:       #f8f7ff;
  --bg-secondary:     #ffffff;
  --bg-tertiary:      #f0edff;
  --text-primary:     #2d3a5c;
  --text-secondary:   #5a6785;
  --text-muted:       #8590aa;
  --dot-color:        rgba(139, 92, 246, 0.25);
  --dot-color-2:      rgba(99, 102, 241, 0.15);
  --glass-bg:         rgba(255, 255, 255, 0.78);
  --glass-border:     rgba(139, 92, 246, 0.18);
  --glass-shadow:     0 8px 32px rgba(109, 40, 217, 0.12);
  --nav-bg:           rgba(248, 247, 255, 0.85);
  --nav-border:       rgba(139, 92, 246, 0.12);
  --accent-1:         #667eea;
  --accent-2:         #764ba2;
  --accent-3:         #8b5cf6;
  --gradient-hero:    linear-gradient(135deg, #667eea 0%, #764ba2 40%, #a855f7 70%, #6366f1 100%);
  --gradient-text:    linear-gradient(135deg, #667eea 0%, #9333ea 100%);
  --tag-bg:           rgba(139, 92, 246, 0.1);
  --tag-color:        #6d28d9;
  --section-alt-bg:   rgba(139, 92, 246, 0.04);
  --footer-bg:        #0f0a1e;
  --footer-text:      #a8b0c5;
}

[data-theme="dark"] {
  --bg-primary:       #0f0f1a;
  --bg-secondary:     #1a1a2e;
  --bg-tertiary:      #2d1f3d;
  --text-primary:     #e8eaf0;
  --text-secondary:   #a8b0c5;
  --text-muted:       #6a7590;
  --dot-color:        rgba(139, 92, 246, 0.2);
  --dot-color-2:      rgba(99, 102, 241, 0.1);
  --glass-bg:         rgba(26, 26, 46, 0.75);
  --glass-border:     rgba(139, 92, 246, 0.2);
  --glass-shadow:     0 8px 40px rgba(0, 0, 0, 0.4);
  --nav-bg:           rgba(15, 15, 26, 0.9);
  --nav-border:       rgba(139, 92, 246, 0.15);
  --tag-bg:           rgba(139, 92, 246, 0.15);
  --tag-color:        #c4b5fd;
  --section-alt-bg:   rgba(139, 92, 246, 0.05);
}

/* ── Global Body ──────────────────────────────────────────── */
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ── Animated Dot Background ──────────────────────────────── */
.animated-dots-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at center, var(--dot-color) 1.5px, transparent 1.5px),
    radial-gradient(circle at center, var(--dot-color-2) 1px, transparent 1px);
  background-size: 42px 42px, 84px 84px;
  background-position: 0 0, 21px 21px;
  animation: dotShift 60s linear infinite;
  opacity: 0.7;
}

@keyframes dotShift {
  0%   { background-position: 0 0, 21px 21px; }
  100% { background-position: 420px 420px, 441px 441px; }
}

/* ── Orbs ─────────────────────────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: orbFloat 20s ease-in-out infinite alternate;
}

[data-theme="dark"] .orb { opacity: 0.15; }

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #8b5cf6, #6366f1);
  top: -200px; left: -150px;
  animation-duration: 22s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #a855f7, #764ba2);
  top: 40%; right: -200px;
  animation-duration: 28s;
  animation-delay: -8s;
}

.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #667eea, #06b6d4);
  bottom: -150px; left: 35%;
  animation-duration: 18s;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.05); }
  100% { transform: translate(-20px, 40px) scale(0.95); }
}

/* ── Glass Card ───────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(109, 40, 217, 0.2);
}

/* ── Navigation ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(109, 40, 217, 0.1);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gradient-text);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
}

.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.logo-inc {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-3);
  background: rgba(139, 92, 246, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.theme-toggle {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--text-primary);
}
.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-icon svg {
  width: 18px;
  height: 18px;
}

.theme-toggle:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.05);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}

.hero-content {
  max-width: 860px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: 28px;
}

.title-line {
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 900;
  letter-spacing: -3px;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.desktop-break { display: block; }

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

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.1px;
}

.btn-primary {
  background: var(--gradient-text);
  color: white;
  box-shadow: 0 6px 24px rgba(109, 40, 217, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(109, 40, 217, 0.45);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}

/* ── Hero Stats ───────────────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* ── Scroll Indicator ─────────────────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator {
  width: 28px;
  height: 44px;
  border: 2px solid var(--glass-border);
  border-radius: 14px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 8px;
  background: var(--accent-3);
  border-radius: 2px;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  animation: scrollDot 2s ease infinite;
}

@keyframes scrollDot {
  0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
  80%  { transform: translateX(-50%) translateY(18px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0); opacity: 0; }
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-3);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── About Grid ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.about-card {
  padding: 36px 32px;
  text-align: center;
}

.about-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-icon svg {
  width: 40px;
  height: 40px;
}

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── OmniumGroup Tree ─────────────────────────────────────── */
.group-visual {
  padding: 48px;
  text-align: center;
  overflow-x: auto;
}

.group-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  min-width: 480px;
}

.tree-root {
  display: flex;
  justify-content: center;
}

.tree-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 28px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--glass-border);
  min-width: 200px;
  transition: all 0.2s ease;
}

.tree-node strong {
  font-size: 15px;
  color: var(--text-primary);
}

.tree-node span {
  font-size: 12px;
  color: var(--text-muted);
}

.tree-node .node-icon {
  margin-bottom: 4px;
  color: var(--accent-primary);
  display: flex;
  justify-content: center;
}
.tree-node .node-icon svg {
  width: 24px;
  height: 24px;
}

.root-node {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.15), rgba(102, 126, 234, 0.1));
  border-color: rgba(139, 92, 246, 0.35);
}

.active-node {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.2), rgba(168, 85, 247, 0.15));
  border: 2px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.2);
}

.tree-branches {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  padding-top: 16px;
}

.tree-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 16px;
  background: var(--glass-border);
}

.tree-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Portfolio ────────────────────────────────────────────── */
.portfolio-filter {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-text);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.portfolio-card {
  padding: 32px 28px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.portfolio-card.hidden {
  display: none;
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  overflow: hidden;
}
.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.badge-live      { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-beta      { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-dev       { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-flagship  { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-enterprise{ background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.card-domain {
  font-size: 13px;
  color: var(--accent-3);
  font-weight: 500;
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin-bottom: 14px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--tag-bg);
  color: var(--tag-color);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-3);
  text-decoration: none;
  transition: all 0.2s ease;
}

.card-link:hover {
  color: var(--accent-1);
  text-decoration: underline;
}

/* ── Technology ───────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tech-category {
  padding: 32px 28px;
}

.tech-cat-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tech-cat-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.tech-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.contact-card {
  padding: 36px 28px;
  text-align: center;
}

.contact-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.contact-icon svg {
  width: 40px;
  height: 40px;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.contact-link {
  color: var(--accent-3);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.contact-link:hover {
  text-decoration: underline;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
}

.footer-brand .logo-mark {
  font-size: 16px;
  width: 36px;
  height: 36px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--footer-text);
  margin-bottom: 8px;
}

.footer-group strong { color: rgba(139, 92, 246, 0.9); }

.footer-links-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links-col a:hover {
  color: #c4b5fd;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--footer-text);
}

.footer-legal {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-legal a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover { color: #c4b5fd; }
.footer-legal span { opacity: 0.4; }

/* ── Modals ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  max-width: 640px;
  width: 100%;
  padding: 44px 40px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-box h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 8px;
}

.modal-box p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.modal-box a {
  color: var(--accent-3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(139, 92, 246, 0.2);
  color: var(--text-primary);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    padding: 16px;
    flex-direction: column;
    z-index: 999;
  }

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

  .nav-burger {
    display: flex;
  }

  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: 120px; padding-bottom: 80px; }

  .desktop-break { display: none; }

  .stat-divider { display: none; }

  .hero-stats { gap: 28px; }

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

  .group-visual { padding: 28px 16px; }

  .modal-box { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta { flex-direction: column; align-items: center; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Animations & Reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
