/* ═══════════════════════════════════════════════════════
   DESIGN SYSTEM
   Edit these variables to change colors, fonts, spacing
   ═══════════════════════════════════════════════════════ */

:root {
  /* ─── Typography ─── */
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;

  /* ─── Spacing ─── */
  --section-gap: 6rem;
  --section-gap-mobile: 4rem;
  --max-content: 720px;
  --max-layout: 1200px;

  /* ─── Easing ─── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Dark Mode (default) ─── */
:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-card: #161616;
  --text: #f0ede8;
  --text-muted: #8a8680;
  --accent: #3bbfbf;
  --accent-hover: #2da3a3;
  --accent-dim: rgba(59, 191, 191, 0.08);
  --border: #2a2725;
  --border-hover: #3a3735;
  --selection-bg: rgba(59, 191, 191, 0.25);
  --header-bg: rgba(10, 10, 10, 0.92);
  --mobile-menu-bg: rgba(10, 10, 10, 0.98);
  --card-shadow: rgba(0, 0, 0, 0.3);
  --card-glow: rgba(59, 191, 191, 0.06);
  --hero-glow: rgba(59, 191, 191, 0.06);
  color-scheme: dark;
}

/* ─── Light Mode ─── */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8f7f5;
    --bg-alt: #efedea;
    --bg-card: #ffffff;
    --text: #1a1816;
    --text-muted: #6b6560;
    --accent: #2a9e9e;
    --accent-hover: #238585;
    --accent-dim: rgba(42, 158, 158, 0.08);
    --border: #ddd9d4;
    --border-hover: #c5c0ba;
    --selection-bg: rgba(42, 158, 158, 0.2);
    --header-bg: rgba(248, 247, 245, 0.92);
    --mobile-menu-bg: rgba(248, 247, 245, 0.98);
    --card-shadow: rgba(0, 0, 0, 0.08);
    --card-glow: rgba(42, 158, 158, 0.08);
    --hero-glow: rgba(42, 158, 158, 0.06);
    color-scheme: light;
  }
}

/* ─── Logo switching ─── */
.nav-logo-img.logo-light {
  display: none;
}
.nav-logo-img.logo-dark {
  display: block;
}

@media (prefers-color-scheme: light) {
  .nav-logo-img.logo-light {
    display: block;
  }
  .nav-logo-img.logo-dark {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

/* ─── Skip Link ─── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 0 0 6px 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 0;
}

/* ─── Focus ─── */

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Selection ─── */

::selection {
  background-color: var(--selection-bg);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════
   SCROLL-TRIGGERED ANIMATIONS
   Elements start hidden and animate in via JavaScript
   ═══════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children — set via JS with --delay custom property */
.reveal-stagger > .reveal {
  transition-delay: var(--delay, 0ms);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════════════════
   HERO LOAD ANIMATION
   ═══════════════════════════════════════════════════════ */

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

@keyframes heroLine {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

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

.hero-anim {
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) forwards;
}

/* ═══════════════════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  overflow: visible;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  transition:
    background 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth),
    backdrop-filter 0.35s var(--ease-smooth);
}

.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  padding: 0 1.5rem;
  transition: height 0.4s var(--ease-smooth);
}

.site-header.scrolled .nav-inner {
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.nav-logo:hover {
  opacity: 0.7;
}

.nav-logo-img {
  height: 100px;
  width: auto;
  transition: height 0.4s var(--ease-smooth);
}

.site-header.scrolled .nav-logo-img {
  height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  width: 100%;
}

/* ─── Nav icon buttons (email + LinkedIn) ─── */

.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
}

.nav-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-muted);
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-icon-link:hover {
  color: var(--accent);
  background: var(--accent-dim);
}
.nav-icon-link::after {
  display: none;
}

.nav-icon-link .material-symbols-outlined {
  font-size: 20px;
}

.nav-icon-link .fa-linkedin-in {
  font-size: 16px;
}

/* Mobile menu icon links */
.mobile-nav-icons a,
.mobile-menu li a .material-symbols-outlined,
.mobile-menu li a .fa-linkedin-in {
  vertical-align: middle;
}
.mobile-menu li a .material-symbols-outlined {
  font-size: 24px;
  margin-right: 0.5rem;
}
.mobile-menu li a .fa-linkedin-in {
  font-size: 20px;
  margin-right: 0.5rem;
}

/* ─── Mobile hamburger (Apple-style) ─── */

.hamburger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s var(--ease-out);
}

.hamburger-top,
.hamburger-bottom {
  display: block;
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease-out);
}

.hamburger-top {
  top: 50%;
  transform: translateY(-3.5px);
}

.hamburger-bottom {
  top: 50%;
  transform: translateY(2.5px);
}

.hamburger.open {
  transform: rotate(90deg);
}

.hamburger.open .hamburger-top {
  transform: rotate(45deg) translateY(0);
}

.hamburger.open .hamburger-bottom {
  transform: rotate(-45deg) translateY(0);
}

/* ─── Mobile menu dropdown ─── */

.mobile-menu {
  display: none;
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease-smooth),
    transform 0.3s var(--ease-smooth);
  z-index: 99;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 1.5rem;
  gap: 0.25rem;
}
.mobile-menu li {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}
.mobile-menu.open li {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.625rem 0.5rem;
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
}
.mobile-menu a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */

.hero {
  min-height: 600px;
  max-height: 50vh;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8rem 1.5rem 4rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind hero */
.hero::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 25%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--hero-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-layout);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-overline {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2rem;
}

.hero-name-highlight {
  font-weight: 700;
  color: var(--accent);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.875rem;
}

/* ─── Decorative line below hero ─── */
.hero-line {
  width: 48px;
  height: 1px;
  background: var(--border-hover);
  margin: 2.5rem 0 0;
  transform-origin: left;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(59, 191, 191, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════
   PROJECTS — FULL-VIEWPORT SCROLL SNAP
   ═══════════════════════════════════════════════════════ */

.projects-intro {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.projects-intro .section-heading {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text);
}

.projects-scroll {
  scroll-snap-type: y mandatory;
  /* Let the browser handle natural scrolling;
   snap-type does the alignment work */
}

.project-slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

/* Alternating subtle background tints */
.project-slide:nth-child(even) {
  background: var(--bg-alt);
}

/* ─── Two-column inner container ───
   Holds the card and the image side-by-side.
   Max width of 1000px keeps things reined in on ultrawide monitors. */

.project-slide-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  width: 100%;
}

/* Odd projects (1, 3): card LEFT, image RIGHT — default order */
/* Even projects (2, 4): card RIGHT, image LEFT — reverse */
.project-slide.align-right .project-slide-inner {
  flex-direction: row-reverse;
}

/* ─── Project image ───
   Replace the src with your own image. The image sits opposite the card. */

.project-image {
  flex: 1 1 0%;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img,
.project-image video {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  /* Subtle scale-in animation when slide enters view */
  transform: scale(0.96);
  opacity: 0;
  transition:
    transform 0.8s var(--ease-out),
    opacity 0.8s var(--ease-out);
}
.project-slide.in-view .project-image img,
.project-slide.in-view .project-image video {
  transform: scale(1);
  opacity: 1;
}

/* Vertical video (e.g. phone screen recordings) — constrain height */
.project-image video {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
  border-radius: 24px;
}

/* Placeholder shown when no image file exists yet */
.project-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  opacity: 0.4;
}

/* ─── Project card ─── */

.project-card {
  flex: 0 0 auto;
  width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}
.project-card:hover {
  border-color: var(--border-hover);
  box-shadow:
    0 16px 64px var(--card-shadow),
    0 0 0 1px var(--card-glow);
}

/* Accent glow line at top */
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2.75rem;
  right: 2.75rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  border-radius: 1px;
}
.project-card:hover::before {
  opacity: 0.5;
}

.project-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-style: italic;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1.25rem;
  transition: opacity 0.4s var(--ease-out);
}
.project-card:hover .project-number {
  opacity: 0.4;
}

.project-descriptor {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.project-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.project-tools {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition:
    color 0.2s,
    gap 0.3s var(--ease-out);
}
.project-link:hover {
  color: var(--accent-hover);
  gap: 0.75rem;
}
.project-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-out);
}
.project-link:hover svg {
  transform: translateX(2px);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ─── "Under Construction" tooltip for WIP project links ─── */

.project-link-wip {
  cursor: default;
  position: relative;
}

.project-link-wip:hover {
  color: var(--text-muted);
  gap: 0.5rem;
}
.project-link-wip:hover svg {
  transform: none;
}

/* Tooltip bubble (appears above the link) */
.project-link-wip::before {
  content: "\1F6A7 Under Construction \1F6A7";
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px var(--card-shadow);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
  z-index: 10;
}

/* Tooltip arrow (points down, outside below the bubble) */
.project-link-wip::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out);
  z-index: 10;
}

.project-link-wip:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.project-link-wip:hover::after {
  opacity: 1;
}

/* On mobile, show tooltip on tap via focus */
.project-link-wip:focus::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.project-link-wip:focus::after {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   SECTION HEADINGS (shared)
   ═══════════════════════════════════════════════════════ */

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════ */

.about {
  background: var(--bg-alt);
  padding: var(--section-gap-mobile) 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

.about .section-heading {
  margin-bottom: 2.25rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   ABOUT PAGE (standalone /about.html)
   ═══════════════════════════════════════════════════════ */

.about-page {
  padding: calc(120px + var(--section-gap-mobile)) 1.5rem
    var(--section-gap-mobile);
}

.about-page-inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.about-page-portrait {
  flex: 0 0 380px;
  position: sticky;
  top: calc(120px + 2rem);
}

.about-portrait-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.about-page-content {
  flex: 1 1 0%;
  min-width: 0;
}

.about-page-content .section-heading {
  margin-bottom: 2.25rem;
}

.about-page-content .about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-page-content .about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ─── Education section ─── */

.education {
  background: var(--bg-alt);
  padding: var(--section-gap-mobile) 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.education-inner {
  max-width: var(--max-layout);
  margin: 0 auto;
}

.education .section-heading {
  margin-bottom: 2.5rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.education-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition:
    border-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.education-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px var(--card-shadow);
}

.education-school {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.375rem;
}

.education-degree {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.education-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.education-coursework {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════ */

.contact {
  padding: var(--section-gap-mobile) 1.5rem;
}

.contact-inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

.contact .section-heading {
  margin-bottom: 1.25rem;
}

.contact-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.375rem;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
}
.contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.contact-btn svg {
  width: 16px;
  height: 16px;
}
.contact-btn.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.contact-btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(59, 191, 191, 0.25);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links {
  display: flex;
  gap: 1.75rem;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (min-width: 640px) {
  .nav-inner {
    padding: 0 2rem;
  }
  .hero {
    padding: 8rem 2rem 4rem;
  }
  .projects-intro {
    padding: 3rem 2rem;
  }
  .project-slide {
    padding: 3rem 2.5rem;
  }
  .project-card {
    padding: 3rem;
  }
  .about {
    padding: var(--section-gap) 2rem;
  }
  .about-page {
    padding: calc(120px + var(--section-gap)) 2rem var(--section-gap);
  }
  .education {
    padding: var(--section-gap) 2rem;
  }
  .contact {
    padding: var(--section-gap) 2rem;
  }
  .site-footer {
    padding: 2.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .project-slide {
    padding: 3rem 3rem;
  }
  .project-slide-inner {
    gap: 3.5rem;
  }
}

/* ─── Tablet & below: stack about page columns ─── */
@media (max-width: 767px) {
  .about-page-inner {
    flex-direction: column;
    gap: 2.5rem;
  }
  .about-page-portrait {
    flex: none;
    width: 100%;
    position: static;
  }
  .about-portrait-img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
  }
}

/* ─── Tablet & below: stack card above image ─── */
@media (max-width: 767px) {
  .project-slide-inner {
    flex-direction: column !important;
    gap: 1.75rem;
  }

  .project-slide {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .project-card {
    width: 100%;
    flex: none;
  }

  .project-image {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 639px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-menu {
    display: block;
  }

  .hero {
    max-height: none;
    height: auto;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }

  .project-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }
  .project-number {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }
  .project-card::before {
    left: 1.5rem;
    right: 1.5rem;
  }

  .contact-buttons {
    flex-direction: column;
  }
  .contact-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════ */

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .site-header,
  .skip-link,
  .hamburger,
  .mobile-menu,
  .hero::before,
  .hero-line {
    display: none !important;
  }
  .project-slide {
    min-height: auto;
    scroll-snap-align: unset;
    page-break-inside: avoid;
  }
  .project-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  section {
    break-inside: avoid;
  }
}
