/* 
 * Andrés Minjarez - Portfolio Styles
 * Colors & brand identity as requested
 */

:root {
  /* Color Palette */
  --color-espresso: #402916;
  --color-amber: #F2A516;
  --color-burnt-orange: #F28907;
  --color-cream: #F2EADF;
  --color-rose-brown: #BF9278;
  
  /* Typography */
  --font-serif: "aabak", serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --max-width: 1000px;
  --section-padding: 6rem;
  --transition-speed: 0.3s;
  
  /* App-level */
  --bg-color: var(--color-cream);
  --text-color: var(--color-espresso);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}
html {
  overflow-x: hidden;
  width: 100%;
}

/* =========================================
   GRAIN / NOISE TEXTURE OVERLAY
   ========================================= */
/* Film grain canvases positioned per-section */
.grain-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

.grain-hero {
  opacity: 0.12;
  mix-blend-mode: overlay;
}

.grain-portfolio {
  opacity: 0.06;
  mix-blend-mode: overlay;
}

h1, h2, h3, h4, .nav-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* Base button styles */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-amber);
  color: var(--color-espresso);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-burnt-orange);
  color: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 41, 22, 0.15);
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
/* Fade-in from bottom */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide-in from left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Slide-in from right */
.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Scale-in */
.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(13) { transition-delay: 0.65s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(14) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(15) { transition-delay: 0.75s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(16) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(17) { transition-delay: 0.85s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(18) { transition-delay: 0.9s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(19) { transition-delay: 0.95s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(20) { transition-delay: 1.0s; opacity: 1; transform: translateY(0); }

/* =========================================
   PARALLAX LAYERS
   ========================================= */
[data-parallax] {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* =========================================
   NAVIGATION
   ========================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(242, 234, 223, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(191, 146, 120, 0.2);
  box-shadow: 0 2px 10px rgba(64, 41, 22, 0.05);
}

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

.nav-brand {
  font-size: 1.5rem;
  color: var(--color-espresso);
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
  mix-blend-mode: multiply;
  filter: brightness(1.35) contrast(2);
}

.nav-logo:hover {
  opacity: 0.7;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

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

.nav-links a:not(.nav-cta-link)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-burnt-orange);
  transition: width 0.3s ease;
}

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

.nav-cta-link {
  color: var(--color-burnt-orange);
  font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
  margin-left: auto;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-espresso);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 9px; }
.mobile-menu-toggle span:nth-child(3) { top: 18px; }

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

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

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

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: var(--section-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  color: var(--color-espresso);
}

/* Per-letter opacity animation */
.hero-title .letter {
  display: inline-block;
  opacity: 0;
  animation: letterFadeIn 0.6s ease forwards;
}

.hero-title .letter-space {
  display: inline-block;
  width: 0.3em;
}

@keyframes letterFadeIn {
  to {
    opacity: 1;
  }
}

/* Subtitle fade-up */
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-rose-brown);
  font-weight: 400;
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.hero-subtitle-animate {
  opacity: 0;
  transform: translateY(18px);
  animation: subtitleFadeUp 0.8s ease forwards;
  animation-delay: 0.9s;
}

@keyframes subtitleFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle .dot {
  color: var(--color-amber);
  font-weight: 700;
  margin: 0 0.25rem;
}

/* Video wrapper with gradient border glow */
.video-wrapper {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 3rem;
  position: relative;
  padding: 3px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-burnt-orange), var(--color-rose-brown), var(--color-amber));
  background-size: 300% 300%;
  animation: borderShimmer 6s ease-in-out infinite, reelReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 2.7s forwards;
  opacity: 0;
  transform: scale(0.92);
}

@keyframes reelReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.video-border-glow {
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(242,165,22,0.15), rgba(242,137,7,0.10), rgba(191,146,120,0.08));
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

.video-container {
  width: 100%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--color-espresso);
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-burnt-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-style: italic;
}

/* =========================================
   CINEMATIC TIMELINE LINE
   ========================================= */
.hero-line-container {
  position: absolute;
  top: 55%;
  left: -5vw;
  width: 110vw;
  height: 2px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.hero-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(191, 146, 120, 0.06) 10%,
    rgba(191, 146, 120, 0.15) 30%,
    rgba(242, 165, 22, 0.12) 50%,
    rgba(191, 146, 120, 0.15) 70%,
    rgba(191, 146, 120, 0.06) 90%,
    transparent 100%
  );
  animation: lineShimmer 8s ease-in-out infinite;
}

.hero-line-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-amber);
  opacity: 0.35;
  left: 0;
  animation: dotTravel 12s ease-in-out infinite;
}

@keyframes lineShimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes dotTravel {
  0% { left: 5%; opacity: 0; }
  5% { opacity: 0.5; }
  50% { left: 75%; opacity: 0.35; }
  95% { opacity: 0.5; }
  100% { left: 5%; opacity: 0; }
}

/* Additional ambient shapes for parallax */
.parallax-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.parallax-shape.visible {
  opacity: 1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(242, 165, 22, 0.08) 0%, transparent 70%);
  top: 10%;
  right: -80px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(191, 146, 120, 0.06) 0%, transparent 70%);
  top: 60%;
  left: -120px;
}

/* =========================================
   GENERIC SECTION SETTINGS
   ========================================= */
section:not(.hero-section) {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-amber);
}

/* =========================================
   SELECTED WORK — HORIZONTAL SCROLL CAROUSEL
   ========================================= */
.work-section {
  background-color: var(--color-espresso);
  color: var(--color-cream);
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.work-section .section-title {
  color: var(--color-cream);
}

.work-section .section-title::after {
  background-color: var(--color-burnt-orange);
}

.work-section .container {
  max-width: 1600px;
}

.work-header {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.scroll-hint {
  font-size: 0.85rem;
  color: var(--color-rose-brown);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.scroll-hint svg {
  animation: nudgeRight 1.5s ease-in-out infinite;
}

@keyframes nudgeRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* Work Grid Layout */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1rem 0 2rem;
}

.work-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.work-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 146, 120, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border-color: rgba(242, 165, 22, 0.3);
}

/* Video embed area on each card */
.card-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-burnt-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  position: relative;
  overflow: hidden;
}

.card-video::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(64, 41, 22, 0.4) 0%, transparent 100%);
  pointer-events: none;
}

.card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  color: var(--color-cream);
}

.card-client {
  color: var(--color-amber);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

.card-divider {
  border: 0;
  height: 1px;
  background-color: rgba(191, 146, 120, 0.2);
  margin-bottom: 1.25rem;
}

.card-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-details li {
  font-size: 0.9rem;
  color: rgba(242, 234, 223, 0.75);
  line-height: 1.5;
}

.card-details strong {
  color: var(--color-cream);
  font-weight: 600;
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
}

.card-cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--color-amber);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.work-card:hover .card-cta {
  color: var(--color-burnt-orange);
  letter-spacing: 2px;
}



/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
  background-color: var(--color-cream);
  position: relative;
  overflow: hidden;
}

/* Subtle paper/crosshatch texture for About */
.about-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23402916' fill-opacity='1'%3E%3Cpath d='M0 0h1v1H0zM20 0h1v1h-1zM0 20h1v1H0zM20 20h1v1h-1z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

.about-section .section-title::after {
  background-color: var(--color-burnt-orange);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.about-photo-container {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(64, 41, 22, 0.12);
  position: relative;
}

.headshot-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--color-espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--color-cream);
  opacity: 0.8;
}

.headshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-espresso);
}

.about-text p {
  margin-bottom: 0.9rem;
}

.about-highlight {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-burnt-orange);
  margin-top: 1.5rem;
  font-style: italic;
  border-left: 3px solid var(--color-amber);
  padding-left: 1.5rem;
}

/* Decorative floating shape behind about */
.about-bg-shape {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 165, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  right: -150px;
  top: -100px;
}

/* =========================================
   EXPERIENCE TIMELINE
   ========================================= */
.timeline-section {
  background-color: var(--color-cream);
  padding: 4rem 0;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(191, 146, 120, 0.2);
}

.timeline-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Stagger the slide-in delays for timeline items */
.timeline-item.slide-in-left:nth-child(1) { transition-delay: 0s; }
.timeline-item.slide-in-left:nth-child(2) { transition-delay: 0.12s; }
.timeline-item.slide-in-left:nth-child(3) { transition-delay: 0.24s; }
.timeline-item.slide-in-left:nth-child(4) { transition-delay: 0.36s; }

.timeline-year {
  flex: 0 0 140px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-rose-brown);
  font-size: 0.95rem;
}

.timeline-content {
  flex: 1;
}

.timeline-content strong {
  color: var(--color-espresso);
  font-size: 1.1rem;
}

.timeline-detail {
  display: block;
  font-size: 0.95rem;
  color: #6a5d53;
  margin-top: 0.5rem;
}

/* =========================================
   TOOLS SECTION
   ========================================= */
.tools-section {
  background-color: var(--color-cream);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(191, 146, 120, 0.2);
  border-bottom: 1px solid rgba(191, 146, 120, 0.2);
  text-align: center;
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.tools-row-skills {
  margin-top: 0.8rem;
  opacity: 0.75;
}

.tool-tag {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-espresso);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tool-dot {
  color: var(--color-amber);
  font-weight: bold;
}

/* =========================================
   CONTACT SECTION & FOOTER
   ========================================= */
.contact-section {
  background-color: var(--color-cream);
  padding-top: var(--section-padding);
  padding-bottom: 4rem;
}

.contact-section .section-title {
  margin-bottom: 1rem;
}

.contact-section .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact-email-block {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--color-espresso);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.contact-email::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-amber);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.4s ease-out;
}

.contact-email:hover {
  color: var(--color-burnt-orange);
}

.contact-email:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.social-links {
  margin-bottom: 3rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-espresso);
  color: var(--color-cream);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--color-burnt-orange);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 137, 7, 0.3);
}

.contact-closing {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-rose-brown);
  font-size: 1.1rem;
}

.footer {
  background-color: var(--color-espresso);
  color: var(--color-cream);
  padding: 2rem 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */
@media screen and (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-photo-container {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .timeline-item {
    flex-direction: column;
  }
  
  .timeline-year {
    margin-bottom: 0.5rem;
    flex: 0 0 auto;
  }
  
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  :root {
    --section-padding: 4rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-cream);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.2rem;
  }
  
  .hero-subtitle {
    gap: 0.25rem;
  }
  
  .work-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

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

@media screen and (max-width: 480px) {
  :root {
    --section-padding: 3rem;
  }
}
