/* Main Stylesheet for Aquatic Movement - Refined Aesthetic */

/* 1. Variables & Reset */
:root {
  /* Colors */
  /* Lighter Blue Spectrum Palette */
  --bg-deep: #0e1e32;
  /* Base deep blue */
  --bg-light: #162a45;
  /* Lighter blue for gradients */
  --bg-accent: #234b7a;
  /* Subtle accent blue */

  --navy: #001B2E;
  /* Keep core brand navy for footer/nav */
  --sky: #38bdf8;
  /* Slightly brighter sky for better contrast on glass */
  --sky-hover: #0ea5e9;
  --white: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;

  /* Glass / Cards */
  /* Lighter, cleaner glass feel */
  --glass-bg: rgba(30, 58, 138, 0.25);
  /* Azure tint, semi-transparent */
  --glass-bg-hover: rgba(30, 58, 138, 0.35);
  --glass-border: 1px solid rgba(255, 255, 255, 0.15);
  --glass-blur: 16px;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);

  /* Font */
  --font-main: 'Inter', sans-serif;

  /* Spacing Scale */
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 80px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-main);
  color: var(--white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Fixed Background Layer to prevent 'Split' / repeating issues */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-light) 100%);
  background-size: cover;
  background-repeat: no-repeat;
}

/* 2. Typography */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* Subtle text lift */
}

h2 {
  font-size: 2.25rem;
  /* ~36px */
  margin-bottom: var(--space-md);
  color: var(--sky);
}

p {
  max-width: 65ch;
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

/* 3. Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

/* Optional: Very subtle separation between sections */
.section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.section:last-child::after {
  display: none;
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.text-center {
  text-align: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.justify-center {
  justify-content: center;
}

/* 4. Components */

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-hover) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
  filter: brightness(1.1);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--sky);
}

.btn-ghost:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--sky);
  color: var(--white);
}

/* Cards (Glassmorphism) Refined */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
  border-radius: 20px;
  /* Softer corners */
  padding: var(--space-lg);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  background: var(--glass-bg-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 5. Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  background-color: rgba(14, 30, 50, 0.7);
  /* Slightly lighter glass nav */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
  padding: 0;
  background-color: rgba(14, 30, 50, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 120px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--sky);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-btn {
  margin-left: var(--space-md);
}

/* Mobile Nav Toggle (Hidden on Desktop) */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

/* 6. Footer */
.main-content {
  flex: 1 0 auto;
  width: 100%;
}

footer {
  flex-shrink: 0;
  background-color: rgba(0, 0, 0, 0.2);
  /* Semi transparent over gradient */
  backdrop-filter: blur(10px);
  padding: var(--space-lg) 0;
  text-align: center;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
}

footer p {
  max-width: 100%;
  margin: 0 auto;
}

/* --- Specific Page Styles --- */

/* Hero (Home) */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  /* Clean lighter video overlay */
  filter: saturate(1.1);
  /* Pop the water blue */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(14, 30, 50, 0.3), rgba(14, 30, 50, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-md);
  width: 100%;
}

.hero-logo {
  max-width: 600px;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
  margin-bottom: var(--space-md);
}

.hero-tagline {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-style: italic;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeIn 1s ease-in forwards 0.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Tagline Section */
.tagline-section h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-style: italic;
  font-weight: 900;
  margin: 0;
  background: linear-gradient(135deg, var(--white) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  /* Override default for gradient text */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* About / Home Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stat-card {
  text-align: center;
  padding: var(--space-md);
  /* Lighter distinctive glass for stats */
  background: rgba(255, 255, 255, 0.03);
}

.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--sky);
  margin-bottom: 4px;
}

/* Team Styles */
.team-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.team-card:hover .team-img {
  transform: scale(1.05);
  border-color: var(--sky);
}

.team-card.founder {
  grid-column: 1 / -1;
  max-width: 800px;
  margin: 0 auto;
}

.bio {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.8;
}

.bio strong {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--sky);
}

/* Services Page */
.service-feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.service-feature-list li::before {
  content: "•";
  color: var(--sky);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1rem;
}

.pricing-highlight {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 12px;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Contact Page */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(14, 30, 50, 0.98);
    padding: var(--space-md);
    gap: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link::after {
    display: none;
  }

  /* Remove hover underline on mobile */

  .nav-btn {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-logo {
    width: 90%;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: var(--space-xl) 0;
  }
}

/* Utils */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}