/* TreeBills Website - Main Stylesheet */

/* ================================
   CSS Variables & Design Tokens
   ================================ */
:root {
  /* Colors */
  --color-primary: #004511;
  --color-primary-dark: #002d0b;
  --color-primary-light: #006619;
  --color-secondary: #8B4513;
  --color-secondary-dark: #6b3410;
  --color-accent: #f59e0b;
  
  --color-text-primary: #1f2937;
  --color-text-secondary: #6b7280;
  --color-text-light: #9ca3af;
  
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-bg-tertiary: #f3f4f6;
  
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Layout */
  --max-width-content: 1280px;
  --max-width-text: 768px;
  --navbar-height: 80px;
}

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

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

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

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

.section {
  padding: var(--spacing-4xl) 0;
  position: relative;
  z-index: 10;
}

.section-alt {
  background-color: var(--color-bg-secondary);
}

/* ================================
   Navbar
   ================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.navbar-logo-icon {
  width: 40px;
  height: 40px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  list-style: none;
}

.navbar-nav li a {
  color: var(--color-text-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-nav li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

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

.navbar-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.locale-selector {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-primary);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.locale-selector:hover {
  border-color: var(--color-primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--color-bg-primary);
  box-shadow: var(--shadow-2xl);
  z-index: 2000;
  transition: left var(--transition-base);
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xl);
  border-bottom: 1px solid var(--color-bg-tertiary);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: var(--font-size-3xl);
  cursor: pointer;
  color: var(--color-text-secondary);
}

.mobile-menu-nav {
  list-style: none;
  padding: var(--spacing-xl);
}

.mobile-menu-nav li {
  margin-bottom: var(--spacing-lg);
}

.mobile-menu-nav li a {
  display: block;
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
  font-weight: 500;
  padding: var(--spacing-md) 0;
}

.mobile-menu-actions {
  padding: var(--spacing-xl);
  border-top: 1px solid var(--color-bg-tertiary);
  margin-top: auto;
}

.mobile-menu-locale {
  margin-bottom: var(--spacing-lg);
}

.mobile-menu-locale label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.locale-selector-mobile {
  width: 100%;
}

/* ================================
   Buttons
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

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

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

.btn-large {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--font-size-lg);
}

.btn-sm {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-sm);
}

.btn-block {
  width: 100%;
  display: flex;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ================================
   Hero Section
   ================================ */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  overflow: hidden;
  margin-top: var(--navbar-height);
  z-index: 1;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
}

/* Animated Background Shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  top: 10%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation-delay: 0s;
}

.shape-2 {
  top: 60%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: white;
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  animation-delay: 3s;
}

.shape-3 {
  bottom: 10%;
  left: 20%;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50% 50% 50% 50% / 40% 60% 40% 60%;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: var(--spacing-2xl);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
  animation: fadeInUp 1s ease-out;
}

.hero-description {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-2xl);
  color: #f0fdf4;
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-features {
  margin-top: var(--spacing-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
  list-style: none;
  padding: 0;
}

.hero-features li {
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

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

/* ================================
   Platform Section
   ================================ */
.platform-section {
  text-align: center;
  padding: var(--spacing-4xl) 0;
  margin-top: var(--spacing-3xl);
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.section-header {
  max-width: var(--max-width-text);
  margin: 0 auto var(--spacing-3xl);
}

.section-title {
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
}

.platform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-2xl);
  max-width: 1000px;
  margin: 0 auto var(--spacing-3xl);
  padding: 0 var(--spacing-lg);
}

.platform-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
  transition: transform var(--transition-base);
}

.platform-card-inner {
  position: relative;
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl) var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  overflow: hidden;
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.platform-card:hover {
  transform: translateY(-8px);
}

.platform-card:hover .platform-card-inner {
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-primary);
}

.platform-card-featured .platform-card-inner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-color: var(--color-primary-light);
}

.platform-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.platform-card-glow-green {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

.platform-card-glow-blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.platform-card-glow-purple {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

.platform-card:hover .platform-card-glow {
  opacity: 1;
}

.platform-card-icon {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  transition: transform var(--transition-base);
  position: relative;
  z-index: 2;
}

.platform-card:hover .platform-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.platform-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.platform-card-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
  position: relative;
  z-index: 2;
}

.platform-card-desc {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 2;
}

.platform-card-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  position: relative;
  z-index: 2;
  transition: all var(--transition-base);
}

.platform-card:hover .platform-card-badge {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 69, 17, 0.3);
}

.platform-card-badge svg {
  flex-shrink: 0;
}

/* Featured card special styling */
.platform-card-featured {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 69, 17, 0.2));
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* ================================
   Features Section
   ================================ */
.features-section {
  position: relative;
  z-index: 10;
  padding: var(--spacing-4xl) 0;
}

.features-section .container {
  max-width: var(--max-width-content);
  padding: 0 var(--spacing-xl);
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4xl);
  margin-top: var(--spacing-3xl);
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Single image layout - two columns */
.feature-item-single {
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-4xl);
}

.feature-item-single .feature-text {
  flex: 1;
  text-align: left;
}

.feature-item-single .feature-image-single {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

/* Reverse layout - image on left, text on right */
.feature-item-single-reverse {
  flex-direction: row-reverse;
}

.feature-item-single .feature-image-single img {
  width: auto;
  height: 600px;
  display: block;
  border-radius: var(--radius-xl);
}

.feature-item-single .feature-image-single img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.feature-item-single .feature-image-single img.loaded {
  opacity: 1;
}

.feature-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.feature-item h3 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

.feature-item p {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 0;
}

/* Carousel Styles - SIMPLE HORIZONTAL LIST - Edge to Edge */
.feature-carousel {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: var(--spacing-2xl) 0;
  padding-bottom: 60px; /* Extra space for dots */
}

.carousel-container {
  display: flex;
  gap: 16px;
  transition: transform 0.8s ease;
  will-change: transform;
  padding-left: 0; /* Start from edge */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.carousel-container:active {
  cursor: grabbing;
}

.carousel-slide {
  flex: 0 0 auto;
  width: auto;
  height: 520px; /* Set height instead of width */
}

.carousel-slide-inner {
  width: auto;
  height: 100%;
}

.carousel-slide-inner img {
  width: auto;
  height: 100%;
  display: block;
  object-fit: contain;
}

.carousel-slide-inner img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.carousel-slide-inner img.loaded {
  opacity: 1;
}

/* Carousel Navigation Dots */
.carousel-dots {
  position: absolute;
  bottom: 10px; /* Positioned inside carousel container with proper spacing */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background-color: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

.carousel-dot:hover {
  background-color: var(--color-primary);
  opacity: 0.7;
}

/* Carousel Navigation Arrows - Modern Glass Design */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--color-primary);
  border: 2px solid rgba(255, 255, 255, 0.8);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0.9;
  padding: 0;
  margin: 0;
}

.carousel-arrow:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-prev {
  left: 20px;
}

.carousel-arrow-next {
  right: 20px;
}

/* Responsive - Adjust for mobile */
@media (max-width: 768px) {
  .feature-carousel {
    padding-bottom: 50px; /* Ensure dots are visible on mobile */
  }
  
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
    opacity: 0.7;
  }
  
  .carousel-arrow-prev {
    left: 10px;
  }
  
  .carousel-arrow-next {
    right: 10px;
  }
  
  .carousel-dots {
    bottom: 5px;
    padding: 8px;
  }
}

/* Old feature hero styles - keeping for backwards compatibility */
.feature-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
}

.feature-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 69, 17, 0.85) 100%);
}

.feature-hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 69, 17, 0.85) 100%);
  z-index: 1;
}

.feature-hero-background img {
  display: none; /* Hide img tag since we're using background-image */
}

/* Alternating gradient directions synced with text alignment */

/* ODD features (1, 3, 5, 7...) - Left-aligned text, darker on left */
.feature-hero:nth-child(odd) .feature-hero-background::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 30%, rgba(0, 0, 0, 0.20) 60%, rgba(0, 0, 0, 0) 100%);
}

/* EVEN features (2, 4, 6, 8...) - Right-aligned text, darker on right */
.feature-hero:nth-child(even) .feature-hero-background::before {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 30%, rgba(0, 0, 0, 0.20) 60%, rgba(0, 0, 0, 0) 100%);
}

/* Add color variations while maintaining correct gradient direction */

/* Green tint for features 1, 7, 13 (odd - left aligned) */
.feature-hero:nth-child(6n+1) .feature-hero-background::before {
  background: linear-gradient(90deg, rgba(0, 69, 17, 0.92) 0%, rgba(0, 45, 11, 0.75) 30%, rgba(0, 0, 0, 0.20) 60%, rgba(0, 0, 0, 0) 100%);
}

/* Blue tint for features 2, 8, 14 (even - right aligned) */
.feature-hero:nth-child(6n+2) .feature-hero-background::before {
  background: linear-gradient(270deg, rgba(37, 99, 235, 0.92) 0%, rgba(59, 130, 246, 0.75) 30%, rgba(0, 0, 0, 0.20) 60%, rgba(0, 0, 0, 0) 100%);
}

/* Brown tint for features 5, 11, 17 (odd - left aligned) */
.feature-hero:nth-child(6n+5) .feature-hero-background::before {
  background: linear-gradient(90deg, rgba(107, 52, 16, 0.92) 0%, rgba(139, 69, 19, 0.75) 30%, rgba(0, 0, 0, 0.20) 60%, rgba(0, 0, 0, 0) 100%);
}

/* Purple tint for features 6, 12, 18 (even - right aligned) */
.feature-hero:nth-child(6n) .feature-hero-background::before {
  background: linear-gradient(270deg, rgba(124, 58, 237, 0.92) 0%, rgba(139, 92, 246, 0.75) 30%, rgba(0, 0, 0, 0.20) 60%, rgba(0, 0, 0, 0) 100%);
}

.feature-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-4xl) 0;
}

.feature-hero-inner {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--spacing-3xl);
  color: white;
  animation: fadeInUp 1s ease-out both;
}

/* Left-aligned features (odd) */
.feature-hero:nth-child(odd) .feature-hero-inner {
  text-align: left;
  padding-left: var(--spacing-4xl);
  padding-right: 50%;
}

/* Right-aligned features (even) */
.feature-hero:nth-child(even) .feature-hero-inner {
  text-align: right;
  padding-right: var(--spacing-4xl);
  padding-left: 50%;
}

.feature-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: var(--spacing-xl);
  color: white;
  line-height: 1.1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.03em;
}

.feature-hero-description {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  font-weight: 400;
  max-width: 600px;
}

/* Keep descriptions aligned with text direction */
.feature-hero:nth-child(odd) .feature-hero-description {
  margin-right: auto;
}

.feature-hero:nth-child(even) .feature-hero-description {
  margin-left: auto;
}

/* Old feature card styles for backwards compatibility - can be removed if not used elsewhere */
.feature-card {
  display: flex;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  background-color: var(--color-bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  flex-shrink: 0;
}

.feature-icon img {
  width: 50px;
  height: 50px;
}

.feature-content h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

.feature-content p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ================================
   Why Choose Section
   ================================ */
.why-choose-grid-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: var(--spacing-3xl);
}

.why-choose-grid {
  display: flex;
  gap: var(--spacing-xl);
  overflow-x: auto;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--spacing-lg);
  position: relative;
  will-change: scroll-position;
}

.why-choose-grid::-webkit-scrollbar {
  display: none;
}

.reason-card {
  flex: 0 0 380px;
  padding: var(--spacing-3xl);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(168, 85, 247, 0.03) 100%);
  border-radius: var(--radius-2xl);
  border: 1.5px solid var(--color-border);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.reason-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.reason-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -10px rgba(99, 102, 241, 0.15);
}

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

.reason-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.reason-card h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reason-card p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ================================
   CTA Section
   ================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  text-align: center;
}

.cta-section .section-title,
.cta-section .section-subtitle {
  color: white;
}

.cta-note {
  margin-top: var(--spacing-lg);
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

/* ================================
   Footer
   ================================ */
.footer {
  background-color: var(--color-text-primary);
  color: white;
  padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-about h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-column h4 {
  color: white;
  margin-bottom: var(--spacing-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-md);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

/* ================================
   Animation Classes (AOS alternative)
   ================================ */
[data-aos] {
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-down"] {
  transform: translateY(-30px);
}

[data-aos="fade-down"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="zoom-in"] {
  transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
}

/* ================================
   Utility Components
   ================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-2xl);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xl);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-5px);
}

.notification {
  position: fixed;
  top: 100px;
  right: -400px;
  max-width: 350px;
  padding: var(--spacing-lg);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  z-index: 9999;
  transition: right var(--transition-base);
}

.notification.show {
  right: 30px;
}

.notification-success {
  border-left: 4px solid var(--color-success);
}

.notification-error {
  border-left: 4px solid var(--color-error);
}

.cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: var(--shadow-2xl);
  padding: var(--spacing-lg);
  z-index: 9999;
  transition: bottom var(--transition-base);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-content {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-md);
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1200px;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: var(--font-size-4xl);
  cursor: pointer;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-6xl: 3rem;
  }
  
  .navbar-nav {
    display: none;
  }
  
  .navbar-right .btn-primary {
    display: none;
  }
  
  .navbar-right .locale-selector {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-4xl: 1.875rem;
    --font-size-5xl: 2rem;
    --font-size-6xl: 2.25rem;
    --spacing-4xl: 3rem;
  }
  
  .container {
    padding: 0 var(--spacing-lg);
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-description {
    font-size: var(--font-size-base);
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .platform-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: var(--spacing-lg);
  }
  
  .platform-card-icon {
    width: 140px;
    height: 140px;
  }
  
  .features-grid {
    gap: var(--spacing-3xl);
  }
  
  .feature-item h3 {
    font-size: var(--font-size-2xl);
  }
  
  .feature-item p {
    font-size: var(--font-size-base);
  }
  
  /* Single image layout - stack on tablet */
  .feature-item-single,
  .feature-item-single-reverse {
    flex-direction: column;
    gap: var(--spacing-2xl);
  }
  
  .feature-item-single .feature-text,
  .feature-item-single-reverse .feature-text {
    text-align: center;
  }
  
  .feature-item-single .feature-image-single img {
    height: 480px;
  }
  
  .carousel-slide {
    width: auto;
    height: 420px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-xl);
  }
  
  .carousel-arrow-prev {
    left: -10px;
  }
  
  .carousel-arrow-next {
    right: -10px;
  }
  
  /* Why Choose Section - Tablet */
  .reason-card {
    flex: 0 0 340px;
    padding: var(--spacing-2xl);
  }
  
  .reason-card h3 {
    font-size: var(--font-size-xl);
  }
  
  .feature-hero {
    min-height: 80vh;
  }
  
  .feature-hero-content {
    min-height: 80vh;
    padding: var(--spacing-3xl) 0;
  }
  
  /* Center align on tablet */
  .feature-hero:nth-child(odd) .feature-hero-inner,
  .feature-hero:nth-child(even) .feature-hero-inner {
    text-align: center;
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }
  
  .feature-hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .feature-hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .feature-hero-description {
    font-size: var(--font-size-lg);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --navbar-height: 70px;
  }
  
  .navbar-logo {
    font-size: var(--font-size-lg);
  }
  
  .navbar-logo-icon {
    width: 30px;
    height: 30px;
  }
  
  .platform-cards {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    padding: 0 var(--spacing-md);
  }
  
  .platform-card-icon {
    width: 120px;
    height: 120px;
  }
  
  .platform-card-title {
    font-size: var(--font-size-xl);
  }
  
  .platform-card-desc {
    font-size: var(--font-size-sm);
  }
  
  .platform-card-inner {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .features-grid {
    gap: var(--spacing-2xl);
  }
  
  .feature-item h3 {
    font-size: var(--font-size-xl);
  }
  
  .feature-item p {
    font-size: var(--font-size-sm);
  }
  
  /* Single image layout - adjust for mobile */
  .feature-item-single .feature-image-single img {
    height: 420px;
  }

  .feature-carousel {
    padding: var(--spacing-2xl) 0;
  }

  .carousel-slide {
    width: auto;
    height: 360px;
    transform: scale(1);
  }

  .carousel-slide.active {
    transform: scale(1.1);
  }
  
  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: var(--font-size-lg);
  }

  .carousel-arrow-prev {
    left: var(--spacing-xs);
  }
  
  .carousel-arrow-next {
    right: var(--spacing-xs);
  }
  
  .carousel-dots {
    bottom: calc(var(--spacing-sm) * -1);
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .carousel-dot {
    width: 8px;
    height: 8px;
  }
  
  .carousel-dot.active {
    width: 20px;
  }
  
  /* Why Choose Section - Mobile */
  .reason-card {
    flex: 0 0 300px;
    padding: var(--spacing-2xl);
  }
  
  .reason-card h3 {
    font-size: var(--font-size-xl);
  }
  
  .reason-card p {
    font-size: var(--font-size-sm);
    line-height: 1.6;
  }
  
  .feature-hero {
    min-height: 70vh;
  }
  
  .feature-hero-content {
    min-height: 70vh;
    padding: var(--spacing-2xl) 0;
  }
  
  /* Center align on mobile */
  .feature-hero:nth-child(odd) .feature-hero-inner,
  .feature-hero:nth-child(even) .feature-hero-inner {
    text-align: center;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }
  
  .feature-hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .feature-hero-description {
    font-size: var(--font-size-base);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .mobile-menu,
  .back-to-top,
  .cookie-banner,
  .notification {
    display: none !important;
  }
}

