/* ==========================================================================
   Brenda Dimaya — Warm Editorial Design System
   A magazine-inspired professional portfolio with Hawaiian warmth
   ========================================================================== */

/* Google Fonts — Distinctive pairings */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Instrument+Serif:ital@0;1&display=swap');

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  /* Warm Hawaiian palette — terracotta, ocean, sand */
  --color-bg: #FAF6F1;
  --color-bg-warm: #F5EDE3;
  --color-bg-deep: #EDE4D8;
  --color-surface: #FFFFFF;
  --color-surface-warm: #FBF8F4;

  --color-terracotta: #C4653A;
  --color-terracotta-light: #E8956A;
  --color-terracotta-muted: #D4906F;
  --color-ocean: #2D6A6A;
  --color-ocean-light: #4A9494;
  --color-ocean-muted: #7AADAD;
  --color-sand: #D4B896;
  --color-sand-light: #E8D5BC;
  --color-sand-dark: #B89B76;

  --color-text: #2A2118;
  --color-text-secondary: #6B5D52;
  --color-text-muted: #9A8D82;
  --color-text-on-dark: #FAF6F1;
  --color-border: #E0D5C8;
  --color-border-light: #EDE4D8;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-editorial: 'Instrument Serif', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;

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

  /* Sizing */
  --max-width: 1120px;
  --max-width-narrow: 720px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(42, 33, 24, 0.06);
  --shadow-md: 0 4px 16px rgba(42, 33, 24, 0.08);
  --shadow-lg: 0 8px 32px rgba(42, 33, 24, 0.1);
  --shadow-warm: 0 4px 24px rgba(196, 101, 58, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-med: 0.4s;
  --duration-slow: 0.7s;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

/* Selection color */
::selection {
  background-color: var(--color-terracotta);
  color: var(--color-text-on-dark);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--color-ocean);
}

img {
  max-width: 100%;
  height: auto;
}

strong {
  font-weight: 600;
}

em {
  font-family: var(--font-editorial);
  font-style: italic;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* ==========================================================================
   Grain Overlay — Texture
   ========================================================================== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-light);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
  transition: color var(--duration-fast) ease;
}

.nav-brand:hover {
  color: var(--color-terracotta);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--duration-fast) ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-terracotta);
  transition: width var(--duration-med) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-social {
  display: flex;
  gap: var(--space-md);
}

.nav-social a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) ease;
}

.nav-social a:hover {
  color: var(--color-terracotta);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  position: relative;
  width: 36px;
  height: 36px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-text);
  position: absolute;
  left: 7px;
  transition: all 0.3s var(--ease-out);
}

.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 23px; }

/* ==========================================================================
   Page Entrance Animations
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes drawLine {
  from { width: 0; }
  to { width: 48px; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-fade-up {
  animation: fadeUp 0.8s var(--ease-out) both;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease both;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-4xl);
  overflow: hidden;
}

/* Warm organic background shape */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 65%;
  height: 140%;
  background: radial-gradient(ellipse at 60% 40%,
    rgba(196, 101, 58, 0.06) 0%,
    rgba(212, 184, 150, 0.04) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Subtle geometric accent */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-border) 20%,
    var(--color-border) 80%,
    transparent 100%
  );
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  animation: fadeUp 0.8s var(--ease-out) both;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-terracotta);
  animation: drawLine 0.6s var(--ease-out) 0.3s both;
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero-tagline {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

.hero-bio {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 520px;
}

.hero-bio p:last-child {
  margin-bottom: var(--space-xl);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

/* Hero right — visual side */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-image-wrapper {
  position: relative;
  width: 340px;
  height: 420px;
}

/* Decorative frame behind image */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 2px solid var(--color-sand);
  border-radius: var(--radius-lg);
}

.hero-image-wrapper img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  z-index: 1;
}

/* Floating accent dots */
.hero-visual .accent-dot {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero-visual .accent-dot--terracotta {
  width: 12px;
  height: 12px;
  background-color: var(--color-terracotta);
  opacity: 0.5;
  top: -8px;
  right: 40px;
}

.hero-visual .accent-dot--ocean {
  width: 8px;
  height: 8px;
  background-color: var(--color-ocean-muted);
  opacity: 0.6;
  bottom: 30px;
  left: -12px;
}

.hero-visual .accent-dot--sand {
  width: 16px;
  height: 16px;
  background-color: var(--color-sand-light);
  bottom: -20px;
  right: 60px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--duration-fast) ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: var(--color-text-on-dark);
}

.btn-primary:hover {
  background-color: #B85A32;
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-warm);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text);
  color: var(--color-text);
  transform: translateY(-1px);
}

/* Button arrow icon */
.btn .arrow {
  transition: transform var(--duration-fast) ease;
  font-size: 1.1em;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Section Divider
   ========================================================================== */
.section-divider {
  padding: var(--space-lg) 0;
  text-align: center;
}

.section-divider .floral-divider {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  pointer-events: none;
  opacity: 0.7;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section {
  padding: var(--space-3xl) 0;
}

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

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background-color: var(--color-terracotta);
  margin: var(--space-md) auto 0;
}

.section-subtitle {
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: var(--space-md) auto 0;
  line-height: 1.6;
}

/* ==========================================================================
   Focus Areas Grid
   ========================================================================== */
.focus-areas {
  background-color: var(--color-surface);
  position: relative;
  overflow: hidden;
}

/* Subtle background pattern */
.focus-areas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(45, 106, 106, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(196, 101, 58, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
}

.focus-card {
  background-color: var(--color-bg);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--duration-med) var(--ease-out);
  border: 1px solid transparent;
}

.focus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-xl);
  right: var(--space-xl);
  height: 2px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-sand));
  border-radius: 1px;
  opacity: 0;
  transition: opacity var(--duration-med) ease;
}

.focus-card:hover {
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.focus-card:hover::before {
  opacity: 1;
}

.focus-card-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-sand);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.focus-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.focus-card p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ==========================================================================
   Portfolio Page
   ========================================================================== */
.page-header {
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
  text-align: center;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--color-border) 30%,
    var(--color-border) 70%,
    transparent
  );
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: var(--space-md);
  text-align: center;
}

.page-title::after {
  display: none;
}

.page-subtitle {
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Portfolio Cards */
.portfolio-grid {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-xl) 0 var(--space-3xl);
}

.portfolio-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-xl);
  position: relative;
  transition: all var(--duration-med) var(--ease-out);
  border: 1px solid var(--color-border-light);
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: var(--space-xl);
}

.portfolio-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
  transform: translateY(-2px);
}

.portfolio-card-accent {
  background: linear-gradient(180deg, var(--color-terracotta), var(--color-sand));
  border-radius: 2px;
  width: 4px;
  min-height: 100%;
}

.portfolio-card-body {
  min-width: 0;
}

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

.portfolio-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0;
  flex: 1;
}

.portfolio-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  background-color: var(--color-bg-warm);
  color: var(--color-terracotta);
  border: 1px solid var(--color-sand-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.portfolio-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portfolio-card li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.portfolio-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1.5px;
  background-color: var(--color-terracotta-muted);
}

.portfolio-card li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Publications Page
   ========================================================================== */
.publications-list {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-xl) 0 var(--space-3xl);
}

.citation-card {
  background-color: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  position: relative;
  transition: all var(--duration-med) var(--ease-out);
}

.citation-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.citation-card::before {
  content: '';
  position: absolute;
  top: var(--space-xl);
  left: 0;
  width: 3px;
  height: calc(100% - var(--space-2xl) * 1);
  background: linear-gradient(180deg, var(--color-ocean), var(--color-ocean-muted));
  border-radius: 0 2px 2px 0;
}

.citation-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  display: block;
}

.citation {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.citation strong {
  color: var(--color-terracotta);
  font-weight: 600;
}

.citation em {
  font-family: var(--font-editorial);
  color: var(--color-text);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-text);
  color: var(--color-text-on-dark);
  padding: var(--space-2xl) 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-terracotta),
    var(--color-sand),
    var(--color-ocean)
  );
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  color: var(--color-text-on-dark);
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-links a {
  color: var(--color-text-on-dark);
  opacity: 0.7;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity var(--duration-fast) ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-text-on-dark);
}

.footer-copyright {
  color: var(--color-text-on-dark);
  opacity: 0.4;
  font-size: 0.8rem;
  margin-top: var(--space-lg);
  text-align: center;
}

/* ==========================================================================
   Decorative Elements (Hawaiian floral assets)
   ========================================================================== */
.floral-divider {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  pointer-events: none;
  opacity: 0.65;
}

.floral-corner {
  display: none;
}

.floral-footer {
  display: none;
}

.hero-floral-container {
  display: none;
}

/* ==========================================================================
   Main Content (shared styling for portfolio/publications)
   ========================================================================== */
.main-content {
  position: relative;
}

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

/* Tablet */
@media (max-width: 900px) {
  .hero {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-wrapper {
    width: 260px;
    height: 320px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-bio {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(250, 246, 241, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-md) var(--space-lg);
  }

  .nav-menu.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: var(--space-md);
  }

  .nav-social {
    justify-content: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
  }

  .hero {
    padding: var(--space-xl) 0 var(--space-2xl);
  }

  .hero-image-wrapper {
    width: 200px;
    height: 250px;
  }

  .hero-image-wrapper::before {
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .portfolio-card {
    padding: var(--space-lg);
    grid-template-columns: 3px 1fr;
    gap: var(--space-lg);
  }

  .portfolio-card-header {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .citation-card {
    padding: var(--space-lg);
  }

  .floral-divider {
    max-width: 250px;
  }

  .footer-links {
    gap: var(--space-lg);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }

  .container {
    padding: 0 var(--space-md);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .portfolio-card h3 {
    font-size: 1.15rem;
  }
}
