/* ═══════════════════════════════════════════════════════════════════════════
   YIFAN WU — PORTFOLIO DESIGN SYSTEM
   A refined, professional aesthetic with subtle depth and elegant animations
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   FONTS
   Sora: Modern geometric sans for headings — distinctive yet professional
   DM Sans: Clean, readable body text with subtle personality
   ───────────────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Sora:wght@400;600;700;800&display=swap');

/* ─────────────────────────────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES (Design Tokens)
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Colors — Refined blue palette with warm neutrals */
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --accent-subtle: rgba(37, 99, 235, 0.08);

  --bg: #fafbfc;
  --bg-pure: #ffffff;
  --surface: #ffffff;
  --surface-elevated: #ffffff;

  --text: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;

  --border: #e2e8f0;
  --border-light: #edf2f7;

  /* Typography */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --h1: clamp(2rem, 5vw, 3rem);
  --h2: clamp(1.5rem, 3vw, 2rem);
  --h3: clamp(1.125rem, 2vw, 1.375rem);
  --body: 1rem;
  --small: 0.875rem;

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

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.12);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --header-height: 72px;
  --container-max: 1200px;
  --container-narrow: 800px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: scroll;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Grid pattern overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-dark);
}

/* ─────────────────────────────────────────────────────────────────────────────
   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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: var(--space-md);
  top: var(--space-md);
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  z-index: 9999;
  outline: 3px solid var(--accent-light);
  outline-offset: 2px;
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */
.container {
  width: min(var(--container-max), 92%);
  margin-inline: auto;
}

.container-narrow {
  width: min(var(--container-narrow), 92%);
  margin-inline: auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: var(--h1);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--h2);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--h3);
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.lead strong {
  color: var(--text);
  font-weight: 600;
}

.accent {
  color: var(--accent);
}

.text-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShimmer 3s ease-in-out infinite;
  background-size: 200% auto;
}

@keyframes gradientShimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: var(--space-lg);
}

/* Brand / Home Icon */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.brand-home:hover {
  background-color: var(--accent-subtle);
}

.brand-home .material-icons {
  font-size: 1.5rem;
  color: var(--text);
  transition: color var(--transition-fast);
}

.brand-home:hover .material-icons {
  color: var(--accent);
}

.home-icon-svg {
  width: 24px;
  height: 24px;
  color: var(--text);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.brand-home:hover .home-icon-svg {
  color: var(--accent);
}

/* Navigation - pushed to right */
.site-nav {
  margin-left: auto;
}

/* Navigation */
.site-nav ul {
  display: flex;
  gap: var(--space-xs);
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-display);
  font-size: var(--small);
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.site-nav a:hover {
  color: var(--text);
  background-color: var(--accent-subtle);
}

.site-nav a[aria-current='page'] {
  color: white;
  background: var(--accent);
}

/* ─────────────────────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: var(--small);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(37, 99, 235, 0.35),
    0 4px 10px rgba(37, 99, 235, 0.2);
  color: white;
}

.btn-outline {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(37, 99, 235, 0.3),
    0 4px 10px rgba(37, 99, 235, 0.15);
}

.btn .material-icons {
  font-size: 1.125rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LANDING / HERO (Home Page)
   ───────────────────────────────────────────────────────────────────────────── */
.landing {
  min-height: calc(100dvh - var(--header-height) - 80px);
  display: grid;
  place-items: center;
  padding: var(--space-2xl) 0;
}

.landing-hero {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.landing-hero h1 {
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease-out both;
}

.landing-hero h1 .text-gradient {
  display: inline-block;
  animation:
    fadeInUp 0.8s ease-out 0.15s both,
    gradientShimmer 3s ease-in-out 1s infinite;
  background-size: 200% auto;
}

.landing-hero .lead {
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Staggered animation for buttons */
.cta-row .btn:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}
.cta-row .btn:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.5s both;
}
.cta-row .btn:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   ABOUT PAGE
   ───────────────────────────────────────────────────────────────────────────── */
.about-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-2xl);
  align-items: start;
  padding: var(--space-2xl) 0;
  animation: fadeIn 0.8s ease-out both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  border: 3px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: fadeInLeft 0.8s ease-out both;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-copy {
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-copy h1 {
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.about-copy p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy strong {
  color: var(--text);
  font-weight: 600;
}

/* Highlights Section */
.about-highlights {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.about-highlights h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Work Experience Section */
.work-experience {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.work-experience h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.experience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out 0.6s both;
  transition: all var(--transition-base);
}

.experience-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.experience-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.experience-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.experience-title h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text);
}

.experience-title .material-icons {
  color: var(--accent);
  font-size: 1.5rem;
}

.experience-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.experience-company {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}

.experience-period {
  font-size: var(--small);
  color: var(--text-muted);
}

.experience-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.experience-content p:last-child {
  margin-bottom: 0;
}

.experience-content strong {
  color: var(--text);
  font-weight: 600;
}

.experience-content em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CARDS
   ───────────────────────────────────────────────────────────────────────────── */
.card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  list-style: none;
}

.card-list .card:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}
.card-list .card:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.5s both;
}
.card-list .card:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-4px);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.card h3 .material-icons {
  color: var(--accent);
  font-size: 1.25rem;
}

.card p {
  font-size: var(--small);
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: var(--space-md);
}

.arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--small);
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition-fast);
}

.arrow::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.arrow:hover {
  text-decoration: none;
}

.arrow:hover::after {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONTACT PAGE
   ───────────────────────────────────────────────────────────────────────────── */
.contact-page {
  min-height: calc(100dvh - var(--header-height) - 80px);
  display: grid;
  place-items: center;
  padding: var(--space-2xl) 0;
}

.contact-container {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  animation: fadeInUp 0.8s ease-out both;
}

.contact-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.contact-header h1 {
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.contact-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* Contact Methods */
.contact-methods {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition-base);
}

.contact-method:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  color: var(--text);
}

.contact-method .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-method .material-icons {
  color: var(--accent);
  font-size: 1.5rem;
}

.contact-method .method-content {
  flex-grow: 1;
}

.contact-method .method-label {
  font-size: var(--small);
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.contact-method .method-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.contact-method .method-arrow {
  color: var(--text-muted);
  transition:
    transform var(--transition-fast),
    color var(--transition-fast);
}

.contact-method:hover .method-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.social-link:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.social-link .social-icon {
  width: 24px;
  height: 24px;
  transition: color var(--transition-fast);
}

.social-link img {
  width: 24px;
  height: 24px;
  transition: filter var(--transition-fast);
}

.social-link:hover img {
  filter: brightness(0) invert(1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-left,
.footer-right {
  font-size: var(--small);
  color: var(--text-muted);
}

.footer-center {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--small);
}

.footer-center .sep {
  color: var(--border);
}

.contact-link {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.icon-link {
  display: inline-flex;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.icon-link:hover {
  opacity: 1;
}

.icon-link img {
  width: 20px;
  height: 20px;
}

.heart {
  color: #ef4444;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROJECT CARDS (for Projects page)
   ───────────────────────────────────────────────────────────────────────────── */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-card > div {
  padding: var(--space-lg);
}

.project-card h2 {
  font-size: var(--h3);
  margin-bottom: var(--space-sm);
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
}

.chips li {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.chips li:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

/* ─────────────────────────────────────────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────────────────────────────────────────── */
.content {
  padding: var(--space-xl) 0 var(--space-3xl);
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .about-copy {
    max-width: 600px;
    margin: 0 auto;
  }

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

  .experience-meta {
    align-items: flex-start;
    text-align: left;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROJECTS PAGE
   ───────────────────────────────────────────────────────────────────────────── */
.projects-section {
  padding-bottom: var(--space-3xl);
}

.projects-section > h1 {
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--text);
  animation: fadeInUp 0.6s ease-out both;
}

/* Project Cards */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  margin-bottom: var(--space-2xl);
}

.project-card:last-of-type {
  margin-bottom: var(--space-3xl);
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
}

.project-card.banner {
  display: grid;
  grid-template-columns: minmax(400px, 50%) 1fr;
  align-items: stretch;
}

.project-card .img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 280px;
}

.project-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.project-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.project-title .material-icons {
  color: var(--accent);
  font-size: 1.5rem;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.project-links .arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--small);
  font-weight: 600;
  color: var(--accent);
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.project-links .arrow:hover {
  background: var(--accent);
  color: white;
  text-decoration: none;
}

.project-links .arrow .material-icons {
  font-size: 1rem;
}

.project-links .arrow::after {
  content: none;
}

/* Skills Section */
.skills-section {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.skills-section > h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--text);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.skill-category {
  animation: fadeInUp 0.6s ease-out both;
}

.skill-category:nth-child(1) {
  animation-delay: 0.1s;
}
.skill-category:nth-child(2) {
  animation-delay: 0.15s;
}
.skill-category:nth-child(3) {
  animation-delay: 0.2s;
}
.skill-category:nth-child(4) {
  animation-delay: 0.25s;
}
.skill-category:nth-child(5) {
  animation-delay: 0.3s;
}

.skill-heading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.skill-heading .material-icons {
  color: var(--accent);
  font-size: 1.25rem;
}

.skills-section .chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
}

.skills-section .chips li {
  padding: 0.4rem 0.875rem;
  font-size: var(--small);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.skills-section .chips li:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-2px);
}

/* Projects Page Responsive */
@media (max-width: 900px) {
  .project-card.banner {
    grid-template-columns: 1fr;
  }

  .project-card .img-cover {
    min-height: 200px;
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .card-list {
    grid-template-columns: 1fr;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
  }

  .footer-center {
    order: -1;
    flex-wrap: wrap;
    justify-content: center;
  }

  .project-card {
    margin-bottom: var(--space-xl);
  }

  .project-content {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .site-nav ul {
    gap: 0;
  }

  .site-nav a {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
