/* ============================================================
   AQUA TECH — Shared Design System
   Premium Maritime Trade aesthetic
   ============================================================ */

:root {
  --primary: #0F766E;
  --primary-dark: #0A5951;
  --accent: #14B8A6;
  --secondary: #0EA5E9;
  --dark: #060E1A;
  --dark-card: #0D1829;
  --dark-surface: #111F33;
  --light: #F0F7FF;
  --text: #0F172A;
  --text-muted: #64748B;
  --border: #E2EEF8;
  --glow-teal: rgba(20,184,166,0.2);
  --glow-blue: rgba(14,165,233,0.15);
}

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: white;
  color: var(--text);
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: 'Poppins', sans-serif; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
.d6 { transition-delay: 0.6s; }

/* ── Header ── */
#mainHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid #E2EEF8;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.nav-link {
  position: relative;
  color: #334155;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px rgba(15,118,110,0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(15,118,110,0.5); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  background: rgba(255,255,255,0.06);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  background: transparent;
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50px;
  border: 2px solid var(--primary);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--primary); color: white; }

/* ── Typography ── */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.eyebrow-muted { color: rgba(255,255,255,0.45); }

.display-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--dark);
}
.display-heading-light { color: white; }
.display-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 520px;
}
.display-sub-light { color: rgba(255,255,255,0.5); }

/* ── Page hero ── */
.page-hero {
  position: relative;
  padding: 96px 0 72px;
  background: var(--dark);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
}
.page-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,14,26,0.75), rgba(6,14,26,0.95));
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,184,166,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,184,166,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6) 40%);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--accent); }

/* ── Cards ── */
.card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--secondary));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15,118,110,0.14);
  border-color: rgba(20,184,166,0.3);
}
.card:hover::before { transform: scaleY(1); }

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
}
.card-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,184,166,0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card-dark:hover {
  border-color: rgba(20,184,166,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.card-dark:hover::before { opacity: 1; }

/* ── Icon ring ── */
.icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.card:hover .icon-wrap, .card-dark:hover .icon-wrap { transform: scale(1.08) rotate(-4deg); }

/* ── Dark section ── */
.section-dark {
  background: linear-gradient(155deg, #060E1A 0%, #091524 100%);
  position: relative;
  overflow: hidden;
}
.section-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14,165,233,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── Stats (light) ── */
.stats-section {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

/* ── Gradient text ── */
.grad-text {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #04201D 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%; left: -10%;
  width: 70%; height: 200%;
  background: radial-gradient(ellipse, rgba(20,184,166,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-deco-text {
  position: absolute;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  right: -2%;
  bottom: -15%;
  letter-spacing: -0.04em;
}

/* ── Footer ── */
#footer {
  background: #030912;
  position: relative;
}
#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(20,184,166,0.35), transparent);
}

/* ── Mobile menu ── */
#mobileMenu { display: none; }
#mobileMenu.open { display: block; }

/* ── Form inputs ── */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}
.form-input::placeholder { color: #94A3B8; }
textarea.form-input { resize: vertical; min-height: 130px; }
select.form-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
}

/* ── Expertise bars ── */
.bar-track {
  height: 8px;
  background: #E2EEF8;
  border-radius: 50px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 50px;
  width: 0;
  transition: width 1.3s cubic-bezier(.22,1,.36,1);
}

/* ── Product tab filter ── */
.tab-btn {
  padding: 9px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(15,118,110,0.35);
}

/* ── Product card ── */
.product-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(15,118,110,0.13);
  border-color: rgba(20,184,166,0.3);
}
.product-card.hidden-item { display: none; }
.product-img-wrap {
  position: relative;
  height: 176px;
  overflow: hidden;
  background: #F0F7FF;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

/* ── Country card ── */
.country-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
  cursor: default;
}
.country-card:hover {
  background: rgba(15,118,110,0.04);
  border-color: rgba(20,184,166,0.3);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(15,118,110,0.1);
}

/* ── Client logo chip ── */
.client-chip {
  border: 1px solid var(--border);
  border-radius: 14px;
  height: 64px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px;
  background: #F8FAFE;
  transition: all 0.25s;
}
.client-chip:hover {
  border-color: rgba(20,184,166,0.4);
  background: white;
  box-shadow: 0 4px 20px rgba(15,118,110,0.1);
  transform: translateY(-3px);
}
.client-chip span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.775rem;
  color: #94A3B8;
  transition: color 0.25s;
}
.client-chip:hover span { color: var(--primary); }

/* ── Info card (contact) ── */
.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.25s;
}
.info-card:hover {
  border-color: rgba(20,184,166,0.3);
  box-shadow: 0 8px 24px rgba(15,118,110,0.1);
  transform: translateY(-3px);
}

/* ── Leadership team card ── */
.team-card {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(15,118,110,0.12);
  border-color: rgba(20,184,166,0.3);
}

/* ── Tag badge ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.tag-primary { background: rgba(15,118,110,0.1); color: var(--primary); }
.tag-secondary { background: rgba(14,165,233,0.1); color: var(--secondary); }
.tag-accent { background: rgba(20,184,166,0.12); color: var(--accent); }

/* ── Animations ── */
@keyframes fadeInDown { from { opacity:0; transform:translateY(-14px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulseDot { 0%,100%{opacity:1;transform:scale(1);}50%{opacity:.5;transform:scale(.8);} }

/* ── Map placeholder ── */
.map-placeholder {
  height: 320px;
  background: linear-gradient(135deg, #E2EEF8, #F0F7FF);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#d1e4f0 1px, transparent 1px),
    linear-gradient(90deg, #d1e4f0 1px, transparent 1px);
  background-size: 40px 40px;
}
