/* Root Variables - Analogous Color Scheme with Dynamic Gradients */
:root {
  /* Primary Analogous Colors */
  --primary-blue: #1e40af;
  --primary-blue-light: #3b82f6;
  --primary-blue-dark: #1e3a8a;
  --secondary-teal: #0d9488;
  --secondary-teal-light: #14b8a6;
  --secondary-teal-dark: #0f766e;
  --accent-cyan: #0891b2;
  --accent-cyan-light: #0ea5e9;
  --accent-cyan-dark: #0e7490;
  
  /* Glassmorphism Colors */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  --glass-backdrop: rgba(255, 255, 255, 0.05);
  
  /* Dynamic Gradients */
  --hero-gradient: linear-gradient(135deg, 
    rgba(30, 64, 175, 0.9) 0%, 
    rgba(13, 148, 136, 0.9) 50%, 
    rgba(8, 145, 178, 0.9) 100%);
  --card-gradient: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  --button-gradient: linear-gradient(135deg, 
    var(--primary-blue) 0%, 
    var(--secondary-teal) 100%);
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Spacing */
  --section-padding: 4rem 0;
  --container-padding: 0 1.5rem;
  --card-padding: 2rem;
  --element-spacing: 1.5rem;
  
  /* Shadows & Effects */
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.2);
  --blur-effect: 20px;
  
  /* Animation Timings */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: #333;
  background: linear-gradient(45deg, #f0f9ff, #f0fdfa, #ecfeff);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--element-spacing);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  color: #4b5563;
}

/* Global Button Styles */
.btn, button, input[type='submit'], .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: var(--button-gradient);
  color: white;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  min-width: 150px;
}

.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::before, button:hover::before, input[type='submit']:hover::before, .button:hover::before {
  left: 100%;
}

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

.btn:active, button:active, input[type='submit']:active, .button:active {
  transform: translateY(0) scale(0.98);
}

/* Button Variants */
.button-primary {
  background: var(--button-gradient);
}

.button-secondary {
  background: linear-gradient(135deg, var(--secondary-teal) 0%, var(--accent-cyan) 100%);
}

.is-ghost-white {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.interactive-btn {
  position: relative;
  overflow: hidden;
}

.interactive-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.interactive-btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Glassmorphism Components */
.glass-morphism {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-effect));
  -webkit-backdrop-filter: blur(var(--blur-effect));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-light);
}

.glass-card {
  background: var(--card-gradient);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: var(--card-padding);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.glass-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: var(--shadow-heavy);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.08) 100%);
}

.glass-section {
  background: var(--glass-backdrop);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: relative;
}

.glass-form {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem;
}

/* Navigation */
.navbar {
  transition: all var(--transition-normal);
  z-index: 1000;
}

.navbar.glass-morphism {
  background: rgba(255, 255, 255, 0.95);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

.logo {
  background: var(--button-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  color: white;
}

.hero-gradient {
  background: var(--hero-gradient);
}

.parallax-bg {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed;
  background-position: center;
  position: relative;
}

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

.hero-body {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}

.hero-title {
  color: #FFFFFF !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  color: #FFFFFF !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Sections */
.section {
  padding: var(--section-padding);
  position: relative;
}

.main-container {
  padding-top: 70px;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  background: var(--button-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Cards */
.card {
  border-radius: 20px;
  border: none;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
}

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

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

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

.image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  border-radius: 15px;
}

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

/* Community Section */
.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  margin-bottom: 2rem;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-blue);
  opacity: 0.3;
}

.testimonial-card blockquote {
  font-style: italic;
  margin-bottom: 1rem;
  color: #555;
}

.testimonial-card cite {
  color: var(--primary-blue);
  font-size: 0.9rem;
}

/* Success Stories */
.success-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.progress-indicator {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.progress-indicator .tag {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

/* Media/Gallery */
.gallery-container {
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
}

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

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

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

/* Events Calendar */
.event-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  margin-bottom: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.event-card .media {
  align-items: center;
  margin-bottom: 1rem;
}

.event-card .tag {
  font-weight: 600;
  border-radius: 20px;
  padding: 0.5rem 1rem;
}

/* Pricing Section */
.pricing-card {
  background: white;
  border-radius: 25px;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-blue);
}

.pricing-card.is-featured {
  border: 3px solid var(--primary-blue);
  position: relative;
}

.popular-tag {
  position: absolute;
  top: 20px;
  right: -30px;
  transform: rotate(45deg);
  padding: 0.5rem 3rem;
  font-weight: 700;
  font-size: 0.8rem;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 2rem 0;
  font-family: var(--font-heading);
}

.pricing-amount .currency {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-right: 0.2rem;
}

.pricing-amount .amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.pricing-amount .period {
  font-size: 1rem;
  color: #666;
  margin-left: 0.5rem;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  text-align: center;
}

.pricing-features li {
  padding: 0.5rem 0;
  position: relative;
  color: #fff;
}

.pricing-features li::before {
  content: '✓';
  color: var(--secondary-teal);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Career Section */
.career-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  margin-bottom: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-left: 4px solid var(--primary-blue);
}

.career-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-medium);
  border-left-color: var(--secondary-teal);
}

.career-card .tags {
  margin: 1rem 0;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.career-card .tag {
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
}

/* Forms */
.contact-form {
  max-width: 100%;
}

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

.label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  display: block;
}

.input, .textarea, .select select {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.interactive-input:focus, .interactive-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
  outline: none;
  background: white;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.toggle-switch {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-blue);
}

/* Resource Cards */
.resource-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  transition: all var(--transition-normal);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.external-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
  position: relative;
}

.external-link:hover {
  color: var(--secondary-teal);
}

.external-link::after {
  content: '↗';
  margin-left: 0.3rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Footer */
.footer {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  color: #4b5563;
}

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

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

.footer-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

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

.footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 2rem 0 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
  font-size: 0.9rem;
}

.social-link:hover {
  color: white;
  background: var(--button-gradient);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

/* Modals */
.modal {
  z-index: 9999;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

.modal-close {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

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

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-gradient);
  color: white;
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  border: 1px solid var(--glass-border);
}

/* Read More Links */
.read-more {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition-normal);
  position: relative;
}

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

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

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

/* 3D Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-100px, 0, 0) rotateY(-90deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0deg);
  }
}

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

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

.animate-pulse {
  animation: pulse3D 2s infinite;
}

.perspective {
  perspective: 1000px;
}

.rotate-y-hover:hover {
  transform: rotateY(15deg);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 2rem 0;
    --card-padding: 1.5rem;
    --element-spacing: 1rem;
  }
  
  .hero-body {
    padding: 4rem 0;
  }
  
  .columns.is-multiline > .column {
    margin-bottom: 2rem;
  }
  
  .glass-form {
    padding: 2rem;
  }
  
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  .image-container {
    height: 200px;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .parallax-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .btn, button, input[type='submit'], .button {
    min-width: auto;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .pricing-amount .amount {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.1rem !important;
  }
}

/* High Performance Optimizations */
.card, .glass-card, .pricing-card, .career-card, .success-card {
  will-change: transform;
}

.image-container img {
  will-change: transform;
}

/* Print Styles */
@media print {
  .navbar, .footer, .modal, .cookie-popup {
    display: none !important;
  }
  
  .section {
    break-inside: avoid;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
}

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

/* Focus Styles for Better Accessibility */
.btn:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .card, .pricing-card, .career-card, .success-card, .event-card {
    background: rgba(31, 41, 55, 0.8);
    color: #f3f4f6;
  }
  
  .footer {
    background: rgba(17, 24, 39, 0.9);
  }
  
  p, .label {
    color: #d1d5db;
  }
}

.title.is-4 {
  color: #f3f4f6;
}