:root {
  --color-primary: #FF5E5B;
  --color-secondary: #FFC107;
  --color-teal: #00CECB;
  --color-green: #8ED081;
  --color-purple: #9D4EDD;
  --color-text: #2B2D42;
  --color-text-light: #4A4E69;
  --color-bg: #FAFBFC;
  --color-white: #FFFFFF;
  --border-radius-lg: 30px;
  --border-radius-md: 20px;
  --border-radius-sm: 10px;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 15px 30px rgba(0,0,0,0.15);
  --font-primary: 'Nunito', sans-serif;
  --font-heading: 'Fredoka One', 'Nunito', sans-serif;
}

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

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  position: relative;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

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

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

/* Typography Helpers */
.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-teal { color: var(--color-teal) !important; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  border-radius: 50px;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 0 rgba(0,0,0,0.15), var(--shadow-sm);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 0 rgba(0,0,0,0.15), var(--shadow-md);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn-teal {
  background: var(--color-teal);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border-bottom: 3px solid var(--color-secondary);
  transition: padding 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 40px;
}

.logo img {
  height: 100px;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05) rotate(-2deg);
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  padding: 5px 10px;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--color-primary);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 5px;
}

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

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

/* Mobile Menu */
.hamburger {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Hero Section */
/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin: 130px 0 0 0; /* Clear navbar top, 0 margin bottom because section below has padding */
  padding: 0;
  z-index: 10;
  background: var(--color-bg);
}

.hero-video-container {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
}

/* Video Band (Full Width Section) */
.video-band {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.video-band video {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Floating Scroll Indication below hero */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s infinite;
  color: var(--color-white);
  font-family: var(--font-heading);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.scroll-indicator svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  margin-top: 10px;
}

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

/* Main Content Wrapper */
.main-content {
  position: relative;
  z-index: 2;
  background: var(--color-bg);
  padding-top: 0;
}

/* Parallax Hero Section (For subpages) */
.hero-parallax {
  position: relative;
  height: 72vh; /* Increased 20% from 60vh */
  min-height: 480px; /* Increased 20% from 400px */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
  z-index: 10;
}

/* Base override to uniformly increase all standard page-headers by 20% */
.page-header {
  padding-top: 120px !important; /* was 100px */
  padding-bottom: 72px !important; /* was 60px */
}

.hero-parallax-bg {
  position: absolute;
  top: -10%; left: -10%; right: -10%; bottom: -10%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  transform: scale(1.3) translateY(0);
  will-change: transform;
}

.hero-parallax-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-parallax h1 {
  position: relative;
  z-index: 2;
  color: var(--color-secondary); /* Beautiful playful yellow */
  font-size: 4.5rem;
  font-weight: 800;
  text-shadow: 3px 5px 12px rgba(0,0,0,0.6);
  text-align: center;
  padding: 0 20px;
  animation: bounceDown 1.5s cubic-bezier(0.28, 1.4, 0.4, 1) forwards;
  transform-origin: center bottom;
}

@keyframes bounceDown {
  0% { transform: translateY(-80px) scale(0.8); opacity: 0; }
  60% { transform: translateY(15px) scale(1.02); opacity: 1; }
  80% { transform: translateY(-5px) scale(0.98); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Sections */
.section {
  padding: 80px 5%;
  position: relative;
  z-index: 5; /* So SVGs at z-index 0 can be inside but underneath text */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10; /* Protect text layers from any SVG overlaps */
}

/* Intro Section */
.intro-section {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.intro-section h1 {
  font-size: 3rem;
  color: var(--color-teal);
  margin-bottom: 20px;
  animation: slideUp 0.8s ease-out backwards;
}
.intro-section p {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 30px;
}

/* Layout Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--color-primary);
}

.card:nth-child(2n) {
  border-bottom-color: var(--color-secondary);
}
.card:nth-child(3n) {
  border-bottom-color: var(--color-teal);
}
.card:nth-child(4n) {
  border-bottom-color: var(--color-green);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* Why Choose Us Section */
.why-us {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  margin: 60px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.why-us h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-bg);
  padding: 20px 30px;
  border-radius: var(--border-radius-md);
  font-size: 1.1rem;
  font-weight: bold;
  transition: transform 0.2s;
  border-left: 8px solid var(--color-green);
}
.why-item:hover {
  transform: translateX(10px);
}
.why-item i {
  color: var(--color-green);
  font-size: 1.5rem;
}

/* Call to Action Section */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--color-teal), var(--color-primary));
  color: white;
  padding: 80px 20px;
  border-radius: var(--border-radius-lg);
  margin: 80px 5%;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.cta-section h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.cta-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.1rem;
  margin-left: 5px;
}

.form-group input,
.form-group textarea {
  padding: 15px 20px;
  border: 2px solid #E5E9F0;
  border-radius: var(--border-radius-md);
  font-family: inherit;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 94, 91, 0.15);
}

/* Footer */
.footer {
  background: #2B2D42;
  color: white;
  padding: 80px 5% 30px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  position: relative;
  margin-top: 150px;
}

.footer::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 140px;
  background: url('TRAIN transparente.png') repeat-x 0 bottom;
  background-size: auto 100%;
  margin-bottom: -2px;
  pointer-events: none;
  z-index: 5;
  animation: moveTrain 120s linear infinite;
}

@keyframes moveTrain {
  0% { background-position: 0 bottom; }
  100% { background-position: -4000px bottom; } /* Negative moves it left, so the train appears to go right. Adjust if train faces the other way */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer h3 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.footer p, .footer a {
  color: #A8B2D1;
  font-size: 1rem;
  margin-bottom: 15px;
  display: block;
}
.footer a:hover {
  color: var(--color-white);
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #A8B2D1;
}

/* Scroll SVGs Animation */
.side-svg-container {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.1, 0.9, 0.2, 1);
  will-change: transform;
}

/* Base alignment for the SVG containers */
.side-svg-container.left-side { 
  left: 0;
}
.side-svg-container.right-side { 
  right: 0;
}

.side-svg-img {
  animation: organicFloat 4s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes organicFloat {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-15px) rotate(4deg) scale(1.03); }
  100% { transform: translateY(10px) rotate(-3deg) scale(0.97); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 90px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 90px);
    background: white;
    flex-direction: column;
    padding: 40px 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: 0.3s;
  }
  .nav-links.active {
    right: 0;
  }
  .hamburger {
    display: block;
  }
  .intro-section h1 { font-size: 2.2rem; }
  .why-us { padding: 30px 20px; }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
