/* ===================================
   Neolumio Software - Design System
   =================================== */

/* ===== CSS Variables ===== */
:root {
  /* Primary - Soft Teal/Cyan */
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --primary-200: #99f6e4;
  --primary-300: #5eead4;
  --primary-400: #2dd4bf;
  --primary-500: #14b8a6;
  --primary-600: #0d9488;
  --primary-700: #0f766e;
  --primary-800: #115e59;

  /* Accent - Soft Purple */
  --accent-300: #c4b5fd;
  --accent-400: #a78bfa;
  --accent-500: #8b5cf6;
  --accent-600: #7c3aed;

  /* Neutrals - Cool Gray */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Semantic */
  --background: #ffffff;
  --surface: var(--gray-50);
  --surface-elevated: #ffffff;
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);
  --border: var(--gray-200);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-500) 100%);
  --gradient-subtle: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-300) 100%);
  --gradient-hero: linear-gradient(180deg, var(--gray-50) 0%, var(--background) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

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

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  overflow-x: hidden;
  /* Prevent horizontal scroll from train animation */
}



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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--text-secondary);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.section-header p {
  margin-top: var(--space-md);
  font-size: 1.125rem;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.navbar-link {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-link:hover {
  color: var(--primary-600);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.navbar-link:hover::after {
  width: 100%;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
}

.lang-toggle button {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.lang-toggle button.active {
  background: var(--primary-500);
  color: white;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-base);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(20, 184, 166, 0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

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

.btn-outline:hover {
  background: var(--primary-500);
  color: white;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  /* For mobile browsers with dynamic address bars */
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: var(--space-3xl);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, var(--primary-100) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, var(--accent-300) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

/* Blur Orbs Background */
.hero-blurs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blur-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 25s ease-in-out infinite;
}

.blur-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-200);
  top: -10%;
  right: -5%;
  opacity: 0.6;
}

.blur-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-300);
  bottom: -15%;
  left: -10%;
  opacity: 0.5;
  animation-delay: -8s;
}

.blur-3 {
  width: 300px;
  height: 300px;
  background: var(--primary-300);
  top: 40%;
  left: 30%;
  opacity: 0.4;
  animation-delay: -15s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -40px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

/* Icon Rain Animation */
.icon-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.rain-icon {
  position: absolute;
  width: 112px;
  height: 112px;
  opacity: 0;
  animation: iconFall 15s linear infinite;
}

.rain-icon.rain-svg svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary-400);
  opacity: 0.5;
}

.rain-icon.rain-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.rain-icon.rain-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rain-1 {
  left: 3%;
  animation-delay: 0s;
}

.rain-2 {
  left: 12%;
  animation-delay: -3s;
}

.rain-3 {
  left: 22%;
  animation-delay: -7s;
}

.rain-4 {
  left: 33%;
  animation-delay: -2s;
}

.rain-5 {
  left: 42%;
  animation-delay: -10s;
}

.rain-6 {
  left: 52%;
  animation-delay: -5s;
}

.rain-7 {
  left: 62%;
  animation-delay: -8s;
}

.rain-8 {
  left: 72%;
  animation-delay: -1s;
}

.rain-9 {
  left: 80%;
  animation-delay: -12s;
}

.rain-10 {
  left: 88%;
  animation-delay: -4s;
}

.rain-11 {
  left: 95%;
  animation-delay: -9s;
}

.rain-12 {
  left: 8%;
  animation-delay: -6s;
}

@keyframes iconFall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }

  5% {
    opacity: 0.7;
  }

  95% {
    opacity: 0.7;
  }

  100% {
    transform: translateY(105vh) rotate(180deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-2xl);
}

/* Blurry gradient glow behind hero content */
.hero-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center,
      rgba(20, 184, 166, 0.15) 0%,
      rgba(168, 85, 247, 0.08) 40%,
      transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  border: 1px solid var(--primary-200);
}

.hero-badge svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-600);
}

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

.hero-title-main {
  display: block;
  margin-bottom: var(--space-xs);
}

.hero-title-highlight {
  display: block;
}

.hero-subtitle {
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.btn-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: var(--shadow-md), 0 0 10px rgba(20, 184, 166, 0.3);
  }

  to {
    box-shadow: var(--shadow-lg), 0 0 25px rgba(20, 184, 166, 0.5);
  }
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-img {
  width: 100%;
  max-width: 550px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--gray-400);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--primary-500);
  border-radius: 2px;
  animation: scroll 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ===== Services Section ===== */
.services {
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background: var(--surface-elevated);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 0.9375rem;
}

.service-image {
  width: 100%;
  height: 180px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gradient-subtle);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Process Section - Express Train ===== */
.process {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--primary-50) 100%);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

/* Tree Layers */
.process-trees {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.trees-back {
  z-index: 0;
  height: 380px;
}

.trees-front {
  z-index: 3;
  height: 220px;
}

.tree {
  position: absolute;
  bottom: 0;
}

/* Background Trees (much larger, varied sizes and teal shades) */
.tree-b1 {
  left: 2%;
  width: 180px;
  height: 280px;
  color: #5eead4;
  opacity: 0.5;
}

.tree-b2 {
  left: 18%;
  width: 220px;
  height: 340px;
  color: #2dd4bf;
  opacity: 0.45;
}

.tree-b3 {
  left: 55%;
  width: 160px;
  height: 240px;
  color: #14b8a6;
  opacity: 0.5;
}

.tree-b4 {
  left: 78%;
  width: 200px;
  height: 300px;
  color: #0d9488;
  opacity: 0.45;
}

.tree-b5 {
  left: 38%;
  width: 140px;
  height: 220px;
  color: #99f6e4;
  opacity: 0.55;
}

.tree-b6 {
  left: 92%;
  width: 170px;
  height: 260px;
  color: #0f766e;
  opacity: 0.4;
}

/* Foreground Trees (larger, more prominent for depth) */
.tree-f1 {
  left: -3%;
  width: 140px;
  height: 200px;
  color: #14b8a6;
  opacity: 0.8;
}

.tree-f2 {
  left: 42%;
  width: 120px;
  height: 180px;
  color: #0d9488;
  opacity: 0.75;
}

.tree-f3 {
  left: 88%;
  width: 130px;
  height: 190px;
  color: #2dd4bf;
  opacity: 0.7;
}

.tree-f4 {
  left: 68%;
  width: 100px;
  height: 150px;
  color: #0f766e;
  opacity: 0.65;
}

/* Process Steps with Markers */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: 12rem;
  /* Big spacing before train */
  position: relative;
  z-index: 2;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, color 0.3s ease;
  /* For hover/active state */
}

.process-step:hover,
.process-step.active-step {
  /* Auto-highlight from train */
  transform: translateY(-5px) scale(1.05);
}

.process-step:hover h3,
.process-step.active-step h3 {
  color: #0d9488;
  /* Highlight title color */
}

/* Connect the markers with a line */

.step-marker {
  width: 16px;
  height: 16px;
  background: var(--primary-500);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.4);
  margin-bottom: var(--space-sm);
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.process-step:hover .step-marker,
.process-step.active-step .step-marker {
  border-color: #0d9488;
  /* Highlight outline/border */
  transform: scale(1.2);
}

.step-marker::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 12px;
  background: var(--primary-300);
}

.step-content {
  background: var(--surface-elevated);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.step-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-sm);
}

.step-content h3 {
  margin-bottom: var(--space-xs);
  font-size: 0.9375rem;
}

.step-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Express Train Track (Side View Only) */
.express-train-track {
  position: absolute;
  bottom: -40px;
  /* Aligned with bottom of scenery */
  left: 0;
  width: 100%;
  height: 80px;
  background:
    /* Bottom Ballast Layer */
    linear-gradient(to bottom, #475569 0%, #334155 100%),
    /* Sleeper Pattern */
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent 20px,
      #94a3b8 20px,
      #94a3b8 30px);
  background-size: 100% 100%, 40px 100%;
  /* Sized for sleepers */
  background-blend-mode: overlay;
  z-index: 2;
  /* In front of scenery */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  /* Depth shadow */
}

/* Rail Lines */
.express-train-track::before {
  content: '';
  position: absolute;
  top: 15px;
  /* Rail height on top of sleepers */
  left: 0;
  right: 0;
  height: 6px;
  background: #cbd5e1;
  /* Steel color */
  border-bottom: 2px solid #64748b;
  /* Rail shadow */
}

/* Second Rail (Parallel) - Optional depending on perspective, keep simple flat */
.express-train-track::after {
  content: '';
  position: absolute;
  top: 45px;
  /* Lower rail */
  left: 0;
  right: 0;
  height: 6px;
  background: #cbd5e1;
  border-bottom: 2px solid #64748b;
}


/* Train Container moves */
.express-train-container {
  position: absolute;
  bottom: 22px;
  left: -25%;
  /* animation: trainScroll 12s linear infinite; REMOVED for JS control */
  will-change: transform;
  /* Optimize for JS animation */
}

.express-train {
  width: 450px;
  height: 60px;
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
  /* No transform needed, SVG is drawn correctly */
}

/* Facing direction flip class */
.express-train-container.facing-left {
  transform: scaleX(-1);
}

/* ===== Why Choose Us ===== */
.why-us {
  background: var(--gray-900);
  color: white;
}

.why-us .section-header h2 {
  color: white !important;
}

.why-us .section-header p {
  color: var(--gray-300) !important;
}



/* Background Clouds */
.clouds-container {
  position: absolute;
  top: 200px;
  left: 0;
  right: 0;
  height: 600px;
  z-index: 0;
  /* Behind track (1) */
  pointer-events: none;
  padding-top: 50px;
  /* Lower clouds in view */
}

.cloud {
  position: absolute;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
  animation: driftCloud 20s ease-in-out infinite alternate;
}

.cloud-1 {
  top: 0;
  /* Highest */
  left: 10%;
  width: 250px;
  /* Bigger */
  animation-duration: 4s;
}

.cloud-2 {
  top: 100px;
  /* Lowest */
  left: 60%;
  width: 280px;
  /* Bigger */
  animation-duration: 8s;
  animation-delay: -5s;
}

.cloud-3 {
  top: 50px;
  /* Middle */
  left: 85%;
  width: 180px;
  /* Bigger */
  animation-duration: 12s;
  animation-delay: -10s;
}

@keyframes driftCloud {
  from {
    transform: translateX(-20px);
  }

  to {
    transform: translateX(20px);
  }
}

/* Background Scenery */
.scenery-container {
  position: absolute;
  bottom: 140px;
  /* Sit on the "ground" slightly behind/above track */
  left: 0;
  right: 0;
  height: 250px;
  z-index: 0;
  /* Behind the track (z-index 2) */
  pointer-events: none;
  overflow: hidden;
}

.tree {
  position: absolute;
  bottom: 0;
  width: 60px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.tree-1 {
  left: 10%;
  width: 70px;
  transform: scale(0.9);
}

.tree-2 {
  left: 15%;
  width: 90px;
  z-index: 1;
  /* Slight overlap */
}

.tree-3 {
  left: 85%;
  width: 80px;
}

.tree-4 {
  left: 35%;
  width: 65px;
  transform: scale(0.85);
  z-index: 0;
}

.tree-5 {
  left: 48%;
  width: 85px;
  z-index: 1;
}

.tree-6 {
  left: 62%;
  width: 70px;
  transform: scale(0.9);
}

.tree-7 {
  left: 75%;
  width: 60px;
  transform: scale(0.8);
}

.tree-8 {
  left: 95%;
  width: 85px;
  transform: scale(1.05);
  z-index: 1;
}

.track-side-view {
  position: absolute;
  bottom: 17px;
  left: 0;
  right: 0;
  height: 16px;

  background:
    /* Rail - solid dark gray */
    linear-gradient(#334155 0 0) left top / 100% 5px no-repeat,

    /* Sleepers - solid pattern with NO transparency */
    repeating-linear-gradient(90deg,
      #cbd5e1 0,
      #cbd5e1 6px,
      transparent 6px,
      transparent 14px) left 4px / 100% 6px no-repeat;

  z-index: 2;
}

/* Foreground Scenery (In front of train) */
.foreground-scenery-container {
  position: absolute;
  bottom: -20px;
  /* Start lower to overlay track */
  left: 0;
  right: 0;
  height: 180px;
  z-index: 10;
  /* Above track (2) and train */
  pointer-events: none;
  overflow: hidden;
}

.tree-fg-1 {
  left: 5%;
  width: 120px;
  transform: scale(1.1);
  filter: brightness(0.9);
  /* Slightly darker for foreground */
}

.tree-fg-2 {
  left: 28%;
  width: 70px;
  transform: scale(1.0);
  filter: brightness(0.85);
  z-index: 2;
}

.tree-fg-3 {
  left: 55%;
  width: 110px;
  transform: scale(1.35);
  filter: brightness(0.9);
}

.tree-fg-4 {
  left: 82%;
  width: 100px;
  transform: scale(1.40);
  filter: brightness(0.8);
  z-index: 2;
}

.why-us .section-header h2,
.why-us .section-header p {
  color: white;
}

.why-us .section-header p {
  opacity: 0.8;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.why-us-item {
  text-align: center;
  padding: var(--space-xl);
}

.why-us-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.why-us-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary-400);
}

.why-us-item h3 {
  color: white;
  margin-bottom: var(--space-sm);
}

.why-us-item p {
  color: var(--gray-300);
  font-size: 0.9375rem;
}

/* ===== Portfolio Section ===== */
.portfolio {
  background: var(--surface);
}

.portfolio-placeholder {
  background: var(--surface-elevated);
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
}

.portfolio-placeholder-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  background: var(--gradient-subtle);
  border-radius: var(--radius-xl);
}

.portfolio-placeholder-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--primary-500);
  opacity: 0.6;
}

.portfolio-placeholder h3 {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.portfolio-placeholder p {
  font-size: 0.9375rem;
}

/* ===== Contact Section ===== */
.contact {
  background: linear-gradient(180deg, var(--background) 0%, var(--primary-50) 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: var(--space-md);
}

.contact-info>p {
  font-size: 1.125rem;
  margin-bottom: var(--space-2xl);
}

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

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

.contact-detail-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-100);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-600);
}

.contact-form-card {
  background: var(--surface-elevated);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.contact-form-card h3 {
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

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

.contact-form-card .btn {
  width: 100%;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--gray-700);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.footer-links a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.footer-lang {
  display: flex;
  gap: var(--space-sm);
}

.footer-lang button {
  color: var(--gray-400);
  font-size: 0.875rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.footer-lang button:hover,
.footer-lang button.active {
  color: white;
  background: var(--gray-700);
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gray-800);
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-500);
  color: white;
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  .navbar-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero {
    padding-top: 5rem;
    min-height: auto;
    padding-bottom: var(--space-3xl);
  }

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

  .hero-visual {
    order: -1;
  }

  .hero-img {
    max-width: 260px;
  }

  .icon-rain .rain-icon {
    opacity: 0 !important;
    animation: none;
  }

  .scroll-indicator {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

  /* Process Section Mobile */
  .process-trees,
  .express-train-container,
  .express-train-track,
  .scenery-container,
  .foreground-scenery-container,
  .clouds-container {
    display: none !important;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .process-step {
    padding: var(--space-lg);
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .express-train-track {
    height: 80px;
  }

  .express-train {
    width: 150px;
    height: 35px;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }

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

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

/* ===== Utility Classes ===== */
.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;
}

/* Social Media Links (Hidden for now) */
.footer-social {
  display: none;
}

/* Links in Privacy/Terms/Legal Pages */
main a {
  color: var(--primary-500);
  text-decoration: underline;
  transition: color 0.2s ease;
}

main a:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

main a:visited {
  color: var(--primary-700);
}

/* Subsection headings spacing */
main h3 {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}