@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Inter:wght@300;400;500;600&family=Neucha&display=swap');

/* Reset & Variables */
:root {
  --primary-color: #C4704A;
  /* Terracotta */
  --primary-dark: #9E4F2E;
  /* Burnt sienna */
  --secondary-color: #E8C99A;
  /* Warm sand */
  --text-color: #2c2c2c;
  --text-light: #666;
  --bg-color: #FBF7F0;
  /* Warm cream */
  --white: #FFFFFF;
  --accent-color: #6B7C45;
  /* Olive green */

  /* Typography — 3 fonts, 3 clear roles */
  --font-heading: 'Neucha', cursive;
  /* All section & page headings */
  --font-accent: 'Caveat', cursive;
  /* Couple name + handwritten accents */
  --font-body: 'Inter', sans-serif;
  /* All body and nav link text */

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

/* iOS Safari: disable smooth scroll (not supported pre-15.4, causes no-op) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   ACCESSIBILITY & FOCUS STYLES
   ============================================ */

/* Skip to main content link — visible only on keyboard focus */
.skip-link {
  position: fixed;
  top: -100%;
  left: 20px;
  z-index: 99999;
  background: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 10px 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: top 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid white;
  outline-offset: -3px;
}

/* Screen-reader-only utility (visually hidden but announced by AT) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Global keyboard focus indicator — only shown for keyboard, not mouse */
:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Focus on dark/hero backgrounds — use white ring */
.hero :focus-visible,
.submit-hero :focus-visible,
nav :focus-visible {
  outline-color: white;
  box-shadow: 0 0 0 2px var(--primary-color);
}

/* Form inputs — use styled ring matching the site design */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 0;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(196, 112, 74, 0.15);
}

/* Buttons — subtle warm ring */
button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* Links — underline on focus for extra clarity */
a:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Respect prefers-reduced-motion for all animations */
@media (prefers-reduced-motion: reduce) {

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


body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Paper grain — pointer-events:none so it never blocks clicks or layout */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(196, 112, 74, 0.022) 0px,
      rgba(196, 112, 74, 0.022) 1px,
      transparent 1px,
      transparent 6px),
    repeating-linear-gradient(-45deg,
      rgba(196, 112, 74, 0.012) 0px,
      rgba(196, 112, 74, 0.012) 1px,
      transparent 1px,
      transparent 6px);
}

/* Prevent scroll when menu is open */
body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* --- Typography --- */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-color);
}

.handwritten {
  font-family: var(--font-subheading);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(196, 112, 74, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 112, 74, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: rgba(196, 112, 74, 0.1);
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  /* Respect notch/safe area on iOS */
  padding-left: max(40px, env(safe-area-inset-left));
  padding-right: max(40px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  /* Own GPU compositor layer — prevents scroll from triggering nav repaints */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

nav .nav-content {
  display: flex;
  align-items: center;
  width: 100%;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
  margin: 0 auto;
  /* Center links */
}

nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

/* Nav Hover & Active State */
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

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

/* Couple Names in Nav */
nav .couple-names {
  font-family: var(--font-accent) !important;
  /* Caveat — matches hero names */
  font-size: 1.8rem;
  color: var(--primary-color) !important;
  text-transform: none;
  letter-spacing: 0.3px;
  padding: 0 20px;
  font-weight: 700;
  line-height: 1;
}

nav .couple-names::after {
  display: none;
  /* No underline for logo */
}

/* Language Switcher */
.lang-switcher {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 5px;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(196, 112, 74, 0.3);
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  transition: all 0.3s;
}

.lang-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.lang-btn:hover:not(.active) {
  background: rgba(196, 112, 74, 0.1);
}

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

/* Hamburger Active State */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* --- Hero Section --- */
.hero {
  height: 100vh;
  width: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../images/wedding-hero.jpg');
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed triggers full-page repaints on every scroll.
     Using scroll on all devices. The parallax effect is sacrificed for smooth 60fps. */
  background-attachment: fixed;
  position: relative;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-direction: column;
  flex-direction: column;
  color: white;
  text-align: center;
  contain: layout style;
  /* Isolate rendering for performance */
}

/* Hero Content (if needed later) */
.hero h1 {
  color: white;
  font-size: 5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--bg-color), transparent);
}

/* iOS Safari does not support background-attachment: fixed accurately */
@supports (-webkit-touch-callout: none) {
  .hero {
    background-attachment: scroll;
  }
}

/* On all devices: switch to scroll for performance (no per-scroll full repaint) */
@media (any-pointer: coarse),
(max-width: 900px) {
  .hero {
    background-attachment: scroll;
  }
}

/* Hero Overlay Content */
.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}



/* Hero couple names — handwritten Caveat, not the display heading font */
.hero-names {
  font-family: var(--font-accent);
  font-size: 5.5rem;
  color: white !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  line-height: 1.1;
  margin-bottom: 0;
}

/* Nav Backdrop (mobile) */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.nav-backdrop.visible {
  display: block;
}

/* Inline Form Error Message */
.error-message {
  display: none;
  background: #fde8e8;
  color: #c0392b;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid #c0392b;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.error-message.visible {
  display: block;
}

/* Success Overlay */
.success-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(196, 112, 74, 0.95);
  z-index: 2000;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 20px;
}

.success-card {
  background: white;
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.success-card h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.success-card p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ============================================
   PAGE HEADER BAND — shared by all interior pages
   Same structure every time: eyebrow → h1 → torn-paper edge
   ============================================ */
.page-header {
  position: relative;
  background: linear-gradient(150deg, #C4704A 0%, #9E4F2E 100%);
  text-align: center;
  padding: 130px 20px 70px;
  overflow: hidden;
  /* subtle paper grain inside the header too */
  background-image:
    linear-gradient(150deg, #C4704A 0%, #9E4F2E 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 5px);
  background-blend-mode: normal;
}

/* Torn paper edge at the bottom of the header */
.page-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: -20px;
  right: -20px;
  height: 24px;
  background: var(--bg-color);
  transform: rotate(-0.4deg);
  box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Washi tape decorations that sit across the top edge of the header */
.ph-tape {
  position: absolute;
  width: 80px;
  height: 20px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  top: 0;
}

.ph-tape-left {
  left: 12%;
  transform: rotate(-2deg) translateY(-40%);
}

.ph-tape-right {
  right: 12%;
  transform: rotate(2.5deg) translateY(-40%);
}

/* Small eyebrow above the page title */
.ph-eyebrow {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* The main page title inside the header */
.ph-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: white;
  text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.2);
  line-height: 1.1;
  margin: 0;
  font-weight: 400;
  /* Neucha looks better at normal weight */
}

@media (max-width: 768px) {
  .page-header {
    padding: 110px 20px 55px;
  }

  .ph-title {
    font-size: 2.6rem;
  }

  .ph-eyebrow {
    font-size: 1rem;
  }

  .ph-tape {
    width: 55px;
  }
}

/* ============================================
   SECTION DIVIDER — decorative line motif
   Used between major sections on the home page
   ============================================ */
.section-divider {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 16px;
  padding: 0 40px;
  margin: 0 auto;
  max-width: 500px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  -webkit-flex: 1;
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-color));
  opacity: 0.45;
}

.section-divider::after {
  background: linear-gradient(to left, transparent, var(--primary-color));
}

.section-divider-icon {
  color: var(--primary-color);
  font-size: 0.85rem;
  opacity: 0.65;
  letter-spacing: 4px;
}

/* --- Timeline Section --- */
.timeline-section {
  padding: 120px 20px;
  position: relative;
  /* Soft paper-like gradient — cream at top, warm terracotta blush at bottom */
  background: linear-gradient(180deg,
      #FBF7F0 0%,
      #F5EDE0 40%,
      #EFE0CE 80%,
      #E8D3BE 100%);
  contain: layout style;
}

.timeline-header {
  text-align: center;
  margin-bottom: 100px;
}

.timeline-header h2 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* .timeline-section-title replaces the old h1 inside .timeline-header */
.timeline-header h1,
.timeline-section-title {
  font-size: 4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-color);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* The Line - refined */
.timeline::after {
  content: '';
  position: absolute;
  width: 1px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
  z-index: 5;
}

.timeline-item {
  padding: 20px 50px;
  position: relative;
  width: 50%;
  margin-bottom: 80px;
  opacity: 0;
  /* JS handles reveal */
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* The Dots - refined */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: var(--bg-color);
  border: 3px solid var(--primary-color);
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item.left::after {
  right: -9px;
}

.timeline-item.right::after {
  left: -9px;
}

.timeline-item:hover::after {
  background-color: var(--primary-color);
  transform: translateY(-50%) scale(1.3);
  box-shadow: 0 0 15px rgba(196, 112, 74, 0.4);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item.left .timeline-content {
  align-items: flex-end;
}

.timeline-item.right .timeline-content {
  align-items: flex-start;
}

.timeline-text h3 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.timeline-text .date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
}

.timeline-text p {
  color: var(--text-color);
  font-size: 1rem;
  max-width: 400px;
}

.timeline-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease;
}

.timeline-item:hover .timeline-image {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* --- Counter Section --- */
.counter-section {
  padding: 100px 20px;
  background-color: var(--white);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  contain: layout style;
}

.counter-section h2 {
  font-size: 3rem;
  margin-bottom: 60px;
}

.counter-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.counter-item {
  min-width: 120px;
}

.counter-number {
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--primary-color);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.counter-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
}

/* --- Footer --- */
footer {
  padding: 80px 20px 40px;
  background-color: #222;
  color: #aaa;
  text-align: center;
}

.footer-nav {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer p {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-credit {
  font-size: 0.8rem;
  opacity: 0.5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Animation Classes --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.pulse {
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Rolling Counter Styles */
.counter-wrapper {
  display: inline-flex;
  overflow: hidden;
  height: 1.25em;
  line-height: 1.25em;
  vertical-align: bottom;
  position: relative;
}

.counter-digit-group {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.counter-digit {
  height: 1.25em;
  width: 0.7em;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
  /* Removed filter:blur(0) — it was creating a composited layer per digit */
}

/* --- Responsive Design --- */
@media screen and (max-width: 1024px) {
  body {
    zoom: 1;
  }

  nav .couple-names {
    font-size: 1.5rem;
  }

  .timeline-header h1 {
    font-size: 3rem;
  }
}

@media screen and (max-width: 900px) {

  /* Navigation Mobile Layout */
  .hamburger {
    display: block;
    margin-right: 20px;
  }

  nav {
    padding: 15px 20px;
    justify-content: space-between;
  }

  /* Use absolute positioning or fixed for the menu drawer, 
     but ensure it doesn't conflict with other elements */
  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 400px;
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    padding-top: 60px;
    z-index: 1000;
  }

  nav.nav-open ul {
    transform: translateX(0);
  }

  nav li a {
    font-size: 1.5rem;
    color: var(--text-color);
  }

  nav .couple-names {
    order: 2;
    /* Keep logo centralized or left */
    font-size: 1.4rem;
    padding: 0;
  }

  .lang-switcher {
    position: relative;
    transform: none;
    right: auto;
    top: auto;
    order: 3;
  }

  /* Timeline Mobile */
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item::after {
    left: 14px;
    right: auto;
  }

  .timeline-item.left::after {
    left: 14px;
    right: auto;
  }

  .timeline-content {
    align-items: flex-start !important;
  }

  .timeline-image {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-names {
    font-size: 3.2rem;
  }

  .counter-number {
    font-size: 2.5rem;
  }

  .counter-container {
    gap: 30px;
  }
}