/*
 * Wattreat Services - Premium Homepage Stylesheet
 * Custom styles for water and wastewater treatment solutions.
 * Theme: Modern Industrial Engineering (Blue, White, Teal accents)
 */


/* ===============================
   Trusted Clients
==================================*/

/* Terms section  */

/* ===============================
   Terms & Privacy Page
================================ */

.legal-page{
    padding:140px 0 80px;
    background:#fff;
}

.legal-header{
    text-align:center;
    margin-bottom:50px;
}

.legal-header h1{
    font-size:42px;
    margin-bottom:10px;
    color:var(--primary-color);
}

.legal-header p{
    color:#666;
    font-size:16px;
}

.legal-content{
    max-width:900px;
    margin:auto;
}

.legal-content h2{
    margin-top:40px;
    margin-bottom:15px;
    font-size:26px;
    color:var(--primary-color);
}

.legal-content p{
    font-size:17px;
    line-height:1.9;
    color:#555;
    text-align:justify;
}

@media (max-width:768px){

    .legal-page{
        padding:120px 20px 60px;
    }

    .legal-header h1{
        font-size:34px;
    }

    .legal-content h2{
        font-size:22px;
    }

    .legal-content p{
        font-size:16px;
    }

}





.clients{
    padding:100px 0;
    background:var(--light);
}

.clients-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:30px;
    align-items:center;
}

.client-logo{
    background:var(--white);
    border-radius:var(--radius-md);
    box-shadow:var(--shadow-md);
    padding:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:var(--transition-normal);
    min-height:140px;
}

.client-logo img{
    max-width:140px;
    max-height:70px;
    width:auto;
    height:auto;
    object-fit:contain;
    filter:grayscale(100%);
    opacity:.8;
    transition:var(--transition-normal);
}

.client-logo:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-hover);
}

.client-logo:hover img{
    filter:grayscale(0%);
    opacity:1;
}
 
.logo-img {
  height: 40px; /* adjust to fit your header */
  width: auto;
}



/* Import Poppins Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties / Design Tokens */
:root {
  /* Colors */
  --primary: #004b93;             /* Deep Blue */
  --primary-rgb: 0, 75, 147;
  --secondary: #00a2e8;           /* Water Blue / Cyan */
  --secondary-rgb: 0, 162, 232;
  --accent: #00c3a5;              /* Bio-treatment Teal */
  --accent-rgb: 0, 195, 165;
  --dark: #121b22;                /* Dark Slate */
  --dark-rgb: 18, 27, 34;
  --light: #f4f8fc;               /* Ice Blue/Light Gray */
  --light-rgb: 244, 248, 252;
  --white: #ffffff;
  --white-rgb: 255, 255, 255;
  --text: #42526e;                /* Charcoal body text */
  --text-dark: #121b22;           /* Headings dark */
  --text-muted: #7a869a;          /* Muted text */
  
  /* Fonts */
  --font-family: 'Poppins', sans-serif;
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 75, 147, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 75, 147, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 75, 147, 0.12);
  --shadow-hover: 0 24px 50px rgba(0, 75, 147, 0.18);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-round: 50%;
  
  /* Layout */
  --header-height: 90px;
  --header-scrolled-height: 70px;
  --container-width: 1240px;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Reusable UI Components */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  background-color: rgba(var(--secondary-rgb), 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  border: 1px solid rgba(var(--secondary-rgb), 0.2);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
  color: var(--text-dark);
  position: relative;
}

.section-title span {
  color: var(--secondary);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  outline: none;
  gap: 10px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  background-color: var(--secondary);
  box-shadow: 0 6px 20px rgba(var(--secondary-rgb), 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.btn-accent {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(var(--secondary-rgb), 0.3);
}

.btn-accent:hover {
  background-color: var(--accent);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
  transform: translateY(-2px);
}

/* Mobile-only CTA button (shown inside the mobile nav menu only) */
.btn-mobile-only {
  display: none;
}

/* Scroll Reveal Animations Class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Top bar contact details */
.top-bar {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 24px;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-info i {
  color: var(--secondary);
}

.top-bar-socials {
  display: flex;
  gap: 16px;
}

.top-bar-socials a:hover {
  color: var(--secondary);
}

/* 1. Navigation */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border-bottom: 1px solid rgba(0, 75, 147, 0.05);
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  transition: var(--transition-normal);
}

.main-header.scrolled .container {
  height: var(--header-scrolled-height);
}

/* Logo Design */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4));
  top: -50%;
  left: 0;
  transform: skewY(-15deg);
  transition: var(--transition-normal);
}

.logo-icon i {
  color: var(--white);
  font-size: 1.5rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Open Mobile Menu State */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* 2. Hero Banner */
.hero {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(0, 43, 91, 0.95) 0%, rgba(18, 27, 34, 0.98) 90%), url('../image/hero-bg.png') no-repeat center center/cover;
  padding: 160px 0 120px;
  color: var(--white);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* Wave Background Effect */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(134% + 1.3px);
  height: 90px;
}

.hero-wave .shape-fill {
  fill: var(--white);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(var(--secondary-rgb), 0.15);
  color: var(--secondary);
  border: 1px solid rgba(var(--secondary-rgb), 0.3);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--accent);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--white);
}

.hero-title span {
  color: var(--secondary);
}

.hero-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Floating Card Component in Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-ill-container {
  width: 100%;
  max-width: 450px;
  height: 400px;
  position: relative;
}

.water-sphere {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(var(--secondary-rgb), 0.6) 0%, rgba(var(--primary-rgb), 0.8) 100%);
  border-radius: 56% 44% 52% 48% / 57% 52% 48% 43%;
  box-shadow: 0 0 50px rgba(var(--secondary-rgb), 0.4), inset 0 0 30px rgba(255,255,255,0.2);
  animation: liquid-morph 8s ease-in-out infinite alternate, spin-slow 20s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.water-sphere i {
  font-size: 6.5rem;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
  animation: float 4s ease-in-out infinite;
}

.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.hero-float-card-1 {
  top: 10%;
  left: -20px;
  animation: float 5s ease-in-out infinite;
}

.hero-float-card-2 {
  bottom: 10%;
  right: -10px;
  animation: float 5s ease-in-out infinite 2.5s;
}

.hero-float-card i {
  width: 45px;
  height: 45px;
  background-color: var(--secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-float-card.teal i {
  background-color: var(--accent);
}

.hero-float-card h4 {
  font-size: 1.1rem;
  margin-bottom: 2px;
  color: var(--white);
}

.hero-float-card p {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Liquid morph animation */
@keyframes liquid-morph {
  0% {
    border-radius: 56% 44% 52% 48% / 57% 52% 48% 43%;
  }
  50% {
    border-radius: 45% 55% 40% 60% / 45% 45% 55% 55%;
  }
  100% {
    border-radius: 62% 38% 65% 35% / 60% 35% 65% 40%;
  }
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}


/* 3. About Company */
.about {
  padding: 100px 0;
  background-color: var(--white);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  width: 85%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.about-img-sub {
  position: absolute;
  width: 55%;
  bottom: -40px;
  right: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  z-index: 3;
  overflow: hidden;
}

.about-experience-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 4;
  text-align: center;
}

.about-experience-badge span {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-experience-badge p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 5px;
}

.about-content h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.about-content h2 span {
  color: var(--secondary);
}

.about-tagline {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.about-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.about-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-feat-item i {
  width: 32px;
  height: 32px;
  background-color: rgba(var(--secondary-rgb), 0.1);
  color: var(--secondary);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.about-feat-item span {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* Info Stats Bar */
.stats-counter-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(0, 75, 147, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-number::after {
  content: '+';
  color: var(--secondary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* 4. Why Choose Us */
.why-choose-us {
  padding: 100px 0;
  background-color: var(--light);
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.why-card {
    width: 100%;
    padding: 35px 30px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-normal);
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transition: var(--transition-normal);
}

.why-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    min-height: 65px;   /* Aligns all headings */
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-card p {
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.why-card:hover::before {
  height: 100%;
}

.why-card:hover .why-card-icon {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}


/* 5. Our Services */
.services {
  padding: 100px 0;
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.service-card {
    display: flex;
    height: 100%;
}

.service-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.7), transparent);
  opacity: 0.8;
}

.service-icon {
  position: absolute;
  bottom: -25px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
  z-index: 2;
  transition: var(--transition-normal);
}

.service-body {
  padding: 40px 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-body h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.service-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-list {
  margin-bottom: 30px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-dark);
}

.service-list li i {
  color: var(--accent);
}

.service-footer {
  margin-top: auto;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.service-link i {
  transition: var(--transition-fast);
}

.service-link:hover {
  color: var(--secondary);
}

.service-link:hover i {
  transform: translateX(5px);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover .service-img img {
  transform: scale(1.08);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  transform: rotate(360deg);
}


/* 6. Featured Projects */
.projects {
  padding: 100px 0;
  background-color: var(--light);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--white);
  color: var(--text);
  border: 1px solid rgba(0, 75, 147, 0.1);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  transition: var(--transition-normal);
}

.project-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 320px;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.95), rgba(var(--dark-rgb), 0.4));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: var(--transition-normal);
}

.project-category {
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  transform: translateY(20px);
  transition: var(--transition-normal) 0.1s;
}

.project-card h4 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
  transform: translateY(20px);
  transition: var(--transition-normal) 0.2s;
}

.project-card-link {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  transform: translateY(20px);
  transition: var(--transition-normal) 0.3s;
}

.project-card-link i {
  background-color: var(--secondary);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-category,
.project-card:hover .project-card h4,
.project-card:hover .project-card-link {
  transform: translateY(0);
}


/* 7. Industries We Serve */
.industries {
  padding: 100px 0;
  background-color: var(--white);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.industry-card {
  background-color: var(--light);
  padding: 40px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-normal);
  border: 1px solid rgba(0, 75, 147, 0.02);
}

.industry-card-icon {
  width: 70px;
  height: 70px;
  background-color: var(--white);
  border-radius: var(--radius-round);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.industry-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.industry-card:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.industry-card:hover .industry-card-icon {
  background-color: var(--secondary);
  color: var(--white);
  transform: scale(1.05);
}

.industry-card:hover h3 {
  color: var(--white);
}


/* 8. Client Testimonials */
.testimonials {
  padding: 100px 0;
  background-color: var(--light);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 15px;
  left: 25px;
  font-size: 6rem;
  color: rgba(var(--secondary-rgb), 0.12);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-stars {
  color: #ffc107;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 30px;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-round);
  background-color: var(--light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  border: 2px solid var(--secondary);
}

.testimonial-info h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.testimonial-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* 9. Contact CTA */
.contact-cta {
  padding: 100px 0;
  background-color: var(--white);
}

.contact-cta .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-panel {
  background-color: var(--primary);
  color: var(--white);
  padding: 50px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-info-panel::before {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(var(--secondary-rgb), 0.15);
  border-radius: var(--radius-round);
  z-index: 1;
}

.contact-info-panel * {
  position: relative;
  z-index: 2;
}

.contact-info-panel h2 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-info-panel p.info-desc {
  opacity: 0.8;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-details-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-details-item i {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details-item h4 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 5px;
}

.contact-details-item p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.contact-form-panel {
  background-color: var(--light);
  padding: 50px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 75, 147, 0.02);
}

.contact-form-panel h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.contact-form-panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

/* Forms */
.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  border: 1px solid rgba(0, 75, 147, 0.1);
  background-color: var(--white);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-fast);
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Alert States */
.form-alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}

.form-alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}


/* 10. Footer */
.main-footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 20px;
  border-top: 5px solid var(--primary);
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-logo .logo-name {
  color: var(--white);
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: 0.8;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.footer-socials a:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-title {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary);
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact-item i {
  color: var(--secondary);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item p {
  opacity: 0.8;
}

.footer-newsletter p {
  margin-bottom: 16px;
  opacity: 0.8;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form .btn {
  padding: 0 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-bottom-links a:hover {
  opacity: 1;
  color: var(--secondary);
}


/* Media Queries (Responsive Styling) */

/* Tablet fine-tuning: prevents nav overflow/crowding between the
   desktop layout (1024px+) and the hamburger-menu layout (768px-) */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-menu {
    gap: 18px;
  }

  .nav-link {
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 80px;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-ill-container {
    max-width: 320px;
    height: 320px;
    margin: 0 auto;
  }
  
  .water-sphere {
    width: 250px;
    height: 250px;
  }
  
  .water-sphere i {
    font-size: 5rem;
  }
  
  .hero-float-card-1 {
    left: -40px;
  }
  
  .hero-float-card-2 {
    right: -40px;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-images {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .contact-cta .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    padding: 40px 24px;
    align-items: flex-start;
    gap: 24px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    z-index: 1000;
  }
  
  .main-header.scrolled .nav-menu {
    top: var(--header-scrolled-height);
    height: calc(100vh - var(--header-scrolled-height));
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-actions {
    display: none; /* Hide top right action on mobile menu, can bundle it in mobile menu instead */
  }
  
  .nav-menu .btn {
    width: 100%;
    margin-top: 20px;
  }

  .btn-mobile-only {
    display: inline-flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 1.85rem;
  }
  
  .stats-counter-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .stats-counter-bar {
    grid-template-columns: 1fr;
  }
  
  .contact-info-panel {
    padding: 30px 20px;
  }
  
  .contact-form-panel {
    padding: 30px 20px;
  }
  
  .about-experience-badge {
    padding: 12px;
    top: -10px;
    left: -10px;
  }
  
  .about-experience-badge span {
    font-size: 1.8rem;
  }
  
  .about-experience-badge p {
    font-size: 0.65rem;
  }
  
  .hero-float-card {
    display: none; /* Hide floating labels on small screens to avoid clutter */
  }
}