/* ============================================
   Tawakkal Water Tank - Premium Stylesheet
   Design: Hydra-Industrial Aesthetic
   ============================================ */

/* ----- CSS Variables / Design Tokens ----- */
:root {
  /* Primary Colors */
  --primary: #0f4c81;
  --primary-light: #1a6bb5;
  --primary-dark: #0a3558;
  --secondary: #00a8cc;
  --secondary-light: #33c4e3;
  --secondary-dark: #0086a3;
  --accent: #25d366;
  --accent-dark: #1da851;

  /* Neutrals */
  --bg: #f8f9fa;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --text: #1a1a2e;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border: rgba(15, 76, 129, 0.12);
  --shadow: 0 4px 24px rgba(15, 76, 129, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 76, 129, 0.12);
  --shadow-hover: 0 20px 60px rgba(15, 76, 129, 0.18);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(15, 76, 129, 0.1);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 6rem 0;
  --container-width: 1200px;
  --card-radius: 20px;
  --button-radius: 50px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* WhatsApp */
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
}

/* ----- Dark Mode ----- */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.85);
  --text: #e2e8f0;
  --text-light: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(0, 168, 204, 0.15);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(30, 41, 59, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

ul {
  list-style: none;
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Typography ----- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
  position: relative;
}

.section-title span {
  color: var(--secondary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: var(--button-radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 76, 129, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 168, 204, 0.3);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

/* ----- Glass Card ----- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ----- Section Styles ----- */
.section {
  padding: var(--section-padding);
  position: relative;
}

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

/* ----- Navbar ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 30px rgba(15, 76, 129, 0.1);
  padding: 0.6rem 0;
}

[data-theme="dark"] .navbar.scrolled {
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
}

.navbar-brand img {
  height: 42px;
  width: auto;
}

.navbar-brand span {
  color: var(--secondary);
}

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

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

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

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

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a.active {
  color: var(--secondary);
}

.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

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

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

/* ----- Hero Section ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
  padding-top: 80px;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0a0f1e 0%, #0f172a 50%, #1a2540 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  color: #fff;
}

.pure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 0.45rem 0.95rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.05);
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-content h1 .highlight {
  color: var(--secondary);
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 540px;
}

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

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: 20px;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
  animation: float 6s ease-in-out infinite;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ----- Floating Particles Background ----- */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-particles span {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: particleFloat 20s infinite;
}

.hero-particles span:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  width: 30px;
  height: 30px;
}

.hero-particles span:nth-child(2) {
  top: 70%;
  left: 80%;
  animation-delay: 3s;
  width: 15px;
  height: 15px;
}

.hero-particles span:nth-child(3) {
  top: 40%;
  left: 60%;
  animation-delay: 6s;
  width: 25px;
  height: 25px;
}

.hero-particles span:nth-child(4) {
  top: 80%;
  left: 20%;
  animation-delay: 9s;
  width: 18px;
  height: 18px;
}

.hero-particles span:nth-child(5) {
  top: 20%;
  left: 70%;
  animation-delay: 12s;
  width: 22px;
  height: 22px;
}

.hero-particles span:nth-child(6) {
  top: 60%;
  left: 40%;
  animation-delay: 15s;
  width: 12px;
  height: 12px;
}

/* ----- Features Section ----- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.feature-card .icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: #fff;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ----- Calculator Section ----- */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
}

.form-group input,
.form-group select {
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-alt);
  color: var(--text);
  transition: border var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 168, 204, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.calculator-result {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--card-radius);
  padding: 2.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calculator-result h3 {
  color: #fff;
  font-size: 1.3rem;
}

.result-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.result-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(4px);
}

.result-item .value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.result-item .label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.result-whatsapp {
  margin-top: auto;
}

.result-whatsapp .btn {
  width: 100%;
  justify-content: center;
}

/* ----- Products / Categories ----- */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.category-tab {
  padding: 0.7rem 1.8rem;
  border-radius: var(--button-radius);
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.category-tab:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.category-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-card .product-image {
  height: 260px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.06);
  transition: transform var(--transition-slow);
}

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

.product-card .product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

.product-card .product-body {
  padding: 1.5rem;
}

.product-card .product-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.product-card .product-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-sizes {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.product-sizes .size-tag {
  padding: 0.2rem 0.5rem;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-light);
  border: 1px solid var(--border);
}

.product-sizes .size-tag-btn {
  padding: 0.2rem 0.55rem;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-light);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.product-sizes .size-tag-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(15, 76, 129, 0.04);
}

.product-sizes .size-tag-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ----- FAQ Section ----- */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.faq-item.active {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(0, 168, 204, 0.1);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--glass-bg);
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition-fast);
  user-select: none;
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-question .faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-question .faq-icon {
  background: var(--secondary);
  color: #fff;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ----- About Page ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.process-step {
  text-align: center;
  padding: 2rem 1rem;
}

.process-step .step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.process-step h4 {
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ----- Contact Page ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
}

.contact-card .contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-card h4 {
  margin-bottom: 0.25rem;
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.contact-form-wrapper {
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form .form-row {
  gap: 1.2rem;
}

/* ----- Product Detail ----- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail-image {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.product-detail-image img {
  max-height: 350px;
  object-fit: contain;
}

.product-detail-info h2 {
  margin-bottom: 1rem;
}

.product-detail-info .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.product-detail-info .description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.specs-table th,
.specs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.specs-table th {
  font-weight: 600;
  color: var(--text-light);
  width: 40%;
}

/* ----- WhatsApp Widget ----- */
.whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.whatsapp-tooltip {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards 1s;
  position: relative;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--glass-bg);
}

.whatsapp-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  animation: pulse 2s infinite;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ----- Footer ----- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
}

[data-theme="dark"] .footer {
  background: #070b14;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand h3 span {
  color: var(--secondary);
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.8;
}

.footer h4 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  padding: 0.35rem 0;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.footer-contact p i {
  width: 20px;
  color: var(--secondary);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  transition: all var(--transition-base);
}

.social-links a:hover {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #fff;
}

/* ----- Animations ----- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
  }

  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-80vh) rotate(180deg);
    opacity: 0.6;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition-base);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.05rem;
  }

  .hamburger {
    display: flex;
  }

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

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

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

  .section {
    padding: 4rem 0;
  }

  .result-numbers {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .whatsapp-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-button {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 1rem;
  }

  .glass-card {
    padding: 1.25rem;
  }
}

/* ----- Unit Toggle Control ----- */
.unit-toggle {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px;
  width: 100%;
}

[data-theme="dark"] .unit-toggle {
  background: var(--bg-alt);
}

.unit-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 1rem;
  border-radius: 25px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-base);
}

.unit-btn:hover {
  color: var(--primary);
}

[data-theme="dark"] .unit-btn:hover {
  color: var(--secondary-light);
}

.unit-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2);
}

[data-theme="dark"] .unit-btn.active {
  background: var(--secondary);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 168, 204, 0.3);
}

/* Hide HTML5 input number spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}