/* ═══════════════════════════════════════════════════════════════
   KUNJ PATEL — AI Engineer Portfolio
   Complete UX Redesign — All 13 Audit Issues Addressed
   ═══════════════════════════════════════════════════════════════ */



/* ─────────────────────────────────────────────────────────────
   DESIGN TOKENS
   Consistent spacing scale, color palette, typography scale
   FIX #6: Standardized section padding to 80-100px
   FIX #11: 3-level typography hierarchy
   ───────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base: #08080f;
  --bg-raised: #0e0e1a;
  --bg-card: #111120;
  --bg-surface: #161628;

  /* Text — 3-level hierarchy (FIX #11) */
  --text-1: #f0f0f8;
  /* Headings, names — maximum contrast */
  --text-2: #a0a0b8;
  /* Body text, descriptions — comfortable reading */
  --text-3: #5c5c72;
  /* Muted labels, dates, captions */

  /* Accent */
  --purple: #a855f7;
  --purple-light: #c084fc;
  --purple-dark: #7c3aed;
  --pink: #ec4899;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(168, 85, 247, 0.3);

  /* Spacing scale — consistent rhythm (FIX #6) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 88px;
  /* Standard section padding */

  /* Layout */
  --max-w: 1100px;
  --nav-h: 64px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 100px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ─── Reset ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-2);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-dark);
  border-radius: 10px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only--focusable:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  z-index: 10000;
  background: var(--purple);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
}

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION HEADER — Consistent heading/sub hierarchy (FIX #11)
   Large bold title + smaller muted subtitle
   ═══════════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header__title {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-header__sub {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 8px;
  font-weight: 400;
  letter-spacing: 0.01em;
}


/* ═══════════════════════════════════════════════════════════════
   BUTTONS (FIX #3: Ghost outline CTA)
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  font-size: 14px;
  border-radius: var(--r-pill);
  padding: 12px 28px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.35), 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* FIX #3: Ghost/outline button — clearly interactive */
.btn--outline {
  background: transparent;
  color: var(--text-1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.btn--outline:hover {
  border-color: var(--purple);
  color: var(--purple-light);
  background: rgba(168, 85, 247, 0.06);
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════════
   TAGS (FIX #12: Consistent sizing, no internal wrap)
   ═══════════════════════════════════════════════════════════════ */
.tag {
  display: inline-block;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--r-pill);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--purple-light);
  letter-spacing: 0.02em;
  white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════════
   NAVBAR (FIX #7: Pronounced active state)
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(8, 8, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.navbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
}

.navbar__logo:hover {
  color: var(--purple-light);
}

.navbar__nav {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px;
}

.mobile-only {
  display: none;
}

.navbar__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  padding: 7px 18px;
  border-radius: var(--r-pill);
  transition: all 0.25s var(--ease);
}

.navbar__link:hover {
  color: var(--text-1);
}

/* FIX #7: Active state — filled purple pill, clearly visible */
.navbar__link.active {
  background: rgba(168, 85, 247, 0.2);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15), inset 0 0 0 1px rgba(168, 85, 247, 0.25);
}

.navbar__cta {
  font-size: 13px;
  padding: 9px 22px;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;


}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all 0.3s;
}


/* ═══════════════════════════════════════════════════════════════
   HERO (FIX #1: True 50/50 centered grid)
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 48px) 0 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Ambient glow — subtle, not distracting */
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__glow::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
  filter: blur(80px);
}

.hero__glow::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.04) 0%, transparent 70%);
  filter: blur(80px);
}

/* FIX #1: Balanced 50/50 grid, centered */
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 2px;
}

.hero__heading {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero__name-accent {
  background: linear-gradient(135deg, var(--purple-light), var(--purple), var(--purple-dark));
  font-weight: 700;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 440px;
}

/* FIX #3: CTA pair — primary + ghost outline */
.hero__ctas {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* FIX #2: Stats as prominent metric cards */
.hero__metrics {
  display: flex;
  gap: 12px;
  margin-top: var(--space-sm);
}

.metric {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  flex: 1;
  text-align: center;
  transition: border-color 0.3s;
}

.metric:hover {
  border-color: var(--border-hover);
}

.metric__number {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.metric__label {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Hero photo (FIX #10: No floating icons) */
.hero__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero__photo-frame {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Gradient border effect */
.hero__photo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(168, 85, 247, 0.3), transparent 40%, transparent 60%, rgba(236, 72, 153, 0.2));
  z-index: 1;
  pointer-events: none;
}

.hero__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}


/* ═══════════════════════════════════════════════════════════════
   ABOUT (FIX #4: Bold positioning + scannable body)
   ═══════════════════════════════════════════════════════════════ */
.about {
  padding: var(--space-2xl) 0;
}

.about__card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 48px);
  position: relative;
  overflow: hidden;
}

/* Accent top line */
.about__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--pink), transparent);
}

.about__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

/* FIX #4: Bold positioning statement — large, stands out */
.about__lead {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* FIX #4: Body text — with inline bold anchors for scanning */
.about__body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
}

.about__body strong {
  color: var(--text-1);
  font-weight: 600;
}

/* Right column — capabilities */
.about__right {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.about__cap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.3s var(--ease);
}

.about__cap:hover {
  border-color: var(--border-hover);
  background: rgba(168, 85, 247, 0.03);
}

.about__cap-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(124, 58, 237, 0.08));
  border-radius: var(--r-sm);
  color: var(--purple-light);
}

.about__cap-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}

.about__cap-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════
   EXPERIENCE
   FIX #6: Standardized padding
   FIX #11: Clear role/org/date hierarchy
   FIX #12: Consistent tag wrapping
   ═══════════════════════════════════════════════════════════════ */
.experience {
  padding: var(--space-2xl) 0;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.exp-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-md) var(--space-md) var(--space-md);
  transition: border-color 0.3s;
}

.exp-card:hover {
  border-color: var(--border-hover);
}

/* FIX #8-adjacent: Featured card gets accent left border */
.exp-card--featured {
  border-left: 3px solid var(--purple);
  background: linear-gradient(135deg, var(--bg-raised) 0%, rgba(168, 85, 247, 0.03) 100%);
}

.exp-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

/* FIX #11: Role = large/bold, Org = medium/muted, Date = small/right */
.exp-card__role {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.exp-card__org {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 2px;
}

.exp-card__date {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
}

/* Bullet list for experience highlights */
.exp-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-card__bullets li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.exp-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 50%;
}

.exp-card__bullets li strong {
  color: var(--text-1);
  font-weight: 600;
}

.exp-card__summary {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.exp-card__summary strong {
  color: var(--text-1);
  font-weight: 600;
}

/* FIX #12: Consistent tag wrapping */
.exp-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* ═══════════════════════════════════════════════════════════════
   SKILLS (FIX #5: 2×2 grid that fits viewport — no clipping)
   ═══════════════════════════════════════════════════════════════ */
.skills {
  padding: var(--space-2xl) 0;
}

/* FIX #5: 2-column grid on desktop — all cards fully visible */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.skill-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-md) var(--space-md);
  transition: all 0.35s var(--ease);
  position: relative;
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(168, 85, 247, 0.08);
}

.skill-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.06));
  border-radius: var(--r-md);
  color: var(--purple-light);
  margin-bottom: var(--space-sm);
}

.skill-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}

.skill-card__desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════
   PROJECTS (FIX #8: Featured hero project + 2-col secondary)
   ═══════════════════════════════════════════════════════════════ */
.projects {
  padding: var(--space-2xl) 0;
}

/* GitHub corner link on project cards */
.proj-github {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all 0.3s var(--ease);
  z-index: 2;
}

.proj-github:hover {
  color: var(--purple-light);
  border-color: var(--border-hover);
  background: rgba(168, 85, 247, 0.08);
  transform: scale(1.1);
}

/* Featured hero project — full width, unique treatment */
.proj-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 40px);
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}

/* Accent top border — signals featured */
.proj-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.proj-hero__badge {
  display: inline-flex;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-light);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.proj-hero__title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.proj-hero__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.proj-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Agent graph visual */
.proj-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.proj-hero__graphic {
  position: relative;
  width: 200px;
  height: 120px;
}

.proj-hero__node {
  position: absolute;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-light);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.proj-hero__node--1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.proj-hero__node--2 {
  bottom: 0;
  left: 0;
}

.proj-hero__node--3 {
  bottom: 0;
  right: 0;
}

.proj-hero__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Secondary project cards — 2 columns */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.proj-card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-md);
  transition: all 0.35s var(--ease);
}

.proj-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(168, 85, 247, 0.08);
}

.proj-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.06));
  border-radius: var(--r-md);
  color: var(--purple-light);
  margin-bottom: var(--space-sm);
}

.proj-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}

.proj-card__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.proj-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION (User Provided Design)
   ═══════════════════════════════════════════════════════════════ */
.contact-section {
  width: 100%;
  max-width: 960px;
  position: relative;
  margin: 0 auto;
  padding: 80px 24px;
}

/* Ambient glow behind the card */
.contact-section::before {
  content: '';
  position: absolute;
  inset: -80px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%,
      rgba(124, 58, 237, 0.18) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Card ── */
.contact-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 56px 64px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Header block ── */
.contact-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-header-left {
  flex: 1;
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 14px;
}

.contact-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: #a78bfa;
}

.contact-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f5f5f5;
}

.contact-title em {
  font-style: italic;
  color: #c4b5fd;
}

.contact-header-right {
  flex-shrink: 0;
  max-width: 280px;
}

.contact-description {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
}

/* ── Form grid ── */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.form-group.span-2 {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form textarea {
  height: 130px;
  line-height: 1.6;
}

/* ── Form footer (button + socials) ── */
.form-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 6px;
}

/* Social links */
.social-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: #c4b5fd;
}

.social-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.social-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
}

/* Send button */
.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #7c3aed 0%, #9f5cf7 100%);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease;
  flex-shrink: 0;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.38);
}

.btn-send:active {
  transform: translateY(0);
  opacity: 0.85;
}

.btn-send svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.btn-send:hover svg {
  transform: translateX(3px);
}

/* ── Availability badge ── */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  background: rgba(168, 85, 247, 0.05);
}

.contact__link svg {
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER (FIX #13: Structured bar with tagline + links)
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer__tagline {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
}

.footer__links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.25s;
}

.footer__links a:hover {
  color: var(--purple-light);
}

.footer__copy {
  font-size: 12px;
  color: var(--text-3);
  opacity: 0.6;
}


/* ═══════════════════════════════════════════════════════════════
   SCROLL-REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-first adjustments
   FIX #6: Consistent padding at every breakpoint
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

  .hero__right {
    order: -1;
  }

  .hero__left {
    align-items: center;
  }

  .hero__subtitle {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__metrics {
    max-width: 400px;
    margin: var(--space-sm) auto 0;
  }

  .hero__photo-frame {
    max-width: 300px;
  }

  .about__card {
    grid-template-columns: 1fr;
  }

  .proj-hero {
    grid-template-columns: 1fr;
  }

  .proj-hero__visual {
    display: none;
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proj-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --space-2xl: 64px;
  }

  .navbar__nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: var(--space-sm);
    gap: 4px;
  }

  .navbar__nav.open {
    display: flex;
  }

  .navbar__nav.open {
    display: flex;
  }

  .navbar__cta,
  .navbar__actions {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar__hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .navbar__hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 0;
  }

  .hero__heading {
    font-size: 36px;
  }

  .hero__ctas {
    flex-direction: row;
    width: 100%;
  }

  .hero__ctas .btn {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    font-size: 13px;
  }

  .hero__metrics {
    flex-direction: row;
  }

  .metric {
    padding: 12px 8px;
  }

  .metric__number {
    font-size: 20px;
  }

  .metric__label {
    font-size: 9px;
  }

  .hero__photo-frame {
    max-width: 240px;
  }

  .exp-card__top {
    flex-direction: column;
    gap: 8px;
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }

  .proj-grid {
    grid-template-columns: 1fr;
  }

  .contact__form {
    flex-direction: column;
  }

  .contact__socials {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .contact__link {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}