/* ================================================================
   AI Engineer Portfolio  style.css
   Modern dark theme with purple/teal gradient accents
   Author: Generated for Akram's portfolio
   ================================================================ */

/*  CSS Custom Properties (Design Tokens)  */
:root {
  /* Colors */
  --bg-primary:    #0a0e1a;       /* Deep dark navy */
  --bg-secondary:  #0f1629;       /* Slightly lighter panels */
  --bg-card:       #111827;       /* Card background */
  --bg-card-hover: #161f30;       /* Card hover */

  /* Purple → Teal gradient  the main accent */
  --grad-start:    #7c3aed;       /* Purple */
  --grad-mid:      #4f46e5;       /* Indigo */
  --grad-end:      #06b6d4;       /* Cyan */

  /* Text */
  --text-primary:  #f0f6ff;
  --text-secondary:#94a3b8;
  --text-muted:    #4b5563;

  /* Borders */
  --border:        rgba(148, 163, 184, 0.08);
  --border-hover:  rgba(124, 58, 237, 0.5);

  /* Glow / shadows */
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow:   0 0 40px rgba(124, 58, 237, 0.15);
  --glow-purple:   0 0 20px rgba(124, 58, 237, 0.4);
  --glow-cyan:     0 0 20px rgba(6, 182, 212, 0.3);

  /* Font */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: 5rem 0;
  --container-max: 1200px;
  --radius:  12px;
  --radius-lg: 20px;

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/*  Utility Classes  */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sections */
.section {
  padding: var(--section-pad);
}
.section-dark {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.9rem 0;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo-bracket { color: var(--grad-start); }
.logo-slash   { color: var(--grad-end); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.nav-cta {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: #c4b5fd;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--grad-start);
  color: #e9d5ff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Animated gradient blobs */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: blobFloat 12s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -15%; left: -15%;
  animation-duration: 14s;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #06b6d4, transparent);
  bottom: -10%; right: -10%;
  animation-delay: -5s; animation-duration: 18s;
}
.blob-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #4f46e5, transparent);
  top: 40%; left: 40%;
  animation-delay: -9s; animation-duration: 22s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  max-width: 760px;
  width: 100%;
}

/* Avatar */
.avatar-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
}
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(124, 58, 237, 0.5);
  position: relative;
  z-index: 1;
  margin: 5px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Fallback initials avatar */
.avatar-fallback {
  display: none;          /* shown via JS onerror */
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

/* Spinning ring */
.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              linear-gradient(135deg, var(--grad-start), var(--grad-end)) border-box;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero text */
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.hero-greeting {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-name {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 30%, var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: var(--grad-end);
  min-height: 1.8em;
}
.cursor {
  display: inline-block;
  color: var(--grad-start);
  animation: blink 1s step-end infinite;
  font-weight: 100;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}
.hero-description strong { color: var(--text-primary); }

/* CTA Buttons */
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn {
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.6);
}
.btn-secondary {
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.06);
}
.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.15);
  transform: translateY(-2px);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
  justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid rgba(148,163,184,0.4);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 4px; height: 6px;
  background: var(--grad-end);
  border-radius: 2px;
  animation: scrollDot 2.5s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }
@keyframes scrollDot    { 0%,100%{opacity:0;transform:translateY(0)} 40%{opacity:1} 60%,80%{opacity:0;transform:translateY(8px)} }

/* ================================================================
   EXPERTISE CARDS
   ================================================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.expertise-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(6,182,212,0.03));
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.expertise-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.expertise-card:hover::before { opacity: 1; }

.expertise-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.expertise-icon svg { width: 26px; height: 26px; }

.gen-ai-icon { background: rgba(124,58,237,0.15); color: #a78bfa; }
.cv-icon     { background: rgba(6,182,212,0.12);  color: #22d3ee; }
.ml-icon     { background: rgba(79,70,229,0.15);  color: #818cf8; }

.expertise-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.expertise-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.expertise-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
}
.expertise-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--grad-end);
}

/* ================================================================
   SKILLS SECTION
   ================================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skills-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition);
}
.skills-category:hover { border-color: rgba(124,58,237,0.3); }

.skills-cat-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cat-icon {
  font-family: var(--font-mono);
  color: var(--grad-end);
  font-size: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: default;
}
.skill-tag:hover {
  border-color: rgba(124,58,237,0.4);
  color: #c4b5fd;
  background: rgba(124,58,237,0.08);
}
/* Primary / featured skill */
.skill-tag.skill-primary {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.35);
  color: #c4b5fd;
}

/* ================================================================
   PROJECTS  TAB BAR
   ================================================================ */
.tab-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  border-radius: 6px 6px 0 0;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--grad-start);
  background: rgba(124,58,237,0.06);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: rgba(124,58,237,0.2);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 10px;
}
.tab-icon { font-size: 1.1rem; }

/* Tab panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ================================================================
   PROJECTS GRID & CARDS
   ================================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Centered layout for GenAI (only 2 cards) */
.projects-grid--centered {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

/* Project card */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Glow sweep on hover */
.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.06), transparent);
  transition: left 0.5s ease;
}
.project-card:hover::after { left: 150%; }

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), var(--shadow-glow);
}

/* Featured card variant */
.project-card--featured {
  border-color: rgba(124,58,237,0.2);
  background: linear-gradient(145deg, #111827, #0f1629);
}
.project-card--featured:hover {
  border-color: rgba(124,58,237,0.6);
}

/* Card header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Category icon bubble */
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.card-icon.cv     { background: rgba(6,182,212,0.12); }
.card-icon.genai  { background: rgba(124,58,237,0.15); }

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

/* GitHub icon link */
.card-gh-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.card-gh-link svg { width: 18px; height: 18px; }
.card-gh-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

/* Card title */
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Card description */
.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

/* Card highlights (featured cards only) */
.card-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  background: rgba(124,58,237,0.06);
  border-radius: 8px;
  border-left: 3px solid var(--grad-start);
}
.highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}
.highlight-icon { font-size: 1rem; }

/* Tech tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 500;
  background: rgba(79,70,229,0.1);
  border: 1px solid rgba(79,70,229,0.25);
  color: #a5b4fc;
  font-family: var(--font-mono);
}

/* Card "View Repository" link */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grad-end);
  margin-top: 0.25rem;
  transition: gap var(--transition), color var(--transition);
}
.card-link:hover { gap: 0.6rem; color: #67e8f9; }
.card-link span { transition: transform var(--transition); }
.card-link:hover span { transform: translateX(3px); }

/* ================================================================
   CONTACT SECTION
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}
.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-icon--linkedin { background: rgba(0,119,181,0.15); color: #60a5fa; }
.contact-icon--email    { background: rgba(234,88,12,0.12);  color: #fb923c; }

.contact-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}
.contact-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.contact-card:hover .contact-arrow {
  color: var(--grad-end);
  transform: translate(3px, -3px);
}

/* Availability badge */
.availability {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.avail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.footer-logo {
  font-family: var(--font-mono);
  font-weight: 600;
}
.footer-copy { color: var(--text-muted); }
.footer-year { color: var(--text-muted); }

/* ================================================================
   RESPONSIVE  MOBILE
   ================================================================ */
@media (max-width: 768px) {
  :root { --section-pad: 3.5rem 0; }

  /* Navbar mobile */
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(10,14,26,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem 2rem;
    gap: 0.25rem;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-link, .nav-cta { font-size: 1rem; padding: 0.6rem 0.5rem; width: 100%; }
  .nav-cta { margin-top: 0.5rem; }

  /* Hero */
  .hero { padding: 7rem 1.25rem 4rem; }
  .hero-stats { gap: 1rem; padding: 0.75rem 1rem; }
  .stat-number { font-size: 1.25rem; }

  /* Cards */
  .projects-grid,
  .projects-grid--centered { grid-template-columns: 1fr; }

  /* Footer */
  .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .expertise-grid { grid-template-columns: 1fr; }
  .skills-grid    { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .tab-bar { gap: 0.25rem; }
  .tab-btn { padding: 0.6rem 0.9rem; font-size: 0.88rem; }
}

/* ================================================================
   SCROLL-REVEAL ANIMATION (data-aos simulation via CSS)
   ================================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
/* Delay utilities (applied via JS) */
[data-aos-delay="50"]  { transition-delay: 50ms; }
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="150"] { transition-delay: 150ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos-delay="250"] { transition-delay: 250ms; }
[data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos-delay="350"] { transition-delay: 350ms; }

/* ================================================================
   SCROLLBAR STYLING (webkit browsers)
   ================================================================ */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--grad-start), var(--grad-end));
  border-radius: 3px;
}

/* ================================================================
   SELECTION COLOR
   ================================================================ */
::selection { background: rgba(124,58,237,0.35); color: white; }
