/* CSS Variables - Analogous Color Scheme with Biomorphic Design */
:root {
  /* Primary Analogous Color Palette */
  --primary-color: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary-color: #7c3aed;
  --secondary-light: #8b5cf6;
  --secondary-dark: #6d28d9;
  --accent-color: #06b6d4;
  --accent-light: #22d3ee;
  --accent-dark: #0891b2;

  /* Supporting Colors */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #3b82f6;

  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f8fafc;
  --gray: #64748b;
  --dark-gray: #334155;
  --black: #0f172a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-light) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(124, 58, 237, 0.9) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);

  /* Typography */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;

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

  /* Border Radius - Biomorphic */
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --radius-organic: 30% 70% 70% 30% / 30% 30% 70% 70%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.16);
  --shadow-xl: 0 12px 48px rgba(15, 23, 42, 0.2);

  /* Transitions - Elastic Animations */
  --transition-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

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

h1 { font-size: 3.5rem; font-weight: 800; }
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(--space-md);
  color: var(--gray);
  line-height: 1.8;
}

/* Global Button Styles */
.btn, 
button, 
input[type='submit'], 
.button {
  font-family: var(--font-body);
  font-weight: 600;
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  transition: all 0.4s var(--transition-elastic);
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn:before,
button:before,
input[type='submit']:before,
.button: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: left 0.5s;
}

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

.btn:hover:before,
button:hover:before,
input[type='submit']:hover:before,
.button:hover:before {
  left: 100%;
}

.btn:active,
button:active,
input[type='submit']:active,
.button:active {
  transform: translateY(-1px) scale(1.02);
}

/* Button Variants */
.btn-secondary,
.button.is-secondary {
  background: var(--gradient-accent);
}

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

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

.btn-large,
.button.is-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.125rem;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--transition-smooth);
  z-index: 1000;
}

.navbar-brand strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 800;
}

.navbar-item {
  font-weight: 500;
  transition: all 0.3s var(--transition-elastic);
  border-radius: var(--radius-sm);
  position: relative;
}

.navbar-item:hover {
  color: var(--primary-color);
  background: var(--gradient-soft);
  transform: translateY(-2px);
}

.navbar-burger {
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero {
  position: relative;
  background: var(--gradient-primary);
  color: var(--white);
  overflow: hidden;
}

.hero.has-background-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

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

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

.hero .title {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-lg);
}

.hero .subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Section Spacing */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section.has-background-light {
  background: var(--light-gray);
}

.section.has-background-primary {
  background: var(--gradient-primary);
  color: var(--white);
}

/* Cards - Biomorphic Design */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: none;
  transition: all 0.4s var(--transition-elastic);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.3s var(--transition-smooth);
  z-index: 1;
}

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

.card:hover::before {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: var(--space-lg);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

/* Portfolio Section */
#portfolio .card {
  background: linear-gradient(135deg, var(--white) 0%, rgba(248, 250, 252, 0.8) 100%);
  border-radius: var(--radius-organic);
}

/* Methodology Section */
.methodology-progress {
  position: relative;
  padding: var(--space-lg) 0;
}

.progress-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  opacity: 0.6;
  transition: all 0.4s var(--transition-elastic);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

.progress-step.active,
.progress-step:hover {
  opacity: 1;
  background: var(--gradient-soft);
  transform: translateX(10px);
}

.progress-circle {
  min-width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s var(--transition-bounce);
}

.progress-step:hover .progress-circle {
  transform: scale(1.1) rotate(5deg);
}

.progress-content {
  flex: 1;
}

.progress-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-organic);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s var(--transition-elastic);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
}

.gallery-item:hover {
  transform: translateY(-5px) rotate(2deg);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--transition-smooth);
  margin: 0 auto;
}

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

/* Testimonials Section */
.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-content {
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: 0 auto;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.author-info strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: var(--space-xs);
}

/* Customer Stories Section */
.customer-stories-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
}

.accordion-item:hover {
  box-shadow: var(--shadow-md);
}

.accordion-header {
  padding: var(--space-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gradient-soft);
  transition: all 0.3s var(--transition-smooth);
}

.accordion-header:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
}

.accordion-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s var(--transition-elastic);
}

.accordion-item.active .accordion-toggle {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
}

.accordion-item.active .accordion-content {
  padding: var(--space-lg);
  max-height: 500px;
}

.accordion-content img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Workshops Section */
.workshop-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.workshop-details {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
}

.workshop-details .tag {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Resources Section */
.resource-card {
  text-align: center;
}

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

.resource-links li {
  margin-bottom: var(--space-sm);
}

.resource-links a {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.3s var(--transition-elastic);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.resource-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Contact Section */
.contact-form-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.contact-form{
  width: 100%;
}

.contact-form .field {
  margin-bottom: var(--space-lg);
}

.contact-form .label {
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: var(--space-sm);
}

.contact-form .input,
.contact-form .textarea {
  border: 2px solid rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-family: var(--font-body);
  transition: all 0.3s var(--transition-smooth);
  background: var(--light-gray);
}

.contact-form .input:focus,
.contact-form .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--white);
  transform: translateY(-2px);
}

.contact-info {
  padding: var(--space-lg);
}

.contact-item h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.contact-item img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Footer */
.footer {
  background: var(--black);
  padding: var(--space-2xl) 0 var(--space-lg);
  color: var(--white);
}

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s var(--transition-elastic);
  font-weight: 500;
}

.social-links a:hover {
  color: var(--white);
  background: var(--gradient-primary);
  transform: translateY(-2px);
}

.footer-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: var(--space-xl) 0 var(--space-lg);
}

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

.success-content {
  max-width: 600px;
  padding: var(--space-2xl);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xl);
}

/* Privacy & Terms Pages */
.content-page {
  padding-top: 100px;
  padding-bottom: var(--space-2xl);
}

.content-page .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.content-page h1 {
  color: var(--primary-color);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.content-page h2 {
  color: var(--secondary-color);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

/* Read More Links */
.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s var(--transition-elastic);
}

.read-more::after {
  content: '→';
  margin-left: var(--space-xs);
  transition: transform 0.3s var(--transition-elastic);
}

.read-more:hover {
  color: var(--secondary-color);
}

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

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

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }
.mt-6 { margin-top: var(--space-2xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }
.mb-6 { margin-bottom: var(--space-2xl); }

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --space-xs: 0.25rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.5rem; }

  .hero .title {
    font-size: 2.25rem;
  }

  .hero .subtitle {
    font-size: 1.125rem;
  }

  .methodology-progress {
    padding: var(--space-md) 0;
  }

  .progress-step {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .gallery-item {
    height: 250px;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .accordion-header {
    padding: var(--space-md);
  }

  .accordion-content {
    padding: 0 var(--space-md);
  }

  .accordion-item.active .accordion-content {
    padding: var(--space-md);
  }

  .workshop-details {
    justify-content: center;
  }

  .contact-form .field {
    margin-bottom: var(--space-md);
  }

  .content-page {
    padding-top: 80px;
  }
}

@media (max-width: 480px) {
  .hero .title {
    font-size: 1.875rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .btn, 
  button, 
  input[type='submit'], 
  .button {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
  }

  .btn-large,
  .button.is-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
  }

  .gallery-item {
    height: 200px;
  }

  .card-content {
    padding: var(--space-md);
  }

  .progress-circle {
    min-width: 50px;
    height: 50px;
    font-size: 1rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card,
  .btn,
  button,
  input[type='submit'],
  .button {
    border: 0.5px solid transparent;
  }
}

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

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  button,
  input[type='submit'],
  .button {
    display: none !important;
  }

  body {
    color: black !important;
    background: white !important;
  }

  .section {
    break-inside: avoid;
  }
}