/* ============================================================
   Dr. Mohd Anis Ansari — Academic CV
   Aesthetic: Dark Scholarly Editorial
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Outfit:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Variables ---- */
:root {
  --bg:        #0c0f14;
  --bg2:       #111620;
  --bg3:       #171d28;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --gold:      #c9a84c;
  --gold-dim:  rgba(201,168,76,0.15);
  --gold-glow: rgba(201,168,76,0.35);
  --teal:      #4ecdc4;
  --teal-dim:  rgba(78,205,196,0.12);
  --text:      #e8e4dc;
  --text-dim:  #8a8a8a;
  --text-mid:  #b0a99e;
  --white:     #f5f1eb;
  --red:       #e05252;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.3em;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:0.3} 50%{opacity:1} }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12,15,20,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-links {
  display: flex; gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: var(--gold-dim);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 4rem 4rem 6rem;
  position: relative;
  z-index: 2;
}
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding-top: 4rem;
}

/* Background decorations */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(78,205,196,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}
.hero-name span { color: var(--gold); }
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}
.hero-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}
.hero-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}
.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.1s forwards;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold);
  color: #0c0f14;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: #dbb85a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--text-mid);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border2);
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-dim);
}

/* Photo frame */
.photo-frame {
  position: relative;
  width: 320px; height: 380px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}
.photo-frame::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  right: 16px; bottom: -16px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.4;
}
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 60%, rgba(12,15,20,0.5));
  border-radius: 4px;
  z-index: 1;
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  display: block;
  filter: grayscale(15%) contrast(1.05);
}
.photo-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  z-index: 3;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.photo-badge .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.photo-badge .lbl {
  font-size: 0.62rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}
.scroll-hint span {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.2)} }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 6rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.stat-item {
  text-align: center;
  padding: 0.5rem;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: var(--border);
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
  display: block;
}

/* ============================================================
   SECTIONS — GENERIC
   ============================================================ */
section {
  padding: 5rem 6rem;
  position: relative;
}
section:nth-child(even) { background: var(--bg2); }

.section-header {
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
}
.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-bottom: 0.6rem;
}

/* ============================================================
   ABOUT / RESEARCH FOCUS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}
.about-text p strong { color: var(--text); }
.research-areas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.research-tag {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: var(--text-mid);
  transition: border-color 0.2s, background 0.2s;
}
.research-tag:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--text);
}
.research-tag .icon { color: var(--gold); font-size: 1rem; }

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.edu-timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.edu-item {
  display: flex;
  gap: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.edu-dot {
  flex-shrink: 0;
  width: 25px; height: 25px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  margin-top: 4px;
}
.edu-dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.edu-body {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  transition: border-color 0.2s;
}
.edu-body:hover { border-color: var(--border2); }
.edu-badge {
  display: inline-block;
  background: var(--gold-dim);
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.edu-degree {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.edu-inst {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.edu-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--teal);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.skill-group {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-group:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
}
.skill-group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  transition: all 0.2s;
}
.skill-chip:hover {
  background: var(--teal-dim);
  border-color: var(--teal);
  color: var(--teal);
}

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.pub-tabs {
  display: flex; gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.pub-tab {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.pub-tab.active, .pub-tab:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}
.pub-panel { display: none; }
.pub-panel.active { display: flex; flex-direction: column; gap: 1rem; }
.pub-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  transition: border-color 0.2s, background 0.2s;
  animation: fadeUp 0.4s ease both;
}
.pub-card:hover {
  border-left-color: var(--gold);
  background: rgba(201,168,76,0.04);
}
.pub-card-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.pub-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
  text-transform: uppercase;
}
.pub-badge.q1 { background: rgba(229,80,80,0.15); color: #e55050; }
.pub-badge.q2 { background: rgba(201,168,76,0.15); color: var(--gold); }
.pub-badge.conf { background: rgba(78,205,196,0.12); color: var(--teal); }
.pub-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
}
.pub-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}
.pub-journal {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-dim);
}
.pub-doi {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--teal);
  margin-top: 0.3rem;
  word-break: break-all;
}

/* ============================================================
   PATENT
   ============================================================ */
.patent-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.02));
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.patent-icon {
  font-size: 3rem;
  flex-shrink: 0;
}
.patent-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.patent-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.patent-authors { font-size: 0.82rem; color: var(--text-dim); }
.patent-granted {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(78,205,196,0.12);
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-top: 0.6rem;
  text-transform: uppercase;
}

/* ============================================================
   RESEARCH WORKS (THESES)
   ============================================================ */
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.thesis-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.thesis-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
}
.thesis-level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.thesis-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 0.6rem;
  font-style: italic;
}
.thesis-supervisor {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.thesis-supervisor strong { color: var(--text-mid); }

/* ============================================================
   COURSES
   ============================================================ */
.courses-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.course-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  transition: all 0.2s;
}
.course-item:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.course-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}
.course-name { font-size: 0.88rem; color: var(--text-mid); }

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.achievements-list { display: flex; flex-direction: column; gap: 0.75rem; }
.achievement-item {
  display: flex;
  gap: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.achievement-item:hover { border-color: var(--border2); }
.achievement-icon { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.achievement-text { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }
.achievement-text strong { color: var(--text); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  width: 36px; height: 36px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}
.contact-value { font-size: 0.88rem; color: var(--text-mid); }
.contact-value a { color: var(--teal); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }
.refs-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ref-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
}
.ref-name { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 0.3rem; }
.ref-inst { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 0.2rem; }
.ref-email { font-size: 0.78rem; color: var(--teal); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--gold);
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  section { padding: 4rem 3rem; }
  .stats-bar { padding: 2rem 3rem; grid-template-columns: repeat(3, 1fr); }
  .hero-left { padding: 7rem 3rem 4rem 4rem; }
  footer { padding: 2rem 3rem; }
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 6rem 1.5rem 2rem; }
  .hero-right { display: none; }
  section { padding: 3rem 1.5rem; }
  .stats-bar { padding: 1.5rem; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 1.5rem; flex-direction: column; text-align: center; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 58px; left: 0; right: 0; background: rgba(12,15,20,0.97); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.5rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(5)::after, .stat-item:nth-child(3)::after { display: none; }
}
