/* Main CSS for Yoga & Fitness Website */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #4CAF50;
  --secondary-color: #2E7D32;
  --accent-color: #81C784;
  --text-dark: #2C2C2C;
  --text-light: #666;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  --gradient-secondary: linear-gradient(135deg, #81C784 0%, #4CAF50 100%);
  --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark) !important; /* Force dark text color */
}

h1 {
  font-size: 3.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-dark) !important;
}

h3 {
  font-size: 1.5rem;
  color: var(--text-light) !important;
  font-weight: 400;
}

h4 {
  color: var(--text-dark) !important;
}

h5 {
  color: var(--text-dark) !important;
}

p {
  color: var(--text-light) !important;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Header Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background-color: rgba(76, 175, 80, 0.1);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(46, 125, 50, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.hero-section .col-lg-6:first-child {
  z-index: 2;
  padding: 2rem;
}

.hero-section img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  transition: var(--transition);
}

.hero-section img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* About Section */
#about {
  background: var(--white);
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(76, 175, 80, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-color);
}

.feature-card i {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover i {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.feature-card h4 {
  color: var(--text-dark) !important;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Services Section */
#services {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  border: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.service-card img {
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-card .card-body {
  padding: 2rem;
}

.service-card h4 {
  color: var(--text-dark) !important;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.service-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(76, 175, 80, 0.1);
  border-radius: var(--border-radius);
  display: inline-block;
}

/* Features Section */
#features {
  background: var(--white);
}

.feature-box {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  border: 2px solid transparent;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.feature-box i {
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.feature-box:hover i {
  color: var(--secondary-color);
  transform: scale(1.1);
}

/* Reviews Section */
#reviews {
  background: var(--light-bg);
}

.reviews-slider {
  position: relative;
  padding-bottom: 3rem;
}

.review-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(76, 175, 80, 0.1);
  margin: 0 1rem;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.review-card p {
  font-size: 1.1rem;
  color: var(--text-light) !important;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.review-card h5 {
  color: var(--primary-color) !important;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

/* Swiper Pagination Customization */
.swiper-pagination {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.swiper-pagination-bullet {
  background: rgba(76, 175, 80, 0.3);
  opacity: 1;
  width: 12px;
  height: 12px;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Case Studies Section */
#casestudy {
  background: var(--white);
}

.case-study-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  border: none;
}

.case-study-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.case-study-card img {
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.case-study-card:hover img {
  transform: scale(1.05);
}

.case-study-card .card-body {
  padding: 2rem;
}

.case-study-card h4 {
  color: var(--text-dark) !important;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Process Section */
#process {
  background: var(--light-bg);
}

.process-step {
  padding: 1.5rem;
  height: 100%;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-light);
}

.process-step h5 {
  color: var(--text-dark) !important;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Timeline Section */
#timeline {
  background: var(--white);
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
  padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 1rem;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-light);
}

.timeline-item:nth-child(odd)::before {
  right: -10px;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(76, 175, 80, 0.1);
}

.timeline-content h4 {
  color: var(--text-dark) !important;
  margin-bottom: 0.5rem;
}

/* Career Section */
#career {
  background: var(--light-bg);
}

.career-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(76, 175, 80, 0.1);
}

.career-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.career-card h4 {
  color: var(--text-dark) !important;
  margin-bottom: 0.5rem;
}

.career-card .role {
  color: var(--primary-color) !important;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 12px 30px;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  background: var(--gradient-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--white);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
.animate-on-scroll {
  animation: fadeInUp 0.8s ease-out;
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--gradient-primary);
}

.section-padding {
  padding: 5rem 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Focus States for Accessibility */
.nav-link:focus,
.btn:focus {
  outline: 3px solid rgba(76, 175, 80, 0.3);
  outline-offset: 2px;
}

/* FAQ Section */
#faq {
  background: var(--white);
}

.accordion {
  border: none;
  box-shadow: var(--shadow-light);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-item {
  border: none;
  background: var(--white);
}

.accordion-item:not(:last-child) {
  border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

.accordion-header {
  background: var(--white);
}

.accordion-button {
  background: var(--white);
  border: none;
  padding: 1.5rem 2rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: none;
  border-radius: 0;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  background: rgba(76, 175, 80, 0.05);
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
  border-color: var(--primary-color);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234CAF50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: var(--transition);
}

.accordion-body {
  padding: 1.5rem 2rem;
  background: var(--white);
  color: var(--text-light);
  line-height: 1.6;
}

/* Gallery Section */
#gallery {
  background: var(--light-bg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(76, 175, 80, 0.8);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 2rem;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Contact Section */
#contacts {
  background: var(--white);
}

.form-control {
  border: 2px solid rgba(76, 175, 80, 0.2);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.form-check-input {
  border: 2px solid rgba(76, 175, 80, 0.3);
  border-radius: 4px;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
  border-color: var(--primary-color);
}

.form-check-label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.contact-info {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  margin-bottom: 1rem;
}

.contact-info:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.contact-info i {
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.contact-info:hover i {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.contact-info p {
  margin: 0;
  color: var(--text-dark);
  font-weight: 500;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

footer h5 {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

footer a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

footer .list-unstyled li {
  margin-bottom: 0.5rem;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
}

footer small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Improved Form Styling */
form {
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(76, 175, 80, 0.1);
}

/* Enhanced Lightbox Gallery */
.col-md-4 a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.col-md-4 a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.col-md-4 img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.col-md-4 a:hover img {
  transform: scale(1.05);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Section Spacing */
section {
  position: relative;
  z-index: 1;
}

/* Enhanced Buttons */
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
}

/* Background Patterns */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(46, 125, 50, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Improved Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Performance Optimizations */
.img-fluid {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

/* Modern Scrollbar for Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f1f1f1;
}
