/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #1f3d2b; /* Dark olive green */
  --secondary-color: #3a3a3a; /* Warm grey */
  --success-color: #2d5a2d; /* Dark green */
  --warning-color: #c7a14a; /* Muted gold */
  --light-bg: #f7f6f2; /* Off-white */
  --dark-text: #1a1a1a; /* Charcoal */

  --heading-font: 'Playfair Display', serif;
  --body-font: 'Inter', sans-serif;

  --font-size-base: 1rem;
  --line-height-base: 1.6;

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 3rem;

  --border-radius: 0.25rem;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.12);

  --transition: 0.4s ease;
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: 80px;
  font-family: "Inter", sans-serif;
  color: #f5f5f5;
  overflow-x: hidden;
}

/* ===== SITE HEADER STYLES ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: top 0.3s ease;
  padding: 0.5rem 0; /* Add vertical padding */
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.site-header .navbar-toggler {
  margin-left: auto;
  order: 2;
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
}

.site-header .navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  padding: 0.375rem 0.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.site-header .navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.site-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  filter: none;
}

.site-header .navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem; /* Space between nav links */
}

.site-header .navbar-nav .nav-item {
  margin: 0;
}

.site-header .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.site-header .navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

.site-header .navbar-collapse {
  display: flex;
  align-items: center;
}

/* Mobile navigation - show on all screens smaller than desktop */
@media (max-width: 991px) {
  .site-header .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 0.75rem;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Force display for debugging */
    display: flex !important;
  }

  .site-header .navbar-collapse.show .navbar-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  /* Make mobile nav links highly visible */
  .site-header .navbar-nav .nav-link {
    color: #1a1a1a !important;
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 1.1rem;
    border: 2px solid #e9ecef;
    margin: 0.25rem 0;
    display: block;
    text-decoration: none;
  }

  .site-header .navbar-nav .nav-link:hover {
    background-color: #1f3d2b;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(31, 61, 43, 0.3);
    border-color: #1f3d2b;
  }

  .site-header .navbar-nav .nav-link.active {
    background-color: #1f3d2b;
    color: white !important;
    border-color: #1f3d2b;
  }
}

/* Extra small screens - ensure menu is always accessible */
@media (max-width: 576px) {
  .site-header .navbar-nav {
    left: 0.5rem;
    right: 0.5rem;
    padding: 1rem;
  }

  .site-header .navbar-toggler {
    padding: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
  }
}

.navbar-logo {
  height: 100px;
  width: auto;
  max-width: 240px;
  margin-right: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-logo:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: var(--spacing-lg);
  color: white;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-background {
  position: fixed;
  inset: 0;
  background: url("../assets/hero.jpg") center / cover no-repeat;
  z-index: -2;
}

.page-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

.page-content {
  position: relative;
  z-index: 1;
}

/* ===== HERO SECTION (Updated) ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  width: 100%;
  max-width: 1100px;
  padding: 2rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  margin: 0 1rem;
}

.hero-content h1 {
  color: #ffffff;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
}

.hero-badges span {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Content panels with glass‑morphism */
.section-panel {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 4rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  color: white;
}

.section-panel h1,
.section-panel h2,
.section-panel h3,
.section-panel h4,
.section-panel h5,
.section-panel h6 {
  color: white;
}

.product-card {
  color: var(--dark-text);
}

.product-card h6 {
  color: var(--primary-color);
}

.cta-panel {
  max-width: 900px;
  margin: 6rem auto;
  padding: 3.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  color: white;
  text-align: center;
}

/* Grid layout for product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.product-card {
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.06);
}

.product-content {
  padding: 1.8rem;
  flex: 1;
  text-align: center;
}

/* ===== CERTIFICATIONS PAGE ===== */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.certification-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  transition: all 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.12);
}

.cert-logo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cert-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cert-logo img:hover {
  transform: scale(1.05);
}

.cert-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: black;
  margin-bottom: 0.75rem;
}

.cert-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

.cert-hint {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
  font-style: italic;
}

.gold-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #c7a14a, #d4af37);
  border-radius: 2px;
}

.product-meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

/* Export metadata line */
.export-meta {
  font-size: 0.85rem;
  color: var(--dark-text);
  margin-bottom: var(--spacing-sm);
}

.hero-badges {
  display: flex;
  gap: 0.6rem;
  margin: 1.6rem 0;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
}



.hero-badges span {
  display: inline-block;
  background: rgba(20, 83, 45, 0.85);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

.hero-actions .btn-primary {
  border: 1px solid #fff;
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;}

.hero-actions .btn-secondary {
  border: 1px solid #fff;
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
}

.min-vh-75 {
  min-height: 75vh;
}

.certifications {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.cert-badge {
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== WHY CHOOSE US ===== */
#why-choose-us {
  text-align: center;
}

.glass-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#why-choose-us h2 {
  color: white;
  margin-bottom: 50px;
  font-size: 2.5em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  backdrop-filter: blur(8px);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

.feature-item i {
  font-size: 3em;
  color: #c7a14a;
  margin-bottom: 15px;
}

.feature-item h3 {
  color: white;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.feature-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1em;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .glass-container {
    padding: 2rem;
  }

  /* Make feature item text black on mobile for visibility */
  .feature-item h3,
  .feature-item p {
    color: #333 !important;
  }
}



/* ===== QUALITY SECTION ===== */
.cert-card {
  border: 1px solid #e0e0e0;
  background-color: #fff;
  transition: var(--transition);
  color: var(--dark-text);
}

.cert-card:hover {
  box-shadow: var(--shadow);
}

/* ===== GLOBAL REACH ===== */
#global-reach {
  padding: var(--spacing-xl) 0;
}



/* ===== CTA SECTION ===== */
.bg-cta {
  background-color: #1f3d2b; /* Dark earthy green/charcoal */
}

.cta-section {
  padding: var(--spacing-xl) 0;
  color: white;
}

.cta-section h2,
.cta-section p {
  color: white;
}

.btn-whatsapp-cta {
  background-color: #2d5a2d; /* Dark green */
  border-color: #2d5a2d;
  color: white;
}

.btn-whatsapp-cta:hover {
  background-color: #244824;
  border-color: #244824;
  color: white;
}

.btn-outline-white {
  border-color: white;
  color: white;
  background-color: transparent;
}

.btn-outline-white:hover {
  background-color: white;
  color: #1f3d2b;
}

/* ===== BUTTONS ===== */
.btn {
  font-family: var(--body-font);
  font-weight: 500;
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) var(--spacing-lg);
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #1a3524;
  border-color: #1a3524;
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-success:hover {
  background-color: #244824;
  border-color: #244824;
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
}

.fade-in-up.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===== APPLE-STYLE CAROUSEL ===== */
.apple-carousel-container {
  position: relative;
  overflow: visible;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 50;
  pointer-events: auto;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.carousel-arrow-left {
  left: -24px;
}

.carousel-arrow-right {
  right: -24px;
}

.carousel-arrow i {
  font-size: 1.2rem;
  color: #333;
}

.apple-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 6rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.apple-carousel::-webkit-scrollbar {
  display: none;
}

.apple-carousel .product-card {
  min-width: 320px;
  max-width: 320px;
  background: #ffffff;
  border-radius: 22px;
  padding: 2rem;
  text-align: center;
  scroll-snap-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  flex-shrink: 0;
}

.apple-carousel .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

.apple-carousel .product-card img {
  height: 400px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.apple-carousel .product-card h6 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.apple-carousel .product-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.2rem;
}

.apple-carousel .product-card button {
  background: #14532d;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apple-carousel .product-card button:hover {
  background: #0f4223;
  transform: scale(1.05);
}

.apple-carousel .product-content {
  margin-top: 1rem;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  width: 56px;
  height: 56px;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 100;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
}

/* ===== RESPONSIVE ===== */
/* Comprehensive mobile layout centering fixes */
@media (max-width: 768px) {
  /* Fix Bootstrap row negative margins causing left shift */
  .row {
    margin-left: 0;
    margin-right: 0;
  }

  /* Force all layout containers to be centered */
  .container,
  .section-panel,
  .glass-container,
  .hero,
  .page-content,
  .hero-content,
  .cta-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Center hero and section content */
  .hero,
  .section-panel,
  .glass-container,
  .hero-content,
  .cta-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Ensure navbar container is centered */
  .navbar .container {
    justify-content: space-between !important;
  }

  /* Existing responsive styles */
  .hero-section .col-lg-7 {
    text-align: center;
  }

  .certifications {
    justify-content: center;
  }

  .d-flex.gap-3 {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .apple-carousel {
    padding: 1rem 2rem;
  }

  .apple-carousel .product-card {
    min-width: 280px;
    max-width: 280px;
  }

  .features {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 72px;
  }

  .hero {
    min-height: calc(100vh - 72px);
  }

  .hero-content {
    padding: 0 1rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Mobile globe centering and sizing - canvas-specific fix */
  @media (max-width: 768px) {
    .globe-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      position: relative;
      height: min(60vh, 360px);
      padding: 20px 15px;
      overflow: visible;
      margin-bottom: 80px;
    }

    #globeViz {
      width: 100%;
      max-width: 320px;
      height: auto;
      position: relative;
      display: block;
      aspect-ratio: 1 / 1;
    }

    /* Canvas scaling for WebGL rendering */
    #globeViz canvas {
      width: 100% !important;
      height: auto !important;
      max-width: 320px;
      aspect-ratio: 1 / 1;
      display: block !important;
      margin: 0 !important;
      padding: 0 !important;
    }
  }

  /* Remove Bootstrap column padding on mobile */
  .col-lg-6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  .hero-section {
    padding: var(--spacing-lg) 0;
  }

  .product-card .card-img-wrapper {
    height: 140px;
  }

  .apple-carousel {
    padding: 1rem;
  }

  .apple-carousel .product-card {
    min-width: 250px;
    max-width: 250px;
    padding: 1.5rem;
  }

  .apple-carousel .product-card img {
    height: 160px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ===== FOOTER ===== */
.glass-footer {
  color: white;
}

.glass-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.glass-footer a:hover {
  color: white;
  text-decoration: underline;
}

/* ===== MODAL STYLES ===== */
.modal-content .modal-body p {
  color: black !important;
}

/* ===== PRINT ===== */
@media print {
  .whatsapp-float,
  .navbar {
    display: none !important;
  }
}
