/* =====================================================
   John Zertuche — Personal Website
   Beige & Forest Green Aesthetic — Enhanced Edition
   ===================================================== */

:root {
  /* Beige Palette */
  --bg-primary: #F5F0E8;
  --bg-secondary: #EDE8DD;
  --bg-warm: #FAF7F2;
  --bg-cream: #FFFBF5;
  
  /* Forest Green Palette */
  --accent-primary: #2D4739;
  --accent-secondary: #3D5C4A;
  --accent-light: #4A6B55;
  --accent-muted: #6B8F7A;
  
  /* Text Colors */
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #7A7A7A;
  --text-light: #9A9A9A;
  
  /* Accent Colors */
  --highlight: #D4C4A8;
  --highlight-warm: #E8D5B5;
  --coral: #E07A5F;
  --gold: #C9A227;
  --sage: #9DB4A0;
  
  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;
}

/* =====================================================
   Reset & Base
   ===================================================== */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 20% 0%, rgba(157, 180, 160, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(224, 122, 95, 0.08) 0%, transparent 50%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent scroll jolting on mobile */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

body.loaded {
  opacity: 1;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

/* Prevent horizontal overflow */
body, html {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

section, .container, .nav, .hero, .about, .journey, .projects, .skills, .exploring-section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  contain: layout style paint;
}

/* Prevent layout shifts from lazy-loaded images */
img[loading="lazy"] {
  content-visibility: auto;
}

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

ul {
  list-style: none;
}

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

/* =====================================================
   Availability Beacon — The Fun Part!
   ===================================================== */

.availability-beacon {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--bg-cream), var(--bg-warm));
  border: 1px solid var(--highlight);
  border-radius: 50px;
  box-shadow: 
    0 4px 20px rgba(45, 71, 57, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
}

.availability-beacon:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 30px rgba(45, 71, 57, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.beacon-pulse {
  position: absolute;
  left: 0.75rem;
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.beacon-dot {
  position: relative;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px rgba(45, 71, 57, 0.3);
}

.beacon-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.02em;
}

/* Busy State */
.availability-beacon.busy .beacon-pulse,
.availability-beacon.busy .beacon-dot {
  background: linear-gradient(135deg, #C4A35A, #D4B86A);
}

.availability-beacon.busy .beacon-text {
  color: #8B7355;
}

.availability-beacon.busy .beacon-pulse {
  animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes pulse-slow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.2;
  }
}

/* =====================================================
   Navigation
   ===================================================== */

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

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-primary);
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.logo:hover::after {
  transform: scaleX(1);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

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

.nav-cta {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-cream) !important;
  border-radius: 50px;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(45, 71, 57, 0.2);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(45, 71, 57, 0.3);
}

/* =====================================================
   Hero Section
   ===================================================== */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  padding: var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  align-items: center;
  align-content: center;
  position: relative;
}

/* Decorative gradient blob */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(224, 122, 95, 0.12) 0%,
    rgba(201, 162, 39, 0.08) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  animation: blobFloat 20s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--highlight), var(--highlight-warm));
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 10px rgba(212, 196, 168, 0.3);
}

.hero-tag::before {
  content: '✦';
  font-size: 0.7rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
  overflow: visible;
}

.hero-accent {
  font-style: italic;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--coral),
    var(--gold),
    var(--accent-primary)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 15s ease-in-out infinite;
  display: inline-block;
  padding-right: 0.2em;
  margin-right: 0;
}

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

.text-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--accent-primary);
  line-height: 1;
  height: 2.5rem;
  display: flex;
  align-items: flex-end;
}

.stat-infinity {
  font-size: 4rem;
  height: 2.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: var(--space-lg);
}

.hero-links-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.hero-link:hover {
  color: var(--text-primary);
}

.hero-link-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.hero-link-active .hero-link-dot {
  background: var(--accent-light);
}

.hero-link-inactive .hero-link-dot {
  background: var(--coral);
}

.hero-link:hover .hero-link-dot {
  transform: scale(1.4);
}

.hero-link-active:hover .hero-link-dot {
  background: var(--accent-primary);
}

.hero-link-inactive:hover .hero-link-dot {
  background: #C85A47;
}

.hero-link-text {
  position: relative;
}

.hero-link-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.hero-link:hover .hero-link-text::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

/* Organic Venn diagram blobs */
.venn-blob {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  mix-blend-mode: multiply;
  --parallax-x: 0px;
  --parallax-y: 0px;
  transition: opacity 0.4s ease, transform 0.3s ease;
  will-change: transform;
  transform: scale(0);
}

/* Individual blob animations override this - see below */

@keyframes blobEntrance {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.venn-blob:hover {
  opacity: 0.85;
  z-index: 10;
}

.venn-blob span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  opacity: 0.6;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

.venn-blob:hover span {
  opacity: 0.9;
}

/* Position blobs to overlap in center - more dramatic size variation */
.venn-1 {
  width: 250px;
  height: 200px;
  background: linear-gradient(135deg, rgba(45, 71, 57, 0.32), rgba(74, 107, 85, 0.25));
  border-radius: 73% 27% 38% 62% / 43% 61% 39% 57%;
  top: -5%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  animation: venn-morph-1 12s ease-in-out infinite;
  animation-delay: 0s;
}

body.loaded .venn-1 {
  opacity: 0;
  animation: blobEntrance-1 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards,
             venn-morph-1 12s ease-in-out infinite 1.8s;
}

@keyframes blobEntrance-1 {
  from {
    transform: translateX(-50%) scale(0.85);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) scale(1);
    opacity: 0.65;
  }
}

.venn-2 {
  width: 120px;
  height: 140px;
  background: linear-gradient(135deg, rgba(224, 122, 95, 0.28), rgba(224, 122, 95, 0.2));
  border-radius: 41% 59% 72% 28% / 58% 33% 67% 42%;
  top: 18%;
  right: 8%;
  transform: scale(0);
  animation: venn-morph-2 14s ease-in-out infinite;
}

body.loaded .venn-2 {
  opacity: 0;
  animation: blobEntrance-2 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards,
             venn-morph-2 14s ease-in-out infinite 2s;
}

@keyframes blobEntrance-2 {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 0.65;
  }
}

.venn-3 {
  width: 210px;
  height: 150px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.26), rgba(201, 162, 39, 0.18));
  border-radius: 34% 66% 29% 71% / 66% 37% 63% 34%;
  top: 48%;
  right: -2%;
  transform: scale(0);
  animation: venn-morph-3 10s ease-in-out infinite;
}

body.loaded .venn-3 {
  opacity: 0;
  animation: blobEntrance-3 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards,
             venn-morph-3 10s ease-in-out infinite 2.2s;
}

@keyframes blobEntrance-3 {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 0.65;
  }
}

.venn-4 {
  width: 280px;
  height: 240px;
  background: linear-gradient(135deg, rgba(157, 180, 160, 0.30), rgba(157, 180, 160, 0.22));
  border-radius: 62% 38% 53% 47% / 38% 72% 28% 62%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: venn-morph-4 13s ease-in-out infinite;
  z-index: 0;
}

body.loaded .venn-4 {
  opacity: 0;
  animation: blobEntrance-4 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards,
             venn-morph-4 13s ease-in-out infinite 1.9s;
}

@keyframes blobEntrance-4 {
  from {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.65;
  }
}

.venn-5 {
  width: 200px;
  height: 220px;
  background: linear-gradient(135deg, rgba(45, 71, 57, 0.25), rgba(107, 143, 122, 0.2));
  border-radius: 47% 53% 68% 32% / 57% 42% 58% 43%;
  bottom: -5%;
  left: 45%;
  transform: translateX(-50%) scale(0);
  animation: venn-morph-5 11s ease-in-out infinite;
}

body.loaded .venn-5 {
  opacity: 0;
  animation: blobEntrance-5 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards,
             venn-morph-5 11s ease-in-out infinite 2.1s;
}

@keyframes blobEntrance-5 {
  from {
    transform: translateX(-50%) scale(0.85);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) scale(1);
    opacity: 0.65;
  }
}

.venn-6 {
  width: 180px;
  height: 210px;
  background: linear-gradient(135deg, rgba(224, 122, 95, 0.2), rgba(201, 162, 39, 0.18));
  border-radius: 58% 42% 44% 56% / 32% 68% 32% 68%;
  top: 20%;
  left: -3%;
  transform: scale(0);
  animation: venn-morph-6 15s ease-in-out infinite;
}

body.loaded .venn-6 {
  opacity: 0;
  animation: blobEntrance-6 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards,
             venn-morph-6 15s ease-in-out infinite 2.3s;
}

@keyframes blobEntrance-6 {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 0.65;
  }
}

@keyframes venn-morph-1 {
  0%, 100% {
    border-radius: 73% 27% 38% 62% / 43% 61% 39% 57%;
    transform: translateX(-50%) translate(var(--parallax-x), var(--parallax-y)) rotate(0deg);
  }
  33% {
    border-radius: 38% 62% 73% 27% / 61% 43% 57% 39%;
  }
  66% {
    border-radius: 52% 48% 33% 67% / 55% 38% 62% 45%;
    transform: translateX(-50%) translate(var(--parallax-x), var(--parallax-y)) rotate(12deg) scale(1.04);
  }
}

@keyframes venn-morph-2 {
  0%, 100% {
    border-radius: 41% 59% 72% 28% / 58% 33% 67% 42%;
    transform: translate(var(--parallax-x), var(--parallax-y)) rotate(0deg);
  }
  50% {
    border-radius: 67% 33% 45% 55% / 38% 72% 28% 62%;
    transform: translate(var(--parallax-x), var(--parallax-y)) rotate(-15deg) scale(1.05);
  }
}

@keyframes venn-morph-3 {
  0%, 100% {
    border-radius: 34% 66% 29% 71% / 66% 37% 63% 34%;
    transform: translate(var(--parallax-x), var(--parallax-y)) rotate(0deg);
  }
  33% {
    border-radius: 71% 29% 66% 34% / 34% 63% 37% 66%;
    transform: translate(var(--parallax-x), var(--parallax-y)) rotate(8deg);
  }
  66% {
    border-radius: 48% 52% 41% 59% / 52% 48% 52% 48%;
    transform: translate(var(--parallax-x), var(--parallax-y)) rotate(-12deg) scale(1.06);
  }
}

@keyframes venn-morph-4 {
  0%, 100% {
    border-radius: 62% 38% 53% 47% / 38% 72% 28% 62%;
    transform: translate(-50%, -50%) translate(var(--parallax-x), var(--parallax-y)) rotate(0deg);
  }
  50% {
    border-radius: 38% 62% 28% 72% / 62% 38% 62% 38%;
    transform: translate(-50%, -50%) translate(var(--parallax-x), var(--parallax-y)) rotate(18deg) scale(1.04);
  }
}

@keyframes venn-morph-5 {
  0%, 100% {
    border-radius: 47% 53% 68% 32% / 57% 42% 58% 43%;
    transform: translateX(-50%) translate(var(--parallax-x), var(--parallax-y)) rotate(0deg);
  }
  33% {
    border-radius: 68% 32% 47% 53% / 42% 58% 42% 58%;
    transform: translateX(-50%) translate(var(--parallax-x), var(--parallax-y)) rotate(5deg);
  }
  66% {
    border-radius: 35% 65% 55% 45% / 65% 35% 65% 35%;
    transform: translateX(-50%) translate(var(--parallax-x), var(--parallax-y)) rotate(-10deg) scale(1.05);
  }
}

@keyframes venn-morph-6 {
  0%, 100% {
    border-radius: 58% 42% 44% 56% / 32% 68% 32% 68%;
    transform: translate(var(--parallax-x), var(--parallax-y)) rotate(0deg);
  }
  50% {
    border-radius: 44% 56% 68% 32% / 56% 44% 56% 44%;
    transform: translate(var(--parallax-x), var(--parallax-y)) rotate(15deg) scale(1.03);
  }
}

/* =====================================================
   About Section
   ===================================================== */

.about {
  padding: var(--space-md) var(--space-lg);
  padding-bottom: var(--space-sm);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-label {
  margin-bottom: var(--space-md);
}

.section-label span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--text-muted);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
}

.section-label span:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.section-title em {
  font-style: italic;
  background: linear-gradient(
    90deg,
    var(--coral),
    var(--gold),
    var(--accent-primary),
    var(--coral)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow-alt 18s ease-in-out infinite;
}

@keyframes gradient-flow-alt {
  0% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.about-text {
  max-width: 550px;
}

.about-lead {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
  line-height: 1.5;
  min-height: 1.5rem;
  white-space: nowrap;
}

.typewriter {
  display: inline;
}

.cursor {
  display: inline;
  color: var(--coral);
  animation: blink 1s step-end infinite;
}

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

.about-text p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.05rem;
}

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

.about-stats {
  display: flex;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
}

.about-stat {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-warm));
  border-radius: 20px;
  min-width: 180px;
}

.about-stat-prefix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--coral);
  line-height: 1;
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
}

.about-stat-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.about-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* =====================================================
   Journey Section
   ===================================================== */

.journey {
  padding: var(--space-sm) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow-x: visible;
}

.journey::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(45, 71, 57, 0.06), rgba(157, 180, 160, 0.08));
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  animation: venn-morph-1 15s ease-in-out infinite;
  z-index: -1;
}

.journey::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: -8%;
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, rgba(224, 122, 95, 0.06), rgba(201, 162, 39, 0.05));
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  animation: venn-morph-3 12s ease-in-out infinite;
  z-index: -1;
}

/* Decorative corner accent */
.journey::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.journey::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(157, 180, 160, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.timeline {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 50px 1fr 320px;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  position: relative;
  align-items: center;
  background: transparent;
  margin-bottom: var(--space-sm);
  transition: all 0.3s ease;
  overflow: visible;
}

.timeline-item:nth-child(even) .timeline-image {
  order: 1;
}

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


.timeline-item:hover .timeline-content h3 {
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--coral),
    var(--gold),
    var(--accent-primary)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 15s ease-in-out infinite;
  transform: translateX(4px);
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content h3 .timeline-title-sub {
  -webkit-text-fill-color: var(--text-secondary);
  color: var(--text-secondary);
}

.timeline-item:hover .timeline-image {
  transform: scale(1.02) translateY(-2px);
}

.timeline-item:hover .timeline-logo-wrap {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s ease;
}

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

.timeline-number {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--bg-cream);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(45, 71, 57, 0.2);
}

.timeline-logo-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.timeline-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  z-index: -1;
}

.timeline-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  filter: brightness(0);
  opacity: 0.6;
}

.timeline-item:nth-child(1) .timeline-logo-wrap::before {
  background: linear-gradient(135deg, rgba(45, 71, 57, 0.3), rgba(74, 107, 85, 0.22));
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  animation: logo-morph-1 10s ease-in-out infinite;
}

.timeline-item:nth-child(2) .timeline-logo-wrap::before {
  background: linear-gradient(135deg, rgba(224, 122, 95, 0.28), rgba(224, 122, 95, 0.18));
  border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
  animation: logo-morph-2 12s ease-in-out infinite;
}

.timeline-item:nth-child(3) .timeline-logo-wrap::before {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.28), rgba(201, 162, 39, 0.18));
  border-radius: 55% 45% 40% 60% / 40% 60% 40% 60%;
  animation: logo-morph-3 9s ease-in-out infinite;
}

.timeline-item:nth-child(4) .timeline-logo-wrap::before {
  background: linear-gradient(135deg, rgba(157, 180, 160, 0.32), rgba(157, 180, 160, 0.22));
  border-radius: 40% 60% 55% 45% / 60% 40% 55% 45%;
  animation: logo-morph-4 11s ease-in-out infinite;
}

.timeline-item:hover .timeline-logo {
  opacity: 0.9;
}

@keyframes logo-morph-1 {
  0%, 100% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
  50% { border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%; }
}

@keyframes logo-morph-2 {
  0%, 100% { border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%; }
  50% { border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%; }
}

@keyframes logo-morph-3 {
  0%, 100% { border-radius: 55% 45% 40% 60% / 40% 60% 40% 60%; }
  50% { border-radius: 45% 55% 55% 45% / 60% 40% 55% 45%; }
}

@keyframes logo-morph-4 {
  0%, 100% { border-radius: 40% 60% 55% 45% / 60% 40% 55% 45%; }
  50% { border-radius: 60% 40% 45% 55% / 40% 60% 45% 55%; }
}

@keyframes timeline-float-1 {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes timeline-float-2 {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-1.5px);
  }
}

@keyframes timeline-float-3 {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2.5px);
  }
}

@keyframes timeline-float-4 {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-1.8px);
  }
}

@keyframes logo-pulse-1 {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.05) rotate(2deg);
  }
  50% {
    transform: scale(1) rotate(0deg);
  }
  75% {
    transform: scale(1.05) rotate(-2deg);
  }
}

@keyframes logo-pulse-2 {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  33% {
    transform: scale(1.06) rotate(-1.5deg);
  }
  66% {
    transform: scale(1) rotate(1deg);
  }
}

@keyframes logo-pulse-3 {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  30% {
    transform: scale(1.04) rotate(1.5deg);
  }
  60% {
    transform: scale(1) rotate(-1deg);
  }
}

@keyframes logo-pulse-4 {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  40% {
    transform: scale(1.05) rotate(-2deg);
  }
  80% {
    transform: scale(1) rotate(1.5deg);
  }
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.timeline-title-sub {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  margin-top: 0.25rem;
}

.timeline-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.timeline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  margin-top: var(--space-sm);
  position: relative;
  transition: all 0.2s ease;
}

.timeline-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--coral);
  transition: width 0.3s ease;
}

.timeline-link:hover {
  color: var(--coral);
}

.timeline-link:hover::before {
  width: 100%;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: var(--space-sm);
}

.timeline-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-primary);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.timeline-accent:hover {
  opacity: 0.7;
}

.timeline-image {
  width: 100%;
  height: 180px;
  overflow: visible;
  padding: 0;
  transition: transform 0.3s ease;
  will-change: transform;
  position: relative;
}

/* Organic rectangular shapes - hand-drawn feel with subtle edge variations */
/* Item 1: Very rounded top-left, gentle outward curve on left, subtle top dip */
.timeline-item:nth-child(1) .timeline-image {
  animation: float-1 8s ease-in-out infinite;
  animation-delay: 0s;
}

.timeline-item:nth-child(1) .timeline-img,
.timeline-item:nth-child(1) .timeline-video {
  border-radius: 48% 26% 28% 30% / 40% 32% 24% 26%;
  animation: organic-morph-1 14s ease-in-out infinite;
  animation-delay: 0s;
}

.timeline-item:nth-child(1):hover .timeline-image {
  transform: translateY(-2px);
}

.timeline-item:nth-child(1):hover .timeline-img,
.timeline-item:nth-child(1):hover .timeline-video {
  border-radius: 46% 28% 30% 28% / 38% 34% 26% 24%;
}

/* Item 2: Inward curve top-left, rounded bottom-right, subtle edge variations */
.timeline-item:nth-child(2) .timeline-image {
  animation: float-2 9s ease-in-out infinite;
  animation-delay: 1s;
}

.timeline-item:nth-child(2) .timeline-img,
.timeline-item:nth-child(2) .timeline-video {
  border-radius: 20% 34% 44% 38% / 26% 18% 40% 36%;
  animation: organic-morph-2 16s ease-in-out infinite;
  animation-delay: 0s;
}

.timeline-item:nth-child(2):hover .timeline-image {
  transform: translateY(-2px);
}

.timeline-item:nth-child(2):hover .timeline-img,
.timeline-item:nth-child(2):hover .timeline-video {
  border-radius: 22% 36% 42% 36% / 28% 20% 38% 34%;
}

/* Item 3: Balanced organic feel, subtle undulations on edges */
.timeline-item:nth-child(3) .timeline-image {
  animation: float-3 7s ease-in-out infinite;
  animation-delay: 2s;
}

.timeline-item:nth-child(3) .timeline-img,
.timeline-item:nth-child(3) .timeline-video {
  border-radius: 32% 28% 32% 26% / 34% 30% 28% 32%;
  animation: organic-morph-3 13s ease-in-out infinite;
  animation-delay: 0s;
}

.timeline-item:nth-child(3):hover .timeline-image {
  transform: translateY(-2px);
}

.timeline-item:nth-child(3):hover .timeline-img,
.timeline-item:nth-child(3):hover .timeline-video {
  border-radius: 30% 30% 30% 28% / 32% 32% 30% 30%;
}

/* Item 4: Rounded top-left, subtle bottom bulge, gentle curves */
.timeline-item:nth-child(4) .timeline-image {
  animation: float-4 10s ease-in-out infinite;
  animation-delay: 0.5s;
}

.timeline-item:nth-child(4) .timeline-img,
.timeline-item:nth-child(4) .timeline-video {
  border-radius: 40% 28% 24% 36% / 34% 28% 32% 24%;
  animation: organic-morph-4 15s ease-in-out infinite;
  animation-delay: 0s;
}

.timeline-item:nth-child(4):hover .timeline-image {
  transform: translateY(-2px);
}

.timeline-item:nth-child(4):hover .timeline-img,
.timeline-item:nth-child(4):hover .timeline-video {
  border-radius: 38% 30% 26% 34% / 32% 30% 30% 26%;
}

@keyframes organic-morph-1 {
  0%, 100% {
    border-radius: 48% 26% 28% 30% / 40% 32% 24% 26%;
  }
  25% {
    border-radius: 46% 28% 30% 28% / 38% 34% 26% 24%;
  }
  50% {
    border-radius: 50% 24% 26% 32% / 42% 30% 22% 28%;
  }
  75% {
    border-radius: 44% 30% 32% 26% / 36% 36% 28% 22%;
  }
}

@keyframes organic-morph-2 {
  0%, 100% {
    border-radius: 20% 34% 44% 38% / 26% 18% 40% 36%;
  }
  33% {
    border-radius: 22% 36% 42% 36% / 28% 20% 38% 34%;
  }
  66% {
    border-radius: 18% 32% 46% 40% / 24% 16% 42% 38%;
  }
}

@keyframes organic-morph-3 {
  0%, 100% {
    border-radius: 32% 28% 32% 26% / 34% 30% 28% 32%;
  }
  30% {
    border-radius: 30% 30% 30% 28% / 32% 32% 30% 30%;
  }
  60% {
    border-radius: 34% 26% 34% 24% / 36% 28% 26% 34%;
  }
}

@keyframes organic-morph-4 {
  0%, 100% {
    border-radius: 40% 28% 24% 36% / 34% 28% 32% 24%;
  }
  40% {
    border-radius: 38% 30% 26% 34% / 32% 30% 30% 26%;
  }
  80% {
    border-radius: 42% 26% 22% 38% / 36% 26% 34% 22%;
  }
}

@keyframes float-1 {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) translateX(2px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-1px) translateX(-1px) rotate(-0.3deg);
  }
  75% {
    transform: translateY(-2px) translateX(1px) rotate(0.2deg);
  }
}

@keyframes float-2 {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-2px) translateX(-2px) rotate(-0.4deg);
  }
  66% {
    transform: translateY(-4px) translateX(1px) rotate(0.3deg);
  }
}

@keyframes float-3 {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  30% {
    transform: translateY(-2px) translateX(1px) rotate(0.2deg);
  }
  60% {
    transform: translateY(-3px) translateX(-1px) rotate(-0.2deg);
  }
}

@keyframes float-4 {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  40% {
    transform: translateY(-3px) translateX(-1px) rotate(-0.3deg);
  }
  80% {
    transform: translateY(-1px) translateX(2px) rotate(0.4deg);
  }
}

.timeline-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 71, 57, 0.12), rgba(157, 180, 160, 0.15));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.timeline-placeholder:hover {
  transform: scale(1.02);
}

.timeline-placeholder span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-placeholder small {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-placeholder.placeholder-alt {
  background: linear-gradient(135deg, rgba(224, 122, 95, 0.12), rgba(201, 162, 39, 0.1));
}

.timeline-img,
.timeline-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
  display: block;
  transition: transform 0.3s ease, border-radius 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, border-radius;
}

.timeline-details {
  list-style: none;
  padding-left: 0;
}

.timeline-details li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.7;
  padding-left: 1.5rem;
  position: relative;
}

.timeline-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-muted);
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-cream);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px rgba(45, 71, 57, 0.25);
  position: relative;
  overflow: hidden;
}

.resume-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.resume-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(45, 71, 57, 0.3);
}

.resume-btn:hover::before {
  left: 100%;
}

/* =====================================================
   Work Section
   ===================================================== */

.work {
  padding: var(--space-lg) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.work-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.work-header .section-title {
  flex: 1;
  margin-bottom: 0;
}

.see-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--coral), #D4896F);
  color: var(--bg-cream);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 25px rgba(224, 122, 95, 0.3);
}

.see-all-btn:hover {
  transform: translateX(5px) scale(1.02);
  box-shadow: 0 8px 30px rgba(224, 122, 95, 0.4);
}

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

.project {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--bg-cream), var(--bg-secondary));
  border-radius: 28px;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--coral), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project:hover {
  transform: translateY(-8px);
  border-color: var(--highlight);
  box-shadow: 0 25px 80px rgba(45, 71, 57, 0.12);
}

.project:hover::before {
  transform: scaleX(1);
}

.project-alt {
  grid-template-columns: 1.2fr 1fr;
}

.project-alt .project-info {
  order: 2;
}

.project-alt .project-image {
  order: 1;
}

.project-year {
  font-size: 0.8rem;
  color: var(--text-light);
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--bg-primary);
  border-radius: 20px;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.project-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.project-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.project-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link:hover {
  color: var(--coral);
  gap: 0.75rem;
}

.project-image {
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(45, 71, 57, 0.15);
}

.project-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-light) 50%, var(--sage) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bg-cream);
  position: relative;
  overflow: hidden;
}

/* Decorative pattern */
.project-placeholder::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 20%);
  animation: shimmer 10s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    transform: translate(-25%, -25%);
  }
  50% {
    transform: translate(0%, 0%);
  }
}

.project-placeholder span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.project-placeholder small {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.placeholder-alt {
  background: linear-gradient(135deg, var(--gold) 0%, var(--coral) 50%, var(--accent-muted) 100%);
}

/* =====================================================
   Skills Section
   ===================================================== */

.skills {
  padding: var(--space-lg) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.skill-item {
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--bg-cream), var(--bg-secondary));
  border: 2px solid var(--highlight);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}

.skill-item:hover {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-cream);
  border-color: var(--accent-primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(45, 71, 57, 0.2);
}

/* =====================================================
   Skills Marquee
   ===================================================== */

.exploring-section {
  padding: var(--space-xl) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  position: relative;
}

.exploring-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.exploring-accent {
  font-style: italic;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--coral),
    var(--gold),
    var(--accent-primary)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 12s ease-in-out infinite;
}

.exploring-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

.exploring-tag {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(245, 241, 235, 0.6);
  border: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
}

.exploring-tag::before {
  content: '+';
  margin-right: 0.4rem;
  color: var(--coral);
  font-weight: 400;
}

.exploring-tag:hover {
  background: rgba(224, 122, 95, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* =====================================================
   Contact Section
   ===================================================== */

.contact {
  padding: var(--space-xl) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.contact-accent {
  font-style: italic;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--coral),
    var(--gold),
    var(--accent-primary)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 15s ease-in-out infinite;
}

.contact-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: flex;
  gap: var(--space-md);
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(45, 71, 57, 0.12);
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--coral);
  padding-left: 0.5rem;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
  color: var(--text-light);
}

.contact-form textarea {
  resize: none;
  min-height: 100px;
  line-height: 1.6;
}

.form-submit {
  align-self: flex-start;
  margin-top: var(--space-sm);
  padding: 1.1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg-cream);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(45, 71, 57, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(45, 71, 57, 0.3);
}

.form-submit:hover::before {
  left: 100%;
}

.submit-arrow {
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

.form-submit:hover .submit-arrow {
  transform: translateX(4px);
}

/* =====================================================
   Footer
   ===================================================== */

.site-footer {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  margin-top: var(--space-xl);
}

.footer-verse {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.footer-reference {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: var(--font-display);
  font-style: italic;
  display: inline;
  margin-left: 0.5rem;
  opacity: 0.8;
}

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

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-md);
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
    display: flex;
    height: 300px;
    margin-bottom: var(--space-md);
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-lead {
    padding-left: var(--space-md);
  }

  .project {
    grid-template-columns: 1fr;
  }

  .project-alt .project-info,
  .project-alt .project-image {
    order: unset;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

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

  body {
    font-size: 16px;
  }

  .nav {
    padding: var(--space-sm) var(--space-md);
  }

  .nav-links {
    gap: var(--space-sm);
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .availability-beacon {
    top: auto;
    bottom: var(--space-md);
    right: var(--space-md);
  }

  .hero {
    padding: var(--space-md) var(--space-sm);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
  }
  
  .hero-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero-visual {
    order: 1;
    display: flex !important;
    height: 350px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 20px var(--space-md);
    overflow: visible;
    position: relative;
  }

  .venn-blob {
    opacity: 0.5;
  }

  .venn-blob span {
    font-size: 0.75rem;
  }

  .venn-1 {
    width: 180px;
    height: 140px;
    top: -3%;
    left: 48%;
  }

  .venn-2 {
    width: 90px;
    height: 100px;
    top: 12%;
    right: 8%;
  }

  .venn-3 {
    width: 150px;
    height: 110px;
    top: 42%;
    right: -1%;
  }

  .venn-4 {
    width: 200px;
    height: 170px;
    top: 46%;
    left: 48%;
  }

  .venn-5 {
    width: 140px;
    height: 130px;
    bottom: 3%;
    left: 45%;
  }

  .venn-6 {
    width: 130px;
    height: 120px;
    top: 15%;
    left: 2%;
  }

  .hero-content {
    order: 2;
    padding-top: 0;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
    margin-bottom: var(--space-sm);
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
    margin-bottom: var(--space-md);
    line-height: 1.6;
    padding: 0 var(--space-xs);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-md);
  }

  .stat {
    flex: 0 0 auto;
    align-items: center;
    text-align: center;
  }

  .stat-number {
    font-size: 2rem;
    height: 2rem;
    justify-content: center;
  }

  .stat-infinity {
    font-size: 3rem;
    height: 2rem;
    justify-content: center;
  }

  .stat-label {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 0.25rem;
  }

  .hero-links {
    display: none;
  }

  .about {
    padding: var(--space-md);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin-top: var(--space-2xl);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .about-lead {
    padding-left: 0;
    font-size: 1rem;
    white-space: normal;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-stats {
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
  }

  .about-stat {
    min-width: auto;
  }

  .journey {
    padding: var(--space-md) var(--space-sm);
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    margin-top: var(--space-2xl);
  }

  .timeline {
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
  }

  .timeline-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-xs);
    align-items: flex-start;
  }

  .timeline-logo-wrap {
    order: 1;
    margin-bottom: var(--space-sm);
    align-self: flex-start;
  }

  .timeline-content {
    order: 2;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
  }

  .timeline-image {
    order: 3 !important;
    height: 200px;
    margin-top: var(--space-sm);
    width: 100%;
    padding: 0;
    overflow: visible;
    align-self: flex-start;
  }
  
  /* Override desktop even-item order rule for mobile */
  .timeline-item:nth-child(even) .timeline-image {
    order: 3 !important;
  }
  
  .timeline-item:nth-child(odd) .timeline-image {
    order: 3 !important;
  }
  
  .timeline-video {
    width: 100%;
    height: 100%;
  }

  .timeline-date {
    font-size: 0.65rem;
  }

  .timeline-content h3 {
    font-size: 1.4rem;
  }

  .timeline-desc {
    font-size: 0.9rem;
  }

  .exploring-section {
    padding: var(--space-lg) var(--space-md);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin-top: var(--space-2xl);
  }

  .exploring-title {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: var(--space-md);
  }

  .exploring-tags {
    gap: 0.5rem;
  }

  .exploring-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .site-footer {
    padding: var(--space-md) var(--space-md);
    margin-top: var(--space-2xl);
  }

  .footer-verse {
    font-size: 0.75rem;
    padding: 0 var(--space-sm);
  }

  .footer-reference {
    font-size: 0.7rem;
    margin-left: 0.25rem;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
  }

  .hero {
    padding: var(--space-sm);
    min-height: 100vh;
    justify-content: center;
  }

  .hero-visual {
    height: 300px;
    max-width: 380px;
    padding: 15px var(--space-sm);
    overflow: visible;
  }

  .venn-blob span {
    font-size: 0.7rem;
  }

  .venn-1 {
    width: 160px;
    height: 125px;
    top: -2%;
    left: 48%;
  }

  .venn-2 {
    width: 80px;
    height: 90px;
    top: 10%;
    right: 6%;
  }

  .venn-3 {
    width: 130px;
    height: 95px;
    top: 40%;
    right: -1%;
  }

  .venn-4 {
    width: 180px;
    height: 150px;
    top: 43%;
    left: 48%;
  }

  .venn-5 {
    width: 120px;
    height: 115px;
    bottom: 6%;
    left: 43%;
  }

  .venn-6 {
    width: 110px;
    height: 105px;
    top: 13%;
    left: 3%;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .stat-number {
    font-size: 1.75rem;
    height: 1.75rem;
  }

  .stat-infinity {
    font-size: 2.5rem;
    height: 1.75rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .about {
    padding: var(--space-sm);
    margin-top: var(--space-xl);
  }

  .about-lead {
    font-size: 0.95rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .about-stat-number {
    font-size: 3rem;
  }

  .timeline-item {
    padding: var(--space-xs) 0;
    margin-bottom: var(--space-xs);
  }

  .timeline-content h3 {
    font-size: 1.2rem;
  }

  .timeline-desc {
    font-size: 0.85rem;
  }

  .timeline-image {
    height: 160px;
    padding: 0;
    overflow: visible;
  }
  
  .timeline-video {
    width: 100%;
    height: 100%;
  }

  .exploring-title {
    font-size: 1.75rem;
  }

  .exploring-tag {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  .hero-links-list {
    gap: var(--space-xs);
  }

  .hero-link {
    font-size: 0.85rem;
    padding: 0.2rem 0;
  }

  .site-footer {
    padding: var(--space-sm) var(--space-sm);
    margin-top: var(--space-xl);
  }

  .footer-verse {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .footer-reference {
    font-size: 0.65rem;
  }
}

/* =====================================================
   Scroll Animations (Progressive Enhancement)
   ===================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Disable scroll animations on mobile to prevent jolting */
  @media (min-width: 769px) {
    .section-label,
    .section-title,
    .about-lead,
    .about-text p,
    .about-stat,
    .timeline-item,
    .project,
    .skill-item {
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 0.6s ease forwards;
    }
  }
  
  /* On mobile, show elements immediately to prevent layout shifts */
  @media (max-width: 768px) {
    .section-label,
    .section-title,
    .about-lead,
    .about-text p,
    .about-stat,
    .timeline-item,
    .project,
    .skill-item {
      opacity: 1;
      transform: none;
      animation: none;
    }
  }

  .section-label { animation-delay: 0.1s; }
  .section-title { animation-delay: 0.2s; }
  .about-lead { animation-delay: 0.3s; }
  .about-text p { animation-delay: 0.4s; }
  
  .about-stat:nth-child(1) { animation-delay: 0.2s; }
  .about-stat:nth-child(2) { animation-delay: 0.3s; }
  
  .timeline-item:nth-child(1) { animation-delay: 0.1s; }
  .timeline-item:nth-child(2) { animation-delay: 0.2s; }
  
  .project:nth-child(1) { animation-delay: 0.1s; }
  .project:nth-child(2) { animation-delay: 0.2s; }
  .project:nth-child(3) { animation-delay: 0.3s; }
  
  .skill-item:nth-child(1) { animation-delay: 0.05s; }
  .skill-item:nth-child(2) { animation-delay: 0.1s; }
  .skill-item:nth-child(3) { animation-delay: 0.15s; }
  .skill-item:nth-child(4) { animation-delay: 0.2s; }
  .skill-item:nth-child(5) { animation-delay: 0.25s; }
  .skill-item:nth-child(6) { animation-delay: 0.3s; }
  .skill-item:nth-child(7) { animation-delay: 0.35s; }
  .skill-item:nth-child(8) { animation-delay: 0.4s; }
}

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

/* =====================================================
   Loading Screen
   ===================================================== */

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.loader-blob {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 40% 60% 55% 45% / 60% 40% 55% 45%;
  animation: loader-morph 3s ease-in-out infinite, loader-pulse 2s ease-in-out infinite;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.7;
  letter-spacing: 0.05em;
  animation: loader-fade 2s ease-in-out infinite;
}

@keyframes loader-morph {
  0%, 100% {
    border-radius: 40% 60% 55% 45% / 60% 40% 55% 45%;
  }
  50% {
    border-radius: 60% 40% 45% 55% / 40% 60% 45% 55%;
  }
}

@keyframes loader-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes loader-fade {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

/* Staggered fade-in for sections after load */
body.loaded .hero {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

body.loaded .about {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

body.loaded .journey {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

body.loaded .projects {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

body.loaded .skills {
  animation: fadeInUp 0.8s ease-out 1s both;
}

body.loaded .exploring-section {
  animation: fadeInUp 0.8s ease-out 1.2s both;
}

body.loaded .site-footer {
  animation: fadeInUp 0.8s ease-out 1.4s both;
}

/* Initial state for sections */
.hero,
.about,
.journey,
.projects,
.skills,
.exploring-section,
.site-footer {
  opacity: 0;
  transform: translateY(20px);
}

body.loaded .hero,
body.loaded .about,
body.loaded .journey,
body.loaded .projects,
body.loaded .skills,
body.loaded .exploring-section,
body.loaded .site-footer {
  opacity: 1;
  transform: translateY(0);
}
