/* ═══════════════════════════════════════════════════════════════
   YASH PATEL PORTFOLIO — styles.css
   Theme: Dark Terminal Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. CSS Custom Properties ─────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-1: #050b15;
  --bg-2: #080f1e;
  --bg-3: #0d1626;
  --glass: rgba(13, 22, 38, 0.7);
  --glass-border: rgba(0, 212, 255, 0.12);

  /* Accents */
  --cyan: #00d4ff;
  --blue: #0066ff;
  --violet: #7c3aed;
  --green: #00ff88;
  --amber: #ffb347;

  /* Text */
  --text-1: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #475569;

  /* Gradients */
  --grad-accent: linear-gradient(90deg, #00d4ff, #0066ff);
  --grad-hero: linear-gradient(135deg, #050b15 0%, #0d1a2d 50%, #0a0d1a 100%);
  --grad-timeline: linear-gradient(180deg, #00d4ff, #7c3aed);

  /* Layout */
  --nav-height: 72px;
  --container-max: 1200px;
  --section-pad: clamp(5rem, 10vw, 9rem) 0;

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

  /* Borders */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 9999px;

  /* Transitions */
  --t-base: 0.3s ease;
  --t-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  scroll-padding-top: var(--nav-height);
  scroll-behavior: smooth;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-1);
  color: var(--text-1);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--cyan);
  color: var(--bg-1);
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ─── 3. Utilities ──────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.glass-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.08), inset 0 1px 0 rgba(0, 212, 255, 0.06);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 4. Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--t-base);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-accent);
  color: var(--bg-1);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
  filter: brightness(1.1);
}
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.4);
}
.btn-outline:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ─── 5. Section Header ─────────────────────────────────────── */
.section-header {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 3rem;
}
.section-header .prompt { color: var(--green); margin-right: 0.5rem; }
.section-header .command { color: var(--cyan); }
.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--grad-accent);
  margin-top: 0.75rem;
  border-radius: 2px;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  color: var(--text-2);
  transition: all var(--t-base);
}
.tag:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ─── 6. Navigation ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
  border-bottom: 1px solid transparent;
}
body.scrolled #navbar {
  background: rgba(5, 11, 21, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(0, 212, 255, 0.08);
}
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-1);
  transition: color var(--t-base);
}
.nav-logo:hover { color: var(--cyan); }
.terminal-dollar { color: var(--green); margin-right: 0.25rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: all var(--t-base);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--cyan); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}
.nav-cta {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan) !important;
}
.nav-cta:hover { background: rgba(0, 212, 255, 0.2); }

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

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 21, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-nav-links { text-align: center; }
.mobile-link {
  display: block;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-2);
  padding: 0.75rem 0;
  transition: color var(--t-base);
}
.mobile-link:hover { color: var(--cyan); }

/* ─── 7. Hero ───────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-hero);
  overflow: hidden;
}
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) clamp(1.5rem, 4vw, 3rem) 4rem;
  max-width: 800px;
}
.hero-greeting {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--cyan);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.2s forwards;
}
.hero-name {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-1);
  text-shadow: 0 0 80px rgba(0, 212, 255, 0.2);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.4s forwards;
}
.typed-wrapper {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-family: var(--font-mono);
  color: var(--text-2);
  margin-bottom: 1.5rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.6s forwards;
}
.typed-prefix { color: var(--text-2); }
.typed-text { color: var(--cyan); font-weight: 600; }
.typed-cursor {
  color: var(--cyan);
  font-weight: 300;
  animation: blink 1s step-end infinite;
}
.hero-bio {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.8s forwards;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 1s forwards;
}
.hero-socials {
  display: flex;
  gap: 0.75rem;
  margin-left: 0.5rem;
}
.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--text-2);
  font-size: 1.1rem;
  transition: all var(--t-base);
}
.hero-socials a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  transform: translateY(-3px);
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-3);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  animation: fadeIn 1s ease 1.5s both;
}
.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ─── 8. About ──────────────────────────────────────────────── */
#about {
  padding: var(--section-pad);
  background: var(--bg-2);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-left { display: flex; flex-direction: column; align-items: center; gap: 2rem; }

/* Avatar */
.avatar-wrapper {
  position: relative;
  width: 230px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-3), #1a2940);
  border: 2px solid rgba(0, 212, 255, 0.3);
  overflow: hidden;
  z-index: 1;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.2);
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.avatar-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.18);
  animation: rotate 8s linear infinite;
}
.avatar-ring-2 {
  inset: -28px;
  border-color: rgba(124, 58, 237, 0.14);
  animation: rotate 14s linear infinite reverse;
}

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}
.stat-card {
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Terminal block */
.terminal-block {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--cyan);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }
.terminal-filename {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}
.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
}
.terminal-body pre { white-space: pre-wrap; }
.kw-blue   { color: #569cd6; }
.kw-cyan   { color: #9cdcfe; }
.kw-green  { color: #ce9178; }
.kw-white  { color: #d4d4d4; }

.about-bio {
  font-size: 0.97rem;
  color: var(--text-2);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ─── 9. Skills ─────────────────────────────────────────────── */
#skills {
  padding: var(--section-pad);
  background: var(--bg-1);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  padding: 1.75rem;
}
.skill-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.skill-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--cyan);
  flex-shrink: 0;
}
.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.14);
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  color: var(--text-2);
  font-family: var(--font-mono);
  transition: all var(--t-base);
  opacity: 0;
  animation: tagPop 0.4s ease forwards;
}
.skill-tag:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ─── 10. Experience ────────────────────────────────────────── */
#experience {
  padding: var(--section-pad);
  background: var(--bg-2);
}
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--grad-timeline);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.25rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15), 0 0 16px rgba(0, 212, 255, 0.5);
  z-index: 1;
}
.timeline-dot.pulse { animation: dotPulse 2s ease-in-out infinite; }
.timeline-content {
  padding: 1.75rem;
}
.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.3rem;
}
.company, .location {
  font-size: 0.88rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}
.company i, .location i { color: var(--cyan); font-size: 0.75rem; }
.timeline-dates { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; flex-shrink: 0; }
.date-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 179, 71, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.25);
  border-radius: var(--r-sm);
  color: var(--amber);
  white-space: nowrap;
}
.status-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.status-badge.active {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--green);
}
.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 2s ease-in-out infinite;
}
.timeline-bullets {
  margin-bottom: 1.25rem;
}
.timeline-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}
.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.8rem;
}
.timeline-bullets strong { color: var(--text-1); font-weight: 600; }
.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tech-tag {
  padding: 0.2rem 0.6rem;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--r-sm);
  font-size: 0.73rem;
  font-family: var(--font-mono);
  color: #7eb3ff;
}

/* ─── 11. Projects ──────────────────────────────────────────── */
#projects {
  padding: var(--section-pad);
  background: var(--bg-1);
}
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--t-base);
}
.filter-btn:hover { border-color: rgba(0, 212, 255, 0.3); color: var(--cyan); }
.filter-btn.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--cyan);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.project-card {
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-smooth);
}
.project-card:hover { transform: translateY(-6px); }
.project-card:hover::before { transform: scaleX(1); }
.project-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}
.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.project-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--cyan);
}
.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-2);
  font-size: 1rem;
  transition: all var(--t-base);
}
.project-links a:hover { border-color: var(--cyan); color: var(--cyan); }
.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.metric {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--green);
}
.metric i { font-size: 0.7rem; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tags span {
  padding: 0.2rem 0.6rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-3);
}

/* ─── 12. Certifications ────────────────────────────────────── */
#certifications {
  padding: var(--section-pad);
  background: var(--bg-2);
}
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  transition: all var(--t-base);
}
.cert-card:hover { transform: translateY(-3px) scale(1.01); }
.cert-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 52px;
  text-align: center;
}
.aws-icon    { color: #FF9900; }
.cisco-icon  { color: #1ba0d7; }
.coursera-icon { color: #0056d2; }
.mongo-icon  { color: #00ed64; }
.cert-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.25rem;
}
.cert-issuer {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}
.cert-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  font-family: var(--font-mono);
}

/* ─── 13. Contact ───────────────────────────────────────────── */
#contact {
  padding: var(--section-pad);
  background: var(--bg-1);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-heading {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.contact-subtext {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-info { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text-2);
  font-size: 0.9rem;
  padding: 0.6rem 0;
  transition: color var(--t-base);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.contact-item:hover { color: var(--cyan); }
.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--cyan);
  flex-shrink: 0;
}
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--r-full);
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
}
.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 2s ease-in-out infinite;
}

/* Contact Form */
.contact-form {
  padding: 2rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}
#submit-btn.success {
  background: var(--green) !important;
  color: var(--bg-1) !important;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3) !important;
}

/* Field validation error highlight */
.form-group input.field-error,
.form-group textarea.field-error {
  border-color: #ff5f57;
  box-shadow: 0 0 0 3px rgba(255, 95, 87, 0.12);
}

/* Form-level error message */
.form-error {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 95, 87, 0.08);
  border: 1px solid rgba(255, 95, 87, 0.25);
  border-radius: var(--r-sm);
  color: #ff8a84;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.form-error i { margin-top: 0.1rem; flex-shrink: 0; }

/* ─── 14. Footer ────────────────────────────────────────────── */
footer {
  background: var(--bg-2);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-gradient-line {
  height: 2px;
  background: var(--grad-accent);
}
footer .container { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy, .footer-credit { font-size: 0.85rem; color: var(--text-3); }
.heart { color: #ff6b8a; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  color: var(--text-3);
  font-size: 1rem;
  transition: color var(--t-base);
}
.footer-socials a:hover { color: var(--cyan); }

/* ─── 15. Keyframe Animations ───────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(6px); opacity: 0.4; }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes tagPop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15), 0 0 16px rgba(0, 212, 255, 0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0.08), 0 0 28px rgba(0, 212, 255, 0.7); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ─── 16. Responsive Breakpoints ───────────────────────────── */

/* Large tablet */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-left {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
  }
  .avatar-wrapper { width: 210px; height: 210px; }
  .avatar { width: 172px; height: 172px; }
  .stat-cards { max-width: 400px; }
  .contact-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .skills-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .certs-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-left { flex-direction: column; align-items: center; }
  .avatar-wrapper { width: 190px; height: 190px; }
  .avatar { width: 155px; height: 155px; }
  .avatar-ring { inset: -12px; }
  .avatar-ring-2 { inset: -24px; }
  .stat-cards { width: 100%; max-width: 100%; grid-template-columns: repeat(2, 1fr); }
  .about-tags { justify-content: center; }

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

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }
  .filter-tabs { flex-wrap: wrap; }

  /* Experience */
  .timeline { padding-left: 1.75rem; }
  .timeline::before { left: 5px; }
  .timeline-dot { left: -1.85rem; }
  .timeline-header { flex-direction: column; gap: 0.75rem; }
  .timeline-dates { align-items: flex-start; }

  /* Certifications */
  .certs-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Hero */
  .hero-actions { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-socials { margin-left: 0; }

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

/* Mobile portrait */
@media (max-width: 480px) {
  /* Avatar */
  .avatar-wrapper { width: 170px; height: 170px; }
  .avatar { width: 138px; height: 138px; }
  .avatar-ring { inset: -10px; }
  .avatar-ring-2 { inset: -20px; }

  /* Stat cards */
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 1.35rem; }

  /* Skills */
  .skill-card { padding: 1.25rem; }

  /* Filter */
  .filter-tabs { gap: 0.4rem; }
  .filter-btn { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

  /* Projects */
  .project-card { padding: 1.25rem; }

  /* Timeline */
  .timeline-content { padding: 1.25rem; }
  .timeline-bullets li { font-size: 0.85rem; }

  /* Certifications */
  .certs-grid { grid-template-columns: 1fr; }
  .cert-card { padding: 1.1rem; gap: 1rem; }

  /* Contact */
  .contact-form { padding: 1.25rem; }
  .contact-heading { font-size: 1.3rem; }

  /* Hero */
  .hero-content { padding-left: 1rem; padding-right: 1rem; }
  .btn { padding: 0.65rem 1.25rem; font-size: 0.88rem; }

  /* Section headers */
  .section-header { font-size: 1.4rem; margin-bottom: 2rem; }
}

/* ─── 17. Accessibility: Reduced Motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-greeting, .hero-name, .typed-wrapper,
  .hero-bio, .hero-actions { opacity: 1; animation: none; }
  #particles-canvas { display: none; }
}
