/* CSS Custom Properties - Triadic Color Scheme */
:root {
  /* Primary Colors (Triadic) */
  --primary-color: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-light: #93c5fd;
  --secondary-color: #f59e0b;
  --secondary-dark: #d97706;
  --secondary-light: #fcd34d;
  --tertiary-color: #ef4444;
  --tertiary-dark: #dc2626;
  --tertiary-light: #fca5a5;
  
  /* Neutral Colors */
  --white: #ffffff;
  --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;
  --black: #000000;
  
  /* Gradient Colors */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
  --gradient-tertiary: linear-gradient(135deg, var(--tertiary-color) 0%, var(--primary-color) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  
  /* Glass Morphism Effects */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --glass-backdrop: blur(12px);
  
  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-base: 0.25s ease-out;
  --transition-slow: 0.35s ease-out;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  overflow-x: hidden;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.875rem); }
h5 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h6 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--gray-700);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Global Button Styles */
.btn, 
.button, 
button,
input[type='submit'],
input[type='button'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.35);
  position: relative;
  overflow: hidden;
}

.btn::before,
.button::before,
button::before,
input[type='submit']::before,
input[type='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 var(--transition-slow);
}

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

.btn:hover,
.button:hover,
button:hover,
input[type='submit']:hover,
input[type='button']:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.45);
}

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

.btn-secondary {
  background: var(--gradient-secondary);
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.35);
}

.btn-secondary:hover {
  box-shadow: 0 8px 25px 0 rgba(245, 158, 11, 0.45);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.35);
}

.btn-large {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: 1.125rem;
}

.btn-small {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.875rem;
}

/* Glass Morphism Components */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px 0 rgba(31, 38, 135, 0.45);
}

.glass-bg {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
}

/* Animate Classes */
.animate-btn {
  position: relative;
  overflow: hidden;
}

.animate-input {
  transition: all var(--transition-base);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
}

.animate-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

/* Header Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
}

.navbar-brand .navbar-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

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

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

/* 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-overlay);
  z-index: 1;
}

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

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

.stats-widget {
  padding: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
}

.stats-widget .title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

/* Card Styles */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-base);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.card-content .title {
  margin-bottom: var(--spacing-md);
  color: var(--gray-900);
}

.card-content p {
  flex: 1;
  margin-bottom: var(--spacing-lg);
}

/* Switch Toggle Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: var(--spacing-md);
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gray-300);
  transition: var(--transition-base);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background: var(--white);
  transition: var(--transition-base);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Accordion Styles */
.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

.accordion-header {
  background: var(--gray-100);
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.accordion-header:hover {
  background: var(--gray-200);
}

.accordion-header h4 {
  margin: 0;
  font-weight: 600;
}

.accordion-content {
  padding: var(--spacing-lg);
  background: var(--white);
  display: none;
}

.accordion-item.active .accordion-content {
  display: block;
}

/* Image Container */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.image-container img {
  width: 100%;
  height: auto;
  transition: all var(--transition-slow);
  border-radius: var(--radius-xl);
}

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

/* Testimonials Specific Styles */
.testimonial-card .card-image {
  height: 200px;
  border-radius: 50%;
  width: 200px;
  margin: 0 auto var(--spacing-lg);
  overflow: hidden;
}

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

/* Calendar Widget */
.calendar-widget {
  padding: var(--spacing-xl);
  background: var(--white);
}

.calendar-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--primary-color);
}

.event-card {
  background: var(--gray-50);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
  transition: all var(--transition-base);
  height: 100%;
}

.event-card:hover {
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.event-card .tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Info Cards */
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.info-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

/* Event Details */
.event-details {
  background: var(--gray-50);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--secondary-color);
}

.event-details p {
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
}

/* Contact Form */
.contact-form .field {
  margin-bottom: var(--spacing-lg);
}

.contact-form .label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-base);
  background: var(--white);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form .select {
  position: relative;
}

.contact-form .select::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: var(--spacing-md);
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
}

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

.section:nth-child(even) {
  background: var(--gray-50);
}

/* Pricing Cards */
.pricing-card {
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  transform: scale(1.05);
  z-index: 2;
}

.pricing-card .card-content {
  padding: var(--spacing-2xl);
}

.pricing-card .title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.pricing-card .price-period {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-xl);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: var(--spacing-xl);
}

.pricing-card ul li {
  padding: var(--spacing-sm) 0;
  color: var(--gray-600);
  position: relative;
  padding-left: var(--spacing-lg);
}

.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

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

.footer .title {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
}

.footer ul {
  list-style: none;
}

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

.footer ul li a {
  color: var(--gray-300);
  transition: all var(--transition-base);
}

.footer ul li a:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

.footer hr {
  border: none;
  height: 1px;
  background: var(--gray-700);
  margin: var(--spacing-xl) 0;
}

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

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

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

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

/* Social Icons in Footer */
.social-link {
  display: inline-block;
  padding: var(--spacing-sm);
  margin-right: var(--spacing-sm);
  background: var(--gray-800);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  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);
}

.success-content {
  text-align: center;
  padding: var(--spacing-2xl);
}

.success-content .title {
  color: var(--white);
  margin-bottom: var(--spacing-lg);
}

.success-content .subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
}

/* Privacy and Terms Pages */
.content-page {
  padding-top: 100px;
}

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

.content-page h1,
.content-page h2,
.content-page h3 {
  color: var(--gray-900);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.content-page p {
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.content-page ul,
.content-page ol {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-xl);
}

.content-page li {
  margin-bottom: var(--spacing-sm);
}

/* Responsive Design */
@media screen and (max-width: 1023px) {
  .navbar-burger {
    color: var(--gray-700);
  }
  
  .hero {
    background-attachment: scroll;
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .card-image {
    height: 200px;
  }
  
  .stats-widget .title {
    font-size: 2rem;
  }
  
  .pricing-card.featured {
    transform: none;
    margin-top: var(--spacing-lg);
  }
}

@media screen and (max-width: 768px) {
  .hero .hero-body {
    padding: var(--spacing-2xl) 0;
  }
  
  .stats-widget {
    padding: var(--spacing-md);
  }
  
  .card-content {
    padding: var(--spacing-lg);
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .event-card {
    margin-bottom: var(--spacing-md);
  }
}

@media screen and (max-width: 480px) {
  .btn,
  .button {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
  }
  
  .btn-large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
  }
  
  .card-image {
    height: 180px;
  }
  
  .testimonial-card .card-image {
    height: 150px;
    width: 150px;
  }
}

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

.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.align-center { align-items: center; }

.w-full { width: 100%; }
.h-full { height: 100%; }

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

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Performance Optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0066cc;
    --secondary-color: #cc6600;
    --tertiary-color: #cc0066;
    --gray-700: #000000;
    --gray-600: #333333;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero {
    background-attachment: scroll;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .button {
    display: none;
  }
  
  .hero {
    background: none;
    color: var(--black);
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
}