/* =====================================================
   YEABSIRA HAILE — FULLSTACK PORTFOLIO
   Premium Design System · Dark Theme
   ===================================================== */

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

:root {
  --bg-base:       #08080f;
  --bg-surface:    #0d0d1b;
  --bg-card:       #111120;
  --bg-card-hover: #16162a;
  --border:        rgba(255,255,255,0.07);
  --border-glow:   rgba(0,212,160,0.4);

  --accent-primary: #00d4a0;   /* electric blue   */
  --accent-secondary: #059669; /* deep violet      */
  --accent-amber:  #f59e0b;
  --accent-pink:   #ec4899;
  --accent-soft:   #93c5fd;    /* soft sky-blue    */

  /* Keep the old variable names so all var() references still resolve */
  --accent-purple: var(--accent-primary);
  --accent-teal:   var(--accent-secondary);

  --text-primary:  #eef0ff;
  --text-secondary:#9098b8;
  --text-muted:    #50507a;

  --font-sans:  'Inter', system-ui, sans-serif;
  --font-display:'Space Grotesk', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-card: 0 4px 32px rgba(0,0,0,0.5);
  --shadow-glow-teal:   0 0 40px rgba(5,150,105,0.14);
  --shadow-glow-purple: 0 0 40px rgba(0,212,160,0.18);

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── SCROLL PROGRESS ─────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-teal));
  z-index: 9999; width: 0%;
  box-shadow: 0 0 12px rgba(5,150,105,0.6);
  transition: width 0.1s linear;
}

/* ─── CANVAS ──────────────────────────────────────── */
#particle-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

/* ─── UTILITY ─────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--accent-teal); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-label::before { content: '//'; opacity: 0.5; }
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.15; color: var(--text-primary);
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-secondary); font-size: 1.05rem; max-width: 560px;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-label { display: block; }
.section-header .section-sub { margin: 0 auto; }
.accent { color: var(--accent-teal); }
.section-bg-glow {
  position: absolute; left: 10%; top: 10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,160,0.07) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.section-bg-glow.glow-right { left: auto; right: 10%; }

section { position: relative; padding: 7rem 0; z-index: 1; overflow: hidden; }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.85rem 2rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  color: #fff; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,212,160,0.35);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
  opacity: 0; transition: opacity 0.4s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,212,160,0.5); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary svg { width: 18px; height: 18px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 2rem; border-radius: 50px;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text-primary); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover {
  border-color: var(--accent-teal); color: var(--accent-teal);
  background: rgba(5,150,105,0.06); transform: translateY(-2px);
}

/* ─── NAVBAR ──────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0; transition: var(--transition);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 1.2rem 2rem;
  transition: var(--transition);
}
#navbar.scrolled .nav-container {
  padding: 0.8rem 2rem;
  background: rgba(9,9,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-logo {
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700;
  text-decoration: none; color: var(--text-primary);
  display: flex; align-items: center; gap: 2px;
  transition: var(--transition);
}
.nav-logo:hover { transform: scale(1.03); }
.logo-bracket { color: var(--accent-teal); }
.logo-name { color: var(--text-primary); margin: 0 2px; }
.nav-links { list-style: none; display: flex; gap: 0.25rem; }
.nav-link {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm); transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--accent-teal); border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { left: 12px; right: 12px; }
.nav-cta {
  padding: 0.55rem 1.4rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  color: #fff; font-weight: 600; font-size: 0.88rem;
  text-decoration: none; transition: var(--transition);
  box-shadow: 0 2px 16px rgba(0,212,160,0.3);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,212,160,0.5); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: 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); }
.mobile-menu {
  display: none; padding: 1rem 2rem;
  background: rgba(9,9,15,0.95); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-link { display: block; color: var(--text-secondary); text-decoration: none; padding: 0.7rem 1rem; border-radius: var(--radius-sm); font-weight: 500; transition: var(--transition); }
.mobile-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* ─── HERO ────────────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 2rem 4rem; position: relative; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,212,160,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,160,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px); z-index: 0;
}
.orb-1 { width: 600px; height: 600px; top: -200px; right: -100px; background: rgba(0,212,160,0.12); animation: float1 8s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; bottom: -100px; left: -80px; background: rgba(5,150,105,0.08); animation: float2 10s ease-in-out infinite; }
.orb-3 { width: 300px; height: 300px; top: 40%; left: 40%; background: rgba(245,158,11,0.05); animation: float3 12s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,20px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-15px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-10px,25px)} }

/* Floating Badges */
.floating-badge {
  position: absolute; z-index: 2;
  animation: badge-float 6s ease-in-out infinite;
}
.badge-left { left: 3%; top: 35%; animation-delay: -2s; }
.badge-right { right: 3%; top: 40%; animation-delay: -4s; }
@keyframes badge-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.badge-ring {
  width: 90px; height: 90px; border-radius: 50%;
  border: 1.5px solid rgba(5,150,105,0.3);
  display: flex; align-items: center; justify-content: center;
  background: rgba(9,9,15,0.6); backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(5,150,105,0.1), inset 0 0 20px rgba(5,150,105,0.03);
}
.badge-inner { text-align: center; }
.badge-abbr { display: block; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--accent-teal); }
.badge-full { font-size: 0.55rem; color: var(--text-muted); line-height: 1.3; }

.hero-content {
  max-width: 680px; position: relative; z-index: 2;
  margin: 0 auto; text-align: center;
}
.hero-availability {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.2);
  color: var(--accent-teal); font-size: 0.82rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-teal);
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(5,150,105,0.4);
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(5,150,105,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(5,150,105,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 1.2rem;
}
.title-line { display: block; }
.title-line.accent {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  color: var(--text-secondary); font-size: 1.05rem;
  margin-bottom: 2rem; letter-spacing: 0.01em;
}

.hero-stats {
  display: flex; justify-content: center; gap: 0;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.2rem 2rem;
  margin-bottom: 2rem; backdrop-filter: blur(10px);
}
.stat-item { text-align: center; padding: 0 1.8rem; }
.stat-number {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--accent-teal); line-height: 1;
  display: inline-block;
}
.stat-plus { color: var(--accent-teal); font-weight: 800; font-size: 1.3rem; }
.stat-label { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; letter-spacing: 0.04em; }
.stat-divider { width: 1px; background: var(--border); margin: 0.2rem 0; align-self: stretch; }

.hero-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.hero-cards {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1rem; z-index: 2;
  pointer-events: none;
}
.hero-card {
  background: rgba(19,19,31,0.8); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem; width: 200px;
  transition: transform 0.15s ease;
}
.hero-card:nth-child(2) { margin-left: 20px; }
.card-icon { margin-bottom: 0.6rem; }
.card-icon svg { width: 36px; height: 36px; }
.hero-card h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.3rem; }
.hero-card p { font-size: 0.73rem; color: var(--text-muted); line-height: 1.5; }

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.72rem; z-index: 2;
  animation: bounce-gentle 2.5s ease-in-out infinite;
}
.scroll-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-teal); }
@keyframes bounce-gentle { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ─── ABOUT ───────────────────────────────────────── */
#about { background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

.profile-img-wrapper {
  position: relative; display: inline-block; width: 100%; max-width: 360px;
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border);
}
.profile-img-glow {
  position: absolute; inset: -20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,160,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.profile-img {
  width: 100%; height: auto; display: block; border-radius: var(--radius-xl);
  filter: saturate(0.9) contrast(1.05);
}
.profile-badge {
  position: absolute; bottom: 1rem; left: 1rem;
  background: rgba(9,9,15,0.8); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 50px;
  padding: 0.4rem 1rem; font-size: 0.8rem; font-weight: 600;
  color: var(--text-secondary);
}

.about-journey { margin-top: 2rem; display: flex; flex-direction: column; gap: 0; }
.journey-item {
  display: flex; align-items: flex-start; gap: 1rem; padding: 0.6rem 0;
}
.j-dot {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
  border: 2px solid;
}
.j-sw { background: rgba(0,212,160,0.3); border-color: var(--accent-purple); }
.j-sn { background: rgba(5,150,105,0.3); border-color: var(--accent-teal); }
.j-now { background: rgba(5,150,105,0.6); border-color: var(--accent-teal); }
.j-now.pulse { animation: pulse-dot 2s infinite; box-shadow: 0 0 0 0 rgba(5,150,105,0.4); }
.journey-line { width: 2px; height: 28px; background: linear-gradient(180deg, var(--border), transparent); margin-left: 6px; }
.j-content { display: flex; flex-direction: column; gap: 4px; }
.j-chip {
  font-size: 0.8rem; font-weight: 700; color: var(--text-primary);
  background: rgba(255,255,255,0.05); padding: 2px 10px; border-radius: 50px;
  display: inline-block;
}
.j-chip.now { background: rgba(5,150,105,0.12); color: var(--accent-teal); }
.j-tags { font-size: 0.72rem; color: var(--text-muted); }

.about-text { padding-top: 1rem; }
.about-desc { color: var(--text-secondary); margin-bottom: 1.2rem; font-size: 1rem; }
.about-desc strong { color: var(--text-primary); }
.about-desc em { color: var(--accent-teal); font-style: normal; font-weight: 600; }

.about-quick-facts { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.5rem 0 2rem; }
.qf-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); }
.qf-item svg { width: 15px; height: 15px; stroke: var(--accent-teal); flex-shrink: 0; }

/* ─── STACK / SKILLS ──────────────────────────────── */
#stack { background: var(--bg-base); }
.stack-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stack-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.stack-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,160,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.stack-card:hover { border-color: var(--border-glow); transform: translateY(-4px); box-shadow: var(--shadow-glow-purple); }
.stack-card:hover::before { opacity: 1; }
.stack-card-icon { margin-bottom: 1rem; }
.stack-card-icon svg { width: 36px; height: 36px; }
.stack-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.stack-card-featured { border-color: rgba(5,150,105,0.25); grid-column: span 1; }
.stack-card-featured::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
}
.featured-badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 0.68rem; font-weight: 700; color: var(--accent-teal);
  background: rgba(5,150,105,0.1); border: 1px solid rgba(5,150,105,0.2);
  padding: 2px 8px; border-radius: 50px; letter-spacing: 0.05em;
}

.tech-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-chip {
  font-size: 0.75rem; font-weight: 600; color: var(--text-secondary);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 0.3rem 0.75rem; border-radius: 50px;
  transition: var(--transition);
}
.tech-chip:hover { border-color: var(--accent-purple); color: var(--accent-soft); }
.chip-react { border-color: rgba(97,218,251,0.3); color: #61daff; }
.chip-ts    { border-color: rgba(49,120,198,0.3); color: #6fa8e2; }
.chip-node  { border-color: rgba(104,160,99,0.3); color: #7abd75; }
.chip-mongo { border-color: rgba(77,179,61,0.3); color: #6abf58; }

/* Skill bars */
.skill-list { display: flex; flex-direction: column; gap: 0.85rem; }
.skill-item { display: flex; flex-direction: column; gap: 5px; }
.skill-item span { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.skill-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.skill-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-purple), var(--accent-teal)); border-radius: 2px; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* ─── PROJECTS ────────────────────────────────────── */
#projects { background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%); }

/* Filter Tabs */
.proj-filters {
  display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.55rem 1.4rem; border-radius: 50px;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); font-family: var(--font-sans);
}
.filter-btn:hover { border-color: var(--accent-purple); color: var(--text-primary); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 16px rgba(0,212,160,0.35);
}

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem;
  cursor: pointer; transition: var(--transition);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.8rem;
  opacity: 0; transform: translateY(20px);
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card.hidden-proj { display: none; }

.project-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,212,160,0.08) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.project-card:hover .project-glow { opacity: 1; }
.project-card:hover { border-color: rgba(0,212,160,0.35); transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }

.project-card-featured { border-color: rgba(5,150,105,0.3); }
.project-card-featured .project-glow { background: radial-gradient(circle at 50% 0%, rgba(5,150,105,0.1) 0%, transparent 60%); }
.project-card-featured:hover { border-color: rgba(5,150,105,0.5); box-shadow: var(--shadow-glow-teal), 0 12px 40px rgba(0,0,0,0.4); }

.featured-ribbon {
  position: absolute; top: 1rem; right: -2rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  color: #fff; font-size: 0.68rem; font-weight: 800;
  padding: 3px 40px; transform: rotate(45deg);
  letter-spacing: 0.05em;
}

.proj-corner-btn {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem 0.8rem; border-radius: 50px; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
  font-family: var(--font-sans);
}
.proj-corner-btn:hover { border-color: var(--accent-teal); color: var(--accent-teal); background: rgba(5,150,105,0.08); }

.proj-category-badge {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  color: var(--accent-purple); letter-spacing: 0.08em;
  padding-top: 0.2rem;
}

.project-thumb { border-radius: var(--radius-md); overflow: hidden; height: 160px; margin-bottom: 0.2rem; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-card:hover .project-thumb img { transform: scale(1.04); }

.project-header { display: flex; align-items: flex-start; justify-content: space-between; }
.project-icon-wrap { width: 44px; height: 44px; background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.project-icon-wrap svg { width: 22px; height: 22px; }

.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.proj-tag { font-size: 0.68rem; font-weight: 700; color: var(--accent-teal); background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.2); padding: 2px 8px; border-radius: 50px; }

.project-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.project-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }

.project-metrics { display: flex; gap: 1.5rem; padding: 0.8rem 1rem; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.metric { display: flex; flex-direction: column; gap: 2px; }
.metric-val { font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; color: var(--accent-teal); }
.metric-label { font-size: 0.68rem; color: var(--text-muted); font-weight: 500; }

.project-tech { display: flex; gap: 6px; flex-wrap: wrap; }
.project-tech span { font-size: 0.72rem; color: var(--text-muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); }

/* ─── CERTIFICATIONS ──────────────────────────────── */
#certifications { background: var(--bg-base); }
.certs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.cert-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
  transition: var(--transition);
  opacity: 0; transform: translateY(20px);
}
.cert-card.visible { opacity: 1; transform: translateY(0); }
.cert-card:hover { border-color: rgba(5,150,105,0.3); transform: translateY(-4px); box-shadow: var(--shadow-glow-teal); }
.featured-cert { border-color: rgba(5,150,105,0.25); position: relative; }
.featured-cert::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-teal), transparent); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

.cert-ring { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.cert-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cert-progress { transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1); }
.cert-badge-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cert-abbr { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 800; color: var(--accent-teal); text-align: center; }

.cert-info h3 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text-primary); }
.cert-info p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.8rem; }
.cert-issuer { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.issuer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-teal); display: inline-block; }

/* ─── CONTACT ─────────────────────────────────────── */
#contact { background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-left { padding-top: 1rem; }
.contact-desc { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1rem; max-width: 400px; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border);
  text-decoration: none; color: var(--text-primary);
  transition: var(--transition);
}
.contact-item:hover { border-color: rgba(5,150,105,0.3); background: var(--bg-card-hover); transform: translateX(4px); }
.contact-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 17px; height: 17px; stroke: var(--accent-teal); }
.contact-label { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 2px; }
.contact-val { font-size: 0.88rem; color: var(--text-primary); font-weight: 500; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.04em; }
.form-group input,
.form-group textarea {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 0.85rem 1rem;
  color: var(--text-primary); font-size: 0.9rem; font-family: var(--font-sans);
  outline: none; transition: var(--transition); resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(0,212,160,0.12); }
.form-submit { width: 100%; justify-content: center; }

/* ─── FOOTER ──────────────────────────────────────── */
#footer { padding: 4rem 0 2rem; background: var(--bg-surface); border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-logo { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; }
.footer-tagline { color: var(--text-muted); font-size: 0.88rem; max-width: 400px; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-teal); }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border); color: var(--text-muted);
  transition: var(--transition);
}
.footer-socials a:hover { border-color: var(--accent-teal); color: var(--accent-teal); background: rgba(5,150,105,0.06); }
.footer-socials a svg { width: 16px; height: 16px; }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* ─── PROJECT MODAL ───────────────────────────────── */
.proj-modal-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(4,4,16,0.82); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fade-in 0.2s ease;
}
.proj-modal-backdrop[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.proj-modal {
  background: #0f0f1a; border: 1px solid rgba(0,212,160,0.3);
  border-radius: var(--radius-xl); width: 100%; max-width: 900px;
  max-height: 90vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  animation: slide-up 0.25s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slide-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.proj-modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.proj-modal-close:hover { background: rgba(255,255,255,0.14); color: var(--text-primary); }
.proj-modal-close svg { width: 16px; height: 16px; }

.proj-modal-header {
  display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.8rem 1.8rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.proj-modal-icon { width: 48px; height: 48px; background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.2); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.proj-modal-icon svg { width: 24px; height: 24px; }
.proj-modal-tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.proj-modal-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.proj-modal-tech-row { display: flex; gap: 6px; flex-wrap: wrap; }
.proj-modal-tech-row span { font-size: 0.72rem; color: var(--text-muted); background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); }

.proj-modal-body { flex: 1; overflow-y: auto; padding: 1.5rem 1.8rem; }
.proj-modal-body::-webkit-scrollbar { width: 4px; }
.proj-modal-body::-webkit-scrollbar-track { background: transparent; }
.proj-modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.proj-modal-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }

.proj-modal-section { margin-bottom: 1.5rem; }
.proj-modal-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem;
}
.proj-modal-section-title svg { width: 14px; height: 14px; }

/* Carousel */
.proj-carousel { position: relative; overflow: hidden; border-radius: var(--radius-md); background: rgba(0,0,0,0.3); }
.carousel-track-wrap { overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.carousel-track img { width: 100%; min-width: 100%; height: 240px; object-fit: cover; object-position: top; display: block; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(9,9,15,0.8); border: 1px solid var(--border);
  color: var(--text-primary); cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.carousel-btn svg { width: 16px; height: 16px; }
.carousel-btn:hover { background: rgba(0,212,160,0.3); border-color: var(--accent-purple); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 0.6rem 0; }
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: var(--transition); }
.carousel-dot.active { background: var(--accent-teal); width: 18px; border-radius: 3px; }

/* Video */
.proj-video-wrap { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/9; background: #000; }
.proj-video-wrap iframe { width: 100%; height: 100%; border: none; }

/* Modal Metrics */
.proj-modal-metrics { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.proj-modal-metric-item { background: rgba(5,150,105,0.06); border: 1px solid rgba(5,150,105,0.15); border-radius: var(--radius-sm); padding: 0.6rem 1rem; display: flex; flex-direction: column; gap: 2px; }
.proj-modal-metric-item .metric-val { font-size: 1.1rem; font-weight: 800; }
.proj-modal-metric-item .metric-label { font-size: 0.7rem; }

/* Modal Bullets */
.proj-modal-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.proj-modal-bullets li { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; padding-left: 1.2rem; position: relative; }
.proj-modal-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--accent-teal); font-weight: 700; }

/* Modal Actions */
.proj-modal-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1rem; }
.proj-action-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0.6rem 1.2rem;
  border-radius: 50px; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: var(--transition); font-family: var(--font-sans);
}
.proj-action-btn.primary { background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal)); color: #fff; box-shadow: 0 4px 16px rgba(0,212,160,0.3); border: none; }
.proj-action-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,160,0.5); }
.proj-action-btn.ghost { border: 1.5px solid var(--border); background: transparent; color: var(--text-secondary); }
.proj-action-btn.ghost:hover { border-color: var(--accent-teal); color: var(--accent-teal); }
.proj-action-btn svg { width: 14px; height: 14px; }

/* Lock body scroll when modal open */
body.modal-open { overflow: hidden; }

/* ─── SHOW MORE ─────────────────────────── */
.projects-more-container {
  display: flex; justify-content: center; margin-top: 2.5rem;
}
.project-card.is-extra-hidden {
  display: none !important;
}

/* ─── SCROLL ANIMATIONS ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-cards { display: none; }
  .floating-badge { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { text-align: center; }
  .profile-img-wrapper { max-width: 300px; margin: 0 auto; }
  .stack-grid { grid-template-columns: repeat(2,1fr); }
  .certs-grid { grid-template-columns: repeat(2,1fr); }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 992px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .stack-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .cert-card { flex-direction: column; gap: 1rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; padding: 1rem; }
  .stat-divider { width: 100%; height: 1px; }
  .proj-modal-grid { grid-template-columns: 1fr; }
  .proj-modal-header { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  section { padding: 5rem 0; }
  .hero-title { font-size: 2.4rem; }
  .badge-left, .badge-right { display: none; }
}

