/* Basic Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f4f4f4;
  position: relative;
  overflow-x: hidden;
}

/* Parallax Background Layer */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url('assets/water.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  z-index: -1;
  will-change: transform;
  pointer-events: none;
  transform: translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
  transition: transform 0.1s ease-out;
}

/* Header */
header {
  background: #004d99;
  color: #fff;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
.logo {
  font-weight: 700;
}
nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  padding: 5px 10px;
  transition: background 0.25s;
  border-radius: 4px;
}
nav a:hover {
  background: #0066cc;
}
.contact-btn {
  background: #ff9900;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 700;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
}

/* Utility */
.primary-btn {
  display: inline-block;
  background: #ff9900;
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}
.primary-btn:hover {
  background: #e68a00;
}

/* Sections */
.content-section {
  padding: 60px 5%;
  text-align: center;
}
.content-section h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #004d99;
}

/* HERO - optimized */
.hero-section {
  position: relative;
  height: 70vh;
  overflow: hidden;
  width: 100%;
}
.hero-slider {
  display: flex;
  height: 100%;
  width: 400%;
  transition: transform 1s ease-in-out;
  will-change: transform;
}
.slide {
  flex: 0 0 100vw;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  text-align: center;
}
.hero-content {
  background: rgba(0, 0, 0, 0.55);
  padding: 20px 28px;
  border-radius: 8px;
  max-width: 80%;
  z-index: 5;
}
.hero-content h1 {
  font-size: 3em;
  margin-bottom: 8px;
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  z-index: -1;
  filter: brightness(0.85) contrast(0.95);
}
/* Remove cropping for 4th slide only */
.slide-no-crop::before {
  background-size: contain !important; /* Fit image fully */
  background-repeat: no-repeat !important;
  background-position: center !important;
  opacity: 1 !important; /* keep image clear */
}

/* SERVICES (kept modern card layout) */
.services-section {
  padding: 60px 20px;
  background: #f8f9fa;
}
.section-title {
  font-size: 2.4rem;
  margin-bottom: 18px;
  color: #222;
  font-weight: 700;
  text-align: center;
  justify-items: center;
}
.section-subtitle {
  text-align: center;
  margin-bottom: 40px;
  color: #555;
  justify-items: center;
}
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
.service-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.service-card h3 {
  font-size: 1.25rem;
  margin: 14px 16px;
  color: #0066cc;
}
.service-card p {
  padding: 0 16px 18px;
  color: #555;
}

/* PRODUCTS */
.products-section {
  padding: 70px 20px;
  background: #fff;
}
.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.product-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.product-card h3 {
  font-size: 1.2rem;
  margin: 16px;
  color: #0066cc;
  text-align: left;
}
.product-card ul {
  list-style: none;
  padding: 0 18px 18px;
  text-align: left;
}
.product-card ul li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
  color: #444;
}
.product-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0077cc;
}

/* ABOUT */
.about-section {
  padding: 70px 20px;
  background: #f9fafb;
}
.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.about-box {
  background: #fff;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.about-box h3 {
  color: #0077cc;
  margin-bottom: 8px;
}

/* CONTACT */
.contact-section {
  padding: 70px 20px;
  background: #fff;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.contact-info-box {
  background: #f0f7ff;
  padding: 26px;
  border-radius: 12px;
  border-left: 5px solid #004d99;
}
.contact-info-box a {
  color: #0077cc;
  text-decoration: none;
}
.contact-box {
  background: #f9fafb;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}
.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  font-size: 1rem;
}
.contact-box textarea {
  height: 140px;
  resize: none;
}
.primary-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #0077cc;
  color: #fff;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
}
.primary-btn:hover {
  background: #005fa3;
}

/* Social */
.social-links {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  background: #0d6efd;
}
.social-links a:hover {
  transform: translateY(-3px);
  background: #084298;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 5%;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  nav a {
    margin-left: 12px;
  }
}
@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #004d99;
    padding: 12px;
  }
  nav.active {
    display: block;
  }
  .menu-toggle {
    display: block;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .services-container {
    grid-template-columns: 1fr;
  }
  .products-container {
    grid-template-columns: 1fr;
  }
}
