/* CSS Variables - Complementary Color Scheme with Eco-Minimalism */
:root {
  /* Primary Colors - Blue-Green Spectrum */
  --primary-color: #2C7AA0;
  --primary-dark: #1E5F7A;
  --primary-light: #4A9BC7;
  --primary-gradient: linear-gradient(135deg, #2C7AA0 0%, #4A9BC7 100%);

  /* Complementary Colors - Orange-Red Spectrum */
  --accent-color: #E85D04;
  --accent-dark: #D00000;
  --accent-light: #F48C06;
  --accent-gradient: linear-gradient(135deg, #E85D04 0%, #F48C06 100%);

  /* Eco-Minimalism Colors */
  --eco-green: #52B788;
  --eco-green-light: #74C69D;
  --eco-sage: #95D5B2;
  --earth-brown: #8B5A3C;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #6C757D;
  --dark-gray: #343A40;
  --black: #212529;

  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-accent: #E3F2FD;
  --bg-dark: #2C3E50;

  /* Neumorphism Colors */
  --shadow-light: rgba(255, 255, 255, 0.7);
  --shadow-dark: rgba(0, 0, 0, 0.15);
  --inset-shadow: inset 8px 8px 16px var(--shadow-dark), inset -8px -8px 16px var(--shadow-light);
  --outset-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radius */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-backdrop: blur(20px);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark-gray);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--medium-gray);
  font-weight: 400;
}

/* Button Styles - Global */
.btn, .button, button, input[type='submit'] {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--outset-shadow);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 160px;
}

.btn:hover, .button:hover, button:hover, input[type='submit']:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 122, 160, 0.3);
  filter: brightness(1.1);
}

.btn:active, .button:active, button:active, input[type='submit']:active {
  transform: translateY(0);
  box-shadow: var(--inset-shadow);
}

.cta-button {
  background: var(--accent-gradient);
  font-size: 1.1rem;
  padding: 16px 32px;
  min-width: 200px;
}

.button-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  box-shadow: none;
}

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

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--glass-backdrop);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-sm) 0;
  z-index: 1000;
}

.navbar-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark-gray);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all var(--transition-medium);
  transform: translateX(-50%);
}

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

.navbar-item:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.7);
  z-index: 0;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 122, 160, 0.6) 0%, rgba(232, 93, 4, 0.4) 100%);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xl) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

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

.hero-title {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  animation: slideInDown 1s ease-out;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-lg);
  animation: slideInUp 1s ease-out 0.3s both;
}

.hero-description {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
  animation: fadeIn 1s ease-out 0.6s both;
}

/* Section Styles */
.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transform: translateX(-50%);
}

/* Card Styles with Neumorphism */
.card, .service-card, .news-card, .team-card, .testimonial-card, .resource-card, .contact-form-card, .contact-info-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--outset-shadow);
  border: none;
  transition: all var(--transition-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.card:hover, .service-card:hover, .news-card:hover, .team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-content {
  padding: var(--spacing-lg);
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-image {
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.image-container {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 0 auto;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
  margin: 0 auto;
  display: block;
}

.service-card .image-container {
  height: 250px;
}

.team-card .image-container {
  height: 300px;
}

.news-card .image-container {
  height: 200px;
}

.testimonial-card .image-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: var(--spacing-sm);
}

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

/* Services Section */
#services .columns {
  align-items: stretch;
}

/* Clientele/Testimonials Section */
.testimonial-card {
  background: var(--bg-secondary);
  height: auto;
  min-height: 200px;
}

.testimonial-card .media {
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  text-align: left;
}

.testimonial-card .content {
  font-style: italic;
  color: var(--medium-gray);
  text-align: left;
}

/* Team/Instructors Section */
.team-card .card-content {
  padding: var(--spacing-lg);
}

/* News Section */
.news-card .card-content {
  text-align: left;
}

.news-card .subtitle {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

/* Resources Section */
.resource-card {
  background: var(--bg-accent);
  text-align: center;
  min-height: 200px;
}

.resource-card .button {
  margin-top: auto;
  background: var(--eco-green);
}

.resource-card .button:hover {
  background: var(--eco-green-light);
}

/* Contact Section */
.contact-form-card, .contact-info-card {
  height: auto;
  align-items: stretch;
}

.contact-form {
  width: 100%;
}

.field {
  margin-bottom: var(--spacing-md);
}

.label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-xs);
}

.input, .textarea, .select select {
  border: 2px solid transparent;
  border-radius: var(--border-radius-sm);
  background: var(--bg-secondary);
  box-shadow: var(--inset-shadow);
  padding: 12px 16px;
  font-family: var(--font-body);
  transition: all var(--transition-medium);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 122, 160, 0.1);
  outline: none;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--light-gray);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer h3, .footer h4 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: var(--spacing-xs);
}

.footer a {
  color: var(--light-gray);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer a:hover {
  color: var(--accent-light);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  position: relative;
}

.social-links a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 50%;
  margin-right: var(--spacing-xs);
  transition: all var(--transition-fast);
}

.social-links a:hover::before {
  background: var(--accent-light);
  transform: scale(1.5);
}

/* Utility Classes */
.has-background-light {
  background-color: var(--bg-secondary) !important;
}

/* Page-specific Styles */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: var(--white);
  text-align: center;
}

.privacy-content, .terms-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.privacy-content h2, .terms-content h2 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

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

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Micro-animations */
.card {
  animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* Read More Links */
.read-more {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.read-more::after {
  content: '→';
  margin-left: var(--spacing-xs);
  transition: all var(--transition-fast);
}

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

.read-more:hover::after {
  transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .card-content {
    padding: var(--spacing-md);
  }
  
  .testimonial-card .media {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-card .media-left {
    margin-bottom: var(--spacing-sm);
  }
  
  .testimonial-card .content {
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-lg: 1.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .btn, .button {
    min-width: 120px;
    font-size: 0.9rem;
    padding: 10px 20px;
  }
  
  .cta-button {
    min-width: 160px;
    padding: 14px 28px;
  }
}

/* Performance Optimizations */
.hero-background,
.card-image img,
.image-container img {
  will-change: transform;
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}