/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #1e1e1c;
  --surface: #252522;
  --accent: #b8b896;
  --accent-dim: #7a7a62;
  --text-primary: #edeade;
  --text-muted: #9e9e8e;
  --border: rgba(168, 168, 138, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) var(--bg);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: transparent;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== SCROLL-MARGIN FOR NAV OFFSET ===== */
#home,
#about,
#experience,
#projects {
  scroll-margin-top: 80px;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  z-index: 1000;
  transition: width 0.05s linear;
}

/* ===== NOISE + SCAN-LINE OVERLAY ===== */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  z-index: -1;
}

.noise-overlay svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(30, 30, 28, 0.6);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--border);
}

.nav-monogram {
  display: flex;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.15);
  transition: all 0.25s ease;
}

.nav-avatar:hover {
  transform: scale(1.06);
  border-color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-pill:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.nav-pill-cta {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transition: all 0.25s ease;
}

.nav-pill-cta:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  filter: brightness(1.15);
}

/* ===== SECTIONS (shared) ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 0 48px;
}

.section-rule {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0 48px;
  position: relative;
  z-index: 1;
}

.section-heading {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(52px, 8vw, 120px);
  letter-spacing: 0.03em;
  color: var(--text-primary);
  line-height: 0.9;
  margin-bottom: 64px;
}

/* ===== HOME SECTION ===== */
.section-home {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 80px;
}

.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1200px;
}

.home-text {
  flex: 1;
  min-width: 0;
}

.home-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-first {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(72px, 10vw, 148px);
  color: var(--accent);
  letter-spacing: 0.03em;
  line-height: 0.92;
  text-shadow: 0 0 80px rgba(184, 184, 150, 0.15);
}

.home-last {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(72px, 10vw, 148px);
  color: var(--text-primary);
  letter-spacing: 0.03em;
  line-height: 0.92;
}

.home-info {
  margin-top: 32px;
}

.home-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.home-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: var(--accent);
  margin-top: 8px;
}

/* Home hero image */
.home-image {
  flex-shrink: 0;
}

.home-image-frame {
  width: 340px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 0 24px rgba(168, 168, 138, 0.18);
  position: relative;
}

.home-image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.home-image-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 10px;
}

/* Home reveal stagger (0.12s apart) */
.home-first.reveal-up { animation-delay: 0.1s; }
.home-last.reveal-up { animation-delay: 0.22s; }
.home-subtitle.reveal-up { animation-delay: 0.34s; }
.home-tagline.reveal-up { animation-delay: 0.46s; }
.home-image.reveal-up { animation-delay: 0.3s; }
.scroll-indicator.reveal-up { animation-delay: 0.58s; }

/* Scroll indicator — bottom-right */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator span {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  animation: scrollPulse 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%, 100% { scaleY: 1; opacity: 0.4; }
  50% { scaleY: 0.4; opacity: 1; }
}

/* ===== REVEAL ANIMATION ===== */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-up {
  opacity: 0;
  animation: revealUp 0.7s ease forwards;
}

/* ===== ABOUT SECTION ===== */
.section-about {
  padding-top: 120px;
  padding-bottom: 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}

.about-para-1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.8;
}

.about-para-2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 20px;
}

.about-quote {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px;
  color: var(--accent);
  margin-top: 28px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  letter-spacing: 0.03em;
}

.facts-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 32px;
  transition: border-color 0.3s ease;
}

.facts-card:hover {
  border-color: var(--accent);
}

.facts-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.facts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fact-row {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
}

/* About scroll animations */
.animate-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in-left.visible,
.animate-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== EXPERIENCE SECTION ===== */
.section-experience {
  padding-top: 120px;
  padding-bottom: 120px;
}

.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 800px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-entry {
  position: relative;
  margin-bottom: 48px;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -44px;
  top: 28px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-company {
  font-family: 'Bebas Neue', cursive;
  font-size: 24px;
  color: var(--accent);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.card-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.card-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--accent-dim);
  margin-bottom: 8px;
}

.card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.7;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

/* ===== PROJECTS SECTION ===== */
.section-projects {
  padding-top: 120px;
  padding-bottom: 120px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.project-card:hover {
  border-color: rgba(184, 184, 150, 0.3);
}

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

.project-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: 0.03em;
  line-height: 1;
}

.project-status {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fcf6f;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 4px rgba(111, 207, 111, 0.4); }
  50% { box-shadow: 0 0 10px rgba(111, 207, 111, 0.7); }
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.project-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.5s ease;
}

.project-card:hover .project-accent-line {
  width: 100%;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 60px 48px;
  position: relative;
  z-index: 1;
}

.footer p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ===== FLOATING SOCIAL BUTTONS — bottom-left ===== */
.social-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.35s ease;
}

.social-float.hidden {
  opacity: 0;
  pointer-events: none;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-20px);
  animation: floatIn 0.5s ease forwards;
}

.social-btn:nth-child(1) { animation-delay: 0.6s; }
.social-btn:nth-child(2) { animation-delay: 0.7s; }
.social-btn:nth-child(3) { animation-delay: 0.8s; }
.social-btn:nth-child(4) { animation-delay: 0.9s; }

@keyframes floatIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(184, 184, 150, 0.12);
}

.social-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.social-btn:hover::after {
  opacity: 1;
}

/* ===== CONNECT OVERLAY ===== */
.connect-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(18, 18, 16, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.connect-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.connect-close {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.connect-close:hover {
  transform: rotate(90deg);
  color: var(--accent);
  border-color: var(--accent);
}

.connect-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.connect-heading {
  font-family: 'Bebas Neue', cursive;
  font-size: 48px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.connect-rule {
  width: 120px;
  height: 1px;
  background: var(--border);
  margin-bottom: 48px;
}

.connect-icons {
  display: flex;
  gap: 48px;
}

.connect-icon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.connect-overlay.open .connect-icon-block {
  opacity: 1;
  transform: translateY(0);
}

.connect-overlay.open .connect-icon-block:nth-child(1) { transition-delay: 0.1s; }
.connect-overlay.open .connect-icon-block:nth-child(2) { transition-delay: 0.18s; }
.connect-overlay.open .connect-icon-block:nth-child(3) { transition-delay: 0.26s; }
.connect-overlay.open .connect-icon-block:nth-child(4) { transition-delay: 0.34s; }

.connect-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.connect-icon-block:hover .connect-icon-circle {
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08) translateY(-4px);
}

.connect-platform {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 14px;
}

.connect-handle {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--accent);
  margin-top: 4px;
}

/* ===== SCROLL-TRIGGERED ANIMATIONS ===== */
.animate-in {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-projects .animate-in {
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ===== HAMBURGER BUTTON (hidden on desktop/tablet) ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== RESPONSIVE — LAPTOPS / SMALL DESKTOPS (max-width: 1024px) ===== */
@media (max-width: 1024px) {
  .nav {
    padding: 0 32px;
  }

  .section {
    padding: 0 32px;
  }

  .section-rule {
    margin: 0 32px;
  }

  .nav-pill {
    padding: 7px 16px;
    font-size: 13px;
  }

  .home-image-frame {
    width: 280px;
  }

  .section-about,
  .section-experience,
  .section-projects {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .footer {
    padding: 48px 32px;
  }
}

/* ===== RESPONSIVE — TABLETS (max-width: 768px) ===== */
@media (max-width: 768px) {
  .nav {
    padding: 0 28px;
  }

  .nav-pill {
    padding: 7px 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .home-content {
    gap: 32px;
  }

  .home-first,
  .home-last {
    font-size: clamp(48px, 9vw, 100px);
  }

  .home-subtitle {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .home-tagline {
    font-size: 16px;
  }

  .home-image-frame {
    width: 240px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading {
    font-size: clamp(42px, 9vw, 80px);
    margin-bottom: 44px;
  }

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

  .connect-icons {
    gap: 32px;
  }

  .connect-icon-circle {
    width: 64px;
    height: 64px;
  }
}

/* ===== RESPONSIVE — PHONES (max-width: 600px) ===== */
@media (max-width: 600px) {
  .nav {
    padding: 0 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(30, 30, 28, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    gap: 8px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-pill {
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section {
    padding: 0 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .section-rule {
    margin: 0 20px;
  }

  .section-home {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 96px;
    padding-bottom: 100px;
  }

  .home-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .home-first,
  .home-last {
    font-size: clamp(40px, 12vw, 80px);
  }

  .home-info {
    margin-top: 24px;
  }

  .home-subtitle {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .home-tagline {
    font-size: 15px;
  }

  .home-image {
    align-self: center;
  }

  .home-image-frame {
    width: min(220px, 60vw);
  }

  .home-image-caption {
    font-size: 11px;
  }

  .scroll-indicator {
    right: 20px;
    bottom: max(24px, env(safe-area-inset-bottom));
  }

  .section-about,
  .section-experience,
  .section-projects {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-heading {
    font-size: clamp(36px, 10vw, 64px);
    margin-bottom: 32px;
  }

  .about-para-1 {
    font-size: 15px;
  }

  .about-para-2 {
    font-size: 14px;
  }

  .about-quote {
    font-size: 18px;
  }

  .facts-card {
    padding: 20px 20px 28px;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-dot {
    left: -28px;
    width: 6px;
    height: 6px;
  }

  .timeline-card {
    padding: 18px;
  }

  .card-company {
    font-size: 20px;
  }

  .card-role {
    font-size: 13px;
  }

  .card-meta {
    font-size: 12px;
  }

  .card-desc {
    font-size: 14px;
  }

  .tag {
    font-size: 11px;
    padding: 3px 10px;
  }

  .project-card {
    padding: 20px;
  }

  .project-name {
    font-size: 28px;
  }

  .project-desc {
    font-size: 13px;
  }

  .social-float {
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    gap: 6px;
  }

  .social-btn {
    width: 32px;
    height: 32px;
  }

  .social-btn svg {
    width: 14px;
    height: 14px;
  }

  .social-btn::after {
    display: none;
  }

  .footer {
    padding: 40px 20px;
    padding-bottom: max(40px, calc(16px + env(safe-area-inset-bottom)));
  }

  .connect-overlay-content {
    padding: 24px;
  }

  .connect-heading {
    font-size: 32px;
  }

  .connect-icons {
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    max-width: 260px;
  }

  .connect-icon-circle {
    width: 56px;
    height: 56px;
  }

  .connect-icon-circle svg {
    width: 22px;
    height: 22px;
  }

  .connect-platform {
    font-size: 11px;
  }

  .connect-close {
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
  }
}

/* ===== iOS NOTCH / DYNAMIC ISLAND SAFE AREAS ===== */
@supports (padding: env(safe-area-inset-top)) {
  .nav {
    padding-top: env(safe-area-inset-top);
  }

  .scroll-progress {
    top: env(safe-area-inset-top);
  }
}
