/* Import Modern Clean Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;700;900&display=swap");

/* Clean Corporate Theme - Delta Holding Style */
:root {
  --primary-dark: #1a1a1a;
  --secondary-dark: #2d2d2d;
  --accent-blue: #0066cc;
  --logo-blue: #265063;
  --text-primary: #265063; /* Updated to match logo color */
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;
  --text-white: #ffffff;
  --light-bg: #ffffff;
  --soft-bg: #fafafa;
  --logo-bg: #265063; /* New background for logo-themed sections */
  --logo-bg-light: #2e5c71; /* Lighter variant */
  --logo-bg-dark: #1e4651; /* Darker variant */
  --card-bg: #ffffff;
  --border-light: #e6e6e6;
  --border-elegant: #ddd;
  --hover-bg: #f5f5f5;

  /* Enhanced gradients for visual interest */
  --gradient-dark: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--secondary-dark) 100%
  );
  --gradient-logo: linear-gradient(
    135deg,
    var(--logo-bg) 0%,
    var(--logo-bg-light) 100%
  );
  --gradient-light: linear-gradient(
    135deg,
    #ffffff 0%,
    #f8fbff 50%,
    #f0f7ff 100%
  );
  --gradient-subtle: linear-gradient(
    180deg,
    #ffffff 0%,
    #fafcff 50%,
    #f5f9ff 100%
  );
  --gradient-accent: linear-gradient(
    45deg,
    rgba(38, 80, 99, 0.05) 0%,
    rgba(46, 92, 113, 0.08) 50%,
    rgba(38, 80, 99, 0.03) 100%
  );
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #fbfdff 100%);

  /* Blueish accent colors */
  --accent-light: rgba(38, 80, 99, 0.08);
  --accent-medium: rgba(38, 80, 99, 0.15);
  --accent-border: rgba(38, 80, 99, 0.12);
  --accent-hover: rgba(38, 80, 99, 0.06);

  --box-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
  --box-shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
  --box-shadow-accent: 0 4px 20px rgba(38, 80, 99, 0.1);
}

html,
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--gradient-subtle);
  /* Add subtle brush-like gradients instead of dots */
  background-image: radial-gradient(
      ellipse 800px 600px at 20% 10%,
      rgba(38, 80, 99, 0.02) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse 600px 800px at 80% 90%,
      rgba(38, 80, 99, 0.015) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse 400px 300px at 60% 30%,
      rgba(38, 80, 99, 0.01) 0%,
      transparent 50%
    );
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  /* Optimize scrolling performance */
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
}

* {
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Optimize performance and prevent scroll jank */
.custom-navbar,
.hero-section,
.product-card,
.feature-card {
  will-change: auto;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Remove focus outlines for better UX */
*:focus {
  outline: none !important;
}

.page {
  overflow-x: hidden;
  max-width: 100vw;
}

.container {
  max-width: 100%;
  /* Remove overflow-x hidden to prevent scroll issues */
  /* Optimize container for better scroll performance */
  contain: layout style;
}

a,
.btn-link {
  color: var(--accent-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover,
.btn-link:hover {
  color: var(--primary-dark);
}

.btn-primary {
  color: var(--light-bg);
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2a2a2a 100%);
  border: 2px solid var(--primary-dark);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  /* No transitions for better performance */
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: var(--light-bg);
  border-color: var(--light-bg);
  color: var(--primary-dark);
  /* No transform animations */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hero section specific button styling */
.hero-section .btn-primary {
  background: var(--light-bg);
  color: var(--primary-dark);
  border-color: var(--light-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  text-shadow: none;
}

.hero-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Ensure buttons in dark sections are readable */
.features-section .btn-primary,
.cta-overlay-section .btn-primary {
  background: var(--light-bg);
  color: var(--primary-dark);
  border-color: var(--light-bg);
  font-weight: 700;
  text-shadow: none;
}

.features-section .btn-primary:hover,
.cta-overlay-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Clean Form Styling - Delta Style */
.contact-form {
  max-width: 100%;
  background: #ffffff;
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  position: relative;
  z-index: 1;
  box-shadow: var(--box-shadow-light);
}

.form-label {
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.form-control {
  background: var(--light-bg);
  border: 1px solid var(--border-elegant);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 0.875rem 1.125rem;
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

.form-control:focus {
  background: var(--light-bg);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
  color: var(--text-primary);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
  font-style: normal;
}

.form-check-input {
  position: relative;
  margin-top: 0.3rem;
  margin-left: 0;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--primary-blue);
  border: 2px solid var(--border-elegant);
  border-radius: 0.3rem;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-check-label {
  color: var(--text-primary);
  margin-left: 0.5rem;
  font-weight: 500;
  position: relative;
  padding-left: 1.5rem;
}

.form-check-label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1rem;
  height: 1rem;
  background: var(--dark-bg);
  border: 2px solid var(--border-color);
  border-radius: 0.2rem;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.form-check-input:checked + .form-check-label::before {
  background: var(--primary-yellow);
  border-color: var(--primary-yellow);
}

/* Clean Hero Section - Delta Style (Default for other pages) */
.hero-section {
  background: var(--light-bg);
  padding: 2rem 0 4rem;
  margin-top: 80px; /* Space for fixed header */
  text-align: center;
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

/* Home Page Hero Section with Background Image Carousel */
.hero-section.home-hero {
  position: relative;
  padding: 3rem 0 6rem;
  margin-top: 80px; /* Space for fixed header */
  min-height: 70vh;
  overflow: hidden;
}

/* Contact Page Hero Section - Compact for Quick Form Access */
.hero-section.contact-hero {
  padding: 1.5rem 0 2rem;
  min-height: 30vh;
  background: linear-gradient(
    135deg,
    var(--light-bg) 0%,
    rgba(var(--accent-color-rgb), 0.1) 100%
  );
}

.hero-section.contact-hero .hero-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hero-section.contact-hero .hero-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Hero Carousel Container */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Individual Carousel Slides */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 100%; /* Start off-screen to the right */
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: left 1s ease-in-out;
  /* Lighter blueish filter - less heavy but keeping the tint */
  filter: brightness(0.9) contrast(1.05) saturate(0.95) hue-rotate(3deg);
}

/* Active slide */
.carousel-slide.active {
  left: 0; /* Current slide in view */
}

/* Next slide entering from right */
.carousel-slide.next {
  left: 100%; /* Waiting off-screen to the right */
}

/* Previous slide exiting to left */
.carousel-slide.prev {
  left: -100%; /* Sliding out to the left */
}

/* Reset position without transition for infinite loop */
.carousel-slide.reset {
  transition: none !important;
  left: 100%;
}

/* Lighter overlay with blueish tint for text readability */
.hero-carousel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      45deg,
      rgba(0, 20, 40, 0.4) 0%,
      rgba(0, 30, 60, 0.3) 50%,
      rgba(0, 15, 35, 0.5) 100%
    ),
    rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* Ensure hero content is above carousel */
.hero-section.home-hero .hero-content {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
}

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

.hero-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
}

/* SEO Enhancement Styles */
.hero-subtitle-h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .hero-subtitle-h2 {
    font-size: 1.2rem;
  }
}

/* Multilingual Content Styling */
.multilingual-content {
  border-left: 3px solid var(--accent-blue);
  padding-left: 1rem;
  margin: 1rem 0;
  background: rgba(0, 102, 204, 0.05);
  border-radius: 0 4px 4px 0;
}

/* Enhanced Section Titles for SEO */

/* Home page specific text styling */
.hero-section.home-hero .hero-title {
  color: #ffffff !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8) !important;
  font-weight: 800 !important;
}

.hero-section.home-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
  font-weight: 500 !important;
}

/* Clean Sections - Delta Style */
.products-section {
  padding: 6rem 0;
  background: var(--gradient-light);
  position: relative;
  /* Add subtle brush-like accent overlay */
  background-image: radial-gradient(
      ellipse 500px 700px at 10% 30%,
      rgba(38, 80, 99, 0.015) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 700px 400px at 90% 70%,
      rgba(38, 80, 99, 0.02) 0%,
      transparent 60%
    ),
    var(--gradient-accent);
}

/* Add decorative elements to sections */
.products-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-border) 50%,
    transparent 100%
  );
}

.features-section {
  padding: 6rem 0;
  background: var(--gradient-logo); /* Logo-themed background */
  position: relative;
  /* Performance optimizations to prevent scroll freezing */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Optimize rendering performance */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Prevent layout thrashing */
  contain: layout style paint;
  color: var(--text-white); /* White text for logo background */
  /* Add subtle texture overlay */
  background-image: var(--gradient-logo),
    radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
}

/* White text styling for logo-themed sections */
.features-section .section-title {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6) !important;
  font-weight: 800 !important;
}

.features-section .feature-title {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.features-section .feature-description {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.features-section .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* Restore original feature item styling - no background changes */
.feature-item {
  text-align: center;
  padding: 1.5rem;
  /* Remove any background or border styling */
  background: transparent;
  border: none;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  /* Remove background circle for original look */
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

/* Also apply white text to product cards within features-section */
.features-section .product-title {
  color: var(--text-white);
}

.features-section .product-description {
  color: rgba(255, 255, 255, 0.9);
}

.showcase-section {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    #f8fbff 0%,
    #ffffff 30%,
    #f5f9ff 70%,
    #f0f7ff 100%
  );
  position: relative;
  /* Performance optimizations to prevent scroll freezing */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Optimize rendering performance */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Prevent layout thrashing */
  contain: layout style paint;
  /* Add subtle brush-like glow patterns */
  background-image: radial-gradient(
      ellipse 600px 400px at 20% 20%,
      rgba(38, 80, 99, 0.02) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 800px 300px at 80% 80%,
      rgba(38, 80, 99, 0.015) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 400px 600px at 50% 10%,
      rgba(38, 80, 99, 0.01) 0%,
      transparent 50%
    );
}

/* Add decorative elements to sections */
.showcase-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-border) 50%,
    transparent 100%
  );
}

/* Removed floating accent elements - using brush-like gradients instead */

.section-title {
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 3rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  /* Ensure good contrast on all backgrounds */
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

/* Add decorative accent line under section titles */
.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--logo-bg) 0%,
    var(--logo-bg-light) 100%
  );
  border-radius: 2px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  height: 100%;
  position: relative;
  box-shadow: var(--box-shadow-accent);
  /* Ensure solid white background for readability */
  background-image: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.product-card:hover::before {
  left: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-icon {
  font-size: 3rem;
  text-align: center;
  transition: all 0.3s ease;
  /* Add attractive background circle */
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    rgba(38, 80, 99, 0.12) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  box-shadow: 0 6px 20px rgba(38, 80, 99, 0.12);
  border: 2px solid rgba(38, 80, 99, 0.08);
  position: relative;
  z-index: 2;
}

.product-card:hover .product-icon {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(38, 80, 99, 0.2);
}

/* Hero section specific product card styling */
.hero-section .product-card {
  background: var(--light-bg);
  color: var(--primary-dark);
  border-color: var(--light-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.hero-section .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Clean Footer - Delta Style */
.footer {
  background: var(--primary-dark);
  padding: 4rem 0 2rem;
  color: var(--light-bg);
  margin-top: auto;
  position: relative;
}

.footer-content {
  text-align: center;
}

.footer-logo-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-img {
  width: 100px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  filter: brightness(0) invert(1);
}

.footer-logo {
  color: var(--light-bg);
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  position: relative;
  letter-spacing: 0.3px;
}

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

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

/* Clean Header - Delta Style */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 230, 230, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Clean Navigation System */
.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 230, 230, 0.8);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* Smart header animation */
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Disable all blur effects on mobile for better performance and logo clarity */
@media (max-width: 991px) {
  .custom-navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(230, 230, 230, 0.9);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  }

  /* Remove blur from mobile navigation elements */
  .mobile-nav-close {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-nav-link {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Remove blur from any other mobile elements */
  * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Disable logo animation on mobile for better performance and less distraction */
  .custom-navbar .logo-img,
  .navbar-brand .logo-img {
    animation: none !important;
  }
}

/* Smart header states */
.custom-navbar.header-hidden {
  transform: translateY(-100%) !important;
}

.custom-navbar.header-visible {
  transform: translateY(0) !important;
}

/* Force header to be visible at top */
.custom-navbar.force-visible {
  transform: translateY(0) !important;
}

.custom-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Smooth Variable Speed Spinning Logo Animation */
@keyframes spinLogoSmooth {
  0% {
    transform: rotateY(0deg);
  }
  25% {
    transform: rotateY(90deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  75% {
    transform: rotateY(270deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Webkit prefix for better browser compatibility */
@-webkit-keyframes spinLogoSmooth {
  0% {
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }
  25% {
    -webkit-transform: rotateY(90deg);
    transform: rotateY(90deg);
  }
  50% {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
  }
  75% {
    -webkit-transform: rotateY(270deg);
    transform: rotateY(270deg);
  }
  100% {
    -webkit-transform: rotateY(360deg);
    transform: rotateY(360deg);
  }
}

/* Mozilla prefix for better browser compatibility */
@-moz-keyframes spinLogoSmooth {
  0% {
    -moz-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }
  25% {
    -moz-transform: rotateY(90deg);
    transform: rotateY(90deg);
  }
  50% {
    -moz-transform: rotateY(180deg);
    transform: rotateY(180deg);
  }
  75% {
    -moz-transform: rotateY(270deg);
    transform: rotateY(270deg);
  }
  100% {
    -moz-transform: rotateY(360deg);
    transform: rotateY(360deg);
  }
}

/* Extra slow animation specifically for mobile devices */
@keyframes spinLogoMobile {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.logo-img {
  width: 100px;
  height: 80px;
  object-fit: contain;
  margin-right: 0.75rem;
  /* Use linear timing for consistent speed across browsers */
  animation: spinLogoSmooth 6s linear infinite;
  /* Add browser prefixes for better compatibility */
  -webkit-animation: spinLogoSmooth 6s linear infinite;
  -moz-animation: spinLogoSmooth 6s linear infinite;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  padding-bottom: 10px;
  /* Add will-change for better performance */
  will-change: transform;
}

/* Brave Browser Animation Disable - CSS Fallback */
.brave-browser .logo-img {
  animation: none !important;
  -webkit-animation: none !important;
  -moz-animation: none !important;
  transform: none !important;
  will-change: auto;
}

/* Additional fallback for browser-specific animation issues */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  /* Target Chromium-based browsers */
  .browser-animation-disabled .logo-img {
    animation: none !important;
    -webkit-animation: none !important;
    transform: none !important;
  }
}

.logo-title-img {
  height: 45px;
  width: auto;
  object-fit: contain;
  max-width: 220px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  text-decoration: none;
  transition: none;
  letter-spacing: -0.02em;
  position: relative;
  overflow: visible;
  /* padding: 0.5rem 0; */
}

.navbar-brand:hover {
  color: var(--accent-blue) !important;
}

.navbar-brand:hover .logo-img {
  opacity: 0.9;
  /* No animation changes - keeps spinning at same speed */
}

.navbar-brand:hover .logo-title-img {
  opacity: 0.9;
  transform: translateX(3px);
  transition: all 0.3s ease;
}

/* Remove old logo text and shine effects */

/* Mobile Hamburger - Clean Style */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
}

/* Ensure desktop navigation is visible on larger screens */
@media (min-width: 992px) {
  .nav-menu.desktop-nav {
    display: flex !important;
  }
}

/* Hide desktop navigation on mobile and tablet */
@media (max-width: 991px) {
  .nav-menu.desktop-nav {
    display: none !important;
  }
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  margin: 0 0.3rem;
}

.nav-link {
  color: var(--text-primary) !important;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-link:hover {
  color: var(--text-primary) !important;
  background: transparent;
}

.nav-link.active {
  background: var(--primary-dark) !important;
  color: white !important;
  font-weight: 600;
}

/* Mobile Navigation Overlay - Independent of Container */
/* Hide mobile overlay on desktop screens */
@media (min-width: 992px) {
  .mobile-nav-overlay {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
    z-index: 10001; /* Above everything including the menu */
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle:hover {
    background: rgba(38, 80, 99, 0.1);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Mobile Navigation Overlay - Full Screen */
  .mobile-nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: linear-gradient(
      135deg,
      rgba(38, 80, 99, 0.95) 0%,
      rgba(28, 60, 79, 0.98) 50%,
      rgba(18, 40, 59, 0.99) 100%
    ) !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    /* Ensure complete independence from any parent container */
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    max-width: none !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
  }

  .mobile-nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .mobile-nav-content {
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 10001;
  }

  /* Mobile Navigation Close Button */
  .mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 10002;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /* Remove blur for better mobile performance */
    backdrop-filter: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
  }

  .close-line {
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
  }

  .close-line:first-child {
    transform: rotate(45deg);
  }

  .close-line:last-child {
    transform: rotate(-45deg);
  }

  .mobile-nav-close:hover .close-line {
    background: rgba(255, 255, 255, 0.9);
  }

  .mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-nav-item {
    margin: 0;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.4s ease;
  }

  .mobile-nav-overlay.active .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger animation for nav links */
  .mobile-nav-overlay.active .mobile-nav-item:nth-child(1) {
    transition-delay: 0.2s;
  }
  .mobile-nav-overlay.active .mobile-nav-item:nth-child(2) {
    transition-delay: 0.3s;
  }
  .mobile-nav-overlay.active .mobile-nav-item:nth-child(3) {
    transition-delay: 0.4s;
  }
  .mobile-nav-overlay.active .mobile-nav-item:nth-child(4) {
    transition-delay: 0.5s;
  }

  .mobile-nav-link {
    display: block;
    padding: 1.8rem 2.5rem;
    margin: 0.8rem 0;
    text-align: center;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.1) 100%
    );
    color: white !important;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
  }

  .mobile-nav-link:hover {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.2) 100%
    );
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  }

  .mobile-nav-link.active {
    background: linear-gradient(
      135deg,
      var(--light-bg) 0%,
      #f8fbff 100%
    ) !important;
    border: 3px solid var(--logo-bg) !important;
    color: var(--logo-bg) !important;
    font-weight: 700;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(38, 80, 99, 0.5),
      0 0 0 1px rgba(38, 80, 99, 0.1);
  }

  .mobile-nav-link.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(38, 80, 99, 0.1) 50%,
      transparent 70%
    );
    opacity: 0.7;
    pointer-events: none;
  }

  /* Hide desktop navigation on mobile */
  .desktop-nav {
    display: none !important;
  }
}

/* Responsive Navigation Improvements */
@media (max-width: 991px) {
  /* Mobile header padding - make it larger */
  .custom-navbar {
    padding: 1.2rem 0;
  }

  /* Mobile logo adjustments - larger sizes */
  .logo-img {
    width: 75px;
    height: 75px;
    margin-right: 0.7rem;
  }

  .logo-title-img {
    height: 45px;
    max-width: 200px;
  }
}

@media (max-width: 640px) {
  .custom-navbar {
    padding: 1rem 0;
  }

  .custom-navbar .logo-img,
  .navbar-brand .logo-img {
    width: 70px;
    height: 70px;
    margin-right: 0.6rem;
    animation: none !important;
  }

  .logo-title-img {
    height: 42px;
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .custom-navbar {
    padding: 0.9rem 0;
  }

  .custom-navbar .logo-img,
  .navbar-brand .logo-img {
    width: 65px;
    height: 65px;
    margin-right: 0.5rem;
    animation: none !important;
  }

  .logo-title-img {
    height: 38px;
    max-width: 140px;
  }
}

/* Image Overlay Sections - Attractive text on images with parallax */
.image-overlay-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Enable parallax effect */
  background-repeat: no-repeat;
  color: var(--text-white);
  text-align: center;
  overflow: hidden;
}

/* Enhanced parallax for desktop */
@media (min-width: 768px) {
  .image-overlay-section {
    background-attachment: fixed !important;
  }
}

/* Mobile fallback - disable parallax for better performance */
@media (max-width: 767px) {
  .image-overlay-section {
    background-attachment: scroll !important;
  }
}

/* Dark overlay for text readability */
.image-overlay-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(38, 80, 99, 0.4) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

/* Content positioning above overlay */
.image-overlay-section .container {
  position: relative;
  z-index: 2;
}

.image-overlay-section .hero-title {
  color: var(--text-white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
}

.image-overlay-section .hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.image-overlay-section .section-title {
  color: var(--text-white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.image-overlay-section .feature-description {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Parallax effect for desktop */
@media (min-width: 768px) {
  .image-overlay-section {
    background-attachment: fixed;
  }
}

/* Mobile optimization - alternative parallax approach */
@media (max-width: 767px) {
  .image-overlay-section {
    background-attachment: scroll;
    min-height: 50vh;
    /* Simple mobile parallax using transform3d */
    transform-style: preserve-3d;
    perspective: 1px;
  }

  /* Create pseudo-parallax effect on mobile */
  .image-overlay-section::before {
    transform: translateZ(-1px) scale(2);
    z-index: -1;
  }

  /* Ensure content stays above parallax background */
  .image-overlay-section .container {
    transform: translateZ(0);
    position: relative;
    z-index: 2;
  }
}

/* Facility showcase section with image overlay */
.facility-showcase {
  background-image: url("/images/hero-image-3.jpg");
  min-height: 70vh;
}

/* Quality showcase section with image overlay */
.quality-showcase {
  background-image: url("/images/front-view-vegetable.jpg");
  min-height: 65vh;
}

/* Production showcase section with image overlay */
.production-showcase {
  background-image: url("/images/hero-image-2.jpg");
  min-height: 60vh;
  padding-top: 120px; /* Extra padding to account for fixed header */
}

/* Enhanced image card with overlay text */
.image-card-overlay {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: var(--text-white);
  box-shadow: var(--box-shadow-medium);
  transition: transform 0.3s ease;
}

.image-card-overlay:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Gradient overlay for card readability - lighter to show more image */
.image-card-overlay::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* Reduced from 70% to show more image */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    /* Slightly less opaque */ rgba(0, 0, 0, 0.4) 40%,
    /* Much less opaque */ rgba(0, 0, 0, 0.1) 70%,
    /* Very light */ transparent 100%
  );
  z-index: 1;
}

.image-card-overlay .card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
}

.image-card-overlay .card-title {
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.image-card-overlay .card-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Split section with image and content */
.split-image-section {
  display: flex;
  min-height: 60vh;
  align-items: stretch;
}

.split-image-section .image-half {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.split-image-section .content-half {
  flex: 1;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--gradient-card);
}

.split-image-section .content-half .section-title {
  text-align: left;
  margin-bottom: 2rem;
}

.split-image-section .content-half .feature-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Responsive adjustments for split section */
@media (max-width: 768px) {
  .split-image-section {
    flex-direction: column;
    min-height: auto;
  }

  .split-image-section .image-half {
    min-height: 300px;
  }

  .split-image-section .content-half {
    padding: 3rem 2rem;
  }
}

/* CTA overlay section */
.cta-overlay-section {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--text-white);
}

.cta-overlay-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(38, 80, 99, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.cta-overlay-section .container {
  position: relative;
  z-index: 2;
}

.cta-overlay-section .cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-white);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.cta-overlay-section .cta-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-overlay-section .btn-primary {
  background: var(--text-white);
  color: var(--logo-bg);
  border-color: var(--text-white);
  font-weight: 700;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

.cta-overlay-section .btn-primary:hover {
  background: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

/* Product Gallery Images - Fix overflow and styling */
.product-gallery-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  filter: brightness(0.9) contrast(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /* Performance optimizations */
  aspect-ratio: 16/9;
  /* Enable GPU acceleration for smoother scrolling */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Optimize for rendering performance */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Prevent overflow */
  display: block;
  margin: 0 auto;
}

/* ================================
   SIMPLE VEGETABLE FLIP CARDS
   ================================ */

.veggie-flip-card {
  width: 100%;
  height: 300px;
  perspective: 1000px;
  margin-bottom: 2rem;
}

.veggie-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.veggie-flip-card.flipped .veggie-card-inner {
  transform: rotateY(180deg);
}

.veggie-card-front,
.veggie-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.veggie-card-front {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.veggie-card-back {
  background: linear-gradient(135deg, #265063 0%, #4a90a4 100%);
  color: white;
  transform: rotateY(180deg);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.veggie-back-image-section {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.veggie-back-text-section {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(38, 80, 99, 0.95);
  border-radius: 0 0 8px 8px;
}

.veggie-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10;
}

.veggie-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.veggie-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #87ceeb 0%, rgba(38, 80, 99, 0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(38, 80, 99, 0.15);
}

.veggie-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #265063;
}

.veggie-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  text-align: center;
}

.veggie-flip-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #265063;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.veggie-flip-btn:hover {
  background: #1a4a5c;
  transform: scale(1.1);
}

.veggie-back-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.veggie-back-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .veggie-flip-card {
    height: 280px;
  }

  .veggie-flip-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .veggie-close-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    top: 10px;
    right: 10px;
  }

  .veggie-back-text-section {
    padding: 1rem;
  }
}

/* Dynamic Animations & Effects */

/* Smooth fade-in animations for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Apply animations to sections */
.hero-section {
  animation: fadeInUp 1s ease-out;
}

.products-section {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Product cards with enhanced hover effects */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.product-card:hover::before {
  left: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card:hover .product-icon {
  transform: scale(1.1) rotate(5deg);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Button animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--accent-blue), #0052a3);
}

/* Section titles with animated underline */
.section-title {
  position: relative;
  overflow: hidden;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), #0052a3);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.section-title.animate::after {
  width: 80px;
}

/* Image overlay cards with dynamic effects */
.image-card-overlay {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border-radius: 12px;
}

.image-card-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.image-card-overlay:hover::before {
  opacity: 0;
}

.image-card-overlay:hover {
  transform: none;
}

.image-card-overlay .card-content {
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.image-card-overlay:hover .card-content {
  transform: none;
}

/* Hero content animations */
.hero-content {
  animation: fadeInUp 1.2s ease-out;
}

.hero-title {
  animation: fadeInLeft 1s ease-out 0.3s both;
}

.hero-subtitle {
  animation: fadeInRight 1s ease-out 0.6s both;
}

/* Navigation hover effects */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--accent-blue);
  transition: width 0.3s ease;
}

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

/* Floating animation for icons */
.floating {
  animation: float 3s ease-in-out infinite;
}

/* Staggered animations for multiple elements */
.stagger-1 {
  animation-delay: 0.1s;
}
.stagger-2 {
  animation-delay: 0.2s;
}
.stagger-3 {
  animation-delay: 0.3s;
}
.stagger-4 {
  animation-delay: 0.4s;
}

/* Scroll-triggered animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced carousel with scale effect */
.carousel-slide {
  transition: left 1s ease-in-out, transform 0.3s ease;
}

.carousel-slide:hover {
  transform: scale(1.02);
}

/* Responsive animations */
@media (max-width: 768px) {
  .product-card:hover {
    transform: translateY(-4px);
  }

  .btn:hover {
    transform: translateY(-1px);
  }

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

/* Loading animation for images */
.image-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Custom Container for Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

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

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
}

/* Mobile Spacing Optimizations - Clean Style */
@media (max-width: 768px) {
  .hero-section {
    padding: 1.5rem 0 3rem;
    margin-top: 70px;
    min-height: 60vh;
  }

  .hero-section.contact-hero {
    padding: 1rem 0 1.5rem;
    margin-top: 70px;
    min-height: 25vh;
  }

  .hero-section.contact-hero .hero-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .hero-section.contact-hero .hero-subtitle {
    font-size: 1rem;
  }

  .products-section {
    padding: 4rem 0;
  }

  .features-section {
    padding: 4rem 0;
  }

  .showcase-section {
    padding: 4rem 0;
  }

  .footer {
    padding: 3rem 0 2rem;
  }

  .hero-title {
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    margin-bottom: 2rem;
  }

  .section-title {
    margin-bottom: 2.5rem;
    font-size: 2rem;
  }

  .product-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }

  .product-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .product-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
  }

  .product-description {
    margin-bottom: 1rem;
  }

  .footer-logo-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .footer-logo-img {
    margin-bottom: 1rem;
  }

  .footer-logo {
    margin-bottom: 1rem;
    font-size: 1.8rem;
  }

  .footer-text {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
  }

  .footer-links {
    margin-bottom: 1.5rem;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 1rem 0 3rem;
    margin-top: 65px;
    min-height: 60vh;
  }

  .hero-section.contact-hero {
    padding: 0.75rem 0 1.25rem;
    margin-top: 65px;
    min-height: 20vh;
  }

  .hero-section.contact-hero .hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .hero-section.contact-hero .hero-subtitle {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .products-section {
    padding: 3rem 0;
  }

  .features-section {
    padding: 3rem 0;
  }

  .showcase-section {
    padding: 3rem 0;
  }

  .footer {
    padding: 2rem 0 1.5rem;
  }

  .hero-title {
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }

  .section-title {
    margin-bottom: 2rem;
    font-size: 2rem;
  }

  .product-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }

  .product-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
  }

  .product-title {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
  }

  .product-description {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
  }

  .footer-logo-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .footer-logo {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .footer-text {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  .footer-links {
    margin-bottom: 1.5rem;
    gap: 1.5rem;
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile Contact Form Optimizations */
@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: var(--gradient-card);
  }

  .form-label {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .form-control {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-elegant);
    background: var(--light-bg);
    transition: all 0.3s ease;
    min-height: 48px; /* Better touch target */
  }

  .form-control:focus {
    border-color: var(--logo-bg);
    box-shadow: 0 0 0 3px rgba(38, 80, 99, 0.1);
    transform: translateY(-1px);
  }

  .form-control::placeholder {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.8;
  }

  /* Textarea specific styling */
  textarea.form-control {
    min-height: 120px;
    resize: vertical;
    padding: 1rem 1.25rem;
  }

  .btn-primary {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(38, 80, 99, 0.2);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 80, 99, 0.3);
  }

  .row {
    margin-bottom: 0;
  }

  .mb-3 {
    margin-bottom: 0 !important;
  }

  /* Better spacing for form groups */
  .form-group {
    margin-bottom: 1.5rem;
  }

  /* Enhanced checkbox styling for mobile */
  .form-check {
    padding: 1rem;
    background: rgba(38, 80, 99, 0.05);
    border-radius: 8px;
    margin: 1.5rem 0;
  }

  .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.1rem;
  }

  .form-check-label {
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 0.5rem;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1.25rem;
    margin: 0.5rem;
  }

  .form-control {
    padding: 1rem;
    font-size: 16px; /* Prevent zoom on iOS */
    min-height: 44px;
  }

  textarea.form-control {
    min-height: 100px;
    padding: 1rem;
  }

  .btn-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .form-label {
    font-size: 0.95rem;
  }
}

/* ========================================
   COMPREHENSIVE CONTRAST AND READABILITY FIXES
   ======================================== */

/* 1. Ensure section titles are visible on all backgrounds */
.products-section .section-title,
.showcase-section .section-title,
.quality-showcase .section-title {
  color: var(--text-primary) !important;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8) !important;
  font-weight: 700 !important;
}

/* 2. Ensure contact form has proper contrast */
.contact-form {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: var(--box-shadow-light) !important;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: #ffffff !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-light) !important;
}

.contact-form label {
  color: var(--text-primary) !important;
  font-weight: 500 !important;
}

/* 3. Image overlay cards - solid background for text readability with lighter overlay */
.image-card-overlay .card-content {
  background: rgba(
    0,
    0,
    0,
    0.75
  ) !important; /* Darker solid background for text area */
  backdrop-filter: blur(8px) !important;
  border-radius: 8px !important;
  padding: 1.5rem !important; /* Slightly smaller padding */
  margin: 1rem !important;
}

.image-card-overlay .card-title,
.image-card-overlay .card-description {
  color: #ffffff !important; /* White text on dark background */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* 4. Image overlay sections - ensure text is readable */
.image-overlay-section .section-title,
.image-overlay-section .feature-description {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
}

/* 5. Ensure buttons work on ALL dark backgrounds */
.hero-section .btn-primary,
.features-section .btn-primary,
.cta-overlay-section .btn-primary,
section[style*="background-image"] .btn-primary,
.image-overlay-section .btn-primary {
  background: #ffffff !important;
  color: var(--primary-dark) !important;
  border: 2px solid #ffffff !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.hero-section .btn-primary:hover,
.features-section .btn-primary:hover,
.cta-overlay-section .btn-primary:hover,
section[style*="background-image"] .btn-primary:hover,
.image-overlay-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--primary-dark) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* 6. Product cards in regular sections - ensure readability */
.products-section .product-card .product-title {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

.products-section .product-card .product-description {
  color: var(--text-secondary) !important;
}

/* 7. Ensure CTA overlay text is always visible */
.cta-overlay-section .cta-title {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
  font-weight: 800 !important;
}

.cta-overlay-section .cta-description {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6) !important;
}

/* 8. Override any conflicting animation or gradient backgrounds on cards */
.product-card,
.contact-form {
  background: #ffffff !important;
  background-image: none !important;
}

/* Fix text color in product cards inside features section */
.features-section .product-card .section-title,
.features-section .product-card .product-title,
.features-section .product-card .product-description {
  color: var(--text-primary) !important;
  text-shadow: none !important;
}

.features-section .contact-form .section-title {
  color: var(--text-primary) !important;
  text-shadow: none !important;
}

/* 9. Ensure feature items maintain original simple styling */
.features-section .feature-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 1.5rem !important;
  text-align: center !important;
}
