/* CSS Variables - Triadic Color Scheme with Futuristic Theme */
:root {
  /* Primary Colors - Triadic Scheme */
  --primary-color: #ff3366;
  --primary-dark: #cc1a3d;
  --primary-light: #ff5c7a;
  
  --secondary-color: #33ff66;
  --secondary-dark: #1acc3d;
  --secondary-light: #5cff7a;
  
  --tertiary-color: #3366ff;
  --tertiary-dark: #1a3dcc;
  --tertiary-light: #5c7aff;
  
  /* Neutral Colors */
  --dark-color: #0d1117;
  --dark-secondary: #1a1f2e;
  --dark-accent: #2d3748;
  --light-color: #ffffff;
  --light-secondary: #f7fafc;
  --light-accent: #e2e8f0;
  
  /* Gradient Backgrounds */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  --gradient-dark: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-secondary) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
  
  /* Spacing */
  --section-padding: 3rem 0;
  --card-padding: 2rem;
  --element-margin: 1.5rem;
  
  /* Shadows */
  --shadow-small: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-neon: 0 0 20px rgba(255, 51, 102, 0.3);
  
  /* Transitions */
  --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --radius-small: 8px;
  --radius-medium: 16px;
  --radius-large: 24px;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-backdrop: blur(20px);
}

/* Global 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.7;
  color: var(--dark-color);
  background: var(--light-color);
  overflow-x: hidden;
}

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

h1.title, h2.title, h3.title, h4.title, h5.title, h6.title {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  opacity: 0.8;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Global Button Styles */
.btn, button, input[type='submit'], .button {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius-small);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn.is-primary, .button.is-primary {
  background: var(--gradient-primary);
  color: var(--light-color);
  box-shadow: var(--shadow-neon);
}

.btn.is-primary:hover, .button.is-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-large), var(--shadow-neon);
}

.btn.is-secondary, .button.is-secondary {
  background: var(--gradient-secondary);
  color: var(--dark-color);
}

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

/* Pulse Animation */
.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Animated Title */
.animated-title {
  animation: slideInDown 1s ease-out;
}

@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Parallax Background */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
}

/* Navigation */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-fast);
  z-index: 1000;
}

.navbar.is-fixed-top {
  box-shadow: var(--shadow-medium);
}

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

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

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-fast);
}

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

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-color);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
}

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

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

.section:nth-child(even) {
  background: var(--light-secondary);
}

/* Card Styles */
.card {
  background: var(--light-color);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
  border: 1px solid var(--light-accent);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: var(--shadow-large);
}

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

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

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

.card-content {
  padding: var(--card-padding);
  flex: 1;
}

/* Futuristic Cards */
.futuristic-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.futuristic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 51, 102, 0.2), transparent);
  transition: left 0.5s;
}

.futuristic-card:hover::before {
  left: 100%;
}

/* Statistics Section */
#statistics {
  background: var(--gradient-dark);
  color: var(--light-color);
}

#statistics .title {
  color: var(--light-color);
}

.statistic-number {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

/* Process Cards */
.process-card {
  position: relative;
  transform-style: preserve-3d;
}

.process-card .card-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Workshop Section */
.workshop-card {
  background: linear-gradient(135deg, var(--light-color) 0%, var(--light-secondary) 100%);
  border: 2px solid var(--primary-light);
}

.workshop-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--light-accent);
  transition: var(--transition-fast);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--light-color);
  transition: var(--transition-fast);
  border-radius: 50%;
}

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

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

/* Team Section */
.team-card {
  background: var(--light-color);
  border-radius: var(--radius-large);
  overflow: hidden;
  position: relative;
}

.team-card .card-image {
  height: 300px;
  position: relative;
}

.team-card .card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* Event Cards */
.event-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition-medium);
}

.event-card:hover {
  border-left-width: 8px;
  transform: translateX(5px);
}

/* Blog Section */
.blog-card {
  position: relative;
  overflow: hidden;
  background: var(--light-color);
  border-radius: var(--radius-medium);
}

.blog-card .tag {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  font-family: var(--font-heading);
  font-weight: 600;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-heading);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

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

/* Resource Cards */
.resource-card {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--tertiary-light) 100%);
  color: var(--light-color);
  border: none;
}

.resource-card .title {
  color: var(--light-color);
}

.resource-card p {
  color: var(--light-secondary);
}

/* Contact Section */
#contact {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

#contact .container {
  position: relative;
  z-index: 2;
}

.contact-form-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-large);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--dark-color);
  border-radius: var(--radius-small);
  transition: var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.2);
  background: rgba(255, 255, 255, 0.2);
}

.contact-form .label {
  color: var(--dark-color);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--gradient-dark);
  color: var(--light-color);
  padding: 3rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

.footer .title {
  color: var(--light-color);
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  color: var(--light-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  font-family: var(--font-heading);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

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

.social-links a {
  color: var(--light-secondary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-small);
  background: var(--glass-bg);
  transition: var(--transition-fast);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

.footer-divider {
  border: none;
  height: 1px;
  background: var(--glass-border);
  margin: 2rem 0 1rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.modal.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: var(--light-color);
  border-radius: var(--radius-large);
  max-width: 500px;
  margin: 0 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-large);
}

.modal-card-head {
  background: var(--gradient-primary);
  color: var(--light-color);
  padding: 1.5rem;
}

.modal-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
}

.modal-card-body {
  padding: 2rem;
}

.modal-card-foot {
  padding: 1rem 2rem;
  background: var(--light-secondary);
  display: flex;
  justify-content: flex-end;
}

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

.success-content {
  max-width: 600px;
}

.success-content .title {
  color: var(--light-color);
  font-size: 3rem;
  margin-bottom: 2rem;
}

.success-content .subtitle {
  color: var(--light-secondary);
  font-size: 1.3rem;
  margin-bottom: 3rem;
}

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

.content-page .content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.content-page .title {
  margin-bottom: 2rem;
  text-align: center;
}

.content-page h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page h3 {
  color: var(--tertiary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.content-page ul, .content-page ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-page li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  :root {
    --section-padding: 2rem 0;
    --card-padding: 1.5rem;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .statistic-number {
    font-size: 2.5rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .team-card .card-image {
    height: 250px;
  }
  
  .navbar-menu {
    background: var(--dark-color);
    border-radius: var(--radius-small);
    margin: 0.5rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .parallax-bg {
    background-attachment: scroll;
  }
  
  .success-content .title {
    font-size: 2rem;
  }
  
  .success-content .subtitle {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .btn, .button {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .content-page {
    padding-top: 80px;
  }
  
  .content-page .content {
    padding: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

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

.bounce-in {
  animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
}

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

.no-scroll {
  overflow: hidden;
}

/* Print Styles */
@media print {
  .navbar, .footer, .modal, .btn, .button {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000;
    --secondary-color: #fff;
    --tertiary-color: #000;
  }
}

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