/* 
 * AquaArcade - CSS Stylesheet
 * Oceanic Aquatic / Fluid Organic / Bubble Circles Aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
  /* Oceanic Palette */
  --bg-deep: #021526;        /* Deep Sea Floor */
  --bg-abyss: #032b44;       /* Mid Water Column */
  --bg-surface: #0e4a70;     /* Shallow Water */
  
  --color-teal: #2dd4bf;     /* Bioluminescent Aquamarine */
  --color-blue: #38bdf8;     /* Sea Glass Blue */
  --color-coral: #fb7185;    /* Vibrant Coral Pink */
  --color-sand: #fde047;     /* Sandy Sun Gold */
  
  --text-main: #f0fdfa;      /* Bubble Foam Teal-White */
  --text-muted: #93c5fd;     /* Translucent Blue-Gray */
  --text-dark: #021526;

  /* Fonts */
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Quicksand', sans-serif;

  /* Borders & Glassmorphism */
  --glass-bg: rgba(14, 74, 112, 0.45);
  --glass-border: 1.5px solid rgba(45, 212, 191, 0.3);
  --glass-shadow: 0 12px 30px rgba(2, 21, 38, 0.5);
  --card-radius: 30px;      /* Organic soft curves */
  
  --transition-fluid: cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  background-image: radial-gradient(circle at 50% 0%, var(--bg-abyss) 0%, var(--bg-deep) 100%);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Translucent Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(45, 212, 191, 0.3);
  border-radius: 10px;
  border: 2px solid var(--bg-deep);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.section-spacing {
  padding: 80px 0;
  position: relative;
}

/* Floating Bubble Canvas */
.bubble-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.bubble {
  position: absolute;
  bottom: -100px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0.02) 70%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 50%;
  animation: floatUp 15s infinite ease-in-out;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120vh) translateX(50px) scale(1.2);
    opacity: 0;
  }
}

/* Wave Dividers */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
  fill: var(--bg-deep);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.3rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--color-teal);
  position: relative;
}

h2::after {
  content: '•••';
  display: block;
  font-size: 1.2rem;
  letter-spacing: 5px;
  color: var(--color-coral);
  margin-top: 10px;
}

h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 12px;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* Navigation Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 21, 38, 0.7);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-bubble {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 30% 30%, var(--color-teal) 0%, var(--bg-surface) 100%);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.4);
  position: relative;
}

.logo-bubble::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0.8;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 15px;
}

nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 20px;
  transition: all 0.3s var(--transition-fluid);
}

nav a:hover,
nav a.active {
  color: var(--text-dark);
  background: var(--color-teal);
  box-shadow: 0 5px 15px rgba(45, 212, 191, 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--color-teal);
  color: var(--color-teal);
  font-family: var(--font-heading);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s var(--transition-fluid);
}

.mobile-toggle:hover {
  background: var(--color-teal);
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  padding: 80px 0 120px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.hero-img-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-img-shell::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, rgba(45, 212, 191, 0) 70%);
  animation: pulseGlow 6s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-img {
  width: 90%;
  max-width: 440px;
  height: auto;
  border-radius: 50%; /* Pure circular illustration integration */
  border: 6px solid rgba(45, 212, 191, 0.3);
  box-shadow: 0 20px 50px rgba(2, 21, 38, 0.6);
  animation: gentleFloat 8s infinite ease-in-out;
  position: relative;
  z-index: 2;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Bubble Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--transition-fluid);
  position: relative;
  overflow: hidden;
}

.btn-teal {
  background: var(--color-teal);
  color: var(--text-dark);
  box-shadow: 0 8px 25px rgba(45, 212, 191, 0.3);
}

.btn-teal:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(45, 212, 191, 0.5);
}

.btn-outline {
  border-color: var(--color-blue);
  color: var(--color-blue);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-3px);
}

.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Translucent Fluid Cards */
.fluid-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: var(--card-radius);
  padding: 30px;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s var(--transition-fluid);
  display: flex;
  flex-direction: column;
}

.fluid-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-blue);
  box-shadow: 0 15px 40px rgba(45, 212, 191, 0.2);
}

.card-icon {
  width: 55px;
  height: 55px;
  background: radial-gradient(circle, var(--color-teal) 0%, rgba(45, 212, 191, 0.2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--text-dark);
}

.card-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(45, 212, 191, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-coral);
  background: rgba(251, 113, 133, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
}

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

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

/* Bubble Search Control Panel */
.search-control-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: 35px;
  padding: 20px 30px;
  margin-bottom: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.search-field {
  position: relative;
  flex-grow: 1;
  max-width: 380px;
}

.search-field input {
  width: 100%;
  padding: 12px 16px 12px 46px;
  background: rgba(2, 21, 38, 0.6);
  border: 1.5px solid rgba(45, 212, 191, 0.2);
  border-radius: 30px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s var(--transition-fluid);
}

.search-field input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.2);
}

.search-field svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(2, 21, 38, 0.5);
  border: 1.5px solid rgba(45, 212, 191, 0.2);
  color: var(--text-muted);
  font-family: var(--font-heading);
  padding: 6px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s var(--transition-fluid);
}

.filter-pill:hover {
  border-color: var(--color-blue);
  color: #ffffff;
}

.filter-pill.active {
  background: var(--color-teal);
  color: var(--text-dark);
  border-color: var(--color-teal);
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
}

/* Circular Rating Score */
.circle-rating-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.circle-rating {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-teal);
  background: rgba(45, 212, 191, 0.05);
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.15);
}

/* Aquatic Metric Bars */
.aquatic-metric {
  margin-bottom: 15px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.metric-track {
  height: 12px;
  background: rgba(2, 21, 38, 0.6);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(45, 212, 191, 0.15);
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-teal) 100%);
  border-radius: 20px;
}

/* Ocean Wave Timeline Steps */
.step-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
}

.step-container::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-teal), var(--color-blue));
  opacity: 0.3;
}

.step-node {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 25px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.step-bubble {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, var(--color-teal) 0%, var(--bg-surface) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-dark);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.3);
}

.step-content {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-radius: 24px;
  padding: 24px;
}

/* Bubble Form Elements */
.form-shell {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: var(--card-radius);
  padding: 40px;
  box-shadow: var(--glass-shadow);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-teal);
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  background: rgba(2, 21, 38, 0.6);
  border: 1.5px solid rgba(45, 212, 191, 0.2);
  border-radius: 25px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s var(--transition-fluid);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.2);
}

textarea.form-control {
  min-height: 140px;
  border-radius: 20px;
  resize: vertical;
}

.form-status {
  padding: 14px 20px;
  border-radius: 20px;
  margin-bottom: 22px;
  font-family: var(--font-heading);
  font-weight: 500;
  display: none;
}

.form-status.success {
  background: rgba(45, 212, 191, 0.15);
  border: 1.5px solid var(--color-teal);
  color: var(--color-teal);
  display: block;
}

.form-status.error {
  background: rgba(251, 113, 133, 0.15);
  border: 1.5px solid var(--color-coral);
  color: var(--color-coral);
  display: block;
}

/* Footer styling */
footer {
  border-top: 1px solid rgba(45, 212, 191, 0.15);
  background: rgba(2, 21, 38, 0.8);
  padding: 80px 0 30px 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-coral);
  margin-top: 6px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form .form-control {
  border-radius: 25px;
  padding: 10px 16px;
}

.newsletter-form .btn {
  padding: 10px 22px;
  border-radius: 25px;
}

.footer-bottom {
  border-top: 1px solid rgba(45, 212, 191, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.social-group {
  display: flex;
  gap: 12px;
}

.social-bubble {
  width: 40px;
  height: 40px;
  background: rgba(14, 74, 112, 0.4);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--transition-fluid);
}

.social-bubble svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
}

.social-bubble:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  transform: translateY(-3px) scale(1.1);
}

.social-bubble:hover svg {
  fill: var(--text-dark);
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 { font-size: 2.8rem; }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .btn-group {
    justify-content: center;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: rgba(2, 21, 38, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(45, 212, 191, 0.15);
    padding: 40px 24px;
    transition: all 0.4s var(--transition-fluid);
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  
  nav a {
    font-size: 1.2rem;
    padding: 10px 30px;
  }
  
  .grid-3, .grid-2, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .search-control-panel {
    flex-direction: column;
    align-items: stretch;
    border-radius: 25px;
  }
  
  .search-field {
    max-width: 100%;
  }
  
  .step-node {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .step-bubble {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
  
  .step-container::before {
    display: none;
  }
  
  .form-shell {
    padding: 25px;
  }
}
