/* Enhanced Video Background with iOS Fixes */
:root {
  --primary-color: #ff4d4d;
  --primary-light: #ff8080;
  --primary-dark: #cc0000;
  --primary-glow: 0 0 20px rgba(255, 77, 77, 0.5);
  --secondary-color: #333333;
  --accent-color: #f0f0f0;
  --text-light: #ffffff;
  --text-dark: #222222;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --blur-intensity: blur(15px);
  
  /* Enhanced video properties */
  --contrast-level: 150% !important;
  --brightness-level: 140% !important;
  --saturation-level: 130% !important;
  --overlay-opacity: 0.6 !important;
}

[data-theme="dark"] {
  --primary-color: #ff6666;
  --primary-light: #ff9999;
  --primary-dark: #ff3333;
  --primary-glow: 0 0 25px rgba(255, 102, 102, 0.6);
  --secondary-color: #f0f0f0;
  --accent-color: #1a1a1a;
  --text-light: #f5f5f5;
  --text-dark: #e0e0e0;
  --glass-bg: rgba(0, 0, 0, 0.2);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  /* Enhanced dark mode video properties */
   --contrast-level: 160% !important;
  --brightness-level: 130% !important;
  --saturation-level: 140% !important;
  --overlay-opacity: 0.7 !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--accent-color);
  transition: var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 768px) {
  .video-background video {
    filter: 
      contrast(145%) 
      brightness(135%) 
      saturate(125%)
      !important;
    -webkit-filter: 
      contrast(145%) 
      brightness(135%) 
      saturate(125%)
      !important;
  }
  
  .video-overlay {
    background: linear-gradient(135deg, 
                rgba(0, 0, 0, 0.5) 0%, 
                rgba(0, 0, 0, 0.2) 100%) !important;
  }
}

/* Enhanced Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.video-background video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
  
  filter: 
    contrast(var(--contrast-level)) 
    brightness(var(--brightness-level)) 
    saturate(var(--saturation-level))
    !important;
  -webkit-filter: 
    contrast(var(--contrast-level)) 
    brightness(var(--brightness-level)) 
    saturate(var(--saturation-level))
    !important;
}

/* Improved overlay with stronger contrast */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
              rgba(0, 0, 0, var(--overlay-opacity)) 0%, 
              rgba(0, 0, 0, calc(var(--overlay-opacity) - 0.3)) 100%) !important;
  backdrop-filter: blur(1px) brightness(90%) !important;
}

/* Sharpening layer for extra clarity */
.sharpening-layer {
  display: none !important;
}

/* Optional: Add a subtle vignette effect for even more depth */
.video-background::after {
  display: none !important;
}

/* Glass Navigation */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-intensity);
  -webkit-backdrop-filter: var(--blur-intensity);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--primary-color), #ff3333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Active state for navigation links */
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a.active::after {
  width: 100%;
  background: var(--primary-color);
}

.nav-button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: var(--primary-glow);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.nav-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  box-shadow: 0 0 25px rgba(255, 77, 77, 0.7);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
  border-radius: 4px;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
}

.hero-content {
  max-width: 900px;
  z-index: 10;
  margin-top: 4rem;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  color: var(--text-light);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Eurostile', 'Bank Gothic', 'Orbitron', sans-serif;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 4vw, 2rem);
  color: var(--text-light);
  margin-bottom: 3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-weight: 300;
  line-height: 1.4;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
   text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-button {
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--primary-glow);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  min-width: 220px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.5s ease;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.cta-button:hover::before {
  left: 100%;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #ffffff, #f8f9fa) !important;
  color: #25D366 !important;
  border: 2px solid #25D366 !important;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5), 0 0 25px rgba(37, 211, 102, 0.3) !important;
}

.whatsapp-btn:hover {
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.7), 0 0 30px rgba(37, 211, 102, 0.5) !important;
  background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
  transform: translateY(-4px) scale(1.05) !important;
}

.email-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 25px rgba(255, 77, 77, 0.7);
}

/* Animation Classes */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Product Showcase */
.product-showcase {
  padding: 6rem 5%;
  background: var(--accent-color);
  position: relative;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 4rem;
  color: var(--text-dark);
  position: relative;
  font-weight: 700;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 5px;
  background: linear-gradient(135deg, var(--primary-color), #cc0000);
  margin: 1rem auto 0;
  border-radius: 3px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.product-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--blur-intensity);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.product-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.15);
}

.product-details {
  padding: 2rem;
}

.product-details h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.product-details p {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.4rem;
  margin: 1rem 0;
  display: block;
}

.inquiry-btn {
  display: inline-block;
  padding: 1rem 2rem;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1.5rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-align: center;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: var(--primary-glow);
}

.inquiry-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  box-shadow: 0 0 25px rgba(255, 77, 77, 0.7);
}

/* About Section */
.about-section {
  padding: 6rem 5%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--blur-intensity);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-light);
  opacity: 0.9;
}

/* Contact Section - Improved Responsiveness */
.contact-section {
  padding: 6rem 5%;
  background: var(--accent-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

.contact-info {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--blur-intensity);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-weight: 600;
}

.contact-info p {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.contact-info i {
  color: var(--primary-color);
  width: 24px;
  text-align: center;
  font-size: 1.2rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--blur-intensity);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
  backdrop-filter: var(--blur-intensity);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dark);
  opacity: 0.7;
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: var(--primary-glow);
}

.submit-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135-deg, var(--primary-light), var(--primary-color));
  box-shadow: 0 0 25px rgba(255, 77, 77, 0.7);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  z-index: 1000;
  transition: var(--transition);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: var(--primary-glow);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  box-shadow: 0 0 25px rgba(255, 77, 77, 0.7);
}

.theme-toggle i {
  position: absolute;
  transition: var(--transition);
  font-size: 1.2rem;
  color: white;
}

.fa-moon {
  opacity: 1;
}

.fa-sun {
  opacity: 0;
}

[data-theme="dark"] .fa-moon {
  opacity: 0;
}

[data-theme="dark"] .fa-sun {
  opacity: 1;
}

/* Chat Toggle - FIXED POSITIONING */
.chat-toggle {
  position: fixed;
  bottom: 6rem;
  right: 2.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: var(--primary-glow);
}

.chat-toggle i {
  color: white;
  font-size: 1.2rem;
}

.chat-toggle:hover {
  transform: scale(1.15);
  animation: pulse-chat 1.5s infinite;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  box-shadow: 0 0 25px rgba(255, 77, 77, 0.7);
}

@keyframes pulse-chat {
  0% {
    box-shadow: 0 6px 20px rgba(179, 0, 0, 0.3), 0 0 25px rgba(255, 77, 77, 0.5);
  }
  50% {
    box-shadow: 0 8px 25px rgba(179, 0, 0, 0.4), 0 0 35px rgba(255, 77, 77, 0.8);
  }
  100% {
    box-shadow: 0 6px 20px rgba(179, 0, 0, 0.3), 0 0 25px rgba(255, 77, 77, 0.5);
  }
}

.chat-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulse 1.5s infinite;
  border: 2px solid white;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: var(--blur-intensity);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: var(--blur-intensity);
  padding: 3rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-30px) scale(0.95);
  transition: transform 0.4s ease;
  border: 1px solid var(--glass-border);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-content h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.8rem;
  text-align: center;
}

.modal-content p {
  margin-bottom: 2rem;
  color: var(--text-light);
  text-align: center;
  font-size: 1.1rem;
}

.modal-content input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
  backdrop-filter: var(--blur-intensity);
}

.modal-content input::placeholder {
  color: var(--text-dark);
  opacity: 0.7;
}

.modal-content button {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--primary-color), #cc0000);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.modal-content button:hover {
  background: linear-gradient(135deg, #cc0000, var(--primary-color));
  transform: translateY(-2px);
}

/* Install Prompt Styles */
.install-prompt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--blur-intensity);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  z-index: 10000;
  max-width: 350px;
  animation: slideInUp 0.3s ease-out;
}

.install-prompt strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.install-prompt p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.install-prompt button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 0.5rem;
}

.install-prompt #install-button {
  background: linear-gradient(135deg, var(--primary-color), #cc0000);
  color: white;
}

.install-prompt #dismiss-button {
  background: #1a1a1a;
  color: var(--text-light);
}

.install-prompt button:hover {
  transform: translateY(-2px);
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Error Message */
.error-message {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  margin: 2rem auto;
  max-width: 500px;
}

/* Responsive Design - Improved for Mobile */
@media (max-width: 1200px) {
  .nav-links {
    gap: 1.5rem;
  }
 
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: var(--blur-intensity);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
    z-index: 1000;
    padding: 2rem;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
 
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
 
  .cta-button {
    width: 100%;
    max-width: 300px;
  }
 
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .glass-nav {
    padding: 0.8rem 5%;
  }
 
  .nav-logo {
    font-size: 1.5rem;
  }
 
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
 
  .section-title {
    font-size: 2.2rem;
  }
 
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
 
  .contact-info,
  .contact-form {
    padding: 2rem;
  }
 
  /* Mobile positioning for theme and chat toggles */
  .theme-toggle {
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    z-index: 1000;
  }
 
  .chat-toggle {
    bottom: 7rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    z-index: 1000;
  }
 
  /* Improved mobile form responsiveness */
  .contact-form {
    padding: 1.5rem;
  }
 
  .form-group {
    margin-bottom: 1.5rem;
  }
 
  .form-group input,
  .form-group textarea {
    padding: 0.8rem 1.2rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
 
  .install-prompt {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
 
  .hero-subtitle {
    font-size: 1.1rem;
  }
 
  .section-title {
    font-size: 1.8rem;
  }
 
  .nav-links {
    width: 100%;
  }
 
  .modal-container {
    padding: 2rem;
    margin: 1rem;
  }
 
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
 
  .contact-info p {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
 
  .hero-buttons {
    gap: 1rem;
  }
 
  .cta-button {
    min-width: auto;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
 
  /* Fix for iOS form elements */
  input, textarea, select {
    font-size: 16px !important; /* Prevents zoom on focus */
  }
}

/* Animation Delays */
.hero-title {
  animation-delay: 0.3s;
}

.hero-subtitle {
  animation-delay: 0.6s;
}

.whatsapp-btn {
  animation-delay: 0.9s;
}

.email-btn {
  animation-delay: 1.1s;
}

/* Loading animation for buttons */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--accent-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #cc0000;
}

/* iOS Play Overlay */
.ios-play-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  color: white;
}

.ios-play-overlay .play-button {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

/* Global Notification */
.global-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.5rem;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 350px;
}

.global-notification.show {
  transform: translateX(0);
}

.global-notification.success {
  border-left: 4px solid #25D366;
}

.global-notification.error {
  border-left: 4px solid #EA4335;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
}

/* Enhanced Statistics Section */
.stats-section {
  padding: 5rem 5%;
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.15) 0%, rgba(179, 0, 0, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255, 77, 77, 0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--glass-bg);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(179, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  z-index: 1;
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 35px rgba(179, 0, 0, 0.2);
}

.stat-item:hover::before {
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

.stat-icon {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: #ff4d4d;
  position: relative;
  z-index: 2;
}

.stat-item h3 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #b30000;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(179, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.stat-item h3.counting {
  animation: digitFlip 0.3s ease-out;
}

@keyframes digitFlip {
  0% {
    transform: translateY(10px) scale(0.9);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.stat-item p {
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
  margin: 0;
}

.stat-item.completed {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 245, 0.98));
  box-shadow: 0 12px 32px rgba(179, 0, 0, 0.25);
}

.stat-confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 77, 77, 0.3) 0%, transparent 70%);
  animation: confettiFade 2s ease-out;
  z-index: 3;
}

@keyframes confettiFade {
  0% {
    opacity: 1;
    transform: scale(0.5);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
 
  .stat-item {
    padding: 1.8rem 1rem;
  }
 
  .stat-item h3 {
    font-size: 2.4rem;
  }
 
  .stat-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
 
  .stat-item {
    padding: 1.5rem 0.8rem;
  }
 
  .stat-item h3 {
    font-size: 2.2rem;
  }
}

@media (min-width: 1024px) {
  .swipe-indicator {
    display: none;
  }
}

/* Enhanced Product Stack for Mobile */
.product-stack-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stack-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: var(--primary-glow);
  z-index: 20;
}

.stack-nav-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.stack-counter {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 60px;
  text-align: center;
  font-size: 1.1rem;
}

.product-stack-container {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-intensity);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  position: relative;
}

.product-stack {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.product-stack-card {
  position: absolute;
  width: 100%;
  max-width: 350px;
  height: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--blur-intensity);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
}

.product-stack-card .product-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.product-stack-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-stack-card:hover .product-image img {
  transform: scale(1.1);
}

.product-stack-card .product-details {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-stack-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 700;
}

.product-stack-card p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  color: #666;
}

.product-stack-card .price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.4rem;
  margin: 0.5rem 0;
}

.product-stack-card .inquiry-btn {
  margin-top: auto;
  padding: 0.8rem;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: var(--primary-glow);
}
.gallery-btn{
   margin-top: auto;
  padding: 0.8rem;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: var(--primary-glow);
}

.product-stack-card .inquiry-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  box-shadow: 0 0 25px rgba(255, 77, 77, 0.7);
}

@media (min-width: 1024px) {
  .product-stack {
    height: 400px;
  }
 
  .product-stack-card[data-index="0"] {
    transform: translateX(-180px) rotateY(10deg) scale(0.9);
    z-index: 4;
  }
 
  .product-stack-card[data-index="1"] {
    transform: translateX(-90px) rotateY(5deg) scale(0.95);
    z-index: 5;
  }
 
  .product-stack-card[data-index="2"] {
    transform: translateX(0) scale(1);
    z-index: 6;
  }
 
  .product-stack-card[data-index="3"] {
    transform: translateX(90px) rotateY(-5deg) scale(0.95);
    z-index: 5;
  }
 
  .product-stack-card[data-index="4"] {
    transform: translateX(180px) rotateY(-10deg) scale(0.9);
    z-index: 4;
  }
 
  .product-stack-card:hover {
    transform: translateX(0) rotateY(0) scale(1.05) !important;
    z-index: 10 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  }
}

/* Mobile - Stack with navigation */
@media (max-width: 1023px) {
  .product-stack {
    height: 420px;
    flex-direction: column;
    perspective: none;
  }
 
  .product-stack-card {
    position: absolute;
    width: 100%;
    max-width: 320px;
    height: 380px;
    margin: 0 auto;
  }
 
  .swipe-indicator {
    display: block;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
    animation: pulse 2s infinite;
    font-weight: 600;
  }
    
  .product-stack-nav {
    position: relative;
    z-index: 25;
  }
 
  .stack-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--primary-glow);
  }
 
  .stack-nav-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
  }
 
  .stack-counter {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 60px;
    text-align: center;
  }
 
  /* Mobile swipe indicator */
  .swipe-indicator {
    display: block;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
    animation: pulse 2s infinite;
    font-weight: 600;
  }
}

/* Swipe animation classes */
.swipe-left {
  transform: translateX(-100%) rotate(-5deg) !important;
  opacity: 0 !important;
}

.swipe-right {
  transform: translateX(100%) rotate(5deg) !important;
  opacity: 0 !important;
}

/* Chat Modal */
.chat-modal {
  position: fixed;
  bottom: 8rem;
  right: 2.5rem;
  width: 350px;
  height: 450px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 101;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
}

.chat-modal.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.chat-close:hover {
  transform: scale(1.2);
}

.chat-messages {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(245, 245, 245, 0.5);
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.message.received {
  align-self: flex-start;
}

.message.sent {
  align-self: flex-end;
}

.message-content {
  padding: 0.8rem 1rem;
  border-radius: 18px;
  margin-bottom: 0.3rem;
}

.message.received .message-content {
  background: #f1f0f0;
  border-bottom-left-radius: 4px;
}

.message.sent .message-content {
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 0.7rem;
  color: #999;
  align-self: flex-end;
}

.message.sent .message-time {
  align-self: flex-end;
}

.chat-input {
  padding: 1rem;
  border-top: 1px solid #eee;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  background: white;
}

.chat-input textarea {
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 0.8rem 1rem;
  resize: none;
  font-family: inherit;
  font-size: 0.9rem;
  max-height: 120px;
  transition: var(--transition);
}

.chat-input textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(179, 0, 0, 0.1);
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.chat-send:hover {
  background: #cc0000;
  transform: scale(1.1);
}

/* Responsive chat */
@media (max-width: 480px) {
  .chat-toggle {
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
  }
 
  .chat-modal {
    bottom: 5rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    height: 400px;
  }
}

/* Animation for counting stats */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stat-item h3.animated {
  animation: countUp 1s ease-out forwards;
}

/* Enhanced counting animation with digit flip effect */
@keyframes digitFlip {
  0% {
    transform: rotateX(90deg);
    opacity: 0;
  }
  100% {
    transform: rotateX(0deg);
    opacity: 1;
  }
}

.stat-item h3 span {
  display: inline-block;
  animation: digitFlip 0.5s ease-out forwards;
}

/* Mobile-specific adjustments for statistics */
@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
 
  .stat-item {
    padding: 1.5rem 1rem;
  }
 
  .stat-item h3 {
    font-size: 2.5rem;
  }
 
  .stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
 
  .stat-item {
    padding: 1.2rem 0.8rem;
  }
 
  .stat-item h3 {
    font-size: 2.2rem;
  }
}

/* Custom Select Dropdown Styles */
.form-group select {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
  backdrop-filter: var(--blur-intensity);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b30000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 16px;
}

.form-group select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.1), 0 8px 25px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.form-group select:hover {
  border-color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Custom dropdown options styling */
.form-group select option {
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.95);
  color: 333;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group select option:hover {
  background: var(--primary-color) !important;
  color: white !important;
}

.form-group select option:checked {
  background: var(--primary-color);
  color: white;
}

.form-group select option:nth-child(even) {
  background: rgba(245, 245, 245, 0.95);
}

.form-group select option:nth-child(odd) {
  background: rgba(255, 255, 255, 0.95);
}

/* Focus state for options */
.form-group select option:focus {
  background: var(--primary-color);
  color: white;
}

/* Placeholder option styling */
.form-group select option[value=""] {
  color: #999;
  font-style: italic;
}

/* Animation for dropdown opening */
@keyframes dropdownOpen {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation to select when focused */
.form-group select:focus {
  animation: dropdownOpen 0.3s ease forwards;
}

/* Label styling (if you add a label later) */
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

/* Dark theme adjustments */
[data-theme="dark"] .form-group select {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-dark);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-group select option {
  background: #2a2a2a;
  color: #f0f0f0;
}

[data-theme="dark"] .form-group select option:nth-child(even) {
  background: #333333;
}

[data-theme="dark"] .form-group select option:nth-child(odd) {
  background: #2a2a2a;
}

/* Responsive design */
@media (max-width: 768px) {
  .form-group select {
    padding: 0.9rem 1.2rem;
    background-position: right 1rem center;
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Custom scrollbar for dropdown */
.form-group select::-webkit-scrollbar {
  width: 8px;
}

.form-group select::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.form-group select::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.form-group select::-webkit-scrollbar-thumb:hover {
  background: #cc0000;
}
h1{
  font-family: 'Eurostile', 'Bank Gothic', 'Orbitron', sans-serif;
}

h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
}

.history h2 {
  color: var(--text-light);
  font-size: bolder;
  font-family: 'Playfair Display', serif;
  font-weight: 700 !important;
}

.choose h4 {
  color: var(--text-light);
  font-size: bolder;
  font-family: 'Playfair Display', serif;
  font-weight: 500 !important;
}

.why-qualitec ul li {
  color: var(--text-light);
  font-family: 'Playfair Display', serif;
  font-weight: 300 !important;
  text-align: center;
  align-content: center;
}

/* SON Certification Section */
.son-section {
  padding: 6rem 5%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: var(--blur-intensity);
  position: relative;
  overflow: hidden;
}

.son-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255, 77, 77, 0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.son-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.son-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.son-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.son-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.son-image:hover img {
  transform: scale(1.05);
}

.son-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--primary-glow);
  animation: pulse 2s infinite;
}

.son-text {
  padding: 2rem;
}

.son-text h2 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  color: var(--text-light) !important;
  font-weight: 700 !important;
}

.section-titled h2 {
  color: var(--text-light);
  font-weight: 700;
}

.about-text h2 {
  color: var(--text-light) !important;
  font-weight: 700;
  font-size: 2.5rem;
}

.faq_text h2 {
  font-size: 2.5rem;
  color: var(--text-light) !important;
  font-weight: 700 !important;
}

.faq_text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.son-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.crip p {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--text-light);
  font-weight: 700;
}

/* Safety Section */
.safety-section {
  padding: 6rem 5%;
  background: linear-gradient(135deg, rgba(179, 0, 0, 0.05) 0%, rgba(255, 77, 77, 0.1) 100%);
  position: relative;
}

.safety-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.safety-text {
  padding: 2rem;
  order: 2;
}

.safety-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  order: 1;
}

.safety-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.safety-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.safety-image:hover img {
  transform: scale(1.05);
}

.safety-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
  animation: pulse 2s infinite;
}

.safety-text h2 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-light) !important;
  font-weight: 700 !important;
}

.safety-text p {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Read More Functionality */
.read-more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.read-more-content.expanded {
  max-height: 1000px;
}

.read-more-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.read-more-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.read-more-btn.expanded i {
  transform: rotate(180deg);
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

/* Responsive Design for New Sections */
@media (max-width: 992px) {
  .son-content,
  .safety-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
 
  .safety-text {
    order: 1;
  }
 
  .safety-image {
    order: 2;
  }
 
  .son-text,
  .safety-text {
    padding: 1rem 0;
  }
 
  .son-text h2,
  .safety-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .son-section,
  .safety-section {
    padding: 4rem 5%;
  }
 
  .son-badge,
  .safety-badge {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
 
  .son-image img,
  .safety-image img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .son-section,
  .safety-section {
    padding: 3rem 5%;
  }
 
  .son-badge,
  .safety-badge {
    top: 10px;
    right: 10px;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
 
  .son-image img,
  .safety-image img {
    height: 250px;
  }
 
  .son-text h2,
  .safety-text h2 {
    font-size: 1.8rem;
  }
}

/* Animation for Sections */
.son-section,
.safety-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.son-section.visible,
.safety-section.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="dark"] .son-text p,
[data-theme="dark"] .safety-text p,
[data-theme="dark"] .son-text h2,
[data-theme="dark"] .safety-text h2 {
  color: #ffffff !important;
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .chat-toggle {
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Testimonials Section - Fixed Bold Text */
.testimonials-section {
  padding: 6rem 5%;
  background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.12) 0%, 
      rgba(255, 255, 255, 0.08) 50%,
      rgba(179, 0, 0, 0.05) 100%);
  backdrop-filter: var(--blur-intensity);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 20% 30%, rgba(255, 77, 77, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(179, 0, 0, 0.06) 0%, transparent 50%);
  z-index: -1;
}

.testimonials-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="grain" width="200" height="200" patternUnits="userSpaceOnUse"><circle cx="100" cy="100" r="1.5" fill="rgba(255, 77, 77, 0.08)"/><circle cx="50" cy="50" r="1" fill="rgba(179, 0, 0, 0.05)"/><circle cx="150" cy="150" r="1" fill="rgba(179, 0, 0, 0.05)"/></pattern></defs><rect width="200" height="200" fill="url(%23grain)"/></svg>');
  opacity: 0.4;
  z-index: -1;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.testimonials-section .section-title {
  color: var(--text-light) !important;
  margin-bottom: 1rem;
  text-align: center;
}

.testimonials-section .section-description {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
}

.testimonials-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 1rem;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  position: absolute;
  width: 100%;
  visibility: hidden;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  visibility: visible;
}

.testimonial-content {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-intensity);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.testimonial-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(179, 0, 0, 0.03) 100%);
    z-index: 1;
}

.testimonial-content > * {
    position: relative;
    z-index: 2;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    animation: pulse 2s infinite;
}

.testimonial-text {
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
    font-style: italic;
    position: relative;
    padding: 0 1rem;
    font-weight:bold;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    font-family: Georgia, serif;
}

.testimonial-text::before {
    top: -1rem;
    left: 0;
}

.testimonial-text::after {
    bottom: -2rem;
    right: 0;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(179, 0, 0, 0.3);
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.client-details {
    text-align: left;
}

.client-name {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.client-position {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 0.95rem;
    margin: 0;
}

.auto-play-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 0 0 20px 20px;
    transition: width 0.1s linear;
}

/* Animation for testimonial entry */
@keyframes testimonialFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-slide.active .testimonial-content {
    animation: testimonialFadeIn 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .testimonial-content {
        padding: 2.5rem 2rem;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 4rem 5%;
    }
    
    .testimonial-content {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
        padding: 0;
    }
    
    .client-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .client-details {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .testimonials-section .section-title {
        font-size: 2rem;
    }
    
    .testimonials-section .section-description {
        font-size: 1rem;
    }
    
    .testimonial-content {
        padding: 1.8rem 1.2rem;
    }
    
    .quote-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .testimonial-text::before,
    .testimonial-text::after {
        font-size: 2.2rem;
    }
    
    .testimonial-text::before {
        top: -0.8rem;
    }
    
    .testimonial-text::after {
        bottom: -1.5rem;
    }
    
    .client-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .client-name {
        font-size: 1.1rem;
    }
    
    .client-position {
        font-size: 0.9rem;
    }
}
/* FAQ Section */
.faq-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 50%,
        rgba(179, 0, 0, 0.05) 100%);
    backdrop-filter: var(--blur-intensity);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 77, 77, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(179, 0, 0, 0.06) 0%, transparent 50%);
    z-index: -1;
}

.faq-container {
    max-width: 900px;
    margin: 3rem auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--glass-bg);
    backdrop-filter: var(--blur-intensity);
    border: 1px solid var(--glass-border);
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    text-align: left;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-question[aria-expanded="true"] {
    background: rgba(179, 0, 0, 0.1);
}

.faq-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-text {
    flex: 1;
    text-align: left;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon i {
    position: absolute;
    transition: var(--transition);
}

.faq-icon .fa-plus {
    opacity: 1;
    transform: rotate(0deg);
}

.faq-icon .fa-minus {
    opacity: 0;
    transform: rotate(-90deg);
}

.faq-question[aria-expanded="true"] .fa-plus {
    opacity: 0;
    transform: rotate(90deg);
}

.faq-question[aria-expanded="true"] .fa-minus {
    opacity: 1;
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer-content {
    padding: 0 2rem 1.5rem 5rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight:400;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Custom Question Form */
.custom-question {
    max-width: 900px;
    margin: 4rem auto 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--glass-bg);
    backdrop-filter: var(--blur-intensity);
    border: 1px solid var(--glass-border);
}

.custom-question-toggle {
    width: 100%;
    padding: 1.5rem 2rem;
    text-align: left;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.custom-question-toggle:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.custom-question-toggle i:first-child {
    font-size: 1.3rem;
}

.custom-question-toggle i:last-child {
    margin-left: auto;
    transition: var(--transition);
}

.custom-question-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-question-form.expanded {
    max-height: 500px;
}

.custom-question-form.expanded + .custom-question-toggle i:last-child {
    transform: rotate(180deg);
}

.custom-question-form .form-group {
    padding: 1.5rem 2rem 0;
    margin-bottom: 0;
}

.custom-question-form .form-group:last-child {
    padding: 1.5rem 2rem;
}

.custom-question-form input,
.custom-question-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
    backdrop-filter: var(--blur-intensity);
}

.custom-question-form input:focus,
.custom-question-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.custom-question-form .submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.custom-question-form .submit-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #20c85a, #0f7a5f);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.5);
}

/* FAQ Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-item:nth-child(8) { animation-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 0 1.5rem 1.2rem 4.5rem;
    }
    
    .faq-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .custom-question-toggle {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .custom-question-form .form-group {
        padding: 1.2rem 1.5rem 0;
    }
    
    .custom-question-form .form-group:last-child {
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .faq-answer-content {
        padding: 0 1rem 1rem 3.8rem;
    }
    
    .faq-number {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
    
    .custom-question-toggle {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .custom-question-form .form-group {
        padding: 1rem 1rem 0;
    }
    
    .custom-question-form .form-group:last-child {
        padding: 1rem;
    }
}
/* ========== MANUFACTURED SECTION ========== */
/* ========== MANUFACTURED SECTION ========== */
/* ========== MANUFACTURED SECTION ========== */
.manufactured-section {
    padding: 4rem 5%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: var(--blur-intensity);
    position: relative;
    overflow: hidden;
}

.manufactured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 77, 77, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(179, 0, 0, 0.06) 0%, transparent 50%);
    z-index: -1;
}

.manufactured-section .section-title {
    color: var(--text-light) !important;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 2.2rem;
}

.manufactured-section .section-description {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Train Animation Container */
.train-animation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

/* Train Track - FIXED for showing all images */
.train-track {
    position: relative;
    width: 65%; /* REDUCED WIDTH SIGNIFICANTLY - from 100% to 70% */
    max-width: 900px; /* Maximum width limit */
    margin: 0 auto; /* Center it */
    height: 280px; /* INCREASED HEIGHT - from 220px to 280px */
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.05) 0%, 
        rgba(0, 0, 0, 0.02) 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* FIXED: Train Images Container - Shows all 8 images properly */
.train-images {
    display: flex;
    width: 800%; /* Still 8 images total */
    height: 100%;
    animation: trainMove 60s linear infinite;
    will-change: transform;
    animation-play-state: running;
}
/* Pause animation on hover */
.train-images.paused {
    animation-play-state: paused;
}

/* FIXED: Keyframes for 8 image train animation - Shows ALL images */
@keyframes trainMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-87.5%); /* Moves 7/8 of the way (showing all images) */
    }
}

.train-image-item {
    flex: 0 0 12.5%; /* Each image takes 1/8th (12.5%) */
    width: 12.5%;
    height: 100%;
    padding: 15px 8px; /* More vertical padding, less horizontal */
    box-sizing: border-box;
    position: relative;
}

.train-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the tall container perfectly */
    border-radius: 10px;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.18),
        0 3px 12px rgba(179, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    /* Optional: Force a portrait aspect ratio */
    aspect-ratio: 2/3; /* Portrait: width 2, height 3 (taller than wide) */
}

.train-image-item img:hover {
    transform: scale(1.04);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.22),
        0 6px 20px rgba(179, 0, 0, 0.12),
        0 0 0 2px rgba(255, 77, 77, 0.25);
    z-index: 10;
}

/* Image overlay on hover */
.image-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 12px 15px;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.92) 0%, 
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%);
    color: white;
    border-radius: 0 0 10px 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(6px);
}

.train-image-item:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.image-overlay h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    color: #fff;
    line-height: 1.3;
    text-align: center;
}

/* Train Controls */
.train-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    margin-bottom: 2rem;
}

.train-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.train-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transition: left 0.4s ease;
}

.train-btn:hover::before {
    left: 100%;
}

.train-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 0 25px rgba(255, 77, 77, 0.55);
}

.train-btn i {
    position: relative;
    z-index: 2;
}

.train-dots {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 320px;
}

.train-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.train-dot:hover {
    background: var(--primary-light);
    transform: scale(1.25);
}

.train-dot.active {
    background: var(--primary-color);
    transform: scale(1.4);
    box-shadow: 0 0 18px rgba(255, 77, 77, 0.55);
}

/* Speed Control */
.train-speed-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto 2rem;
    border: 1px solid var(--glass-border);
}

.train-speed-control label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.train-speed-control input[type="range"] {
    flex: 1;
    max-width: 220px;
    height: 7px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.train-speed-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--primary-glow);
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.train-speed-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--primary-light);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.7);
}

.train-speed-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--primary-glow);
}

#speedValue {
    min-width: 90px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.25);
}

/* Call to Action Button */
.manufactured-cta {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1.2rem;
}

.manufactured-cta .btn-large {
    padding: 12px 28px;
    font-size: 1.1rem;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--primary-glow);
}

.manufactured-cta .btn-large:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 77, 77, 0.35);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.cta-description {
    color: var(--text-light);
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.75;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .train-track {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .manufactured-section {
        padding: 3rem 4%;
    }
    
    .train-animation-container {
        padding: 1.5rem;
    }
    
    .train-track {
        height: 180px;
    }
    
    .train-controls {
        gap: 1.5rem;
    }
    
    .train-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .train-dots {
        max-width: 280px;
    }
    
    .train-dot {
        width: 11px;
        height: 11px;
    }
}

@media (max-width: 480px) {
    .manufactured-section .section-title {
        font-size: 1.8rem;
    }
    
    .manufactured-section .section-description {
        font-size: 0.95rem;
    }
    
    .train-track {
        height: 160px;
    }
    
    .train-images {
        animation-duration: 40s; /* Faster on mobile */
    }
    
    .train-image-item {
        padding: 5px;
    }
    
    .train-controls {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .train-speed-control {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .train-speed-control input[type="range"] {
        max-width: 100%;
    }
    
    .manufactured-cta .btn-large {
        padding: 10px 22px;
        font-size: 1rem;
    }
}


/* ========== WHY QUALITEC SECTION ========== */
.why-qualitec-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 50%,
        rgba(179, 0, 0, 0.05) 100%);
    backdrop-filter: var(--blur-intensity);
    position: relative;
    overflow: hidden;
}

.why-qualitec-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 77, 77, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(179, 0, 0, 0.06) 0%, transparent 50%);
    z-index: -1;
}

.why-qualitec-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.why-qualitec-section .section-title {
    color: var(--text-light) !important;
    margin-bottom: 1rem;
    text-align: center;
}

.why-qualitec-section .section-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Grid Cards */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.why-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-intensity);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 77, 77, 0.05) 0%,
        rgba(179, 0, 0, 0.03) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(179, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 77, 77, 0.3);
}

.why-card:hover::before {
    opacity: 1;
}

.why-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--primary-glow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-card:hover .why-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(255, 77, 77, 0.6);
}

.why-card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transition: left 0.4s ease;
}

.why-card:hover .why-card-icon::before {
    left: 100%;
}

.why-card-icon i {
    position: relative;
    z-index: 2;
}

.why-card-content {
    position: relative;
    z-index: 2;
}

.why-card-content h3 {
    color: var(--text-light) !important;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.why-card-content p {
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.why-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-top: auto;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    flex: 1;
}

/* Feature Highlights */
.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 77, 77, 0.2);
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    min-width: 60px;
}

.feature-content h4 {
    color: var(--text-light) !important;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-content p {
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem;
    min-width: 150px;
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-5px);
}

.badge-item i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.badge-item:hover i {
    transform: scale(1.2);
}

.badge-item span {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.3;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .train-image-item {
        flex: 0 0 calc(33.333% - 1.34rem);
    }
    
    .why-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .train-image-item {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .train-track {
        height: 300px;
    }
    
    .feature-highlights {
        grid-template-columns: 1fr;
    }
    
    .trust-badges {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .manufactured-section,
    .why-qualitec-section {
        padding: 4rem 5%;
    }
    
    .train-animation-container {
        padding: 1.5rem;
    }
    
    .train-track {
        height: 250px;
    }
    
    .train-image-item {
        flex: 0 0 calc(100% - 0.5rem);
        max-width: 400px;
        margin: 0 auto;
    }
    
    .train-images {
        gap: 1rem;
    }
    
    .train-controls {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .train-speed-control {
        flex-wrap: wrap;
        text-align: center;
    }
    
    .why-card {
        padding: 1.5rem;
    }
    
    .why-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .why-card-content h3 {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .feature-item {
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .feature-number {
        min-width: auto;
        font-size: 2rem;
    }
    
    .trust-badges {
        padding: 2rem 1rem;
        gap: 1rem;
    }
    
    .badge-item {
        min-width: 120px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .train-track {
        height: 200px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .train-speed-control {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .train-speed-control input[type="range"] {
        max-width: 100%;
    }
    
    .why-card {
        padding: 1.2rem;
    }
    
    .why-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .why-stats {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation for cards */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.why-card:hover {
    animation: cardFloat 2s ease-in-out infinite;
}

@keyframes trainMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.train-images.animating {
    animation: trainMove 20s linear infinite;
}

/* Dark theme adjustments */
[data-theme="dark"] .train-animation-container,
[data-theme="dark"] .why-card,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .trust-badges {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .train-track {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 0, 0, 0.1) 100%);
}

[data-theme="dark"] .why-card-content h3,
[data-theme="dark"] .why-card-content p,
[data-theme="dark"] .feature-content h4,
[data-theme="dark"] .feature-content p,
[data-theme="dark"] .badge-item span,
[data-theme="dark"] .stat-label {
    color: #ffffff !important;
}

/* Hover effects enhancement */
.train-image-item:hover .image-overlay h4 {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading animation for cards */
.why-card.loading,
.train-image-item.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}
/* Add to your CSS file */
.manufactured-cta {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

.manufactured-cta .btn-large {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.manufactured-cta .btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3, #003d82);
}

.manufactured-cta .btn-large:active {
    transform: translateY(-1px);
}

.cta-description {
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}