:root {
  --primary-color: #04518e;
  --accent-color: #00a6fb;
  --background-color: #f8f9fa;
  --text-color: #343a40;
  --light-text-color: #6c757d;
  --white-color: #ffffff;
  --border-color: #e9ecef;
  --nav-height: 70px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  transition: all 0.2s ease-in-out;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}
body {
  font-family: "Lato", sans-serif;
  /* background-color: var(--background-color); */
  background: linear-gradient(to right, #e0e9fa, #ffffff);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--primary-color);
  font-size: 34px;
  line-height: 43px;
  font-weight: 500;
  letter-spacing: 0px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
section {
  padding: 100px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}
/* .section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
} */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn:hover {
  /* transform: translateY(-3px); */
  background-color: #0095e0;
}

/* --- HEADER & NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1002; /* Higher z-index for header */
  height: var(--nav-height);
  transition: all 0.4s ease;
  background-color: #ffffff41;
  backdrop-filter: blur(10px);
}
.header.scrolled {
  background-color: #ffffffb0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.logo {
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: var(--white-color);
}
.header.scrolled .logo {
  color: var(--primary-color);
}
.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
}
.nav-links li {
  margin-left: 35px;
}
.nav-links a {
  color: var(--white-color);
  text-decoration: none;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-weight: 500;
  letter-spacing: 0px;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}
.header.scrolled .nav-links a {
  color: var(--primary-color);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}
.header.scrolled .nav-links a.active {
  color: var(--accent-color) !important;
  font-weight: 600 !important;
}
.header.scrolled .nav-links a::after {
  background-color: var(--accent-color) !important;
}
/* --- HERO SECTION --- */
#hero {
  height: 100vh;
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(4, 81, 142, 0.1),
    rgba(0, 166, 251, 0.05)
  );
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: no-repeat center center/cover;
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.1);
  filter: brightness(0.8) contrast(1.1);
}

.slide.active {
  opacity: 1;
  /* transform: scale(1); */
  filter: brightness(1) contrast(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(13, 44, 84, 0.7),
    rgb(0 166 251 / 25%),
    rgba(13, 44, 84, 0.8)
  );
  backdrop-filter: blur(1px);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 20px;
  transform: translateY(30px);
  opacity: 0;
  animation: heroContentFadeIn 0.5s ease-out 0.5s forwards;
}

@keyframes heroContentFadeIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--white-color);
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: titleSlideIn 0.8s ease-out 0.2s forwards;
}

@keyframes titleSlideIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: subtitleSlideIn 0.8s ease-out 0.4s forwards;
}

@keyframes subtitleSlideIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-content .btn {
  transform: translateY(20px);
  opacity: 0;
  animation: buttonSlideIn 0.8s ease-out 0.6s forwards;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  /* border: 2px solid transparent; */
  background-clip: padding-box;
  box-shadow: 0 8px 25px rgba(4, 81, 142, 0.3);
  transition: all 0.4s ease;
}

.hero-content .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.6s ease;
}

.hero-content .btn:hover::before {
  left: 100%;
}

.hero-content .btn:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 15px 35px rgba(4, 81, 142, 0.4);
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
}

@keyframes buttonSlideIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 4;
}

.indicator {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--white-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.indicator.active {
  background-color: transparent;
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.indicator.active::before {
  width: 100%;
  height: 100%;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

/* Slide transition effects */
.slide {
  animation: slideZoom 30s ease-in-out infinite;
  will-change: transform;
}

.slide.active {
  animation: none;
}

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

/* Floating elements animation */
.hero-content::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  will-change: transform;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(90deg);
  }
}
.section-title {
  position: relative;
}

.section-title::before {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  animation: titleUnderline 2s ease-in-out infinite;
}

@keyframes titleUnderline {
  0%,
  100% {
    width: 80px;
  }
  50% {
    width: 120px;
  }
}
/* --- ABOUT & SERVICES --- */
/* .grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
} */
.whoWeAre-container {
  margin-bottom: 80px;
}
.about-content {
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
}

.about-content p {
  position: relative;
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.2rem;
  text-align: justify;
  transition: all 0.3s ease;
}

.about-content p:hover {
  transform: translateX(10px);
  color: var(--primary-color);
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease;
  transform: perspective(1000px) rotateY(0deg);
}

.about-image:hover {
  transform: perspective(1000px) rotateY(-5deg) translateY(-15px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 20px;
  transition: all 0.6s ease;
  filter: brightness(0.9) contrast(1.1);
}

.about-image:hover img {
  transform: scale(1.08) rotate(1deg);
  filter: brightness(1.1) contrast(1.2) saturate(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(4, 81, 142, 0.85),
    rgba(0, 167, 251, 0.412),
    rgba(4, 81, 142, 0.9)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s ease;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

.about-image:hover .image-overlay {
  opacity: 1;
  transform: scale(1.02);
}

.overlay-content {
  text-align: center;
  color: var(--white-color);
  padding: 30px;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.about-image:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content i {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
  transition: all 0.4s ease;
  transform: scale(0.8);
}

.about-image:hover .overlay-content i {
  transform: scale(1.1) rotate(360deg);
}

.overlay-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--white-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.about-image:hover .overlay-content h3 {
  transform: scale(1.05);
}

.overlay-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.about-image:hover .overlay-content p {
  transform: scale(1.02);
}

/* Floating animation for the image */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.about-image {
  animation: float 6s ease-in-out infinite;
}

.about-image:hover {
  animation: none;
}

/* --- SERVICES SECTION --- */
#services {
  /* background: linear-gradient(
    135deg,
    rgba(248, 249, 250, 0.8),
    rgba(255, 255, 255, 0.9)
  ); */
  position: relative;
  overflow: hidden;
}

#services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%2304518e" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.7)
  );
  padding: 50px 35px;
  text-align: center;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

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

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(4, 81, 142, 0.2);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.8)
  );
}

.service-card .icon {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  box-shadow: 0 10px 25px rgba(4, 81, 142, 0.3);
}

.service-card:hover .icon {
  /* transform: scale(1.1) rotate(360deg); */
  box-shadow: 0 15px 35px rgba(4, 81, 142, 0.4);
}

/* .service-card .icon i {
  font-size: 2.5rem;
  color: var(--white-color);
  transition: all 0.3s ease;
} */
.service-card .icon img {
  width: 70%;
  height: 70%;
  object-fit: cover;
  transition: all 0.3s ease;
}
.service-card:hover .icon i {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover h3 {
  transform: translateY(-5px);
  color: var(--accent-color);
}

.service-card h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: translateX(-50%);
  transition: width 0.4s ease;
  border-radius: 2px;
}

.service-card:hover h3::after {
  width: 60px;
}

.service-card p {
  color: var(--text-color);
  line-height: 1.7;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover p {
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Floating animation for service cards */
@keyframes serviceFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.service-card:nth-child(1) {
  animation: serviceFloat 8s ease-in-out infinite;
  will-change: transform;
}

.service-card:nth-child(2) {
  animation: serviceFloat 8s ease-in-out infinite 2.5s;
  will-change: transform;
}

.service-card:nth-child(3) {
  animation: serviceFloat 8s ease-in-out infinite 5s;
  will-change: transform;
}

.service-card:hover {
  animation: none;
}
.section-intro {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-color);
  margin: 0 auto 32px auto;
  /* max-width: 600px; */
  opacity: 0.92;
}

.products-thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 32px;
}

.product-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 2px solid #e9ecef;
  background: #fff;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
  cursor: pointer;
  will-change: transform;
}
.product-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  border-color: var(--primary-color);
}

.explore-products-btn {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.explore-products-btn .btn {
  position: relative;
  overflow: hidden;
  transition: padding-right 0.2s;
}
.explore-products-btn .btn::after {
  content: "»"; /* Unicode right arrow */
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) translateX(12px);
  opacity: 0;
  font-size: 1.1em;
  transition: opacity 0.18s, transform 0.18s;
  pointer-events: none;
}
.explore-products-btn .btn:hover {
  padding-right: 32px;
}
.explore-products-btn .btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.product-thumb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  margin-bottom: 8px;
}
.product-thumb-caption {
  font-size: 0.85rem;
  color: #444;
  margin-top: 4px;
  text-align: center;
  opacity: 0.85;
  word-break: break-word;
}

/* --- PRODUCTS SECTION --- */
section#products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

/* Enhanced Product Card */
.product-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

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

.product-card:hover {
  /* transform: translateY(-10px) scale(1.02); */
  box-shadow: 0 20px 40px rgba(4, 81, 142, 0.2);
  /* background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.8)
  ); */
}

/* Enhanced Card Summary */
.card-summary {
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.card-summary img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  display: block;
  background: linear-gradient(to bottom, #e0e9fa, #ffffff);
  transition: all 0.5s ease;
}

.product-card:hover .card-summary img {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.2) saturate(1.1);
}

.card-summary h3 {
  margin: 15px 0 8px;
  font-size: 1.2rem;
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  line-height: 1.3;
  font-weight: 600;
  transition: all 0.3s ease;
}

.product-card:hover .card-summary h3 {
  transform: translateY(-3px);
  color: var(--accent-color);
}

.card-subname {
  font-size: 0.7rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 5px;
}

.card-code {
  font-size: 0.9rem;
  color: var(--light-text-color);
  margin-bottom: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.product-card:hover .card-code {
  color: var(--primary-color);
}

/* Enhanced Toggle Button */
.toggle-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: #fff;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.4s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 5px 15px rgba(4, 81, 142, 0.3);
}

.toggle-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.6s ease;
}

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

.toggle-btn:hover {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4, 81, 142, 0.4);
}

/* Enhanced Card Full Details */
.card-full {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.9)
  );
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  z-index: 3;
}

.card-details {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 25px;
  scrollbar-width: none;
}

.card-details::-webkit-scrollbar {
  display: none;
}

.card-details h4 {
  margin: 20px 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
}

.card-details h4::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 1px;
}

.card-details ul {
  margin: 0 0 15px 1.2em;
  list-style: none;
}

.card-details li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
  line-height: 1.6;
}

.card-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.presentation {
  margin: 15px 0;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
  text-align: center;
  padding: 10px;
  background: linear-gradient(
    135deg,
    rgba(4, 81, 142, 0.1),
    rgba(0, 166, 251, 0.1)
  );
  border-radius: 10px;
  border: 1px solid rgba(4, 81, 142, 0.2);
}

/* Enhanced Close Button */
.close-btn {
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    var(--white-color),
    rgba(255, 255, 255, 0.9)
  );
  color: var(--accent-color);
  border-top: 1px solid rgba(4, 81, 142, 0.2);
  border-radius: 0 0 20px 20px;
  text-align: center;
  padding: 15px 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.close-btn:hover {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  color: var(--white-color);
}

/* Enhanced Toggle States */
.toggle:checked ~ .card-full {
  transform: translateY(0);
  opacity: 1;
}

/* --- CONTACT BANNER --- */
#contact {
  padding-bottom: 0;
}
.contact-banner-bg {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  position: relative;
  overflow: hidden;
  /* padding: 50px 0; */
}

.contact-banner-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.contact-banner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white-color);
  padding: 60px 0;
}

.contact-banner-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-banner h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-banner p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
}

.contact-btn {
  background: var(--white-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-btn:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-btn i {
  font-size: 1.1rem;
}

/* --- FOOTER --- */
.footer {
  background-color: #000a11;
  color: #a9b3c9;
  padding: 80px 0 30px;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}
.footer h4 {
  color: var(--white-color);
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.footer-about .logo {
  color: var(--white-color);
  margin-bottom: 15px;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #a9b3c9;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--primary-color);
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}
.footer-contact i {
  margin-right: 15px;
  color: var(--primary-color);
  width: 18px;
  padding-top: 5px;
}
.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid #1c2b4a;
}

/* --- RESPONSIVE & MOBILE MENU --- */
.hamburger-menu {
  display: none;
}
.mobile-nav {
  display: none;
}

@media (max-width: 1024px) {
  .products-grid-3-col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 992px) {
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-image {
    margin-bottom: 30px;
    order: -1;
  }
  .about-image img {
    height: 400px;
  }
  .about-content {
    padding: 15px;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 830px) {
  .logo {
    span {
      font-size: 16px;
      font-weight: 600;
    }
  }
}
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger-menu {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    /* padding: 10px; */
    z-index: 1003; /* Highest z-index to be on top of everything */
    position: relative;
  }
  .hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
  }
  .header.scrolled .hamburger-menu .bar {
    background-color: var(--primary-color);
  }
  /* FIX: When menu is open, force the 'X' to be dark so it's visible */
  .hamburger-menu.active .bar {
    background-color: var(--primary-color);
  }

  /* Hamburger animation to 'X' */
  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    /* max-width: 300px; */
    height: 100vh;
    background-color: var(--white-color);
    z-index: 1001; /* Lower z-index than hamburger */
    transition: right 0.4s ease-in-out;
    padding-top: 100px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  .mobile-nav.active {
    right: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .mobile-nav .nav-links {
    flex-direction: column;
    align-items: center;
  }
  .mobile-nav .nav-links li {
    margin: 20px 0;
  }
  .mobile-nav .nav-links a {
    color: var(--primary-color);
    font-size: 1.2rem;
  }

  .mobile-nav .nav-links a.active {
    color: var(--accent-color) !important;
    font-weight: 600 !important;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
  .hero-content .btn {
    font-size: 0.95rem;
    padding: 10px 24px;
  }
  .slide-indicators {
    bottom: 25px;
    gap: 12px;
  }
  .indicator {
    width: 12px;
    height: 12px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-contact li {
    justify-content: center;
  }
  .footer-contact i {
    margin-right: 10px;
  }
  .products-grid-3-col {
    grid-template-columns: 1fr;
  }

  /* Responsive styles for slideshow */
  .slide-indicators {
    bottom: 20px;
    gap: 8px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  /* About section responsive styles */
  .about-image img {
    height: 350px;
  }

  .about-content {
    padding: 10px;
  }

  .about-content p {
    font-size: 0.95rem;
  }
  .about-content p:hover {
    transform: translateX(0);
    /* color: var(--primary-color); */
  }

  .overlay-content i {
    font-size: 2.5rem;
  }

  .overlay-content h3 {
    font-size: 1.3rem;
  }

  .overlay-content p {
    font-size: 0.9rem;
  }

  /* Contact section responsive styles */
  .contact-wrapper {
    padding: 30px 20px;
  }

  .form-group {
    margin-bottom: 25px;
  }

  .form-input {
    padding: 12px 0;
    font-size: 0.95rem;
  }

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

  .contact-wrapper .btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  /* Contact banner responsive styles */
  .contact-banner {
    padding: 40px 0;
  }

  .contact-banner h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .contact-banner p {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .contact-btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}

.services-grid {
  /* grid-template-columns: 1fr; */
  gap: 30px;
}

.service-card {
  padding: 40px 25px;
}

.service-card .icon {
  width: 80px;
  height: 80px;
}

.service-card .icon i {
  font-size: 2rem;
}

.service-card h3 {
  font-size: 1.4rem;
}

/* HIDE TOGGLE INPUT */
.toggle {
  position: absolute;
  bottom: 35px;
  opacity: 0;
  pointer-events: none;
}

/* Responsive styles for products */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .product-card {
    padding: 15px;
  }

  .card-summary {
    padding: 15px;
  }

  .card-summary h3 {
    font-size: 1.1rem;
  }

  .card-details {
    padding: 20px;
  }

  .toggle-btn {
    font-size: 0.85rem;
    padding: 10px 16px;
  }
  .section-intro {
    text-align: justify;
  }
}

@media (max-width: 600px) {
  .product-thumb-wrap {
    width: 54px;
  }
  .product-thumb-caption {
    font-size: 0.75rem;
    margin-top: 2px;
  }
}
