/* CSS Variables for Tetrad Color Scheme with Neo-Brutalism */
:root {
  /* Primary Colors - Tetrad Scheme */
  --primary-color: #FF6B35; /* Orange */
  --secondary-color: #6B35FF; /* Purple */
  --tertiary-color: #35FF6B; /* Green */
  --quaternary-color: #FF35B5; /* Pink */
  
  /* Neo-Brutalist Color Extensions */
  --primary-dark: #E5521A;
  --secondary-dark: #4F1AE5;
  --tertiary-dark: #1AE550;
  --quaternary-dark: #E51A9A;
  
  /* Neutral Colors */
  --black: #000000;
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--quaternary-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
  --gradient-hero: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--quaternary-color));
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  
  /* Typography */
  --font-heading: 'Archivo Black', cursive;
  --font-body: 'Roboto', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Borders */
  --border-width: 3px;
  --border-radius: 0;
  --border-radius-lg: 8px;
  
  /* Shadows - Neo-Brutalist */
  --shadow-brutal: 8px 8px 0px var(--black);
  --shadow-brutal-lg: 12px 12px 0px var(--black);
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-hover: 4px 4px 0px var(--black);
  
  /* Animation */
  --animation-speed: 0.3s;
  --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
}

/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: var(--border-width) solid var(--black);
  border-radius: var(--border-radius);
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: all var(--animation-speed) var(--animation-bounce);
  box-shadow: var(--shadow-brutal);
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-brutal-lg);
  background: var(--primary-dark);
}

.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active {
  transform: translate(0, 0);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.3rem;
}

/* Link Styles */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--animation-speed) ease;
}

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

.read-more {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px;
  transition: all var(--animation-speed) ease;
}

.read-more:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Card Styles */
.card {
  background: var(--white);
  border: var(--border-width) solid var(--black);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-brutal);
  transition: all var(--animation-speed) var(--animation-bounce);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-brutal-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

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

/* Header Styles */
header {
  background: var(--white);
  border-bottom: var(--border-width) solid var(--black);
  box-shadow: var(--shadow-brutal);
  z-index: 1000;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  position: relative;
  transition: all var(--animation-speed) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: width var(--animation-speed) ease;
}

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

/* Hero Section */
#hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.hero-content h1 {
  text-shadow: 4px 4px 0px var(--black);
  margin-bottom: var(--spacing-lg);
  color: var(--white);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xl);
  text-shadow: 2px 2px 0px var(--black);
  color: var(--white);
}

/* Animation Classes */
@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);
  }
}

@keyframes wiggle {
  0%, 7% {
    transform: rotateZ(0);
  }
  15% {
    transform: rotateZ(-15deg);
  }
  20% {
    transform: rotateZ(10deg);
  }
  25% {
    transform: rotateZ(-10deg);
  }
  30% {
    transform: rotateZ(6deg);
  }
  35% {
    transform: rotateZ(-4deg);
  }
  40%, 100% {
    transform: rotateZ(0);
  }
}

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

.animate-bounce {
  animation: bounceIn 1s var(--animation-bounce) 0.2s both;
}

.animate-wiggle {
  animation: wiggle 2s ease-in-out infinite;
}

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

/* Feature Cards */
.feature-card {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-brutal);
}

.feature-card:hover {
  transform: translate(-8px, -8px) rotate(2deg);
}

/* Statistics Section */
.stat-card {
  text-align: center;
  padding: var(--spacing-lg);
}

.progress-bar {
  transition: width 2s ease-out;
  border-radius: var(--border-radius);
}

/* Timeline Styles */
.timeline-container {
  position: relative;
}

.timeline-item {
  margin-bottom: var(--spacing-3xl);
  position: relative;
}

.timeline-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  border: var(--border-width) solid var(--black);
  box-shadow: var(--shadow-brutal);
}

.timeline-content {
  padding: var(--spacing-md);
}

/* Team Section */
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--animation-speed) var(--animation-bounce);
}

.team-card:hover {
  transform: translate(-4px, -4px) rotate(-1deg);
}

.team-card .card-image {
  height: 250px;
  border-radius: 50%;
  width: 200px;
  margin: 0 auto var(--spacing-md);
  border: var(--border-width) solid var(--black);
  box-shadow: var(--shadow-brutal);
}

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

/* Gallery Section */
.gallery-grid {
  gap: var(--spacing-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: var(--border-width) solid var(--black);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-brutal);
  height: 250px;
}

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

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

.gallery-overlay {
  background: var(--gradient-overlay);
  transition: opacity var(--animation-speed) ease;
}

.gallery-overlay p {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.2rem;
  text-shadow: 2px 2px 0px var(--black);
}

/* Blog Cards */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.blog-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Insight Cards */
.insight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.insight-card .card-image {
  height: 200px;
  margin-bottom: var(--spacing-md);
}

/* Form Styles */
form {
  background: var(--white);
  padding: var(--spacing-xl);
  border: var(--border-width) solid var(--black);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-brutal);
}

input, textarea, select {
  width: 100%;
  padding: var(--spacing-sm);
  border: var(--border-width) solid var(--black);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  transition: all var(--animation-speed) ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
  transform: translateY(-2px);
}

label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: var(--spacing-xs);
  display: block;
}

/* Contact Section */
.contact-details {
  space-y: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-md);
  font-size: 1.5rem;
  border: var(--border-width) solid var(--black);
  box-shadow: var(--shadow-brutal);
}

/* Footer Styles */
footer {
  background: var(--gray-800);
  color: var(--white);
  border-top: var(--border-width) solid var(--black);
}

.footer-section h3,
.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
}

.social-links a {
  color: var(--gray-300);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: all var(--animation-speed) ease;
  position: relative;
  padding-left: var(--spacing-md);
}

.social-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  transition: transform var(--animation-speed) ease;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateX(8px);
}

.social-links a:hover::before {
  transform: rotate(45deg);
}

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

.success-content {
  text-align: center;
  color: var(--white);
  padding: var(--spacing-3xl);
  background: rgba(255, 255, 255, 0.1);
  border: var(--border-width) solid var(--white);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-brutal-lg);
}

.success-content h1 {
  color: var(--white);
  text-shadow: 4px 4px 0px var(--black);
  margin-bottom: var(--spacing-lg);
}

.success-content p {
  color: var(--white);
  text-shadow: 2px 2px 0px var(--black);
  font-size: 1.2rem;
}

/* Privacy and Terms Pages */
.legal-page {
  padding-top: 120px;
  padding-bottom: var(--spacing-3xl);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: var(--spacing-3xl);
  border: var(--border-width) solid var(--black);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-brutal);
}

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

.legal-content h1 {
  margin-top: 0;
  text-align: center;
}

.legal-content ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.legal-content li {
  margin-bottom: var(--spacing-xs);
}

/* Mobile Menu */
#mobile-menu {
  background: var(--white);
  border-top: var(--border-width) solid var(--black);
}

#mobile-menu a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--gray-700);
  transition: all var(--animation-speed) ease;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--gray-200);
}

#mobile-menu a:hover {
  color: var(--primary-color);
  transform: translateX(8px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .card {
    margin-bottom: var(--spacing-lg);
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .timeline-item {
    text-align: center;
  }
  
  .team-card .card-image {
    width: 150px;
    height: 150px;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  form {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .card-content {
    padding: var(--spacing-sm);
  }
  
  .btn {
    padding: var(--spacing-sm);
    font-size: 1rem;
  }
}

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

.text-white {
  color: var(--white) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.bg-primary {
  background: var(--primary-color) !important;
}

.bg-secondary {
  background: var(--secondary-color) !important;
}

.bg-gradient-primary {
  background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
  background: var(--gradient-secondary) !important;
}

.shadow-brutal {
  box-shadow: var(--shadow-brutal) !important;
}

.shadow-brutal-lg {
  box-shadow: var(--shadow-brutal-lg) !important;
}

.border-brutal {
  border: var(--border-width) solid var(--black) !important;
}

.rounded-brutal {
  border-radius: var(--border-radius-lg) !important;
}

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

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Neo-Brutalist Hover Effects */
.hover-brutal {
  transition: all var(--animation-speed) var(--animation-bounce);
}

.hover-brutal:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-brutal-lg);
}

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

/* Image Backgrounds */
.bg-cover {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* Progress Indicators */
.progress-indicator {
  position: relative;
}

.progress-bar[data-progress] {
  width: 0;
  animation: progressLoad 2s ease-out forwards;
}

@keyframes progressLoad {
  to {
    width: var(--progress-width);
  }
}

/* Print Styles */
@media print {
  .btn, button {
    box-shadow: none !important;
    border: 1px solid var(--black) !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid var(--gray-300) !important;
  }
  
  header, footer {
    display: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #FF4500;
    --secondary-color: #4169E1;
    --tertiary-color: #32CD32;
    --quaternary-color: #FF1493;
  }
}

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