/* ================================
   Modern CSS Reset
   Based on: Josh Comeau, Andy Bell, Eric Meyer
   ================================ */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Remove default fieldset styles */
fieldset {
  border: none;
}

/* Reset form element appearance */
input,
textarea,
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Improve text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove Firefox focus outline */
:focus {
  outline: none;
}

/* Add focus visible for accessibility */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
/* ================================
   CSS Custom Properties (Variables)
   Andy Yen Portfolio - Cool Tones Theme
   ================================ */

:root {
  /* ============================================
     COLOR PALETTE - Light Mode (Override Theme)
     ============================================ */

  /* Backgrounds */
  --color-bg-primary: #FAFBFC;
  --color-bg-secondary: #F4F6F8;
  --color-bg-tertiary: #E8ECF0;
  --color-bg-overlay: rgba(250, 251, 252, 0.95);

  /* Text Colors */
  --color-text-primary: #1A2332;
  --color-text-secondary: #4A5568;
  --color-text-tertiary: #718096;
  --color-text-inverse: #FAFBFC;

  /* Accent Colors - Cool Tones */
  --color-accent-primary: #2C5F8D;      /* Deep cool blue */
  --color-accent-secondary: #4C6B8A;    /* Muted blue */
  --color-accent-tertiary: #6B8BA3;     /* Light blue */
  --color-accent-teal: #2D9D94;         /* Deep teal */
  --color-accent-purple: #5B4DBB;       /* Deep purple */

  /* UI Elements */
  --color-border: #E2E8F0;
  --color-border-hover: #CBD5E0;
  --color-shadow: rgba(26, 35, 50, 0.1);
  --color-shadow-lg: rgba(26, 35, 50, 0.15);

  /* States */
  --color-success: #38A169;
  --color-error: #E53E3E;
  --color-warning: #DD6B20;
  --color-info: #3182CE;
}

[data-theme="dark"] {
  /* ============================================
     COLOR PALETTE - Dark Mode (Default)
     ============================================ */

  /* Backgrounds */
  --color-bg-primary: #0F1419;
  --color-bg-secondary: #1A1F28;
  --color-bg-tertiary: #242B35;
  --color-bg-overlay: rgba(15, 20, 25, 0.95);

  /* Text Colors */
  --color-text-primary: #E8ECF0;
  --color-text-secondary: #B8BFC8;
  --color-text-tertiary: #8892A0;
  --color-text-inverse: #1A2332;

  /* Accent Colors - Cool Tones */
  --color-accent-primary: #5B9FD7;      /* Cool sky blue */
  --color-accent-secondary: #7CB8E8;    /* Sky blue */
  --color-accent-tertiary: #A3D1F5;     /* Light blue */
  --color-accent-teal: #4ECDC4;         /* Vibrant teal */
  --color-accent-purple: #7B68EE;       /* Medium slate blue */

  /* UI Elements */
  --color-border: #2C3540;
  --color-border-hover: #3D4654;
  --color-shadow: rgba(0, 0, 0, 0.4);
  --color-shadow-lg: rgba(0, 0, 0, 0.6);

  /* States */
  --color-success: #48BB78;
  --color-error: #FC8181;
  --color-warning: #F6AD55;
  --color-info: #63B3ED;
}

/* ============================================
   GRADIENTS - Cool Tones
   ============================================ */

:root,
[data-theme="dark"] {
  /* Primary Gradients */
  --gradient-cool-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-cool-2: linear-gradient(135deg, #2E3192 0%, #1BFFFF 100%);
  --gradient-cool-3: linear-gradient(135deg, #4A5568 0%, #2C5F8D 100%);
  --gradient-hero: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);

  /* Overlay Gradients */
  --gradient-overlay-light: linear-gradient(135deg,
    rgba(91, 159, 215, 0.1) 0%,
    rgba(78, 205, 196, 0.1) 100%
  );
  --gradient-overlay-strong: linear-gradient(135deg,
    rgba(91, 159, 215, 0.2) 0%,
    rgba(78, 205, 196, 0.2) 100%
  );

  /* Divider Gradient */
  --gradient-divider: linear-gradient(90deg,
    transparent 0%,
    var(--color-accent-primary) 50%,
    transparent 100%
  );
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

:root {
  /* Font Families */
  --font-family-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Font Sizes - Type Scale (1.25 ratio) */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.25rem;      /* 20px */
  --font-size-xl: 1.563rem;     /* 25px */
  --font-size-2xl: 1.953rem;    /* 31px */
  --font-size-3xl: 2.441rem;    /* 39px */
  --font-size-4xl: 3.052rem;    /* 49px */
  --font-size-5xl: 3.815rem;    /* 61px */
  --font-size-6xl: 4.768rem;    /* 76px */

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
  --line-height-loose: 2;

  /* Letter Spacing */
  --letter-spacing-tighter: -0.05em;
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.1em;
}

/* ============================================
   SPACING SCALE
   ============================================ */

:root {
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
}

/* ============================================
   LAYOUT
   ============================================ */

:root {
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* Container Max Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* Z-Index Layers */
  --z-index-base: 1;
  --z-index-dropdown: 10;
  --z-index-sticky: 20;
  --z-index-overlay: 30;
  --z-index-modal: 40;
  --z-index-popover: 50;
  --z-index-toast: 60;
}

/* ============================================
   BORDER RADIUS
   ============================================ */

:root {
  --radius-sm: 0.125rem;    /* 2px */
  --radius-base: 0.25rem;   /* 4px */
  --radius-md: 0.375rem;    /* 6px */
  --radius-lg: 0.5rem;      /* 8px */
  --radius-xl: 0.75rem;     /* 12px */
  --radius-2xl: 1rem;       /* 16px */
  --radius-full: 9999px;
}

/* ============================================
   SHADOWS
   ============================================ */

:root {
  --shadow-sm: 0 1px 2px 0 var(--color-shadow);
  --shadow-base: 0 1px 3px 0 var(--color-shadow),
                 0 1px 2px 0 var(--color-shadow);
  --shadow-md: 0 4px 6px -1px var(--color-shadow),
               0 2px 4px -1px var(--color-shadow);
  --shadow-lg: 0 10px 15px -3px var(--color-shadow),
               0 4px 6px -2px var(--color-shadow);
  --shadow-xl: 0 20px 25px -5px var(--color-shadow),
               0 10px 10px -5px var(--color-shadow);
  --shadow-2xl: 0 25px 50px -12px var(--color-shadow);
}

/* ============================================
   TRANSITIONS & ANIMATIONS
   ============================================ */

:root {
  /* Durations */
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* Easing Functions */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Common Transitions */
  --transition-colors: color var(--duration-base) var(--ease-smooth),
                       background-color var(--duration-base) var(--ease-smooth),
                       border-color var(--duration-base) var(--ease-smooth);

  --transition-transform: transform var(--duration-base) var(--ease-smooth);

  --transition-all: all var(--duration-base) var(--ease-smooth);

  --transition-shadow: box-shadow var(--duration-base) var(--ease-smooth);
}
/* ================================
   Base Styles & Typography
   Andy Yen Portfolio
   ================================ */

/* ============================================
   GLOBAL STYLES
   ============================================ */

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  transition: var(--transition-colors);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  overflow: visible;
  padding-bottom: var(--space-2);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-tighter);
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  position: relative;
  padding-bottom: var(--space-3);
}

/* Decorative accent line under section headings */
.section h2::after,
.preview-module h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Extend accent line on hover */
.section:hover h2::after,
.preview-module:hover h2::after {
  width: 80px;
}

/* Optional decorative dot before heading */
h2[data-dot]::before {
  content: '•';
  color: var(--color-accent-primary);
  margin-right: var(--space-3);
  font-size: 1.2em;
}

/* Decorative brackets for headings */
h2[data-decorated]::before {
  content: '[ ';
  color: var(--color-accent-primary);
  font-weight: var(--font-weight-normal);
  margin-right: var(--space-2);
  opacity: 0.7;
}

h2[data-decorated]::after {
  content: ' ]';
  color: var(--color-accent-primary);
  font-weight: var(--font-weight-normal);
  margin-left: var(--space-2);
  opacity: 0.7;
  /* Override accent line positioning for decorated headings */
  position: static;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
}

/* Section number decoration (optional) */
h2[data-section]::before {
  content: attr(data-section) '. ';
  color: var(--color-accent-primary);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  margin-right: var(--space-3);
  opacity: 0.8;
}

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

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

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

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

a:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

em {
  font-style: italic;
}

small {
  font-size: var(--font-size-sm);
}

/* ============================================
   LISTS
   ============================================ */

ul, ol {
  margin-left: var(--space-6);
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

ul li, ol li {
  margin-bottom: var(--space-2);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   CODE & PREFORMATTED TEXT
   ============================================ */

code, pre {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
}

code {
  padding: var(--space-1) var(--space-2);
  background-color: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
}

pre {
  padding: var(--space-4);
  background-color: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-4);
}

pre code {
  padding: 0;
  background: none;
}

/* ============================================
   BLOCKQUOTES
   ============================================ */

blockquote {
  margin: var(--space-8) 0;
  padding-left: var(--space-6);
  border-left: 4px solid var(--color-accent-primary);
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
}

/* ============================================
   HORIZONTAL RULE
   ============================================ */

hr {
  border: none;
  height: 1px;
  background: var(--gradient-divider);
  margin: var(--space-12) 0;
}

/* ============================================
   IMAGES & MEDIA
   ============================================ */

img {
  border-radius: var(--radius-base);
}

figure {
  margin: var(--space-8) 0;
}

figcaption {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  font-style: italic;
  text-align: center;
}

/* ============================================
   FORMS
   ============================================ */

label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  transition: var(--transition-colors), var(--transition-shadow);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(91, 159, 215, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

::placeholder {
  color: var(--color-text-tertiary);
  opacity: 0.7;
}

/* ============================================
   BUTTONS
   ============================================ */

button,
.button {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-accent-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: var(--transition-all);
  text-align: center;
}

button:hover,
.button:hover {
  background-color: var(--color-accent-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

button:active,
.button:active {
  transform: translateY(0);
}

button:disabled,
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
  background-color: var(--color-accent-primary);
  color: var(--color-text-inverse);
}

::-moz-selection {
  background-color: var(--color-accent-primary);
  color: var(--color-text-inverse);
}

/* ============================================
   SCROLLBAR (Webkit)
   ============================================ */

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-hover);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-primary);
}

/* ============================================
   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-width: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: var(--z-index-toast);
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-accent-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  transform: translateY(-200%);
  transition: var(--transition-transform);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-3xl);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }

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

@media (max-width: 640px) {
  h1 {
    font-size: var(--font-size-2xl);
  }

  h2 {
    font-size: var(--font-size-xl);
  }
}

/* ============================================
   SOCIAL MEDIA ICONS
   ============================================ */

.social-icon-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transition: var(--transition-transform);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.social-icon-brand:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.social-icon-brand img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

/* Scale up icons with extra padding to fill container */
.social-icon-brand img.icon-scale-up {
  transform: scale(1.3);
}

/* Bluesky logo specific scaling to fit container better */
.social-icon-brand img[src*="Bluesky_Logo"] {
  transform: scale(1.5);
  padding: 4px;
}

@media (max-width: 640px) {
  .social-icon-brand {
    width: 40px;
    height: 40px;
  }

  .social-icon-brand img {
    width: 100%;
    height: 100%;
    max-width: 40px;
    max-height: 40px;
  }
}

/* ============================================
   Back to Top Button
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--color-accent-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: 1000;
  line-height: 1;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-accent-secondary);
  transform: translateY(-3px);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(91, 159, 215, 0.3);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.95);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 46px;
    height: 46px;
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}

/* ============================================
   Scroll-Triggered Reveal Animations
   ============================================ */

/* Initial hidden state for scroll-reveal elements */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Revealed state */
.scroll-reveal.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Simpler animation on mobile for performance */
@media (max-width: 768px) {
  .scroll-reveal {
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
}
/* ================================
   Layout Utilities
   ================================ */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  overflow: visible;
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* Section */
.section {
  padding: var(--space-24) 0;
  overflow: visible;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }
}

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

/* Spacing utilities */
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Theme transition */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background-color var(--duration-base) var(--ease-smooth),
              color var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth) !important;
}

/* Section Variants */
.section-alt {
  background-color: var(--color-bg-secondary);
  position: relative;
}

/* Section Dividers */
.section-divider {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: linear-gradient(
    180deg,
    var(--color-bg-secondary) 0%,
    var(--color-bg-primary) 100%
  );
}

.divider-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-border) 30%,
    var(--color-border) 70%,
    transparent 100%
  );
  top: 50%;
  transform: translateY(-50%);
}

.divider-dot {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 1;
  font-family: var(--font-family-mono);
  font-size: 20px;
  font-weight: 300;
}

.divider-dot::before {
  content: '[';
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.divider-dot::after {
  content: ']';
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Center dot */
.divider-dot > span {
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(91, 159, 215, 0.3);
}

/* Reverse gradient for alt sections */
.section-alt + .section-divider {
  background: linear-gradient(
    180deg,
    var(--color-bg-primary) 0%,
    var(--color-bg-secondary) 100%
  );
}

@media (max-width: 768px) {
  .section-divider {
    height: 80px;
  }

  .divider-dot {
    font-size: 16px;
    gap: 6px;
  }

  .divider-dot > span {
    width: 5px;
    height: 5px;
  }
}

/* Simple Chevron Divider */
.section-divider-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) 0;
  opacity: 0.3;
  transition: opacity 0.3s ease;
  width: 100%;
  text-align: center;
}

.section-divider-simple:hover {
  opacity: 0.6;
}

.section-divider-simple svg {
  color: var(--color-text-tertiary);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section-divider-simple {
    padding: var(--space-4) 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section-divider-simple svg {
    width: 24px;
    height: 24px;
  }
}
/* ================================
   Navigation Component
   ================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-index-sticky);
  background-color: var(--color-bg-overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-colors);
}

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

/* Logo/Site Title */
.site-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-black);
  letter-spacing: 0.02em;
  margin: 0;
}

.site-title a {
  color: var(--color-text-primary);
  transition: var(--transition-colors);
}

.site-title a:hover {
  color: var(--color-accent-primary);
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  position: relative;
  padding: var(--space-3) 0;
  transition: var(--transition-colors);
  line-height: 1.5;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-primary);
  transition: width var(--duration-base) var(--ease-smooth);
}

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

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

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

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition-all);
  margin-left: var(--space-4);
  position: relative;
}

.theme-toggle:hover {
  background-color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-text-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease, stroke 0.2s ease;
  opacity: 0;
  transform: rotate(0deg) scale(1);
}

.theme-toggle:hover svg {
  stroke: var(--color-text-inverse);
}

/* Icon visibility states managed by JavaScript */
.theme-toggle .icon-moon,
.theme-toggle .icon-sun {
  pointer-events: none;
}

/* Initial visibility for sun icon (dark mode default) */
.theme-toggle .icon-sun {
  opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: var(--transition-all);
  border-radius: var(--radius-full);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--color-bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-20) var(--space-8);
  transition: right var(--duration-base) var(--ease-smooth);
  z-index: var(--z-index-modal);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-all);
  z-index: calc(var(--z-index-modal) - 1);
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-links li {
  margin-bottom: var(--space-4);
}

.mobile-nav-links a {
  display: block;
  color: var(--color-text-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-3) 0;
  transition: var(--transition-colors);
}

.mobile-nav-links a:hover {
  color: var(--color-accent-primary);
  padding-left: var(--space-2);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    padding: var(--space-3) var(--space-4);
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .site-title {
    font-size: var(--font-size-lg);
  }
}
/* ================================
   Hero Section Component
   ================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-20) var(--space-6);
  background: linear-gradient(135deg,
    var(--color-bg-secondary) 0%,
    var(--color-bg-primary) 50%,
    var(--color-bg-secondary) 100%
  );
}

/* Hero Background with Enhanced Gradient Overlay */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
    var(--gradient-overlay-light);
  pointer-events: none;
  z-index: 0;
  animation: gradientFloat 20s ease infinite;
}

@keyframes gradientFloat {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Parallax effect (applied via JS) */
.hero-bg.parallax {
  transform: translateY(var(--parallax-offset, 0));
  transition: transform 0.1s linear;
}

/* Hero Container - Flex layout for image and content */
.hero-container {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

/* Hero Content */
.hero-content {
  max-width: 650px;
  text-align: left;
  position: relative;
  z-index: 1;
  flex: 1;
  order: 1;
}

/* Hero Image */
.hero-image-wrapper {
  flex-shrink: 0;
  order: 2;
}

.hero-image {
  width: 400px;
  height: 500px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 4px solid transparent;
  background:
    linear-gradient(var(--color-bg-primary), var(--color-bg-primary)) padding-box,
    linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea) border-box;
  background-size: 100% 100%, 300% 300%;
  background-position: 0% 0%, 0% 50%;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(102, 126, 234, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.3s ease;
  animation: borderShift 8s ease infinite;
}

.hero-image:hover {
  transform: scale(1.05);
  box-shadow:
    0 25px 70px rgba(91, 159, 215, 0.3),
    0 0 40px rgba(102, 126, 234, 0.4);
  background-position: 0% 0%, 100% 50%;
}

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

/* Small tag above name */
.hero-tag {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-4);
  font-family: var(--font-family-mono);
}

/* Main name heading */
.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: var(--font-weight-black);
  letter-spacing: 0.02em;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-8);
  background: var(--gradient-cool-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bio text under name */
.hero-bio {
  max-width: 650px;
  margin-top: var(--space-8);
}

.hero-bio p {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
}

.hero-bio p:last-child {
  margin-bottom: 0;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .button {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  animation: bounce 2s infinite;
  z-index: 1;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Large Screen Optimization (4K and above) */
@media (min-width: 2560px) {
  .hero {
    max-height: 100vh;
    padding: var(--space-12) var(--space-6);
  }

  .hero-content {
    max-width: 900px;
  }

  .hero-bio {
    max-width: 750px;
  }

  .scroll-indicator {
    bottom: var(--space-12);
  }
}

/* Desktop Optimization (1920px - 2560px) */
@media (min-width: 1920px) and (max-width: 2559px) {
  .hero {
    max-height: 100vh;
    padding: var(--space-16) var(--space-6);
  }

  .scroll-indicator {
    bottom: var(--space-10);
  }
}

/* Standard Desktop */
@media (min-width: 1024px) {
  .hero {
    max-height: 100vh;
  }

  .scroll-indicator {
    bottom: var(--space-20); /* 80px - ensures both text and arrow are fully visible above fold */
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-container {
    gap: var(--space-8);
  }

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

/* Small Tablet / Large Mobile */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    gap: var(--space-8);
    align-items: center;
  }

  .hero-content {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

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

  .hero-bio {
    text-align: left;
  }

  .hero-image-wrapper {
    order: 2;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero-image {
    width: 100%;
    max-width: 400px;
    height: 450px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: var(--space-16) var(--space-4);
  }

  .hero-container {
    flex-direction: column;
    gap: var(--space-8);
    align-items: center;
  }

  .hero-image-wrapper {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-image {
    width: 100%;
    max-width: 350px;
    height: 400px;
    border-width: 3px;
    /* Disable complex animation on mobile for performance */
    animation: none;
    background:
      linear-gradient(var(--color-bg-primary), var(--color-bg-primary)) padding-box,
      linear-gradient(135deg, #667eea, #764ba2) border-box;
    background-size: 100% 100%, 100% 100%;
  }

  /* Simpler background animation on mobile */
  .hero-bg {
    animation: none;
    opacity: 0.9;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
    text-align: center;
  }

  .hero-bio {
    max-width: 100%;
    text-align: left;
  }

  .hero-bio p {
    font-size: var(--font-size-base);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .button {
    width: 100%;
    max-width: 300px;
  }

  .scroll-indicator {
    position: absolute;
    bottom: auto;
    top: 85vh;
    left: auto;
    right: var(--space-6);
    transform: none;
  }

  .scroll-indicator span {
    display: none;
  }

  .scroll-indicator svg {
    width: 24px;
    height: 24px;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .hero-image {
    max-width: 300px;
    height: 350px;
  }

  .scroll-indicator {
    top: 80vh;
    right: var(--space-4);
  }
}
/* ================================
   Mobile-First Optimizations
   Enhanced touch targets and mobile UX
   ================================ */

/* ============================================
   TOUCH TARGET OPTIMIZATION
   Minimum 44x44px for all interactive elements
   ============================================ */

@media (max-width: 768px) {
  /* Navigation Touch Targets */
  .nav-links a {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-4);
  }

  .theme-toggle {
    min-width: 48px;
    min-height: 48px;
    padding: var(--space-3);
  }

  .mobile-menu-toggle {
    min-width: 48px;
    min-height: 48px;
    padding: var(--space-3);
  }

  /* Card Touch Targets */
  .photo-card {
    min-height: 200px;
  }

  .work-card,
  .podcast-card {
    min-height: 160px;
    padding: var(--space-6);
  }

  /* Button Touch Targets */
  button,
  .button,
  a.button {
    min-height: 48px;
    padding: var(--space-3) var(--space-6);
  }

  /* Links in text */
  .podcast-link,
  .work-card-read-more,
  .view-all-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
  }

  /* Form inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  textarea {
    min-height: 48px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Back to top button */
  .back-to-top {
    min-width: 56px;
    min-height: 56px;
    font-size: 24px;
  }
}

/* ============================================
   MOBILE TYPOGRAPHY
   Optimized for readability
   ============================================ */

@media (max-width: 768px) {
  body {
    font-size: 1rem; /* 16px - prevents zoom */
    line-height: 1.6;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
  }

  /* Better reading width on mobile */
  .hero-bio,
  .work-card-description,
  .podcast-card-description {
    max-width: 100%;
  }
}

/* ============================================
   MOBILE SPACING
   Proper breathing room
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

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

  /* Card spacing */
  .photo-grid-preview,
  .work-grid,
  .podcast-grid {
    gap: var(--space-4);
  }

  .preview-module {
    margin-bottom: var(--space-12);
  }

  /* Hero section */
  .hero {
    padding: var(--space-20) var(--space-4) var(--space-12);
  }

  .hero-bio p {
    margin-bottom: var(--space-4);
  }
}

/* ============================================
   MOBILE PERFORMANCE
   Reduce animations for better performance
   ============================================ */

@media (max-width: 768px) {
  /* Simplify hover effects on mobile (use :active instead) */
  .photo-card:hover,
  .work-card:hover,
  .podcast-card:hover {
    transform: none;
  }

  .photo-card:active,
  .work-card:active,
  .podcast-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  /* Disable complex animations */
  .photo-card::before,
  .work-card::before,
  .podcast-card::before {
    display: none;
  }

  /* Simplify shadows */
  .photo-card,
  .work-card,
  .podcast-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .photo-card:active,
  .work-card:active,
  .podcast-card:active {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }
}

/* ============================================
   MOBILE NAVIGATION
   Enhanced mobile menu
   ============================================ */

@media (max-width: 768px) {
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-bg-secondary);
    border-left: 1px solid var(--color-border);
    z-index: 45;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: var(--space-20) var(--space-6) var(--space-6);
  }

  .mobile-menu.active {
    right: 0;
  }

  .mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 40;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .mobile-nav-links a {
    display: block;
    padding: var(--space-4);
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
    min-height: 56px;
    display: flex;
    align-items: center;
  }

  .mobile-nav-links a:active {
    background-color: var(--color-bg-tertiary);
  }

  .mobile-nav-links a.active {
    background-color: var(--color-accent-primary);
    color: var(--color-text-inverse);
  }
}

/* ============================================
   MOBILE-SPECIFIC IMPROVEMENTS
   ============================================ */

@media (max-width: 640px) {
  /* Stack cards on small screens */
  .photo-grid-preview {
    grid-template-columns: 1fr;
  }

  /* Larger text for better readability */
  .hero-tag {
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  /* Reduce padding for more content */
  .work-card,
  .podcast-card {
    padding: var(--space-4);
  }

  .work-card-image {
    height: 180px;
  }

  /* Better image aspect ratios on mobile */
  .photo-card {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================
   LANDSCAPE MOBILE
   Optimize for landscape orientation
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-12) var(--space-4);
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-bio p {
    font-size: 0.9375rem;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ============================================
   SAFE AREAS (iPhone Notch, etc.)
   ============================================ */

@supports (padding: max(0px)) {
  .header {
    padding-left: max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
  }

  .mobile-menu {
    padding-right: max(var(--space-6), env(safe-area-inset-right));
  }

  .back-to-top {
    bottom: max(2rem, env(safe-area-inset-bottom) + 1rem);
    right: max(2rem, env(safe-area-inset-right) + 1rem);
  }
}

/* ============================================
   REDUCE MOTION
   Respect user preferences
   ============================================ */

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

  .scroll-indicator {
    animation: none;
  }
}

/* ============================================
   HIGH CONTRAST MODE
   Better accessibility
   ============================================ */

@media (prefers-contrast: high) {
  .photo-card,
  .work-card,
  .podcast-card {
    border-width: 2px;
  }

  button,
  .button {
    border: 2px solid currentColor;
  }
}
