/* CSS Variables for Analogous Color Scheme */
:root {
  /* Primary Analogous Colors - Blue to Purple */
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --primary-light: #85c1e9;
  --secondary-color: #8e44ad;
  --secondary-dark: #7d3c98;
  --secondary-light: #bb8fce;
  --accent-color: #e74c3c;
  --accent-dark: #c0392b;
  --accent-light: #f1948a;
  
  /* Neutral Colors */
  --white: #ffffff;
  --black: #000000;
  --dark-gray: #2c3e50;
  --medium-gray: #34495e;
  --light-gray: #ecf0f1;
  --text-dark: #222222;
  --text-medium: #666666;
  --text-light: #888888;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --hero-gradient: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(142, 68, 173, 0.9));
  --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  
  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 1.5rem;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: all 0.4s ease-out;
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

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

/* Button Styles - Global */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--box-shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
  color: var(--white);
}

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

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* Header Styles */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(44, 62, 80, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none;
}

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

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--white) !important;
  margin: 0 10px;
  padding: 8px 16px !important;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  background: var(--primary-gradient);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-gradient);
  z-index: 1;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInUp 1s var(--transition-bounce);
  color: var(--white) !important;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  animation: slideInUp 1s var(--transition-bounce) 0.2s both;
  color: var(--white) !important;
}

.hero-buttons {
  animation: slideInUp 1s var(--transition-bounce) 0.4s both;
}

/* Section Styles */
.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0.8;
}

/* Card Styles */
.card {
  background: var(--white);
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  transition: var(--transition-bounce);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

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

.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-smooth);
}

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

.card-content {
  padding: 2rem;
  text-align: center;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
}

/* Feature Cards */
.feature-card {
  background: linear-gradient(145deg, var(--white), var(--light-gray));
  border: 1px solid rgba(52, 152, 219, 0.1);
}

.feature-card:hover {
  border-color: var(--primary-color);
  background: var(--white);
}

/* Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1;
}

.project-card:hover::before {
  opacity: 0.1;
}

/* News Cards */
.news-card {
  border-left: 4px solid var(--primary-color);
}

.news-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Process Section */
.process-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  transition: var(--transition-bounce);
  margin-bottom: 2rem;
}

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

.process-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  border-radius: 50%;
  box-shadow: var(--box-shadow);
}

.process-icon img {
  border-radius: 50%;
}

/* Awards Section - Statistics */
.stats-widget {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-bounce);
}

.stats-widget:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

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

.stats-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Research Section */
.research-content {
  padding: 2rem 0;
}

.research-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
}

.stat-item {
  font-size: 1.1rem;
  padding: 0.5rem 0;
  border-left: 3px solid var(--primary-color);
  padding-left: 1rem;
}

/* Resources Section */
.resource-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--accent-color);
  transition: var(--transition-bounce);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
  border-left-color: var(--primary-color);
}

/* Contact Form */
.contact-form-container {
  box-shadow: var(--box-shadow-hover);
  border-radius: var(--border-radius-lg);
}

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

.form-control,
.form-select {
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Footer */
.footer {
  background: var(--dark-gray) !important;
}

.footer h5,
.footer h6 {
  color: var(--white);
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
}

.footer p,
.footer .small {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

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

.social-links a {
  display: inline-block;
  padding: 8px 12px;
  margin-right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: var(--transition-bounce);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  color: var(--white) !important;
}

/* Background Sections */
.bg-primary {
  background: var(--primary-gradient) !important;
}

.bg-light {
  background: linear-gradient(135deg, var(--light-gray), rgba(236, 240, 241, 0.5)) !important;
}

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

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

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

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

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

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

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

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

.content-container h1 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.content-container h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.content-container p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Cookie Consent */
.cookie-consent {
  background: rgba(0, 0, 0, 0.95) !important;
  border-top: 3px solid var(--primary-color);
}

.cookie-consent p {
  margin-bottom: 15px !important;
  font-size: 1rem;
}

.cookie-consent .btn {
  background: var(--primary-color);
  border: none;
  padding: 10px 25px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .parallax-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .process-card {
    padding: 1.5rem;
  }
  
  .stats-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .card-content {
    padding: 1rem;
  }
}

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

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
  transition: var(--transition-bounce);
}

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

.shadow-soft {
  box-shadow: var(--box-shadow);
}

.shadow-strong {
  box-shadow: var(--box-shadow-hover);
}