/* CSS Variables for Theme Consistency */
:root {
  /* Split Complementary Color Scheme */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  
  --secondary-color: #f59e0b;
  --secondary-dark: #d97706;
  --secondary-light: #fbbf24;
  
  --accent-color: #ec4899;
  --accent-dark: #db2777;
  --accent-light: #f472b6;
  
  --tertiary-color: #10b981;
  --tertiary-dark: #059669;
  --tertiary-light: #34d399;
  
  /* Neutral Colors */
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Dynamic Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
  --gradient-hero: linear-gradient(rgba(0,0,0,0.6), rgba(37,99,235,0.4));
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  
  /* 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;
  --spacing-2xl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: all 0.2s ease-in-out;
  --transition-smooth: all 0.3s ease-in-out;
  --transition-slow: all 0.5s ease-in-out;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  margin: 0;
  padding: 0;
}

/* 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(--gray-900);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.875rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-md);
  color: var(--gray-700);
}

/* Global Button Styles */
.btn,
button,
.button,
input[type='submit'],
input[type='button'] {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

.btn:hover,
button:hover,
.button:hover,
input[type='submit']:hover,
input[type='button']:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary,
.button.is-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border: 2px solid transparent;
}

.btn-primary:hover,
.button.is-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary,
.button.is-light {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover,
.button.is-light:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Read More Links */
.read-more,
.btn-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-heading);
  position: relative;
  transition: var(--transition-smooth);
}

.read-more:after,
.btn-link:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
}

.read-more:hover,
.btn-link:hover {
  color: var(--accent-color);
}

.read-more:hover:after,
.btn-link:hover:after {
  width: 100%;
}

/* Header & Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  transition: var(--transition-smooth);
}

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

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

.navbar-item:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

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

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

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero .hero-body {
  position: relative;
  z-index: 2;
  padding: var(--spacing-2xl) 0;
}

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

.hero .title {
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--white), #e5e7eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

/* Services Section */
#services {
  background: var(--gray-50);
  position: relative;
}

#services:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.02), rgba(236,72,153,0.02));
}

#services .container {
  position: relative;
  z-index: 1;
}

/* Team Section */
#team {
  background: linear-gradient(135deg, var(--gray-50), var(--white));
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-member .card-image {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  margin: 0 auto var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.team-member .card-image img {
  border-radius: 50%;
}

/* Timeline for Workshops */
.timeline {
  position: relative;
  padding: var(--spacing-xl) 0;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
  width: 100%;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-left: 60%;
  position: relative;
  text-align: center;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: 60%;
}

.timeline-content:before {
  content: '';
  position: absolute;
  top: 20px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--white);
}

.timeline-item:nth-child(even) .timeline-content:before {
  left: auto;
  right: -10px;
  border-right: none;
  border-left: 10px solid var(--white);
}

/* Case Studies Section */
#case-studies {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
}

#case-studies .title,
#case-studies .subtitle,
#case-studies p {
  color: var(--white);
}

#case-studies .card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Media Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  text-align: center;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin: 0 auto;
}

/* Customer Stories */
.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial .card-content {
  position: relative;
  font-style: italic;
}

.testimonial .card-content:before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: Georgia, serif;
}

/* Pricing Section */
.pricing-card {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.pricing-card .title {
  color: var(--primary-color);
}

/* FAQ Section */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
  text-align: center;
}

.faq-item .title {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

/* Press Section */
.media {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.media .title {
  color: var(--secondary-color);
}

/* Contact Section */
#contact {
  background: linear-gradient(135deg, var(--gray-50), rgba(37,99,235,0.05));
}

.form-control,
.input,
.textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.form-control:focus,
.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-200);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer h3,
.footer h4 {
  color: var(--white);
  font-family: var(--font-heading);
}

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

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

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

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

/* Social Media Icons in Footer */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-link {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--gray-800);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  font-weight: 500;
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

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

.success-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-content .title,
.success-content .subtitle,
.success-content p {
  color: var(--white);
}

/* Privacy and Terms Pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
  min-height: 100vh;
}

.privacy-content,
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-2xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

/* Responsive Design */
@media screen and (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .timeline:before {
    left: 20px;
  }
  
  .timeline-content {
    margin-left: 50px;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    margin-right: 0;
  }
  
  .timeline-marker {
    left: 20px;
  }
  
  .timeline-content:before {
    left: -10px;
    border-right: 10px solid var(--white);
    border-left: none;
  }
  
  .timeline-item:nth-child(even) .timeline-content:before {
    left: -10px;
    right: auto;
    border-right: 10px solid var(--white);
    border-left: none;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .columns.is-multiline .column {
    margin-bottom: var(--spacing-lg);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .btn,
  .button {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .hero .buttons {
    flex-direction: column;
  }
  
  .team-member .card-image {
    width: 150px;
    height: 150px;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .card-content {
    padding: var(--spacing-md);
  }
  
  .timeline-content {
    padding: var(--spacing-md);
  }
  
  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

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

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

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

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Glassmorphism Effects */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hover Effects for Interactive Elements */
.interactive-hover {
  position: relative;
  overflow: hidden;
}

.interactive-hover:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
}

.interactive-hover:hover:before {
  left: 100%;
}