/* ════════════════════════════════════════════════════════════════
   ISMAIL ALLOUCH — PORTFOLIO
   Design System & Styles
   ════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&family=Playfair+Display:wght@700;800;900&display=swap');

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  /* Base */
  --bg-primary: #07080d;
  --bg-secondary: #0d0f17;
  --bg-card: #12141f;
  --bg-card-hover: #181b29;
  --bg-elevated: #1a1d2e;

  /* Text */
  --text-primary: #e8e6e3;
  --text-secondary: #8b8d98;
  --text-muted: #565869;

  /* Accent Palette — deliberately varied */
  --accent-teal: #2dd4bf;
  --accent-coral: #f97066;
  --accent-purple: #a78bfa;
  --accent-gold: #fbbf24;
  --accent-blue: #60a5fa;
  --accent-rose: #fb7185;
  --accent-emerald: #34d399;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #2dd4bf 0%, #a78bfa 50%, #f97066 100%);
  --gradient-card: linear-gradient(145deg, rgba(45,212,191,0.08) 0%, rgba(167,139,250,0.08) 100%);
  --gradient-border: linear-gradient(135deg, rgba(45,212,191,0.4), rgba(167,139,250,0.4), rgba(249,112,102,0.4));

  /* Spacing */
  --section-padding: clamp(60px, 8vw, 100px) 0;
  --container-width: 1140px;

  /* Borders */
  --border-subtle: 1px solid rgba(255,255,255,0.05);
  --border-card: 1px solid rgba(255,255,255,0.07);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-medium: 0.4s var(--ease-out);
  --transition-slow: 0.7s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: rgba(45,212,191,0.3);
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

/* ── Typography ──────────────────────────────────────────────── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(45,212,191,0.15); }
  50%      { box-shadow: 0 0 40px rgba(45,212,191,0.3); }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes dash {
  to { stroke-dashoffset: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(7,8,13,0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: var(--border-subtle);
}

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

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--accent-teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-teal);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

/* Decorative background orbs */
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}

.hero-bg-orb--1 {
  width: 600px;
  height: 600px;
  background: var(--accent-teal);
  top: -200px;
  right: -150px;
}

.hero-bg-orb--2 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  bottom: -100px;
  left: -100px;
}

.hero-bg-orb--3 {
  width: 300px;
  height: 300px;
  background: var(--accent-coral);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 1s var(--ease-out);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45,212,191,0.1);
  border: 1px solid rgba(45,212,191,0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-teal);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-teal);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero h1 .gradient-text {
  background: var(--gradient-hero);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease infinite;
}

.hero h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--accent-teal);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: #5ce0d0;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45,212,191,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-outline:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  transform: translateY(-2px);
}

/* Hero visual — abstract code/agent illustration */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1s var(--ease-out) 0.3s both;
}

.hero-card {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-card-dots {
  display: flex;
  gap: 6px;
}

.hero-card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-card-dots span:nth-child(1) { background: var(--accent-coral); }
.hero-card-dots span:nth-child(2) { background: var(--accent-gold); }
.hero-card-dots span:nth-child(3) { background: var(--accent-emerald); }

.hero-card-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 2;
}

.hero-code .keyword { color: var(--accent-purple); }
.hero-code .function { color: var(--accent-teal); }
.hero-code .string { color: var(--accent-gold); }
.hero-code .comment { color: var(--text-muted); font-style: italic; }
.hero-code .variable { color: var(--accent-coral); }
.hero-code .bracket { color: var(--text-secondary); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: var(--border-subtle);
}

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

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat-value.teal { color: var(--accent-teal); }
.hero-stat-value.coral { color: var(--accent-coral); }
.hero-stat-value.purple { color: var(--accent-purple); }

.hero-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════════ */
.about {
  padding: var(--section-padding);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.highlight-card {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 0 4px 4px 0;
}

.highlight-card:nth-child(1)::before { background: var(--accent-teal); }
.highlight-card:nth-child(2)::before { background: var(--accent-purple); }
.highlight-card:nth-child(3)::before { background: var(--accent-coral); }
.highlight-card:nth-child(4)::before { background: var(--accent-gold); }

.highlight-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.highlight-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

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

.highlight-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   EXPERIENCE — TIMELINE
   ══════════════════════════════════════════════════════════════ */
.experience {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,0.2), transparent);
}

.timeline {
  margin-top: 48px;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-teal), var(--accent-purple), var(--accent-coral));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-bottom: 8px;
}

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

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
}

.timeline-item:nth-child(1) .timeline-dot { background: var(--accent-teal); box-shadow: 0 0 12px rgba(45,212,191,0.4); }
.timeline-item:nth-child(2) .timeline-dot { background: var(--accent-purple); box-shadow: 0 0 12px rgba(167,139,250,0.4); }
.timeline-item:nth-child(3) .timeline-dot { background: var(--accent-coral); box-shadow: 0 0 12px rgba(249,112,102,0.4); }
.timeline-item:nth-child(4) .timeline-dot { background: var(--accent-gold); box-shadow: 0 0 12px rgba(251,191,36,0.4); }

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-teal);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.tag-teal { background: rgba(45,212,191,0.12); color: var(--accent-teal); }
.tag-purple { background: rgba(167,139,250,0.12); color: var(--accent-purple); }
.tag-coral { background: rgba(249,112,102,0.12); color: var(--accent-coral); }
.tag-gold { background: rgba(251,191,36,0.12); color: var(--accent-gold); }
.tag-blue { background: rgba(96,165,250,0.12); color: var(--accent-blue); }
.tag-emerald { background: rgba(52,211,153,0.12); color: var(--accent-emerald); }

/* ══════════════════════════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════════════════════════ */
.projects {
  padding: var(--section-padding);
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transition: height var(--transition-medium);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-card:nth-child(1)::before { background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue)); }
.project-card:nth-child(2)::before { background: linear-gradient(90deg, var(--accent-purple), var(--accent-rose)); }
.project-card:nth-child(3)::before { background: linear-gradient(90deg, var(--accent-emerald), var(--accent-teal)); }
.project-card:nth-child(4)::before { background: linear-gradient(90deg, var(--accent-coral), var(--accent-gold)); }
.project-card:nth-child(5)::before { background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple)); }
.project-card:nth-child(6)::before { background: linear-gradient(90deg, var(--accent-gold), var(--accent-coral)); }
.project-card:nth-child(7)::before { background: linear-gradient(90deg, var(--accent-rose), var(--accent-purple)); }

.project-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.project-card:hover::before {
  height: 4px;
}

/* Featured project spans full width */
.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 36px;
}

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

.project-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.project-card:nth-child(1) .project-icon { background: rgba(45,212,191,0.12); }
.project-card:nth-child(2) .project-icon { background: rgba(167,139,250,0.12); }
.project-card:nth-child(3) .project-icon { background: rgba(52,211,153,0.12); }
.project-card:nth-child(4) .project-icon { background: rgba(249,112,102,0.12); }
.project-card:nth-child(5) .project-icon { background: rgba(96,165,250,0.12); }
.project-card:nth-child(6) .project-icon { background: rgba(251,191,36,0.12); }
.project-card:nth-child(7) .project-icon { background: rgba(251,113,133,0.12); }

.project-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

/* ══════════════════════════════════════════════════════════════
   SKILLS
   ══════════════════════════════════════════════════════════════ */
.skills {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.2), transparent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.skill-category {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-medium);
}

.skill-category:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.skill-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.skill-cat-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(45,212,191,0.1);
  color: var(--accent-teal);
  border-color: rgba(45,212,191,0.2);
}

/* ══════════════════════════════════════════════════════════════
   CERTIFICATIONS
   ══════════════════════════════════════════════════════════════ */
.certifications {
  padding: var(--section-padding);
  position: relative;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.cert-card {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-medium);
}

.cert-card:hover {
  background: var(--bg-card-hover);
  transform: translateX(6px);
}

.cert-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.cert-info {
  flex: 1;
}

.cert-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.cert-issuer {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
.contact {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  text-align: center;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,112,102,0.2), transparent);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact .section-subtitle {
  margin: 0 auto 40px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.contact-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-link svg {
  width: 18px;
  height: 18px;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  padding: 30px 0;
  text-align: center;
  border-top: var(--border-subtle);
}

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

.footer span {
  color: var(--accent-coral);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta { justify-content: center; }
  .hero-visual { margin-top: 20px; }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7,8,13,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-card {
    max-width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 30px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-stat-value { font-size: 1.2rem; }
  .btn { padding: 11px 22px; font-size: 0.85rem; }
  .contact-links { flex-direction: column; align-items: center; }
}
