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

:root {
  --primary:      #00d4ff;
  --secondary:    #7b2cbf;
  --accent:       #a855f7;
  --dark:         #0a0a0f;
  --darker:       #050508;
  --card:         #12121a;
  --card-hover:   #1a1a26;
  --text:         #e0e0e0;
  --text-muted:   #8b8b9a;
  --border:       rgba(255,255,255,0.08);
  --border-glow:  rgba(0,212,255,0.25);
  --grad:         linear-gradient(135deg, var(--primary), var(--secondary));
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--darker);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 14px;
  background: var(--primary);
  color: var(--darker);
  border-radius: 6px;
  font-weight: 700;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ─── Container ─────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 14px 0;
  transition: background 0.3s ease;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.25s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

/* Mobile nav open state */
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: rgba(5,5,8,0.97);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }

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

  .nav-links li a {
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  background: radial-gradient(ellipse at 50% 40%, rgba(123,44,191,0.18) 0%, transparent 65%);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%2300d4ff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

/* Status badge */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease 0.05s forwards;
}

.status-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px #22c55e; }
  50%       { box-shadow: 0 0 12px #22c55e; }
}

/* Greeting / name */
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease 0.15s forwards;
}

.greeting {
  display: block;
  font-size: 0.45em;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

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

.hero-title {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease 0.25s forwards;
  line-height: 1.5;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease 0.35s forwards;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease 0.45s forwards;
}

.hero-stat { text-align: center; }

.hero-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease 0.55s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,212,255,0.06);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 11px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 7px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.4; }
}

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

@supports (content-visibility: auto) {
  .section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
  }
}

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

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header h2 .highlight {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Reveal animation ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* ─── Hero photo ─────────────────────────────────────────────────── */
.hero-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  border: 3px solid rgba(0,212,255,0.45);
  box-shadow: 0 0 28px rgba(0,212,255,0.25);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  animation: fadeInUp 0.7s ease 0s forwards;
}

.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ─── About ──────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-avatar {
  position: relative;
  width: 220px; height: 220px;
}

.avatar-bg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(123,44,191,0.12));
  border-radius: 50%;
  border: 2px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.avatar-bg.photo {
  padding: 0;
  overflow: hidden;
  font-size: 0;
}

.avatar-bg.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.avatar-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, rgba(0,212,255,0.15), transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

.about-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.about-badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  letter-spacing: 0.02em;
}

.about-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.about-content > p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.about-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.num-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 12px;
  text-align: center;
  transition: border-color 0.25s ease;
}

.num-card:hover { border-color: var(--border-glow); }

.num-value {
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.num-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Timeline (Experience) ──────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline-line {
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
  border-radius: 1px;
}

.timeline-item {
  display: flex;
  gap: 28px;
  margin-bottom: 48px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  left: -32px;
}

.marker-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad);
  border: 3px solid var(--darker);
  box-shadow: 0 0 12px rgba(0,212,255,0.4);
  flex-shrink: 0;
  z-index: 1;
}

.marker-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
}

.timeline-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  flex: 1;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.timeline-content:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.timeline-period {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-company {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.location-badge {
  padding: 2px 10px;
  background: rgba(123,44,191,0.15);
  border: 1px solid rgba(123,44,191,0.25);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--accent);
}

.timeline-content > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  padding: 4px 12px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 500;
}

/* Compact timeline row */
.timeline-content-compact { padding: 20px 28px; }

.timeline-compact-list { display: flex; flex-direction: column; gap: 6px; }

.compact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.88rem;
}

.compact-period { color: var(--primary); font-weight: 600; min-width: 160px; }

.compact-role { font-weight: 600; }

.compact-company { color: var(--text-muted); }

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

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.skill-card:hover::before { transform: scaleX(1); }

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.skill-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

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

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.cert-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.cert-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.cert-info { flex: 1; }

.cert-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.cert-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.55;
}

.cert-issuer {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-link {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.25s ease;
  margin-top: 4px;
}

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

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

.community-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.community-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.youtube-card:hover  { border-color: rgba(255,0,0,0.35); }
.github-card:hover   { border-color: rgba(255,255,255,0.2); }
.linkedin-card:hover { border-color: rgba(0,119,181,0.35); }

.community-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.youtube-card  .community-icon { background: rgba(255,0,0,0.12);     color: #ff4444; }
.github-card   .community-icon { background: rgba(255,255,255,0.08); color: #fff; }
.linkedin-card .community-icon { background: rgba(0,119,181,0.15);   color: #0077b5; }

.community-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.community-stat {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.community-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.community-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.community-meta span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}

.community-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
}

/* ─── Contact ─────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-icon {
  width: 44px; height: 44px;
  background: rgba(0,212,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info { flex: 1; }

.contact-info h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-info p {
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-card:hover .contact-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* ─── Footer ──────────────────────────────────────────────────────── */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.footer-brand { display: flex; flex-direction: column; gap: 6px; }

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  width: 40px; height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.footer-links a:hover {
  border-color: var(--border-glow);
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── Animations ──────────────────────────────────────────────────── */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { flex-direction: row; justify-content: flex-start; }
  .about-numbers { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 640px) {
  .hero-stats { gap: 24px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }
  .about-visual { flex-direction: column; align-items: center; }
  .about-numbers { grid-template-columns: 1fr; }
  .timeline-item { flex-direction: column; gap: 12px; }
  .timeline-marker { flex-direction: row; left: 0; }
  .marker-line { width: auto; height: 2px; flex: 1; }
  .timeline-line { display: none; }
  .timeline { padding-left: 0; }
  .compact-row { flex-direction: column; gap: 4px; }
  .footer-content { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .certs-grid, .community-grid { grid-template-columns: 1fr; }
  .cert-card { flex-direction: column; }
  .section-header h2 { font-size: 1.6rem; }
}
