/* Root Variables */
:root {
  /* Primary Colors */
  --primary-color: #3273dc;
  --primary-color-dark: #2366d1;
  --primary-color-light: #4882e0;
  
  /* Secondary Colors */
  --secondary-color: #00d1b2;
  --secondary-color-dark: #00c4a7;
  --secondary-color-light: #1adbbd;
  
  /* Accent Colors */
  --accent-color: #ff3860;
  --accent-color-dark: #ff1f4b;
  --accent-color-light: #ff526f;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --dark-gradient: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
  --hero-gradient: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
  
  /* Shadows */
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
  --button-shadow: 0 4px 15px rgba(50, 115, 220, 0.3);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Spacing */
  --section-spacing: 5rem;
  --element-spacing: 2rem;
  
  /* Border Radius */
  --border-radius-small: 4px;
  --border-radius-medium: 8px;
  --border-radius-large: 12px;
}

/* Typography */
body {
  font-family: 'Merriweather', serif;
  color: #333333;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle, .navbar-item {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.section-title {
  position: relative;
  margin-bottom: 2.5rem;
  color: #2c3e50;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  transform: translateX(-50%);
  border-radius: var(--border-radius-small);
}

/* General Styles */
.section {
  padding: 5rem 1.5rem;
}

.image-container {
  overflow: hidden;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
  transition: all var(--transition-medium);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.image-container:hover img {
  transform: scale(1.05);
}

.image-container.is-rounded {
  border-radius: 50%;
  width: 150px;
  height: 150px;
}

.is-gradient {
  background: var(--primary-gradient);
  color: white !important;
}

/* Card Styles */
.card {
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
}

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.feature-card, .pricing-card, .instructor-card, .testimonial-card, .event-card, .project-card, .resource-card {
  text-align: center;
}

.card .image-container {
  margin-bottom: 0;
  height: 250px;
}

/* Button Styles */
.button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.button.is-primary {
  background-color: var(--primary-color);
}

.button.is-primary:hover {
  background-color: var(--primary-color-dark);
}

.button.is-gradient {
  background: var(--primary-gradient);
  border: none;
  box-shadow: var(--button-shadow);
}

.button.is-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(50, 115, 220, 0.4);
}

.button.is-outlined.is-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.button.is-outlined.is-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.button.is-outlined.is-white:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.hero-buttons .button {
  margin-right: 1rem;
  margin-bottom: 1rem;
}

/* Navbar Styles */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.navbar-item {
  font-weight: 500;
  transition: color var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-gradient);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
}

.hero-title, .hero-subtitle, .hero-text {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 800px;
}

.progress-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-medium);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
}

.progress-title {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.progress-item {
  margin-bottom: 1rem;
  position: relative;
}

.progress-item span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.progress-value {
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 700;
  color: var(--primary-color);
}

/* Vision & Mission Sections */
.vision-section, .mission-section {
  position: relative;
}

.vision-text, .mission-text {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Features Section */
.features-section {
  background-color: #f9f9f9;
}

.feature-card .title {
  margin-bottom: 1rem;
}

/* Pricing Section */
.pricing-section {
  background-color: #f5f5f5;
}

.pricing-card {
  padding: 1rem;
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 2px solid var(--primary-color);
  z-index: 1;
}

.pricing-card .card-header {
  background-color: transparent;
  border: none;
}

.pricing-card .card-header-title {
  justify-content: center;
  padding: 1.5rem;
}

.price-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.period {
  font-size: 1rem;
  color: #777;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #eee;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Instructors Section */
.instructors-section {
  background-color: white;
}

.instructor-card .subtitle {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Success Stories Section */
.success-stories-section {
  background-color: #f9f9f9;
}

.testimonial-card {
  text-align: left;
}

.testimonial-text {
  font-style: italic;
  color: #555;
}

/* Events Calendar Section */
.events-section {
  background-color: white;
}

.event-card .card-image {
  height: 200px;
}

.event-date {
  background: var(--primary-gradient);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-month {
  font-size: 0.9rem;
  font-weight: 500;
}

.event-details {
  margin-bottom: 0.5rem;
}

.event-details span {
  font-weight: 700;
  color: var(--primary-color);
}

/* Resources Section */
.resources-section {
  background-color: #f5f5f5;
}

.resource-card .title a {
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

.resource-card .title a:hover {
  color: var(--primary-color-dark);
  text-decoration: underline;
}

/* Gallery Section */
.gallery-section {
  background-color: white;
}

.gallery-item {
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--card-shadow);
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Projects Section */
.projects-section {
  background-color: #f9f9f9;
}

.project-card .subtitle {
  color: #777;
  margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
  background-color: white;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item .icon {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.5rem;
}

.contact-form-container {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--card-shadow);
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 4rem 1.5rem 2rem;
}

.footer .title {
  color: white;
}

.footer-description {
  margin-top: 1rem;
  margin-bottom: 2rem;
  color: #bdc3c7;
}

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

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #bdc3c7;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: #bdc3c7;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: white;
  text-decoration: underline;
}

.newsletter .input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.newsletter .input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
}

.success-container {
  text-align: center;
  padding: 3rem;
  background-color: white;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--card-shadow);
  max-width: 600px;
}

.success-icon {
  font-size: 5rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
}

.privacy-content, .terms-content {
  background-color: white;
  padding: 3rem;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--card-shadow);
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .pricing-card.featured {
    transform: none;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .contact-item {
    flex-direction: column;
  }
  
  .contact-item .icon {
    margin-bottom: 0.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn var(--transition-medium);
}

.animate-scaleUp {
  animation: scaleUp var(--transition-medium);
}

.animate-slideInLeft {
  animation: slideInLeft var(--transition-medium);
}

.animate-slideInRight {
  animation: slideInRight var(--transition-medium);
}

/* 3D Effects */
.card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.pricing-card.featured {
  transform: scale(1.05) translateZ(20px);
}

.button.is-gradient:hover {
  transform: translateY(-2px) translateZ(10px);
}

/* Additional Utility Classes */
.has-text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.read-more {
  color: var(--primary-color);
  font-weight: 500;
  transition: all var(--transition-fast);
  display: inline-block;
  margin-top: 1rem;
}

.read-more:hover {
  color: var(--primary-color-dark);
  transform: translateX(5px);
}

.read-more::after {
  content: " →";
  transition: all var(--transition-fast);
}

.read-more:hover::after {
  margin-left: 5px;
}