/* ===========================================
   WaterMatica - Ultra Minimalist 2026
   Apple-Inspired Premium Design
   =========================================== */

/* Color System */
:root {
  --primary: #0071e3;
  --primary-dark: #0055b3;
  --accent: #00d4ff;
  --dark: #1d1d1f;
  --gray-dark: #424245;
  --gray: #86868b;
  --gray-light: #f5f5f7;
  --white: #ffffff;
  --border: rgba(0,0,0,0.08);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0071e3 0%, #00d4ff 100%);
  --gradient-dark: linear-gradient(180deg, #1d1d1f 0%, #424245 100%);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --glass: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.18);

  /* Timing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-system);
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--dark);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
}

p {
  font-size: var(--font-size-lg);
  color: var(--gray);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}

ul, ol {
  list-style: none;
}

/* ==================== LAYOUT ==================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 max(2rem, 5vw);
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 max(2rem, 3vw);
}

section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
}

/* ==================== HEADER & NAV ==================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: max(2rem, 5vw);
  padding-right: max(2rem, 5vw);
}

.logo {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: var(--gray-light);
  padding: 0.25rem;
  border-radius: 8px;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--gray-dark);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.lang-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
  background: rgba(0,0,0,0.04);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.375rem;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

/* ==================== HERO SECTION ==================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(0,113,227,0.03) 0%,
    rgba(0,212,255,0.03) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2 {
  margin-bottom: 2rem;
  color: var(--gray-dark);
  font-weight: 500;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.25rem;
  color: var(--gray);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero with Image Background */
.hero-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(0,113,227,0.7) 0%,
    rgba(0,212,255,0.5) 100%
  );
  z-index: 1;
}

.hero-image h1,
.hero-image h2,
.hero-image p {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 980px;
  font-size: var(--font-size-base);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,113,227,0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,113,227,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: var(--font-size-lg);
}

/* ==================== CARDS ==================== */
.card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.card p {
  color: var(--gray);
  font-size: var(--font-size-base);
}

/* ==================== GRID SYSTEMS ==================== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-item-1 { grid-column: span 6; }
.bento-item-2 { grid-column: span 6; }
.bento-item-3 { grid-column: span 4; }
.bento-item-4 { grid-column: span 8; }
.bento-item-full { grid-column: span 12; }

/* ==================== SECTIONS ==================== */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: -2rem auto 4rem;
  font-size: var(--font-size-lg);
  color: var(--gray);
}

.section-light {
  background: var(--gray-light);
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: var(--gray);
}

/* Split Section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-section img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* ==================== FEATURE BOXES ==================== */
.feature-box {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.feature-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
  border-radius: 12px;
  color: var(--primary);
}

.feature-content h4 {
  margin-bottom: 0.5rem;
}

.feature-content p {
  font-size: var(--font-size-sm);
}

/* ==================== STATS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--gray-dark);
  font-weight: 500;
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
  font-size: var(--font-size-sm);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-system);
  font-size: var(--font-size-base);
  background: var(--white);
  transition: all var(--duration) var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==================== BADGE ==================== */
.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--gray-light);
  color: var(--primary);
  border-radius: 980px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: rgba(0,113,227,0.1);
  color: var(--primary);
}

.badge-success {
  background: rgba(52,199,89,0.1);
  color: #34c759;
}

/* ==================== TABLE ==================== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: var(--gray-light);
}

th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--dark);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--gray-dark);
}

tr:hover {
  background: var(--gray-light);
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

footer p {
  color: var(--gray);
  font-size: var(--font-size-sm);
}

footer a {
  color: var(--gray);
}

footer a:hover {
  color: var(--white);
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

.pt-1 { padding-top: var(--space-sm); }
.pt-2 { padding-top: var(--space-md); }
.pt-3 { padding-top: var(--space-lg); }
.pb-1 { padding-bottom: var(--space-sm); }
.pb-2 { padding-bottom: var(--space-md); }
.pb-3 { padding-bottom: var(--space-lg); }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .bento-item-1,
  .bento-item-2,
  .bento-item-3,
  .bento-item-4 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  section {
    padding: clamp(3rem, 8vw, 5rem) 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  /* Mobile Navigation */
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    transition: left var(--duration) var(--ease);
    border-top: 1px solid var(--border);
    gap: 1.5rem;
  }

  .nav-links.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Mobile Grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-section-image {
    order: -1;
  }

  .hero {
    min-height: 70vh;
    padding: 3rem 0 !important;
  }

  .hero-content {
    padding: 3rem 1.5rem !important;
    min-height: 300px !important;
    border-radius: 20px !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .hero h2 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }

  .hero p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1.25rem;
    padding: 0 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 1.25rem 1.5rem;
  }

  /* Page Headers Mobile */
  section[style*="background: var(--primary)"] h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  section[style*="background: var(--primary)"] h2 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }

  section[style*="background: var(--primary)"] p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  section[style*="background: var(--primary)"] {
    padding: 3rem 0 !important;
  }

  /* Contact Page Mobile - Form first, then cards */
  .contact-container {
    display: flex;
    flex-direction: column;
  }

  .contact-container > div:first-child {
    order: 2;
    margin-bottom: 0 !important;
    margin-top: 3rem;
  }

  .contact-container > div:last-child {
    order: 1;
  }

  /* Contact form - single column inputs on mobile */
  .contact-container form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Contact page - smaller title and padding on mobile */
  .contact-container h2 {
    font-size: 1.5rem !important;
  }

  .contact-container .card {
    padding: 1.5rem !important;
  }

  /* Contact cards - stack vertically on mobile */
  .contact-container .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Products page - Stack layout on mobile */
  .product-card {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .product-card img {
    max-width: 100% !important;
  }

  .product-card h3 {
    font-size: 1.25rem !important;
  }

  .product-card h4 {
    font-size: 0.8rem !important;
  }

  /* Product specs - single column on mobile */
  .product-card div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* SGU Detail Page - Mobile Responsive */
  /* Hero section - stack grid vertically */
  section[style*="padding: 6rem 0"] > div > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Hero title sizing */
  section[style*="background: linear-gradient"] h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  section[style*="background: linear-gradient"] p {
    font-size: 1rem !important;
  }

  /* Technical specs cards - 2-column grids to single column */
  .card div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Section padding reduction */
  section[style*="padding: 6rem 0"] {
    padding: 3rem 0 !important;
  }

  /* Card padding reduction */
  .card[style*="padding: 2.5rem"] {
    padding: 1.5rem !important;
  }

  /* Icon sizes in cards */
  .card-icon {
    width: 40px !important;
    height: 40px !important;
  }

  .card-icon i {
    width: 20px !important;
    height: 20px !important;
  }

  /* Large icons in spec sections */
  div[style*="width: 56px; height: 56px"] {
    width: 48px !important;
    height: 48px !important;
  }

  div[style*="width: 56px; height: 56px"] i {
    width: 24px !important;
    height: 24px !important;
  }

  /* Badge sizing */
  div[style*="backdrop-filter: blur(10px)"] span {
    font-size: 0.75rem !important;
  }

  /* Product image container */
  section[style*="background: linear-gradient"] div[style*="max-height: 450px"] {
    max-height: 300px !important;
  }

  section[style*="background: linear-gradient"] img {
    max-width: 280px !important;
    max-height: 280px !important;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s var(--ease);
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-dark);
}

/* ==================== PRODUCTS PAGE STYLES ==================== */

/* Product Hero */
.product-hero {
  padding: 6rem 0;
  background: var(--primary);
}

.product-hero h1 {
  margin-bottom: 1rem;
  font-size: 4rem;
  color: white;
}

.product-hero h2 {
  font-weight: 400;
  font-size: 2.125rem;
  color: rgba(255, 255, 255, 0.9);
}

.product-intro {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.8;
  text-align: center;
  color: var(--gray);
}

/* Product Card */
.product-card {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}

.product-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: 12px;
}

.product-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-card h3 {
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1.5rem;
}

.product-card > div > p {
  margin-bottom: 2rem;
  color: var(--gray);
  line-height: 1.7;
}

.product-specs-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  margin-bottom: 1rem;
}

.product-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.product-spec-item {
  display: flex;
  gap: 0.75rem;
}

.product-spec-item i {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.product-spec-label {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.9rem;
}

.product-spec-value {
  margin: 0;
  color: var(--gray);
  font-size: 0.875rem;
}

.product-learn-more {
  margin-top: 2rem;
}

/* Product Solution Tags */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem 0;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-tag i {
  width: 14px;
  height: 14px;
}

.product-tag.water-utilities {
  background: rgba(0, 206, 209, 0.1);
  color: var(--primary);
}

.product-tag.industrial-water {
  background: rgba(255, 140, 0, 0.1);
  color: #FF8C00;
}

.product-tag.smart-agriculture {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.product-tag.infrastructure-security {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
}

/* CTA Section Text */
.cta-title {
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--gray);
}

/* Footer Info */
.footer-info {
  margin-top: 0.5rem;
}

/* Product Container */
.product-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Product Detail Hero Grid */
.product-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-hero-image {
  background: rgb(255, 255, 255);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-width: 400px;
  margin-left: auto;
}

/* ==================== PRODUCTS PAGE RESPONSIVE ==================== */
@media (max-width: 768px) {
  .product-hero h1 {
    font-size: 2.5rem;
  }

  .product-hero h2 {
    font-size: 1.5rem;
  }

  .product-intro {
    font-size: 1rem;
  }

  .product-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-card img {
    max-width: 300px;
    margin: 0 auto;
  }

  .product-specs-grid {
    grid-template-columns: 1fr;
  }

  .cta-text {
    font-size: 1rem;
  }

  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-hero-image {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ==================== PRODUCTS CAROUSEL ==================== */
.products-carousel-wrapper {
  position: relative;
  padding: 0 4rem;
}

.products-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.products-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.product-card-home {
  flex: 0 0 300px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.product-card-home:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,113,227,0.15);
}

.product-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: white;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform var(--duration) var(--ease);
}

.product-card-home:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.product-card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  line-height: 1.3;
}

.product-card-content p {
  font-size: 0.95rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--duration) var(--ease);
  color: var(--primary);
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  margin-top: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .products-carousel-wrapper {
    padding: 0 3rem;
  }

  .product-card-home {
    flex: 0 0 260px;
  }

  .product-card-image {
    height: 180px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }
}
