/* =========================
   GLOBAL THEME & RESET
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-body: #f3f4f6;
  --bg-surface: #ffffff;
  --bg-soft: #f8fafc;
  --bg-soft-alt: #eef2ff;

  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-soft: rgba(14, 165, 233, 0.12);

  --accent: #fbbf24;
  --accent-dark: #f59e0b;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;

  --border-subtle: #e2e8f0;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e5f3ff 0, #f3f4f6 45%, #e5e7eb 100%);
  color: var(--text-main);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================
   HEADER / NAVBAR
   ========================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(15, 23, 42, 0.85);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #e5e7eb;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #cbd5f5;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.18s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-cta {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.55);
}

/* Mobile nav button */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  color: #e5e7eb;
  cursor: pointer;
}

/* =========================
   SECTIONS / TYPOGRAPHY
   ========================= */
.section {
  padding: 3.75rem 0;
}

.section-title {
  font-size: 1.7rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2rem;
}

/* =========================
   HERO – MODERN DEEP BACKGROUND
   ========================= */
/* Works for current home hero: <section class="section hero-section"> */
.hero-section {
  background: radial-gradient(circle at 10% 0, #22c1c3 0, #10325b 36%, #050816 90%);
  color: #f9fafb;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.15), transparent 65%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-section .section-title {
  color: #e5e7eb;
  font-size: 2.3rem;
}

.hero-section .section-subtitle {
  color: #cbd5f5;
  font-size: 1.02rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .btn-primary {
  margin-top: 1.25rem;
}

/* Legacy hero (if any old page still uses .hero/.hero-grid) */
.hero {
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #e5e7eb;
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: center;
}

.hero-title {
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  color: var(--text-soft);
  margin-bottom: 1.6rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background-color: rgba(15, 118, 110, 0.15);
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background-color: rgba(15, 23, 42, 0.9);
  border-radius: 1.25rem;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* =========================
   BUTTONS
   ========================= */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  border: 1px solid transparent;
  transition: all 0.18s ease-in-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1f2933;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.5);
}

.btn-secondary {
  background-color: rgba(15, 23, 42, 0.04);
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: rgba(15, 23, 42, 0.08);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background-color: rgba(14, 165, 233, 0.06);
}

/* =========================
   GRID LAYOUTS & CARDS
   ========================= */
.product-grid,
.features-grid,
.video-grid,
.about-layout,
.team-grid,
.detail-grid,
.detail-two-column,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.features-grid,
.video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  align-items: flex-start;
}

.detail-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: flex-start;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
}

.footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Generic card used across site (blog cards, info blocks, etc.) */
.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Product cards */
.product-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-soft);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.product-tag {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background-color: var(--primary-soft);
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.35rem;
}

/* Features / Why us */
.feature-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.3rem;
  border: 1px dashed rgba(148, 163, 184, 0.6);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

/* Certifications */
.certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cert-badge {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background-color: var(--bg-soft);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Videos placeholders */
.video-placeholder {
  background: repeating-linear-gradient(
    -45deg,
    #e5e7eb,
    #e5e7eb 6px,
    #f9fafb 6px,
    #f9fafb 12px
  );
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================
   ABOUT PAGE
   ========================= */
.about-layout {
  grid-template-columns: 1.5fr 1fr;
}

.about-block {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 1rem;
}

.values-list {
  display: grid;
  gap: 0.4rem;
}

/* =========================
   PRODUCT DETAIL PAGES
   ========================= */
.detail-media {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-main-img {
  width: 100%;
  border-radius: var(--radius-md);
  min-height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.thumb {
  border-radius: 0.6rem;
  min-height: 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.detail-info h1 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.detail-tagline {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background-color: var(--bg-soft);
  border: 1px solid rgba(148, 163, 184, 0.5);
  margin: 0 0.25rem 0.35rem 0;
}

/* Detail tables */
.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.detail-table td {
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.detail-table tr:nth-child(odd) {
  background-color: #f8fafc;
}

/* =========================
   CONTACT / FORM
   ========================= */
.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 0.52rem 0.6rem;
  font-size: 0.9rem;
  outline: none;
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.3);
  background-color: #f9fafb;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
}

.alert-success {
  margin-top: 0.8rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  background-color: #e3f9e5;
  color: #166534;
  font-size: 0.85rem;
  border: 1px solid #bbf7d0;
  display: none;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: radial-gradient(circle at top, #020617 0, #020617 55%, #000 100%);
  color: #cbd2d9;
  padding: 2.5rem 0 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.5);
}

.footer-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.footer-grid p {
  font-size: 0.86rem;
  color: #9fb3c8;
}

.footer-links a,
.footer-links span {
  display: block;
  font-size: 0.85rem;
  color: #9fb3c8;
  text-decoration: none;
  margin-bottom: 0.3rem;
}

.footer-links a:hover {
  color: #e3f8ff;
}

.footer-bottom {
  margin-top: 1.7rem;
  font-size: 0.76rem;
  text-align: center;
  color: #9fb3c8;
}

/* =========================
   WHATSAPP FLOATING BUTTON
   ========================= */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #bbf7d0 0, #22c55e 40%, #15803d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.7);
  z-index: 100;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    margin-top: 1.5rem;
  }
}

@media (max-width: 900px) {
  .product-grid,
  .features-grid,
  .video-grid,
  .about-layout,
  .team-grid,
  .detail-grid,
  .detail-two-column,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-section {
    padding: 4rem 0 3.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 68px;
    right: 0;
    width: 100%;
    background-color: #020617;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    display: none;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(55, 65, 81, 0.9);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .hero-section .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
}
