:root {
  /* Colors */
  --primary: #1743e3;
  --primary-dark: #0d2a9e;
  --primary-light: #e8edfd;
  --secondary: #282463;
  --accent: #0776c1;
  --dark: #0a0435;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #7f8c8d;
  --gray-light: #e4e8f0;
  --gray-dark: #2c3e50;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;

  /* Typography */
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --navbar-height: 80px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* For anchor links */
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;

}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.btn.primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn.secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn.secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--space-md);
  margin-top: var(--navbar-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.8);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-container {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Highlights Section */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

.highlight-card {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.highlight-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.highlight-card h3 {
  color: var(--secondary);
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: var(--space-xl) 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.footer-map {
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.footer-contact {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

.footer-contact h3 {
  color: var(--white);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--white);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(255, 255, 255, 0.9);
}

.submit-btn {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.submit-btn:hover {
  background-color: var(--primary-dark);
}

.footer-info {
  color: var(--white);
}

.footer-info h3 {
  color: var(--white);
}

.footer-info a {
  color: var(--white);
  text-decoration: underline;
}

.team-contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.contact-person {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

.contact-person h4 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.contact-person p {
  margin-bottom: var(--space-xs);
}

.footer-bottom {
  text-align: center;
  padding: var(--space-md) 0;
  margin-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* About Page Styles */
.about-container {
  padding: var(--space-xl) 0;
}

.about-hero {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.about-hero h1 {
  font-size: 3rem;
  color: var(--primary);
}

.about-hero h1 span {
  color: var(--secondary);
}

.about-hero p {
  font-size: 1.25rem;
  color: var(--gray-dark);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: var(--radius-lg);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: var(--white);
  border: 4px solid var(--primary);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(odd)::after {
  right: -17px;
}

.timeline-item:nth-child(even)::after {
  left: -17px;
}

.timeline-content {
  padding: var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  position: absolute;
  top: 22px;
  font-weight: bold;
  color: var(--primary);
  width: 100px; /* Fixed width for consistency */
  text-align: center; /* Center the year text */
}

/* Adjust positions for odd items */
.timeline-item:nth-child(odd) .timeline-year {
  right: -120px; /* Increased from -100px to give more space */
}

/* Adjust positions for even items */
.timeline-item:nth-child(even) .timeline-year {
  left: -120px; /* Increased from -100px to give more space */
}

.timeline-image {
  margin: var(--space-md) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.timeline-image:hover {
  transform: scale(1.02);
}

.timeline-image img {
  width: 100%;
  height: auto;
  display: block;
}

.brochure {
  text-align: center;
  margin-top: var(--space-xl);
}

.pdf-viewer-container {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pdf-viewer {
  width: 100%;
  height: 100vh;
  border: none;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn var(--transition-slow);
}

.modal-content {
  position: relative;
  margin: 2% auto;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh; /* Limit height to viewport */
  overflow-y: auto; /* Enable vertical scrolling if needed */
  background: var(--white);
  padding: var(--space-md);
  text-align: center;
  border-radius: var(--radius-md);
}

.modal-content img {
  max-width: 100%;
  max-height: none; /* Remove max-height restriction */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.modal-image-container {
  max-height: calc(90vh - 100px); /* Account for padding and close button */
  overflow-y: auto;
  margin: 0 auto;
}

.close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  color: var(--gray);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.close:hover,
.close:focus {
  color: var(--dark);
  text-decoration: none;
}

/* Gallery Styles */
.gallery-container {
  padding: var(--space-xl) 0;
}

.gallery-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.gallery-header h1 {
  font-size: 3rem;
  color: var(--primary);
}

.gallery-header h1 span {
  color: var(--secondary);
}

.gallery-header p {
  font-size: 1.25rem;
  color: var(--gray-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--white);
  padding: var(--space-md);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 18px;
  }

  .timeline-item:nth-child(odd) .timeline-year,
  .timeline-item:nth-child(even) .timeline-year {
    left: -120px; /* Align all years to the left on mobile */
    right: auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-lg) var(--space-md);
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .btn-container {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .team-contacts {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.25rem;
  }

  .about-hero h1 {
    font-size: 2rem;
  }

  .gallery-header h1 {
    font-size: 2rem;
  }

  .gallery-item img {
    height: 200px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInFromLeft {
  0% { transform: translateX(-100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
  0% { transform: translateX(100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromTop {
  0% { transform: translateY(-100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideInFromBottom {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
