/* ============================================
   Amir Ranjbar — Elegant Portfolio
   ============================================ */

:root {
  /* Color palette — warm dark with gold accents */
  --bg-primary: #0a0908;
  --bg-secondary: #12110f;
  --bg-elevated: #1a1816;
  --text-primary: #f5f0e8;
  --text-secondary: #b8b0a4;
  --text-muted: #7a7368;
  --accent: #c9a962;
  --accent-glow: rgba(201, 169, 98, 0.12);
  --accent-dim: rgba(201, 169, 98, 0.15);
  --border: rgba(245, 240, 232, 0.08);
  --border-hover: rgba(245, 240, 232, 0.15);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(4rem, 12vw, 5.5rem);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 85% 55% at 15% -15%, rgba(201, 169, 98, 0.09), transparent 52%),
    radial-gradient(ellipse 70% 45% at 95% 25%, rgba(139, 120, 90, 0.06), transparent 48%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(201, 169, 98, 0.05), transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  position: relative;
}

/* Subtle transition from hero into content */
header.hero + .section-about {
  border-top: 1px solid rgba(201, 169, 98, 0.07);
}

header.hero + .section-about::before {
  content: '';
  display: block;
  width: min(10rem, 42vw);
  height: 1px;
  margin: 0 auto clamp(1.5rem, 5vw, 2.25rem);
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.45), transparent);
  opacity: 0.85;
}

/* Subtle noise overlay for texture */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) clamp(1rem, 4vw, var(--space-lg));
  background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
  transition: background var(--duration) var(--ease-out);
}

.nav.open {
  background: rgba(12, 11, 10, 0.98);
}

.nav.scrolled {
  background: rgba(12, 11, 10, 0.92);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(26, 24, 22, 0.35);
  transition: border-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.nav-logo:hover {
  border-color: rgba(201, 169, 98, 0.35);
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  list-style: none;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--duration) var(--ease-out);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--duration) var(--ease-out);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  min-height: min(88vh, 52rem);
  min-height: min(88dvh, 52rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(4.75rem, 10vw, 6.25rem) var(--space-lg) clamp(2rem, 5vw, 3rem);
  position: relative;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse 55% 70% at 30% 40%, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
  overflow: hidden;
  cursor: crosshair;
}

.hero-nodes-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: min(100%, 52rem);
  pointer-events: auto;
}

.hero-tech {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 4vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.hero-tech-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-tech-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-tech-pills li {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(26, 24, 22, 0.5);
  backdrop-filter: blur(8px);
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 11vw, 7.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  overflow: visible;
}

.hero-title .line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) forwards;
  padding-bottom: 0.12em;
  overflow: visible;
}

.hero-title .line:nth-child(1) {
  animation-delay: 0.35s;
}

.hero-title .line:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 38rem;
  margin-bottom: var(--space-xs);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
  line-height: 1.5;
  text-wrap: balance;
}

.hero-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 2px;
  transition: all var(--duration) var(--ease-out);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: #d4b872;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: clamp(3rem, 8vw, var(--space-2xl)) clamp(1rem, 4vw, var(--space-lg));
  position: relative;
}

.section-about {
  padding-top: clamp(1.25rem, 3.5vw, 2rem);
  padding-bottom: clamp(2.5rem, 6vw, var(--space-2xl));
}

.section-alt {
  background-color: var(--bg-secondary);
  background-image:
    radial-gradient(ellipse 50% 80% at 100% 20%, rgba(201, 169, 98, 0.04), transparent 55%),
    radial-gradient(ellipse 40% 60% at 0% 80%, rgba(201, 169, 98, 0.03), transparent 50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.section-education {
  padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.section-education .education-grid {
  margin-bottom: 0;
}

.section-honors {
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.section-honors .section-title--compact {
  margin-bottom: var(--space-md);
}

.section-honors .honors-list {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 var(--space-md);
  margin: 0;
}

.section-honors .honors-row {
  padding: var(--space-sm) 0;
}

.section-honors .honors-row:first-child {
  padding-top: var(--space-md);
}

.section-honors .honors-row:last-child {
  padding-bottom: var(--space-md);
  border-bottom: none;
}

.section-contact {
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
  padding-bottom: clamp(2.5rem, 6vw, var(--space-2xl));
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 1.125rem;
}

.container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.2rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(201, 169, 98, 0.55) 0%,
    rgba(201, 169, 98, 0.12) 35%,
    rgba(245, 240, 232, 0.06) 70%,
    transparent 100%
  );
  opacity: 0.85;
  pointer-events: none;
}

@media (max-width: 380px) {
  .container {
    padding-left: 0.85rem;
  }

  .container::before {
    width: 1px;
    opacity: 0.7;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.section-title-text {
  flex-shrink: 0;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  max-width: 8rem;
  background: linear-gradient(to right, var(--accent), transparent);
  opacity: 0.65;
}

.section-title--compact::after {
  max-width: 5rem;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  list-style: none;
  margin: calc(-1 * var(--space-md)) 0 var(--space-lg);
  padding: 0;
}

.about-highlights li {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(26, 24, 22, 0.9), rgba(20, 18, 16, 0.5));
  box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.06);
}

.about-highlights strong {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   About
   ============================================ */

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
  margin-left: 0.125rem;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(120deg, rgba(26, 24, 22, 0.55), rgba(18, 17, 15, 0.25));
  border: 1px solid var(--border);
  border-left: 3px solid rgba(201, 169, 98, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-text:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 500;
  line-height: 1;
  float: left;
  margin: 0.08rem 0.45rem 0 0;
  color: var(--accent);
}

.about-text strong {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================
   Timeline (Experience)
   ============================================ */

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(201, 169, 98, 0.5),
    rgba(201, 169, 98, 0.15) 18%,
    rgba(245, 240, 232, 0.07) 50%,
    rgba(245, 240, 232, 0.05) 100%
  );
}

.timeline-item {
  position: relative;
  padding-left: var(--space-lg);
  padding-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -6px;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 35% 30%, #e8d5a8, var(--accent));
  border-radius: 50%;
  box-shadow:
    0 0 0 3px var(--bg-secondary),
    0 0 0 4px rgba(201, 169, 98, 0.2),
    0 0 18px rgba(201, 169, 98, 0.18);
}

.section-alt .timeline-marker {
  box-shadow:
    0 0 0 3px var(--bg-secondary),
    0 0 0 4px rgba(201, 169, 98, 0.2),
    0 0 18px rgba(201, 169, 98, 0.18);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.timeline-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  width: 100%;
}

.timeline-company {
  font-weight: 500;
  color: var(--accent);
}

.timeline-location,
.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-date {
  margin-left: auto;
}

.timeline-list {
  list-style: none;
}

.timeline-list li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.6;
}

/* ============================================
   Projects
   ============================================ */

.project-card {
  position: relative;
  background: linear-gradient(165deg, rgba(28, 26, 24, 0.95), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-lg);
  padding-top: calc(var(--space-lg) + 4px);
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(201, 169, 98, 0.35) 45%, transparent 100%);
  opacity: 0.75;
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(201, 169, 98, 0.25);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(201, 169, 98, 0.08);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xs);
}

.project-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.project-year {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.project-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: var(--space-md);
  transition: color var(--duration) var(--ease-out);
}

.project-link:hover {
  color: #d4b872;
}

.project-list {
  list-style: none;
}

.project-list li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.project-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ============================================
   Skills
   ============================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.skill-category {
  position: relative;
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + 6px);
  background: linear-gradient(160deg, rgba(26, 24, 22, 0.85), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(201, 169, 98, 0.55), transparent 65%);
  opacity: 0.7;
  pointer-events: none;
}

.skill-category:hover {
  border-color: rgba(201, 169, 98, 0.22);
  transform: translateY(-2px);
}

.skill-category h4 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.skill-category p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Education
   ============================================ */

.education-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.education-card {
  position: relative;
  padding: var(--space-lg);
  background: linear-gradient(165deg, rgba(28, 26, 24, 0.6), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--duration) var(--ease-out);
  overflow: hidden;
}

.education-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(201, 169, 98, 0.15) 60%, transparent);
  opacity: 0.5;
  pointer-events: none;
  border-radius: 8px 0 0 8px;
}

.education-card:hover {
  border-color: rgba(201, 169, 98, 0.2);
}

.education-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.education-school {
  display: block;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.education-location,
.education-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: var(--space-sm);
}

.education-grade {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: var(--space-sm) 0;
}

.education-card ul {
  list-style: none;
}

.education-card ul li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.education-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.7;
}

.honors-list {
  list-style: none;
}

.honors-list .honors-row {
  display: grid;
  grid-template-columns: minmax(7.25rem, auto) 1fr;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.honors-list .honors-row:last-child {
  border-bottom: none;
}

.honors-year {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
}

.honors-text {
  min-width: 0;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .honors-list .honors-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .honors-year {
    font-size: 0.8rem;
  }
}

/* ============================================
   Contact
   ============================================ */

.contact-intro {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 36rem;
  line-height: 1.55;
  text-wrap: balance;
  padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
  border-left: 2px solid rgba(201, 169, 98, 0.35);
  border-radius: 0 6px 6px 0;
  background: rgba(26, 24, 22, 0.35);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 26, 24, 0.65), var(--bg-elevated));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.contact-list li {
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(5rem, 7.5rem) 1fr;
  gap: var(--space-md);
  align-items: center;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: background var(--duration) var(--ease-out);
}

.contact-row:hover {
  background: var(--accent-dim);
}

.contact-row-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-row-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  word-break: break-word;
  transition: color var(--duration) var(--ease-out);
}

.contact-row:hover .contact-row-value {
  color: var(--accent);
}

@media (max-width: 520px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1rem;
  }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  background: linear-gradient(180deg, rgba(18, 17, 15, 0.5), transparent);
}

.footer::before {
  content: '· · ·';
  display: block;
  font-size: 0.65rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.75em;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1100px) {
  .hero-tech {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin-top: var(--space-lg);
    max-width: 100%;
    pointer-events: auto;
  }

  .hero-tech-pills {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }

  .hero-tech-pills li {
    font-size: 0.65rem;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: var(--space-sm);
    order: 3;
    padding: var(--space-md) 0 0;
    border-top: 1px solid var(--border);
    margin-top: var(--space-sm);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-links a {
    padding: 0.65rem 0;
    font-size: 1rem;
  }

  .hero {
    padding-top: clamp(4rem, 10vw, 5.5rem);
    min-height: auto;
    min-height: unset;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 20rem;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline-item {
    padding-left: var(--space-lg);
  }

  .timeline-marker {
    left: 1px;
  }

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

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-date {
    margin-left: 0;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }
}
