
:root {
  --bg:       #0B0F19;
  --surface:  #111827;
  --surface-2:#161f30;
  --border:   rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.12);

  --accent:     #6366F1;
  --accent-h:   #818CF8;          /* accent hover */
  --accent-dim: rgba(99,102,241,0.10);
  --accent-glow:rgba(99,102,241,0.20);

  --text:   #E5E7EB;
  --text-2: #9CA3AF;
  --text-3: #6B7280;

  --green: #34D399;

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  /* Consistent transition */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-mid:  250ms;
  --t-slow: 400ms;
}

/* ── 2. RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
strong { color: var(--text); font-weight: 600; }

/* ── 3. SCROLL PROGRESS BAR ── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-h) 100%);
  transform-origin: left;
  transform: scaleX(var(--scroll-x, 0));
  z-index: 9999;
  will-change: transform;
}

/* ── 4. LAYOUT ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface);
}

/* ── 5. SECTION LABELS ── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--accent);
  border-radius: 2px;
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 500px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ── 6. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn svg { width: 15px; height: 15px; stroke-width: 2; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--border-2);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  /* display: flex;
  justify-items: center;
  flex-wrap: wrap; */
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  animation: navSlideIn 0.5s var(--ease) both;
}
@keyframes navSlideIn {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  justify-items: center;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-right: 8px;
  transition: border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
  animation: fadeIn 0.4s 0.35s var(--ease) both;
}
.nav-logo:hover {
  border-color: var(--border-2);
  background: var(--surface);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links li { animation: fadeIn 0.4s var(--ease) both; }
.nav-links li:nth-child(1) { animation-delay: 0.40s; }
.nav-links li:nth-child(2) { animation-delay: 0.47s; }
.nav-links li:nth-child(3) { animation-delay: 0.54s; }
.nav-links li:nth-child(4) { animation-delay: 0.61s; }
.nav-links li:nth-child(5) { animation-delay: 0.68s; }

.nav-links a {
  display: block;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-links a.active {
  color: var(--accent-h);
}

.nav-hire {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-left: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-h);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  animation: fadeIn 0.4s 0.75s var(--ease) both;
}
.nav-hire:hover {
  background: rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.5);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast);
  margin-left: auto;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle:hover { color: var(--text); background: var(--surface); }

/* Mobile menu */
.nav-links.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(11,15,25,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 32px 16px;
  gap: 2px;
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero {
  padding: 140px 0 80px;
  position: relative;
}

/* Very subtle radial gradient — adds depth without noise */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; right: 0; bottom: 0;
  transform: translateX(-20%);
  background: radial-gradient(ellipse 60% 50% at 60% 30%,
    rgba(99,102,241,0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

/* Status badge */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.06);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 28px;
  animation: fadeSlideUp 0.5s 0.1s var(--ease) both;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Hero name — solid, clean, no strokes */
.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 20px;
  animation: fadeSlideUp 0.6s 0.2s var(--ease) both;
}
.hero-hello {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* .hero-name {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
} */
/* The coloured word "Mishra" */
.hero-title span {
  color: var(--accent-h);
}
/* Typed role */
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--text-2);
  min-height: 2em;
  margin-bottom: 18px;
  animation: fadeSlideUp 0.6s 0.35s var(--ease) both;
}

.cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 36px;
  animation: fadeSlideUp 0.6s 0.45s var(--ease) both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeSlideUp 0.6s 0.55s var(--ease) both;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  animation: fadeSlideUp 0.6s 0.65s var(--ease) both;
}
.stat-item {
  display: flex;
  flex-direction: column;
  padding-right: 36px;
}
.stat-val {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.stat-plus {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  vertical-align: super;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 32px;
  background: var(--border);
  margin: 0 36px 0 0;
}

.hero-divider {
  display: none;
}




/* ══════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

.about-text .section-heading { margin-bottom: 20px; }

.about-text p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.about-tags span {
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.about-tags span:hover {
  border-color: rgba(99,102,241,0.35);
  color: var(--accent-h);
  transform: translateY(-1px);
}

/* About card */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.about-avatar {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent-h);
  margin-bottom: 20px;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.meta-icon {
  width: 15px; height: 15px;
  color: var(--text-3);
  stroke-width: 1.8;
  flex-shrink: 0;
}
.meta-link {
  color: var(--accent-h);
  transition: color var(--t-fast);
}
.meta-link:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════
   SKILLS
   ══════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--t-mid) var(--ease),
              background var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
  position: relative;
  overflow: hidden;
}

/* Accent top border that reveals on hover */
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}

.skill-card:hover {
  border-color: rgba(99,102,241,0.2);
  background: var(--surface-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.skill-card:hover::before { opacity: 1; }

.skill-icon {
  width: 38px; height: 38px;
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.skill-icon svg {
  width: 18px; height: 18px;
  color: var(--accent);
  stroke-width: 1.75;
  transition: color var(--t-fast) var(--ease);
}
.skill-card:hover .skill-icon {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.35);
}
.skill-card:hover .skill-icon svg { color: var(--accent-h); }

.skill-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.skill-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
}

/* Accent underline slides up from bottom on hover */
.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-h));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.project-card:hover::after { transform: scaleX(1); }

.project-card:hover {
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.project-links {
  display: flex;
  gap: 4px;
}
.project-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-3);
  background: transparent;
  transition: color var(--t-fast), border-color var(--t-fast),
              background var(--t-fast), transform var(--t-fast);
}
.project-links a svg { width: 14px; height: 14px; stroke-width: 2; }
.project-links a:hover {
  color: var(--text);
  border-color: var(--border-2);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color var(--t-fast) var(--ease);
}
.project-card:hover h3 { color: var(--accent-h); }

.project-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.project-stack span {
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.project-card:hover .project-stack span {
  color: var(--text-2);
  border-color: rgba(255,255,255,0.12);
}

/* ══════════════════════════════════════════════════════
   EXPERIENCE
   ══════════════════════════════════════════════════════ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 20px;
  border-left: 1px solid var(--border);
  max-width: 720px;
}

.tl-item {
  position: relative;
  padding: 0 0 40px 28px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-marker {
  position: absolute;
  left: -5px; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.tl-item:first-child .tl-marker {
  background: var(--accent);
  border-color: var(--accent);
}
.tl-item:hover .tl-marker {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.tl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tl-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.tl-org {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

.tl-date {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  flex-shrink: 0;
}

.tl-content p:last-child {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  
}
.contact-detail:first-child { border-top: 1px solid var(--border); }

.contact-detail svg {
  width: 16px; height: 16px;
  color: var(--text-3);
  stroke-width: 1.75;
  margin-top: 2px;
  flex-shrink: 0;
}

.detail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}
.detail-val {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  display: block;
}
a.detail-val { transition: color var(--t-fast); }
a.detail-val:hover { color: var(--accent-h); }

.available {
  color: var(--green) !important;
  display: flex;
  align-items: center;
  gap: 6px;
}
.available::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: color var(--t-fast), border-color var(--t-fast),
              background var(--t-fast), transform var(--t-fast);
}
.social-btn svg { width: 14px; height: 14px; stroke-width: 2; }
.social-btn:hover {
  color: var(--text);
  border-color: var(--border-2);
  background: var(--surface);
  transform: translateX(3px);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color var(--t-fast);
}
.form-row:focus-within label { color: var(--accent-h); }

.form-row input,
.form-row textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-3); }
.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green);
}
.form-success svg { width: 15px; height: 15px; }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

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

.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  transition: color var(--t-fast), border-color var(--t-fast),
              background var(--t-fast), transform var(--t-fast);
}
.footer-top svg { width: 14px; height: 14px; stroke-width: 2; }
.footer-top:hover {
  color: var(--text);
  border-color: var(--border-2);
  background: var(--surface);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.reveal-scale {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}

.reveal.visible,
.reveal-left.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.06s; }
.d2 { transition-delay: 0.12s; }
.d3 { transition-delay: 0.18s; }
.d4 { transition-delay: 0.24s; }
.d5 { transition-delay: 0.30s; }
.d6 { transition-delay: 0.36s; }

/* ══════════════════════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .skills-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-grid     { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .about-card     { max-width: 320px; }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-hire   { display: none; }
  .nav-toggle { display: flex; }

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

  .hero-title { letter-spacing: -0.03em; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .tl-header { flex-direction: column; gap: 8px; }
}

/* HERO LAYOUT FIX */
.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 100px; /* increase spacing */
}

.hero-content {
  flex: 1;
}

/* IMAGE */
.hero-img {
  width: clamp(260px, 28vw, 420px);
  height: clamp(260px, 28vw, 420px);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(99,102,241,0.5);
  box-shadow: 0 0 80px rgba(99,102,241,0.35);
}


.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-flex {
    flex-direction: column;      /* stack vertically */
    align-items: center;         /* center everything */
    text-align: center;
  }

  .hero-content {
    width: 100%;
  }

  .hero-img {
    order: 2;                    /* force image BELOW text */
    margin-top: 30px;
    width: 220px;
    height: 220px;
  }

  .hero-actions {
    justify-content: center;
  }
}