/* CSS Variables - Neutral Color Scheme */
:root {
  /* Primary Colors */
  --primary-color: #2c3e50;
  --primary-light: #34495e;
  --primary-dark: #1a252f;
  
  /* Secondary Colors */
  --secondary-color: #95a5a6;
  --secondary-light: #bdc3c7;
  --secondary-dark: #7f8c8d;
  
  /* Accent Colors */
  --accent-color: #3498db;
  --accent-light: #5dade2;
  --accent-dark: #2980b9;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-grey: #f8f9fa;
  --medium-grey: #ecf0f1;
  --dark-grey: #34495e;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #2c3e50;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  --gradient-overlay: linear-gradient(rgba(44, 62, 80, 0.7), rgba(52, 73, 94, 0.5));
  
  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 20px;
  
  /* Animations */
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.6s ease;
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

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

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

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Global Button Styles */
.btn, .button, input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn: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: var(--transition-base);
}

.btn:hover:before, .button:hover:before {
  left: 100%;
}

.btn:hover, .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Creative Design Elements - Curved Grids */
.section {
  position: relative;
  padding: var(--section-padding);
}

.section:nth-child(even) {
  transform: skewY(-1deg);
  margin: 40px 0;
}

.section:nth-child(even) > * {
  transform: skewY(1deg);
}

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--medium-grey);
  z-index: 1000;
  transition: var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-base);
}

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

/* Mobile Menu */
.navbar-burger {
  color: var(--primary-color);
}

@media (max-width: 1023px) {
  .navbar-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
}

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

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

.hero .subtitle {
  color: var(--white) !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease 0.3s both;
}

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

.animate-fade-in {
  animation: fadeInUp 1s ease;
}

.animate-fade-in-delay {
  animation: fadeInUp 1s ease 0.3s both;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 1s ease 0.6s both;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: var(--transition-base);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  text-align: center;
  overflow: hidden;
}

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

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

.card-content {
  padding: 1.5rem;
  text-align: center;
  flex: 1;
}

/* Animate Cards on Scroll */
.animate-card {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

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

/* Features Section */
#features .card {
  height: 100%;
}

/* Services Section - Pricing Cards */
.pricing-card {
  position: relative;
  transition: var(--transition-base);
}

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

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-accent);
  border-radius: 14px;
  z-index: -1;
}

/* Team Section */
.team-card {
  text-align: center;
}

.team-card .image {
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  width: 200px;
  height: 200px;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Testimonials */
.testimonial-card {
  background: var(--light-grey);
  border-left: 4px solid var(--accent-color);
}

.rating {
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* Statistics Widget */
.stats-widget {
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 12px;
  padding: 3rem 2rem;
}

.stat-item {
  text-align: center;
}

.stat-item .title {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 3rem;
  font-weight: 700;
}

/* Awards Section */
.award-item {
  transition: var(--transition-base);
}

.award-item:hover {
  transform: translateY(-5px);
}

.award-item .image {
  filter: grayscale(100%);
  transition: var(--transition-base);
}

.award-item:hover .image {
  filter: grayscale(0%);
}

/* Resources Section */
.resource-link {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  margin-bottom: 1rem;
  transition: var(--transition-base);
}

.resource-link:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.resource-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.resource-link a:hover {
  color: var(--accent-color);
}

/* Events Section */
.event-card {
  height: 100%;
}

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

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.field {
  margin-bottom: 1.5rem;
}

.label {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.input, .textarea, .select select {
  border: 2px solid var(--medium-grey);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  transition: var(--transition-base);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer .title {
  color: var(--white);
}

.footer a {
  color: var(--secondary-light);
  transition: var(--transition-base);
}

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

.social-links a {
  margin-right: 1rem;
  font-weight: 500;
}

/* 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: 2rem;
}

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

.success-content .subtitle {
  color: var(--white);
  opacity: 0.9;
}

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

.privacy-page .content, .terms-page .content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Parallax Effects */
.parallax-element {
  will-change: transform;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .section:nth-child(even) {
    transform: none;
    margin: 20px 0;
  }
  
  .section:nth-child(even) > * {
    transform: none;
  }
  
  .hero {
    background-attachment: scroll;
  }
  
  .card-image img {
    height: 200px;
  }
  
  .team-card .image {
    width: 150px;
    height: 150px;
  }
  
  .stats-widget {
    padding: 2rem 1rem;
  }
  
  .stat-item .title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .pricing-card.featured {
    transform: none;
  }
  
  .card:hover {
    transform: translateY(-4px);
  }
  
  .contact-form {
    padding: 0 1rem;
  }
}

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

/* Focus States */
.btn:focus, .button:focus, .input:focus, .textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header, .footer {
    display: none;
  }
  
  .section {
    transform: none;
    page-break-inside: avoid;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --text-dark: #000000;
    --text-light: #000000;
    --accent-color: #0066cc;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-dark: #ffffff;
    --text-light: #cccccc;
    --white: #1a1a1a;
    --light-grey: #2d2d2d;
    --medium-grey: #404040;
  }
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }
.mb-6 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
.mt-6 { margin-top: 3rem; }

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

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

/* Glassmorphism Effects */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-grey);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}