/* ===========================
   Reset & Base Styles
=========================== */
html { scroll-behavior: smooth; }

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* ===========================
   Navbar
=========================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s, box-shadow 0.3s, padding 0.2s;
  padding: 1rem 2rem;
}
nav.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
}
.nav-logo-left img { height: 50px; }
#companyLogo { height: 70px; }
.nav-logo-right img { height: 50px; }
.logo-wrapper { display: flex; align-items: center; }
.nav-links { display: flex; gap: 1.5rem; }

nav:not(.scrolled) .nav-links a { color: #fff; }
nav.scrolled .nav-links a { color: #333; }

.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 1.2rem;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #007BFF;
  border-bottom: 2px solid #007BFF;
}

@media (max-width: 768px) {
  .nav-logo-right, #Logo { display: none !important; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
  .nav-links a { font-size: 1rem; padding: 6px 10px; }
}

/* ===========================
   Header (Video)
=========================== */
.video-header { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.video-header video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.header-content {
  position: relative; z-index: 1; color: #fff; text-align: center;
  top: 50%; transform: translateY(-50%); padding: 0 2rem;
}
.header-content h1 { font-size: 3rem; margin-bottom: 1rem; }
.header-content p { font-size: 1.2rem; }

/* ===========================
   Our Story
=========================== */
.our-story {
  display: flex; flex-wrap: wrap; padding: 60px 20px; background: #f8f8f8;
  align-items: center; justify-content: center;
}
.story-text { flex: 1 1 400px; max-width: 600px; padding: 20px; }
.story-text h4 {
  font-size: 14px; color: #888; margin-bottom: 10px; letter-spacing: 2px; text-transform: uppercase;
}
.story-text h2 { font-size: 28px; margin-bottom: 15px; font-weight: bold; }
.story-text p { font-size: 16px; line-height: 1.6; color: #333; }
.know-more-button {
  display: inline-block; margin-top: 20px; padding: 10px 20px; background-color: #111; color: #fff;
  text-decoration: none; font-weight: bold; transition: background 0.3s ease;
}
.know-more-button:hover { background-color: #3d480c; }
.story-images { flex: 1 1 400px; max-width: 600px; position: relative; padding: 20px; }
.main-image { width: 100%; height: auto; border-radius: 5px; }
.overlay-image {
  position: absolute; bottom: 20px; right: 20px; width: 180px;
  border: 3px solid white; border-radius: 5px;
}
@media (max-width: 768px) {
  .our-story { flex-direction: column; }
  .story-text { margin-bottom: 2rem; }
  .story-images .overlay-image { width: 60%; bottom: -10px; right: 0; }
}

/* ===========================
   Ethos
=========================== */
.ethos-section { background-color: #f1f1f1; padding: 4rem 2rem; text-align: center; }
.ethos-section h2 { font-size: 2rem; margin-bottom: 2rem; }
.ethos-boxes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.ethos-box {
  background-color: #fff; padding: 2rem; border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05); text-align: center;
  border-bottom: 4px solid #ffc107; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ethos-box:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.ethos-box img { height: 60px; margin-bottom: 1rem; }
.ethos-box h3 { margin-bottom: 1rem; color: #007BFF; }
.learn-more-btn {
  display: inline-block; margin-top: 1.2rem; padding: 0.5rem 1.2rem; background-color: #005fa3; color: #fff;
  text-decoration: none; border-radius: 4px; font-weight: bold; transition: background-color 0.3s ease;
}
.learn-more-btn:hover { background-color: #ffc107; }

/* ===========================
   Catalogue
=========================== */
.catalogue-section {
  padding: 8rem 4rem 6rem; max-width: 1200px; margin: 0 auto; text-align: center; animation: fadeIn 1s ease-in-out;
}
.catalogue-section h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.2rem; }
.catalogue-description { max-width: 700px; margin: 0 auto 3rem; font-size: 1.1rem; color: #444; }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; padding: 0 1rem;
}
.product-card {
  background: #fff; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; padding: 1.5rem 1rem;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,0.15); }
.product-card img {
  width: 100%; height: 200px; object-fit: contain; background-color: #f9f9f9; padding: 10px; border-radius: 8px; transition: transform 0.4s ease;
}
.product-card:hover img { transform: scale(1.05); }
.product-card h3 { font-size: 1.1rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.product-card p { font-size: 0.95rem; color: #666; margin: 0.25rem 0; }
.no-image {
  width: 100%; height: 200px; background-color: #f5f5f5; display: flex; align-items: center; justify-content: center;
  font-weight: bold; color: #999; border-radius: 8px;
}
.no-items { grid-column: 1 / -1; text-align: center; color: #999; font-style: italic; margin-top: 2rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===========================
   Counters
=========================== */
.counters {
  display: flex; justify-content: center; gap: 40px; padding: 60px 20px;
  background-color: #fefefe;
  background-image: url("https://www.transparenttextures.com/patterns/black-twill.png");
  background-size: auto; text-align: center; color: #333;
}
.counter-box h3 { font-size: 48px; font-weight: bold; color: #000; display: inline-block; }
.counter-box h3 .plus { font-size: 36px; font-weight: bold; vertical-align: top; margin-left: 4px; color: #000; }
.counter-box p { font-size: 16px; margin-top: 8px; color: #555; }

/* ===========================
   Testimonials
=========================== */
.testimonials-section { background-color: #f9f9f9; padding: 60px 20px; text-align: center; }
.testimonials-section h2 { font-size: 2rem; margin-bottom: 30px; color: #222; font-weight: 700; letter-spacing: 1px; }
.testimonial-viewport {
  height: 160px; overflow: hidden; position: relative; max-width: 600px; margin: 0 auto;
}
.testimonial-slider { display: flex; flex-direction: column; animation: scrollTestimonials 18s linear infinite; }
.testimonial {
  padding: 20px; background: #fff; border-radius: 10px; margin: 10px 0; box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.testimonial p { font-size: 1.05rem; color: #555; margin-bottom: 10px; }
.testimonial h5 { font-size: 0.95rem; color: #007BFF; font-weight: 600; }
@keyframes scrollTestimonials { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* ===========================
   Why Choose Us  (Desktop: auto-scroll; Mobile/Touch: swipe)
=========================== */
.why-choose-us { padding: 60px 0; background: #fefefe; text-align: center; }
.why-choose-us h2 { font-size: 2rem; margin-bottom: 40px; color: #222; }
.why-choose-us h2 span { color: #c0392b; }

/* Scroll wrapper (desktop default: hide overflow) */
.why-scroll {
  width: 100%;
  overflow: hidden;               /* desktop default */
  position: relative;
}

/* Track */
.why-track {
  display: flex;
  gap: 30px;
  width: max-content;             /* prevent shrinking */
  will-change: transform;
}

/* Cards */
.feature-card {
  min-width: 280px; max-width: 320px; flex: 0 0 auto;
  background: #fff; padding: 30px 20px; border-radius: 12px; border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-card .icon { font-size: 40px; margin-bottom: 15px; color: #c0392b; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: #555; }

/* ===========================
   Certifications  (same behavior)
=========================== */
.certifications { padding: 80px 20px; background: #f9f9f9; text-align: center; overflow: hidden; }
.certifications h2 { font-size: 2.2rem; margin-bottom: 40px; color: #222; }
.certifications h2 span { color: #c0392b; }

.cert-scroll {
  position: relative;
  width: 100%;
  overflow: hidden;               /* desktop default */
}
.cert-track {
  display: flex;
  gap: 40px;
  width: max-content;
  will-change: transform;
}
.cert-card {
  min-width: 280px; max-width: 320px; flex: 0 0 auto;
  background: #fefefe; padding: 40px 20px; border-radius: 12px; text-align: center;
  border: 2px solid #eee; box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cert-card .icon { font-size: 48px; margin-bottom: 20px; color: #c0392b; }
.cert-card h3 { font-size: 20px; font-weight: bold; margin-bottom: 12px; color: #000; }
.cert-card p { font-size: 16px; color: #555; line-height: 1.4; }
.cert-card:hover { transform: translateY(-8px) scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

/* ===== Desktop auto-scroll only (fine pointer & wide) ===== */
@media (min-width: 769px) and (pointer: fine) {
  .why-track,
  .cert-track {
    animation: scrollLeft 25s linear infinite;
  }
}

/* Smooth marquee (requires duplicated items in HTML for perfect loop) */
@keyframes scrollLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Mobile/Touch: swipe with snap; animation off ===== */
@media (max-width: 768px), (pointer: coarse) {
  .why-scroll,
  .cert-scroll {
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .why-track,
  .cert-track {
    gap: 16px;
    animation: none !important;
  }

  /* Make each card wide so there is always horizontal overflow */
  .feature-card,
  .cert-card {
    min-width: 85vw;       /* ensures swipe even with few cards */
    scroll-snap-align: start;
  }

  /* Hide scrollbars */
  .why-scroll::-webkit-scrollbar,
  .cert-scroll::-webkit-scrollbar { display: none; }
  .why-scroll, .cert-scroll { scrollbar-width: none; }
}

/* ===========================
   Footer
=========================== */
footer { background-color: #1f1f1f; color: white; padding: 3rem; font-size: 14px; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-column { flex: 1 1 200px; min-width: 200px; }
.footer-column h4 { margin-bottom: 10px; }
.footer-column p, .footer-column a { color: #d3d3d3; margin: 5px 0; text-decoration: none; }
.footer-column a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid #444; margin-top: 1rem; padding-top: 1rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 13px;
}
.footer-links a { color: #d3d3d3; margin-left: 15px; text-decoration: none; }
.footer-links a:hover { color: #ffffff; }

/* ===========================
   Modal
=========================== */
.modal {
  display: none; position: fixed; z-index: 999; inset: 0; width: 100%; height: 100%;
  overflow: auto; background: rgba(0,0,0,0.6); transition: opacity 0.3s ease;
}
.modal-content {
  background: #fff; margin: 8% auto; padding: 30px; border-radius: 12px; width: 70%; max-width: 800px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2); transform-origin: center; animation: flipIn 0.6s ease-in-out;
}
.close { color: #333; float: right; font-size: 26px; font-weight: bold; cursor: pointer; }
.close:hover { color: #d00; }
@keyframes flipIn {
  from { transform: perspective(800px) rotateY(90deg); opacity: 0; }
  to   { transform: perspective(800px) rotateY(0);    opacity: 1; }
}
@keyframes flipOut {
  from { transform: perspective(800px) rotateY(0);    opacity: 1; }
  to   { transform: perspective(800px) rotateY(90deg); opacity: 0; }
}
/* ===========================
   Hide Scrollbars (but keep scroll/swipe)
=========================== */
.why-scroll,
.cert-scroll {
  -ms-overflow-style: none;   /* IE, Edge */
  scrollbar-width: none;      /* Firefox */
}

.why-scroll::-webkit-scrollbar,
.cert-scroll::-webkit-scrollbar {
  display: none;              /* Chrome, Safari, Opera */
}

