:root {
  --primary-color: #5c9e99;
  --primary-dark: #3a6b68;
  --secondary-color: #8db58a;
  --bg-color: #f7f9f8;
  --text-dark: #333333;
  --text-light: #ffffff;
  --accent-color: #a7c1b5;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Background Animations */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(120deg, #f7f9f8, #e0f2f1);
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 158, 153, 0.2) 0%, rgba(141, 181, 138, 0) 70%);
  animation: float 15s infinite ease-in-out alternate;
}

.circle:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.circle:nth-child(2) {
  width: 600px;
  height: 600px;
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(141, 181, 138, 0.2) 0%, rgba(92, 158, 153, 0) 70%);
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(50px) scale(1.1);
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  box-sizing: border-box;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-brand img {
  height: 50px;
}

.nav-brand h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  margin-left: 30px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero h2 {
  font-size: 4rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  color: #555;
  line-height: 1.6;
}

.btn {
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1.1rem;
  margin-top: 30px;
  transition: background-color 0.3s, transform 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Sections */
section {
  padding: 100px 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 50px;
}

/* Grid Layouts */
.yoga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.yoga-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  cursor: pointer;
}

.yoga-card:hover {
  transform: translateY(-10px);
}

.yoga-img-wrapper {
  height: 200px;
  overflow: hidden;
}

.yoga-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.yoga-card:hover img {
  transform: scale(1.1);
}

.yoga-content {
  padding: 20px;
}

.yoga-content h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(50px);
  transition: transform 0.3s;
  padding: 40px;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #333;
}

.modal-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Need for Yoga */
.need-section {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  backdrop-filter: blur(10px);
}

/* Footer & Contact */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 30px;
  font-size: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Simple mobile nav hiding for demo */
  }
  .hero h2 {
    font-size: 2.5rem;
  }
  .contact-info {
    flex-direction: column;
    gap: 20px;
  }
}

/* Additional Custom Styles */
#yoga-search:focus {
    border-color: var(--primary-color);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
}

.messages-container {
    pointer-events: none;
}