/* CSS Variables - Tetrad Color Scheme */
:root {
  /* Primary Tetrad Colors */
  --primary-color: #2563eb;
  --secondary-color: #dc2626;
  --tertiary-color: #059669;
  --quaternary-color: #7c3aed;

  /* Accent Colors */
  --accent-light: #60a5fa;
  --accent-dark: #1e40af;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;

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

  /* 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-dark-bg: rgba(0, 0, 0, 0.2);

  /* Typography */
  --font-heading: 'Archivo Black', sans-serif;
  --font-body: 'Roboto', 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 */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--quaternary-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

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

h1 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

/* Button Styles - Global */
.btn,
button,
input[type='submit'],
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

.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);
  box-shadow: var(--shadow-xl);
}

.glass-button {
  background: var(--glass-bg);
  color: var(--white);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Header Styles */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.navbar {
  padding: var(--space-sm) 0;
}

.navbar-item {
  transition: all 0.3s ease;
  position: relative;
}

.navbar-item:hover {
  color: var(--accent-light) !important;
  transform: translateY(-2px);
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-light);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.navbar-burger {
  color: var(--white);
}

/* Main Container */
.main-container {
  padding-top: 80px;
}

/* Glass Effects */
.glass-section {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  margin: var(--space-lg) 0;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 0.15);
}

.glass-input {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--dark-gray);
  transition: all 0.3s ease;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Hero Section */
#hero {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--white);
  text-align: left;
}

#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;
}

.title {
  margin-bottom: 0;
}

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

/* Particles Animation */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particles-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.8;
  }
}

/* Statistics Section */
#statistics .counter {
  font-family: var(--font-heading);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Services Section */
#services .card-image {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

#services .card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Methodology Timeline */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(even) {
  margin-left: var(--space-xl);
}

.timeline-item:nth-child(odd) {
  margin-right: var(--space-xl);
}

/* Success Stories */
#success-stories .card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
}

#success-stories .card-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

/* Events Calendar */
.event-date {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: var(--font-heading);
}

.event-date .month {
  font-size: 0.875rem;
  text-transform: uppercase;
}

/* Contact Form */
.contact-form {
  padding: var(--space-lg);
}

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

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

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: var(--space-sm);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  transform: translateY(-2px);
}

/* Footer */
.glass-footer {
  background: var(--glass-dark-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.glass-footer h3,
.glass-footer h4 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.glass-footer ul {
  list-style: none;
}

.glass-footer ul li {
  margin-bottom: var(--space-xs);
}

.glass-footer ul li a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.glass-footer ul li a:hover {
  color: var(--accent-light);
  transform: translateX(5px);
}

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

.social-links a {
  color: var(--white);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
}

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

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

.success-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  margin: var(--space-lg);
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: var(--space-lg);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-30px);
  }

  60% {
    transform: translateY(-15px);
  }
}

/* Privacy and Terms Pages */
.content-page {
  padding-top: 100px;
  min-height: 100vh;
  background: var(--light-gray);
}

.content-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-lg);
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3 {
  color: var(--dark-gray);
}

.content-wrapper p {
  color: var(--medium-gray);
  margin-bottom: var(--space-md);
}

/* News Section */
#news .card-image {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

#news .card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

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

.read-more::after {
  content: ' →';
  transition: transform 0.3s ease;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {

  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    margin-left: 0;
    margin-right: 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding-top: 60px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .glass-section {
    margin: var(--space-sm) 0;
    border-radius: var(--radius-md);
  }

  .timeline-item::before {
    display: none;
  }

  .event-date {
    min-width: 60px;
  }

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

  #hero {
    text-align: center;
  }

  .success-content {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .glass-card {
    margin-bottom: var(--space-md);
  }

  .contact-form {
    padding: var(--space-md);
  }

  .columns .column {
    padding: var(--space-xs);
  }
}

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

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

.mb-section {
  margin-bottom: var(--space-2xl);
}

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

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

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

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Focus Styles for Accessibility */
.btn:focus,
.navbar-item:focus,
.glass-input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.3);
  }
}

/* Print Styles */
@media print {

  .glass-header,
  .glass-footer,
  .particles-container {
    display: none;
  }

  .main-container {
    padding-top: 0;
  }

  .glass-section {
    background: var(--white);
    border: 1px solid var(--medium-gray);
  }
}