:root {
  /* Main colors - Analogous color scheme */
  --primary-color: #1e4bd2;
  --primary-dark: #0f318f;
  --primary-light: #5478e8;
  --secondary-color: #21b0d8;
  --secondary-dark: #0a8aad;
  --secondary-light: #6fd1f0;
  --accent-color: #7149d9;
  --accent-dark: #4f2da6;
  --accent-light: #9a7ce5;
  
  /* Text colors */
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  
  /* Background colors */
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --bg-gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --bg-gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  --shadow-inset: inset 0 2px 10px rgba(0, 0, 0, 0.1);
  
  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 2rem;
  
  /* Animation */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.33, 1, 0.68, 1);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  text-align: center;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: var(--bg-gradient-primary);
  margin: 0 auto 2rem;
  border-radius: var(--border-radius-sm);
}

.section-description {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
}

/* Header */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  z-index: 1000;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--primary-dark);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 0;
  background: var(--bg-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 1rem;
  background: var(--bg-gradient-primary);
  transition: width var(--transition-medium);
}

.nav-link:hover::after {
  width: calc(100% - 2rem);
}

/* Buttons */
.btn {
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width var(--transition-medium);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background: var(--bg-gradient-primary);
  border: none;
  color: var(--text-light);
}

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

.btn-outline-light {
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-primary:hover {
  color: var(--text-light);
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.animated-button {
  transition: all var(--transition-medium);
}

.animated-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}

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

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 75, 210, 0.8), rgba(113, 73, 217, 0.8));
  z-index: 1;
}

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

.animated-title {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s var(--transition-medium) forwards;
}

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

.buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Vision Section */
.vision-image-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transform: perspective(1000px) rotateY(5deg);
  transition: transform var(--transition-medium);
  box-shadow: var(--shadow-lg);
}

.vision-image-container:hover {
  transform: perspective(1000px) rotateY(0);
}

.vision-image-container img {
  transition: transform var(--transition-medium);
}

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

/* Features Section */
.feature-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--text-light);
  border: none;
}

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

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

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

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

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card-text {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Projects Section */
.project-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--text-light);
  border: none;
}

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

/* History Section */
.history {
  position: relative;
  overflow: hidden;
}

.timeline {
  position: relative;
  padding: 0 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-gradient-primary);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(5px);
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--text-light);
}

.timeline-content p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* Instructors Section */
.instructor-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--text-light);
  border: none;
  padding: 2rem;
}

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

.instructor-card .card-image {
  width: 200px;
  height: 200px;
  margin-bottom: 1.5rem;
}

.instructor-card .card-image img {
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  border: 5px solid var(--text-light);
  transition: transform var(--transition-medium);
}

.instructor-card:hover .card-image img {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.instructor-position {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Research Section */
.research-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.research-image img {
  transition: transform var(--transition-medium);
}

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

.research-stats {
  background: var(--text-light);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Resources Section */
.resource-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--text-light);
  border: none;
}

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

.resource-card .btn {
  margin-top: 1rem;
}

/* Awards Section */
.award-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

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

.award-icon {
  flex-shrink: 0;
}

.award-icon img {
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.award-content h3 {
  font-size: 1.3rem;
  margin-top: 0;
  color: var(--text-light);
}

.award-content p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
.contact-info {
  background: var(--text-light);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.contact-item {
  margin-bottom: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient-primary);
  color: var(--text-light);
  border-radius: 50%;
  font-size: 1.2rem;
}

.contact-text p {
  margin-bottom: 0;
}

.contact-form-container {
  background: var(--text-light);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-control {
  border-radius: var(--border-radius-md);
  border: 1px solid #ced4da;
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(30, 75, 210, 0.25);
  border-color: var(--primary-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--text-light);
}

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

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

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

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: var(--text-light);
  transition: width var(--transition-medium);
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-subscribe .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-light);
}

.footer-subscribe .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-subscribe .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px;
  z-index: 9999;
  text-align: center;
}

.cookie-consent p {
  margin-bottom: 10px;
}

.cookie-consent button {
  margin-left: 10px;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-container {
  max-width: 600px;
  background: var(--text-light);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.success-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

/* Privacy and Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: 5rem;
}

.privacy-content, .terms-content {
  background: var(--text-light);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

/* Media Queries */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .hero {
    text-align: center;
  }
  
  .buttons-group {
    justify-content: center;
  }
  
  .timeline::before {
    left: 50%;
    margin-left: -1px;
  }
  
  .timeline-item {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 50px;
  }
  
  .timeline-dot {
    left: 50%;
    margin-left: -10px;
  }
  
  .timeline-content {
    width: 45%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero {
    min-height: 80vh;
    padding-top: 120px;
  }
  
  .buttons-group {
    flex-direction: column;
    align-items: center;
  }
  
  .buttons-group .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-dot {
    left: 10px;
    margin-left: 0;
  }
  
  .timeline-content {
    width: 100%;
  }
  
  .award-item {
    flex-direction: column;
    text-align: center;
  }
  
  .award-icon {
    margin-bottom: 1rem;
  }
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: var(--shadow-md);
  }
  50% {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-md);
  }
}

.animated-float {
  animation: float 3s infinite var(--transition-slow);
}

.animated-pulse {
  animation: pulse 2s infinite var(--transition-slow);
}

/* Accessibility Improvements */
:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Additional Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

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

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

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

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

.shadow-custom {
  box-shadow: var(--shadow-md);
}

.rounded-custom {
  border-radius: var(--border-radius-lg);
}

.overflow-hidden {
  overflow: hidden;
}