/* === Color Variables === */
:root {
  --primary-color: #00b3b8;
  --secondary-color: #1b1f3a;
  --accent-color: #faae2b;
  --soft-aqua: #a1f0f5;
  --dark-bg: #0b3c49;
  --text-light: #ffffff;
}

/* === General Page Styling === */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, var(--dark-bg), var(--primary-color));
  color: var(--text-light);
}

/* === Navbar Styling === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: var(--secondary-color);
}

.logo img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li {
  display: inline;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  transition: color 0.3s ease-in-out;
}

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

.login-btn {
  background-color: var(--accent-color);
  padding: 8px 15px;
  border-radius: 5px;
  color: var(--secondary-color) !important;
  text-decoration: none;
}

/* === Hamburger Menu for Mobile === */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger-menu span {
  background: var(--text-light);
  height: 3px;
  width: 25px;
  margin: 3px 0;
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--secondary-color);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .hamburger-menu {
    display: flex;
  }

  .nav-links.show {
    display: flex;
  }
}

/* === Hero Section === */
.hero {
  background: url('hero-image.jpg') no-repeat center center/cover;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  padding: 20px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  background: rgba(27, 31, 58, 0.7); /* dark overlay */
  padding: 30px;
  border-radius: 10px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease-in-out;
}

.btn-primary:hover {
  background: #e8a21a;
}

/* === Shared Section Styling === */
section {
  padding: 80px 20px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  
}

/* === Features Section === */
.features {
  background: linear-gradient(135deg, var(--primary-color), var(--soft-aqua));
  text-align: center;
}

.feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  transition: 0.3s ease-in-out;
  width: 220px;
  margin: 0 auto;
  min-height: 200px;
}

.feature:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.feature img {
  width: 30px;
  margin-bottom: 10px;
}

.feature h3 {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

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

/* === Community, Connect, Pricing, Signup Sections === */
.community {
  text-align: center;
  padding: 20px 20px;
  background: linear-gradient(135deg, var(--dark-bg), var(--primary-color));
  color: var(--text-light);
}

.connect-swimsmart,
.pricing,
.signup,
.login {
  background: linear-gradient(135deg, var(--dark-bg), var(--primary-color));
  text-align: center;
  color: var(--text-light);
}

.community h2,
.connect-swimsmart h2,
.pricing h2,
.signup h2,
.login h2 {
  color: var(--accent-color);
}

.btn-community,
.btn-signup,
.btn-login,
.btn-pricing {
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.btn-community:hover,
.btn-signup:hover,
.btn-login:hover,
.btn-pricing:hover {
  background: #e8a21a;
}

/* === Forms === */
form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--text-light);
  padding: 40px;
  border-radius: 10px;
  color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1rem;
}

/* === Contact Info === */
.contact-info {
  background: url('img/questions-bg.jpg') no-repeat center center/cover;
  position: relative;
  text-align: center;
  padding: 100px 20px;
  color: var(--text-light);
}

.contact-info::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.contact-info h2,
.contact-details {
  position: relative;
  z-index: 2;
}

.contact-details a {
  color: var(--accent-color);
}
.wave-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

.wave-background svg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 200%;
}

.wave-background path {
  animation: waveFlow 30s linear infinite;
}

@keyframes waveFlow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-25%);
  }
}
.wave-background-2 {
  z-index: 0;
  opacity: 0.4;
}

.wave-background-2 svg {
  height: 100%;
  width: 300%;
}

.wave-background .wave-layer,
.wave-background-2 .wave-layer-2 {
  animation: waveFlow 30s linear infinite;
}

.wave-background-2 .wave-layer-2 {
  animation: waveFlowAlt 45s linear infinite;
}

@keyframes waveFlowAlt {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-15%);
  }
}
.bubble-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin: 15px 0;
  flex-wrap: wrap;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.center-row {
  justify-content: center;
}


.bubble {
  background: rgba(255, 255, 255, 0.1); /* light transparent white */
  color: var(--text-light);
  border: 2px solid var(--accent-color);
  padding: 40px 20px;
  width: 360px;
  height: 20px;
  border-radius: 50px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s;
  animation: float 6

.bubble:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--accent-color);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.sparkle-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 4s linear infinite;
}

.sparkle-1 { top: 20%; left: 10%; animation-delay: 0s; }
.sparkle-2 { top: 50%; left: 25%; animation-delay: 1s; }
.sparkle-3 { top: 30%; left: 70%; animation-delay: 2s; }
.sparkle-4 { top: 60%; left: 80%; animation-delay: 3s; }
.sparkle-5 { top: 40%; left: 50%; animation-delay: 1.5s; }

@keyframes sparkle {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

/* Make sure .community is positioned for sparkles to align */
.community {
  position: relative;
  overflow: hidden;
}
