﻿/* Global reset and base typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

/* CSS variables for colors, surface tones, and shadows */
:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: rgba(245, 247, 250, 0.95);
  --text: #152a3a;
  --muted: #556a7f;
  --green: #4caf50;
  --green-dark: #2e7d32;
  --blue: #2196f3;
  --shadow: 0 28px 80px rgba(17, 38, 60, 0.08);
  --image-placeholder: #f2f6fa;
}

/* Base body background and text color */
html {
  overflow-x: hidden;
  width: 100%;
}

body {
  background: linear-gradient(180deg, #f7fafc 0%, #eef5f9 100%);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
}

/* Make images scale to the container width */
img {
  max-width: 100%;
  display: block;
  background-color: var(--image-placeholder);
}

/* Keep links from inheriting default blue color */
a {
  color: inherit;
}

/* Inherit font from body for form elements */
button,
input,
textarea {
  font: inherit;
}

/* Top bar section: small informational strip above header */
.topbar {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: #f5f6f6;
  color: var(--muted);
  font-size: 0.80rem;
  border-bottom: 1px solid rgba(145, 158, 171, 0.16);
}
.topbar .phone-icon {
  color: #5f8b69 !important; /* green */
}

.topbar .email-icon {
  color: #73a9e4 !important; /* blue */
}

.topbar .location-icon {
  color: #965157 !important; /* red */
}
/* Desktop view */
@media (min-width: 768px) {
  .topbar {
    gap: 1.5rem;       /* more space between items */
    font-size: 0.9rem; /* slightly larger text */
    padding: 1rem 2rem;
  }
}


/* Header stays visible while scrolling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgb(252, 252, 252);
  box-shadow: 0 8px 30px rgba(27, 44, 62, 0.06);
}

/* Main navigation wrapper */
.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand logo and text alignment */
.brand-block {
  display: flex;
  align-items: center;
}

/* Logo container styles */
.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Decorative logo icon */
.logo i {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.18), rgba(76, 175, 80, 0.18));
  color: var(--blue);
}

/* Logo text line spacing */
.logo h1,
.logo span {
  line-height: 1.1;
}

.logo h1 {
  font-size: 1.15rem;
}

/* Small brand label styling */
.logo span {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Navigation links container */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
}

/* Links and buttons inside the navigation */
.nav-links a,
.nav-links button {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.25s ease;
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
.button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brochure-text {
  background: linear-gradient(90deg, #221ab4, #4c4e51);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
/* Hover and active states for navigation items */
.nav-links a:hover,
.nav-links a.active,
.nav-links button:hover,
.nav-links .has-dropdown.open > .dropdown-button {
  color: var(--blue);
}

/* Action buttons on the right side of navigation */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Dropdown parent positioning */
.has-dropdown {
  position: relative;
}

/* Dropdown button styling */
.dropdown-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Hidden dropdown menu that appears on click */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  padding: 0.75rem 0;
  background: #ffffff;
  background-clip: padding-box;
  border-radius: 1rem;
  box-shadow: 0 22px 70px rgba(17, 38, 60, 0.12);
  list-style: none;
  margin: 0;
  display: none;
  border: 1px solid rgba(145, 158, 171, 0.16);
  z-index: 1000;
  pointer-events: auto;
}

/* Show dropdown when the parent has an open class */
.has-dropdown.open > .dropdown-menu {
  display: block;
  z-index: 1000;
}

.dropdown-menu li {
  margin: 0;
}

/* Dropdown links spacing and color */
.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(33, 150, 243, 0.08);
  color: var(--blue);
}

/* Reusable button appearance */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-2px);
}

/* Primary button color and shadow */
.button-primary {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  box-shadow: 0 18px 40px rgba(76, 175, 80, 0.18);
}

/* Secondary button style */
.button-secondary,
.button-accent {
  background: rgba(33, 150, 243, 0.08);
  color: var(--blue);
}

/* Mobile menu toggle hidden on desktop */
.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.35rem;
  color: var(--text);
  cursor: pointer;
}

main {
  overflow: hidden;
}

/* Decorative background shapes in hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(76, 175, 80, 0.16), transparent 33%),
    radial-gradient(circle at bottom right, rgba(33, 150, 243, 0.14), transparent 32%);
}

/* Overlay layer for a soft hero background */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5));
}

/* Hero content and visual share stacking context */
.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: calc(100vh - 4.2rem);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1.5rem 4.5rem;
  overflow: hidden;
}

.hero-content {
  width: min(980px, 100%);
  margin: 0 auto;
  padding-top: 2rem;
}

/* Small badge text above hero title */
.eyebrow {
  display: inline-flex;
  background: rgba(76, 175, 80, 0.12);
  color: var(--green-dark);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Hero headline styling */
.hero h2 {
  font-size: clamp(2rem, 4vw, 5.4rem);
  line-height: 1.02;
  max-width: 100%;
  margin-bottom: 1rem;
}

.hero h2 strong {
  color: var(--green-dark);
}

.hero p,
.hero-description,
.hero-subtitle {
  font-size: 1.15rem;
  max-width: 48rem;
  line-height: 1.9;
  color: #0f4d8e;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  opacity: 0.88;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Stats cards under hero text */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-stats div {
  background: var(--surface);
  border: 1px solid rgba(76, 175, 80, 0.14);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  color: var(--muted);
}

.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

/* Hero card wrapper with soft glass effect */
.hero-card {
  width: min(100%, 540px);
  border-radius: 2rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 252, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: float 6s ease-in-out infinite;
}

.hero-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background-color: var(--image-placeholder);
}

.hero-card-info {
  padding: 1.5rem;
}

.hero-card-info h3 {
  margin: 0 0 0.75rem;
  font-size: 1.7rem;
  color: #0f4d8e;
  line-height: 1.1;
}

.hero-card-info p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-carousel {
  margin: 2.5rem auto 0;
  width: min(100%, 1180px);
  padding: 0rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 251, 0.98));
  border: 1px solid rgba(76, 175, 80, 0.16);
  border-radius: 2.2rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.hero-carousel-head {
  margin-bottom: 1.25rem;
}

.hero-carousel-head h3 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.5rem);
  color: #0f4d8e;
  line-height: 1.05;
}

.hero-carousel-head p {
  margin: 0.65rem 0 0;
  color: #0f4d8e;
  opacity: 0.8;
  font-size: 1rem;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  min-height: 450px;
  aspect-ratio: 16 / 9;
  background: #eef4f8;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 2s ease, transform 2s ease, visibility 2s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  background-color: var(--image-placeholder);
}

.carousel-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 16, 26, 0.72) 100%);
}

.carousel-caption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.carousel-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.carousel-caption p {
  color: #f3f7ff;
  font-size: 0.95rem;
  font-weight: 500;
}

.carousel-dots {
  display: flex;
  gap: 0.55rem;
}

.carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dot:hover,
.carousel-dot.active {
  background: #fff;
  transform: scale(1.08);
}
.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  min-height: 450px;
  aspect-ratio: 16 / 9;
  background: #eef4f8;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .carousel-viewport {
    min-height: auto;       /* let height shrink naturally */
    aspect-ratio: auto;     /* remove fixed ratio */
    height: 250px;          /* set a smaller height */
  }

  .carousel-slide img {
    object-fit: contain;    /* avoid cropping */
  }
}

/* Section heading block used on many page sections */
.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-header span {
  display: inline-flex;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Layout spacing for main content sections */
.about,
.products,
.why,
.solutions,
.gallery,
.testimonials,
.contact {
  padding: 4rem 1.5rem 3.5rem;
}

/* Consistent section header spacing */
.section-header {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
}

/* Medium screen padding adjustments */
@media (max-width: 1024px) {
  .about,
  .products,
  .why,
  .solutions,
  .gallery,
  .testimonials,
  .contact {
    padding: 3.25rem 1.25rem 3rem;
  }
}

/* Smaller screens need tighter paddings */
@media (max-width: 780px) {
  .about,
  .products,
  .why,
  .solutions,
  .gallery,
  .testimonials,
  .contact {
    padding: 2.75rem 1rem 2.5rem;
  }

  .section-header {
    margin-bottom: 1.25rem;
    text-align: left;
  }
}

/* Grid for about section content */
/* =========================
   ABOUT SECTION
========================= */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.about-text,
.about-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-panel {
  position: relative;
  padding: 2rem;
  border-radius: 1.8rem;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.96),
    rgba(243,248,255,0.98)
  );

  border: 1px solid rgba(255,255,255,0.5);

  box-shadow:
    0 15px 40px rgba(15,23,42,0.08);

  transition: all 0.3s ease;
}

.about-panel:hover {
  transform: translateY(-4px);
}

.about-panel::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    rgba(109, 173, 224, 0.15),
    transparent 70%
  );
}

.about-panel::after {
  content: "";
  position: 30%;
  bottom: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    rgba(145, 221, 148, 0.12),
    transparent 70%
  );
}

.panel-label {
  position: relative;
  margin-bottom: 1rem;
}

.panel-label::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin-top: 0.5rem;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    #4caf50,
    #2196f3
  );
}

.about-panel h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #0f4d8e;
}

.about-panel p {
  margin: 0;
  line-height: 1.8;
  color: #4b5c6d;
}

/* Mission Card */

.mission {
  min-height: 320px;
}

/* Vision Card */

.vision {
  min-height: 180px;
}

/* Process Card */

.about-process {
  min-height: 110px;
  padding: 1.5rem 2rem;
}

.about-process p {
  font-size: 0.95rem;
  color: #4b5c6d;
}

/* Process Image Box Inside Panel */
.process-image-box {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 252, 241, 0.5), rgba(236, 245, 255, 0.5));
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 300px;
  margin-top: 1rem;
}

.process-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Process Image */

.about-image-main {
  flex: 1;
  aspect-ratio: 3 / 2;           /* Reserves space before image loads (improves CLS) */
  min-height: 420px;
  overflow: hidden;
  border-radius: 1.8rem;
  background: #ffffff;           /* Prevents blank transparent area while loading */
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.about-image-main img {
  width: 100%;
  height: 90%;
  display: block;
  object-fit: cover;           /* Best for process diagrams */
  object-position: center;
  background-color: var(--image-placeholder);
}
/* =========================
   MOBILE & TABLET
========================= */
/* =========================
   TABLET VIEW
========================= */

@media (max-width: 1024px) {

  .about-image-main {
    min-height: 340px;
  }

}

/* =========================
   MOBILE VIEW
========================= */

@media (max-width: 768px) {

  .about-image-main {
    min-height: 250px;
    border-radius: 1.2rem;
  }

}

@media (max-width: 1024px) {
  .carousel-viewport {
    min-height: 360px;
  }
}

@media (max-width: 900px) {

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-text,
  .about-images {
    gap: 1.25rem;
  }

  .mission,
  .vision,
  .about-process {
    min-height: auto;
  }

  .about-image-main {
    min-height: 280px;
  }

  .about-panel {
    padding: 1.5rem;
  }

  .about-panel h3 {
    font-size: 1.3rem;
  }

  .about-panel p {
    font-size: 0.95rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .hero-carousel {
    margin-top: 1.5rem;
  }

  .carousel-viewport {
    min-height: 300px;
  }

  .carousel-container {
    grid-template-columns: 1fr;
  }

  .carousel-nav {
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (max-width: 600px) {
  .carousel-viewport {
    min-height: 240px;
  }

  .carousel-overlay {
    padding: 0.9rem;
  }

  .carousel-caption p {
    font-size: 0.85rem;
  }
}

/* Product section: grid of product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}

/* Individual product card layout */
.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

/* Product card image styling */
.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Product card text content spacing */
.product-card-content {
  display: grid;
  gap: 1rem;
}

.product-card-content h3 {
  margin: 0;
}

.product-card-content p {
  color: var(--muted);
  line-height: 1.8;
}

/* Minimal text-style button */
.button-text {
  color: var(--blue);
  background: transparent;
  padding: 0;
}
.carousel-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: #0f7566; /* highlight active dot */
}

/* Feature, solution, testimonial, gallery and contact grids */
.feature-grid,
.solutions-grid,
.testimonials-grid,
.gallery-grid,
.contact-grid {
  display: grid;
  gap: 1.75rem;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  padding: 2.6rem 1.8rem;
  display: grid;
  gap: 1rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(243,249,255,0.96));
  border: 1px solid rgba(33, 150, 243, 0.14);
  border-radius: 2rem;
  box-shadow: 0 25px 55px rgba(36, 68, 104, 0.08);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  top: -30px;
  right: -30px;
  background: radial-gradient(circle at top right, rgba(76, 175, 80, 0.18), transparent 60%);
  border-radius: 2rem;
  z-index: 0;
}

.feature-card * {
  position: relative;
  z-index: 1;
}

.feature-card i {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--green-dark);
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(33, 150, 243, 0.18));
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.feature-card h3 {
  margin: 0;
  color: var(--text);
  transition: color 0.25s ease;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.8;
  transition: color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 75px rgba(36, 68, 104, 0.14);
  border-color: rgba(76, 175, 80, 0.22);
}

.feature-card:hover i {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.28), rgba(33, 150, 243, 0.28));
  color: #0b4e34;
}

.feature-card:hover h3,
.feature-card:hover p {
  color: #0d3c63;
}

.feature-card h3:hover,
.feature-card p:hover {
  color: var(--blue);
}

.solutions-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.solution-card {
  text-align: center;
  padding: 2.25rem 1.75rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,249,255,0.96));
  border: 1px solid rgba(76, 175, 80, 0.14);
  border-radius: 2rem;
  box-shadow: 0 25px 55px rgba(36, 68, 104, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.solution-card::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  top: -30px;
  right: -30px;
  background: radial-gradient(circle at top right, rgba(76, 175, 80, 0.18), transparent 55%);
  border-radius: 2rem;
}

.solution-card * {
  position: relative;
  z-index: 1;
}

.solution-card i {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.18), rgba(76, 175, 80, 0.18));
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.solution-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
  transition: color 0.25s ease;
}

.solution-card p {
  color: var(--muted);
  line-height: 1.8;
  transition: color 0.25s ease;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 75px rgba(36, 68, 104, 0.14);
  border-color: rgba(33, 150, 243, 0.22);
}

.solution-card:hover i {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.28), rgba(76, 175, 80, 0.28));
  color: #0a4b7a;
}

.solution-card:hover h3,
.solution-card:hover p {
  color: #0d3c63;
}

.solution-card h3:hover,
.solution-card p:hover {
  color: var(--green-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3
  , 1fr); /* Desktop gallery columns */
  gap: 15px;
}

.gallery-card {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Hover effect for gallery images */
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

/* Tablet gallery layout */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile gallery layout */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Narrow phone gallery layout */
@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.testimonial-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.testimonial-card span {
  color: var(--muted);
}

.contact-grid {
  grid-template-columns: 1.2fr 0.9fr;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: #fff;
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

/* Success message popup styling */
.success-message {
  display: none;
  grid-column: 1 / -1;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(46, 125, 50, 0.08));
  border: 2px solid var(--green);
  border-radius: 1rem;
  color: var(--green-dark);
  font-weight: 500;
  text-align: center;
  animation: slideInUp 0.4s ease;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.success-message i {
  font-size: 1.5rem;
}

.success-message.show {
  display: grid;
}

/* Slide-in animation for success message */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-out animation */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.success-message.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

.contact-info {
  display: grid;
  gap: 1.35rem;
}

.info-block {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.info-block i {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(33, 150, 243, 0.08);
  color: var(--blue);
}

.info-block h3 {
  margin: 0;
}

.info-block p {
  margin: 0;
  color: var(--muted);
}

.map-placeholder {
  min-height: 290px;
  border-radius: 1.75rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(33, 150, 243, 0.08), rgba(76, 175, 80, 0.08));
  border: 1px dashed rgba(76, 175, 80, 0.3);
}

.map-placeholder .google-map {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

/* Footer area background and spacing */
/* =========================
FOOTER SECTION
========================= */

.site-footer {
padding: 3rem 1.5rem 2rem;
background: #f8fbff;
}

/* =========================
FOOTER GRID
========================= */

.footer-grid {
max-width: 1180px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.75rem;
}

/* =========================
FOOTER CARDS
========================= */

.footer-section {
background: linear-gradient(
180deg,
rgba(211, 227, 226, 0.95),
rgba(232, 234, 233, 0.98)
);
border: 1px solid rgba(77, 111, 139, 0.12);
border-radius: 1.5rem;
padding: 2rem;
box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
transition: all 0.3s ease;
}

.footer-section:hover {
transform: translateY(-4px);
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

/* =========================
HEADINGS
========================= */

.footer-section h3,
.footer-section h4 {
margin-bottom: 1rem;
color: var(--text);
font-size: 1.1rem;
font-weight: 700;
}

/* =========================
PARAGRAPHS
========================= */

.footer-section p {
color: var(--muted);
line-height: 1.7;
margin: 0;
}

/* =========================
LISTS
========================= */

.footer-box ul {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 0.85rem;
}

.footer-box li {
margin: 0;
}

/* =========================
LINKS
========================= */

.footer-box li a {
text-decoration: none;
color: var(--text);
font-weight: 500;
transition: all 0.25s ease;
}

.footer-box li a:hover {
color: var(--blue);
padding-left: 4px;
}

/* =========================
SOCIAL CARD
========================= */

.footer-social-box {
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;

background: linear-gradient(
135deg,
rgba(76, 175, 80, 0.08),
rgba(33, 150, 243, 0.08)
);
}

/* =========================
SOCIAL ICONS
========================= */

.social-links {
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
margin-top: 1rem;
}

.social-links a {
width: 3rem;
height: 3rem;

display: flex;
align-items: center;
justify-content: center;

border-radius: 50%;
background: #ffffff;

color: var(--blue);
text-decoration: none;

box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

transition: all 0.3s ease;
}

.social-links a:hover {
background: linear-gradient(
135deg,
var(--green),
var(--blue)
);

color: #ffffff;

transform: translateY(-3px) scale(1.05);
}

/* =========================
CONTACT DETAILS
========================= */

.footer-contact p {
margin-bottom: 0.75rem;
color: var(--muted);
}

.footer-contact a {
color: var(--text);
text-decoration: none;
}

.footer-contact a:hover {
color: var(--blue);
}

/* =========================
FOOTER BOTTOM
========================= */

.footer-bottom {
max-width: 1180px;
margin: 2rem auto 0;
padding-top: 1.5rem;

border-top: 1px solid rgba(0, 0, 0, 0.08);

text-align: center;
color: var(--muted);
font-size: 0.95rem;
}

/* =========================
RESPONSIVE
========================= */

@media (max-width: 900px) {
.footer-grid {
grid-template-columns: 1fr;
}

.footer-section {
padding: 1.5rem;
}

.social-links {
justify-content: center;
}
}

@media (max-width: 480px) {
.site-footer {
padding: 2rem 1rem;
}

.social-links a {
width: 2.75rem;
height: 2.75rem;
}
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(154, 179, 219, 0.7);
  padding: 1.5rem;
  z-index: 120;
}

.lightbox.active {
  display: grid;
}

.lightbox img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 1.5rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.lightbox-title {
  color: #fff;
  margin-top: 1rem;
  text-align: center;
  font-size: 1.05rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  border: none;
  background: rgba(205, 183, 183, 0.12);
  color: #fff;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: button;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3.8rem;
  height: 3.8rem;
  background: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 35px rgba(76, 175, 80, 0.2);
  z-index: 110;
}

.whatsapp-float i,
.whatsapp-float a {
  color: #fff;
  font-size: 1.4rem;
}

/* Reveal animation helper */
.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.section-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Floating animation used for hero card */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Grid layout adaptation for large tablets */
@media (max-width: 1024px) {
  .product-grid,
  .feature-grid,
  .solutions-grid,
  .testimonials-grid,
  .gallery-grid,
  .footer-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile-specific layout changes */
@media (max-width: 780px) {
 
.hero {
    padding-top: 1.25rem;
    min-height: auto;
    justify-content: flex-start;
  }
  .hero-content,
  .hero-visual {
    max-width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    height: auto;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #e3f2ee;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    display: none;
    box-shadow: 0 24px 80px rgba(17, 38, 60, 0.12);
  }

  .nav-links.open {
    display: flex;
    background: #e3f2ee;
  }
  
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
  }

  .dropdown-menu a {
    padding: 0.75rem 0;
  }

  .has-dropdown:hover > .dropdown-menu {
    display: none;
  }

  /* Mobile: Show dropdown when .open class is present */
  /* Mobile: Show dropdown when .open class is present */
  
.has-dropdown.open > .dropdown-menu {
    display: block;
    position: static;
    background: #f6fbfa;
    width: 100%;
    border: 1px solid rgba(145, 158, 171, 0.16);
    border-radius: 0.5rem;
    box-shadow: none;
    margin-top: 0.4rem;
    z-index: auto;
  }
  .has-dropdown.open > .dropdown-menu a {
    padding: 0.6rem 1rem;
    display: block;
    white-space: normal;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .navbar {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .brand-block {
    flex-shrink: 0;
  }

  .nav-actions {
    gap: 0.5rem;
    margin-left: auto;
  }

  .nav-actions .button-secondary {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .nav-actions .brochure-text {
    display: inline;
  }

  .section-header {
    text-align: left;
  }

  .about-grid,
  .footer-grid,
  .feature-grid,
  .solutions-grid,
  .gallery-grid,
  .testimonials-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-section {
    padding: 1.35rem;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section p {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .footer-box ul li a,
  .footer-links a {
    font-size: 0.88rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
    padding-top: 1rem;
  }

  .about-images {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 2.6rem;
  }
}

/* Very small screens adjustments */
@media (max-width: 520px) {
  .topbar {
    flex-direction: column;
    text-align: center;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero-stats div {
    padding: 1rem;
  }

  .button {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
  }

  .whatsapp-float {
    right: 0.9rem;
    bottom: 0.9rem;
  }
}

/* ========================================
   PRODUCT MODAL STYLES
   ======================================== */

/* Modal Overlay */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  visibility: hidden;
  max-height: 90vh;
  max-width: 90vw;
  width: 100%;
  z-index: 999;
  transition: all 0.3s ease;
  overflow: hidden;
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Modal Content */
.modal-content {
  background: var(--bg);
  border-radius: 2rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(76, 175, 80, 0.2);
  transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
  padding: 2.5rem;
}

/* Product Details Grid */
.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

/* Product Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 252, 241, 0.5), rgba(236, 245, 255, 0.5));
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 0.75rem;
}

.modal-thumbnail {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.modal-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-thumbnail:hover {
  border-color: var(--blue);
  transform: scale(1.05);
}

.modal-thumbnail.active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-info h2 {
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--text);
}

.product-category {
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 600;
  text-transform: capitalize;
}

.product-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

/* Product Section */
.product-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-section h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* Features and Applications Lists */
.features-list,
.applications-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.features-list li,
.applications-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.features-list li:before,
.applications-list li:before {
  content: '✓';
  flex-shrink: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: -2px;
}

/* Specifications Table */
.specifications-table {
  background: var(--surface-strong);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(76, 175, 80, 0.14);
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(145, 158, 171, 0.1);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label,
.spec-value {
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}

.spec-label {
  background: rgba(76, 175, 80, 0.05);
  font-weight: 600;
  color: var(--text);
}

.spec-value {
  color: var(--muted);
}

/* Modal Responsive Design */
@media (max-width: 1024px) {
  .product-modal {
    max-width: 95vw;
  }

  .modal-body {
    padding: 2rem;
  }

  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .product-modal {
    max-height: 95vh;
    max-width: 95vw;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 2.2rem;
    height: 2.2rem;
  }

  .product-info h2 {
    font-size: 1.5rem;
  }

  .gallery-main {
    aspect-ratio: 1 / 0.8;
  }
}

@media (max-width: 480px) {
  .product-modal {
    max-height: 98vh;
    max-width: 98vw;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .product-info h2 {
    font-size: 1.3rem;
  }

  .product-section h3 {
    font-size: 1rem;
  }

  .spec-label,
  .spec-value {
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
  }

  .gallery-main {
    aspect-ratio: 1 / 0.7;
  }
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.card-actions .button {
  flex: 1 1 auto;
}

/* ========================================================
   FINAL MOBILE RESPONSIVE OVERRIDES
   (kept at end of file so these rules always win)
======================================================== */

/* ---- Hero carousel: never crop images on mobile ---- */
@media (max-width: 900px) {
  .hero-carousel {
    margin-top: 1.75rem;
    border-radius: 1.4rem;
  }

  .carousel-viewport {
    aspect-ratio: auto;
    min-height: 0;
    height: 62vw;
    max-height: 320px;
    border-radius: 1.2rem;
    background: #eef4f8;
  }

  .carousel-slide img {
    object-fit: contain;
    object-position: center;
  }

  .carousel-overlay {
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 480px) {
  .carousel-viewport {
    height: 68vw;
    max-height: 260px;
  }

  .carousel-caption p {
    font-size: 0.8rem;
  }

  .carousel-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ---- About section: keep process image fully visible on mobile ---- */
@media (max-width: 900px) {
  .about-image-main {
    min-height: 0;
    height: 58vw;
    max-height: 300px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-image-main img {
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 600px) {
  .about-image-main {
    height: 64vw;
    max-height: 260px;
  }

  .about-panel {
    padding: 1.35rem;
  }
}

/* ---- Header: keep nav/brochure controls from overflowing small screens ---- */
@media (max-width: 420px) {
  .navbar {
    padding: 0.75rem 0.9rem;
    gap: 0.4rem;
  }

  .logo {
    gap: 0.55rem;
  }

  .logo img {
    width: 42px !important;
    height: 42px !important;
  }

  .logo h1 {
    font-size: 0.82rem;
    font-weight: 700;
  }

  .logo span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .nav-actions .button-secondary {
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
  }

  .nav-actions .button-secondary i {
    font-size: 0.85rem;
  }

  .menu-toggle {
    font-size: 1.15rem;
  }
}

/* ---- Global overflow safety ---- */
.hero,
.about,
.products,
.gallery,
.contact,
main {
  max-width: 100%;
}

/* Force mobile dropdown panels to be fully opaque and clearly above content */
.nav-links.open {
  z-index: 500;
}

.has-dropdown.open > .dropdown-menu {
  z-index: 500;
}