/* ===================================================
   Md. Adnan Maruf — Portfolio
   Dark, modern, techy theme
=================================================== */

:root {
  --bg: #070a12;
  --bg-alt: #0b0f1a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --text-muted: #93a0b8;
  --text-faint: #5b667d;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --pink: #f472b6;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet));
  --grad-soft: linear-gradient(120deg, rgba(34,211,238,0.15), rgba(168,85,247,0.15));
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.15);
  --radius: 18px;
  --radius-sm: 12px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

::selection { background: var(--violet); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--cyan), var(--violet)); border-radius: 10px; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Loader ===== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
  display: flex; gap: 8px; align-items: center;
  animation: pulseLoader 1.2s ease-in-out infinite;
}
.loader-bracket { color: var(--cyan); }
.loader-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes pulseLoader {
  0%, 100% { opacity: 0.5; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1); }
}

/* ===== Cursor glow (desktop) ===== */
.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.06), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  display: none;
}
@media (min-width: 900px) { .cursor-glow { display: block; } }

/* ===== Reveal animation ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.reveal-up.in-view { opacity: 1; transform: translateY(0); }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 10, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--font-mono); font-size: 1.3rem; font-weight: 500;
  display: flex; align-items: center;
}
.brand-mark {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-dot { color: var(--cyan); }

.nav-links { display: flex; gap: 4px; }
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 20px;
  transition: color 0.25s ease, background 0.25s ease;
  display: flex; align-items: center; gap: 6px;
}
.nav-link .idx { color: var(--text-faint); font-size: 0.72rem; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); background: var(--surface); }
.nav-link.active .idx { color: var(--cyan); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 30px; height: 22px;
  justify-content: center;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.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); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn svg { transition: transform 0.25s ease; }
.btn-primary {
  background: var(--grad); color: #05070d;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(168, 85, 247, 0.4); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-outline {
  border: 1px solid var(--surface-border);
  color: var(--text);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn-ghost {
  padding: 9px 18px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  border: 1px solid var(--surface-border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: floatBlob 14s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; background: var(--cyan); top: -120px; left: -100px; }
.blob-2 { width: 420px; height: 420px; background: var(--violet); bottom: -140px; right: -80px; animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; background: var(--pink); top: 40%; left: 55%; opacity: 0.18; animation-delay: -8s; }
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
  border: 1px solid rgba(34,211,238,0.25);
  background: rgba(34,211,238,0.06);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34,211,238,0.6);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 22px;
  min-height: 1.6em;
}
.cursor-blink { color: var(--cyan); animation: blink 0.9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  max-width: 540px;
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 34px;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

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

.hero-socials { display: flex; gap: 12px; }
.social-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.social-icon:hover {
  color: var(--bg); background: var(--grad); border-color: transparent;
  transform: translateY(-4px);
}

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.photo-frame {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1/1;
}
.photo-ring {
  position: absolute; inset: -14px;
  border-radius: 32px;
  background: var(--grad);
  opacity: 0.55;
  filter: blur(2px);
  animation: ringSpin 8s linear infinite;
}
@keyframes ringSpin {
  0%, 100% { border-radius: 32px; }
  50% { border-radius: 42% 58% 60% 40% / 40% 45% 55% 60%; }
}
.photo-img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 28px;
  border: 3px solid var(--bg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.badge-floating {
  position: absolute;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(11,15,26,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--surface-border);
  padding: 9px 14px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: floatBadge 5s ease-in-out infinite;
}
.badge-floating svg { color: var(--cyan); flex-shrink: 0; }
.badge-1 { top: 8%; left: -14%; animation-delay: 0s; }
.badge-2 { bottom: 14%; right: -16%; animation-delay: -1.6s; }
.badge-3 { top: 48%; left: -20%; animation-delay: -3.2s; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== Stats ===== */
.stats {
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  padding: 52px 0;
  background: var(--bg-alt);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-plus {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--violet);
  margin-left: -6px;
}
.stat-label {
  font-size: 0.86rem; color: var(--text-muted); margin-top: 8px;
  max-width: 160px;
}

/* ===== Sections ===== */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-tag {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.86rem;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 640px;
}
.section-sub {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 50px;
  margin-top: -10px;
}

/* Glass card base */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 40px;
}
.about-copy p { color: var(--text-muted); margin-bottom: 18px; }
.about-copy strong { color: var(--text); font-weight: 600; }
.about-facts { display: grid; gap: 14px; margin-top: 28px; }
.fact {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.92rem; color: var(--text-muted);
}
.fact svg { color: var(--cyan); flex-shrink: 0; }

.highlight-card { padding: 32px; }
.highlight-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem; margin-bottom: 20px;
}
.highlight-list { display: grid; gap: 16px; }
.highlight-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: var(--text-muted);
}
.chk {
  color: var(--cyan); font-weight: 700; flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,211,238,0.1); border-radius: 50%;
  font-size: 0.7rem; margin-top: 2px;
}

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.skill-card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,0.4); }
.skill-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.skill-icon {
  font-family: var(--font-mono);
  color: var(--cyan); font-size: 1.1rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,211,238,0.08); border-radius: 8px;
}
.skill-head h3 { font-size: 1rem; font-weight: 600; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--surface-border);
  padding: 5px 12px;
  border-radius: 999px;
}
.tag-row.small .tag { font-size: 0.7rem; padding: 4px 10px; }

.ai-strip {
  margin-top: 30px;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 26px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border: 1px solid rgba(168,85,247,0.25);
}
.ai-icon { font-size: 1.3rem; color: var(--violet); }
.ai-strip p { font-size: 0.92rem; color: var(--text-muted); }
.ai-strip strong { color: var(--text); }

/* ===== Timeline ===== */
.timeline { position: relative; margin-top: 40px; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--violet));
  opacity: 0.35;
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -40px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.12);
}
.timeline-content { padding: 30px 32px; }
.timeline-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.timeline-content h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 4px; }
.timeline-company { color: var(--cyan); font-size: 0.9rem; }
.timeline-date {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-muted); white-space: nowrap;
  padding: 5px 12px; border: 1px solid var(--surface-border); border-radius: 999px;
}
.timeline-content ul { display: grid; gap: 10px; }
.timeline-content li {
  position: relative; padding-left: 18px;
  font-size: 0.92rem; color: var(--text-muted);
}
.timeline-content li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet);
}

/* ===== Projects ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 10px;
}
.project-card:nth-child(1),
.project-card:nth-child(2) { grid-column: span 1; }
.project-card { overflow: hidden; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,0.35); box-shadow: 0 20px 50px rgba(0,0,0,0.35); }

.project-banner {
  position: relative;
  height: 130px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 16px 20px;
  overflow: hidden;
}
.project-banner svg { position: absolute; top: 20px; right: 20px; width: 56px; height: 56px; opacity: 0.5; }
.banner-tag {
  font-family: var(--font-mono); font-size: 0.74rem;
  color: #fff; background: rgba(0,0,0,0.28);
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(4px);
  position: relative; z-index: 1;
}
.banner-industrial { background: linear-gradient(135deg, #164e63, #0891b2); color: #fff; }
.banner-hr { background: linear-gradient(135deg, #4c1d95, #a855f7); color: #fff; }
.banner-finance { background: linear-gradient(135deg, #065f46, #10b981); color: #fff; }
.banner-live { background: linear-gradient(135deg, #9d174d, #f472b6); color: #fff; }
.banner-python { background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff; }

.project-body { padding: 26px 26px 28px; }
.project-body h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 10px; }
.project-body > p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }
.project-body ul { display: grid; gap: 8px; margin-bottom: 18px; }
.project-body li {
  position: relative; padding-left: 16px;
  font-size: 0.86rem; color: var(--text-muted);
}
.project-body li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--cyan);
}

.earlier-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin: 60px 0 26px;
}
.earlier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.earlier-card { padding: 26px; }
.earlier-card:hover { transform: translateY(-6px); border-color: rgba(168,85,247,0.35); }
.earlier-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  border-radius: 12px;
  margin-bottom: 16px;
  color: var(--cyan);
}
.earlier-icon svg { width: 22px; height: 22px; }
.earlier-card h4 { font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 6px; }
.earlier-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--violet); margin-bottom: 12px;
}
.earlier-card p { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 14px; }

.projects-more { text-align: center; margin-top: 50px; }

/* ===== Education ===== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.edu-card { padding: 28px; display: flex; gap: 16px; align-items: flex-start; }
.edu-card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.3); }
.edu-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,211,238,0.08);
  border-radius: 10px; color: var(--cyan);
}
.edu-icon svg { width: 22px; height: 22px; }
.edu-card h3 { font-size: 1rem; font-family: var(--font-head); margin-bottom: 6px; }
.edu-school { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 4px; }
.edu-meta { font-size: 0.8rem; color: var(--text-faint); font-family: var(--font-mono); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cert-card {
  display: flex; align-items: center; gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.cert-card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,0.3); }
.cert-badge { width: 30px; height: 30px; color: var(--violet); flex-shrink: 0; }
.cert-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.cert-card span { font-size: 0.78rem; color: var(--text-muted); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  margin-top: 40px;
}
.contact-info { display: grid; gap: 14px; align-content: start; }
.contact-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.contact-row:hover { transform: translateX(6px); border-color: rgba(34,211,238,0.35); }
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  border-radius: 10px; color: var(--cyan);
}
.contact-label { display: block; font-size: 0.74rem; color: var(--text-faint); font-family: var(--font-mono); }
.contact-value { display: block; font-size: 0.94rem; color: var(--text); margin-top: 2px; }

.contact-form { padding: 34px; display: grid; gap: 18px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 0.82rem; color: var(--text-muted); font-family: var(--font-mono); }
.form-row input, .form-row textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color 0.25s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--cyan);
}
.form-submit { justify-self: start; }
.form-note { font-size: 0.76rem; color: var(--text-faint); margin-top: -6px; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 34px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.footer-text { font-size: 0.82rem; color: var(--text-faint); text-align: center; }
.to-top {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.to-top:hover { color: var(--bg); background: var(--grad); border-color: transparent; transform: translateY(-3px); }

/* ===================================================
   Responsive
=================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .photo-frame { width: min(280px, 60vw); }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .earlier-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav.mobile-open .nav-links {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 16px; right: 16px;
    background: rgba(11,15,26,0.97);
    backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 14px;
    gap: 4px;
  }
  .nav-resume { display: none; }
  .badge-floating { display: none; }
  .section { padding: 80px 0; }
  .earlier-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .hero { padding: 120px 0 70px; }
}

@media (max-width: 560px) {
  .skills-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .timeline { padding-left: 28px; }
  .timeline-dot { left: -28px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
