:root {
  --primary-color: #6366f1;
  --primary-light: #a5b4fc;
  --primary-dark: #4338ca;
  --secondary-color: #f59e0b;
  --secondary-light: #fbbf24;
  --accent-color: #10b981;
  --accent-light: #6ee7b7;
  --neutral-color: #6b7280;
  --neutral-light: #f3f4f6;
  --neutral-dark: #374151;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  --light-color: #f8fafc;
  --dark-color: #1e293b;
  --footer-bg: #1a1a1a; /* Darker background for footer */
  --footer-text-primary: #ffffff; /* White text for primary content */
  --footer-text-secondary: #f0f0f0; /* Light gray for paragraphs */
  --footer-text-muted: #e0e0e0; /* Slightly darker for small text */
  --footer-link: #93c5fd; /* Light blue for links */
  --footer-link-hover: #dbeafe; /* Lighter blue for hover */
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--neutral-dark);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--dark-color);
}

.display-4 {
  font-size: 2.5rem;
  font-weight: 700;
}

.lead {
  font-size: 1.125rem;
  color: var(--primary-color);
}

/* Navigation */
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-link {
  font-weight: 500;
  color: var(--neutral-dark);
  transition: color 0.3s ease;
}

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

/* Hero Section */
#hero {
  background: linear-gradient(135deg, var(--light-color) 0%, var(--neutral-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.shape-1 {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0.1;
}

.shape-2 {
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 150px;
  height: 150px;
  background: var(--accent-light);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.1;
}

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

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Cards */
.card {
  border: none;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-img-top {
  border-radius: 1rem 1rem 0 0;
  height: 200px;
  object-fit: cover;
}

/* Sections */
section {
  padding: 5rem 0;
}

.bg-light {
  background-color: var(--neutral-light);
}

/* Icons */
.fa-3x {
  color: var(--primary-color);
}

/* Team Section */
.col-lg-2-4 {
  flex: 0 0 20%;
  max-width: 20%;
}

@media (max-width: 991.98px) {
  .col-lg-2-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767.98px) {
  .col-lg-2-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Process Section */
.process-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Timeline Section */
.timeline-year .badge {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Forms */
.form-control {
  border-radius: 0.5rem;
  border: 2px solid var(--neutral-light);
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--neutral-dark);
  margin-bottom: 0.5rem;
}

/* Footer */
#footer {
  background-color: var(--footer-bg) !important;
}

#footer h5 {
  color: var(--footer-text-primary) !important;
  margin-bottom: 1rem;
  font-weight: 600;
}

#footer p {
  color: var(--footer-text-secondary) !important;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

#footer small {
  color: var(--footer-text-muted) !important;
}

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

#footer a {
  color: var(--footer-link) !important;
  text-decoration: underline;
  transition: color 0.3s ease;
  padding: 0.25rem 0;
  display: inline-block;
  margin-bottom: 0.5rem;
}

#footer a:hover {
  color: var(--footer-link-hover) !important;
  text-decoration: underline;
}

#footer a:focus {
  outline: 2px solid var(--footer-link);
  outline-offset: 2px;
}

#footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

#footer ul.list-unstyled li {
  margin-bottom: 0.75rem;
}

/* Gallery */
#gallery img {
  transition: transform 0.3s ease;
  border-radius: 0.5rem;
}

#gallery img:hover {
  transform: scale(1.05);
}

/* Breadcrumb */
.breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 0;
}

.breadcrumb-item img {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.breadcrumb-item img:hover {
  opacity: 1;
}

/* Contact Info */
.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info i {
  color: var(--primary-color);
  width: 20px;
}

/* Responsive Typography */
@media (max-width: 767.98px) {
  .display-4 {
    font-size: 2rem;
  }
  
  h1, h2 {
    font-size: 1.75rem;
  }
  
  .lead {
    font-size: 1rem;
  }
}

/* Animation Classes for Sal.js */
.sal-animate {
  transition: all 0.5s ease;
}

/* Utilities */
.text-primary {
  color: var(--primary-color);
}

.text-muted {
  color: var(--neutral-color);
}

.shadow-sm {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Custom spacing */
.py-5 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Ensure proper spacing for fixed navbar */
body {
  padding-top: 76px;
}

/* Custom grid utilities */
.g-4 > * {
  padding: 1rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Custom border radius */
.rounded {
  border-radius: 0.5rem;
}

.rounded-circle {
  border-radius: 50%;
}

/* Text alignment utilities */
.text-center {
  text-align: center;
}

/* Background utilities */
.bg-primary {
  background-color: var(--primary-color);
}

.bg-light {
  background-color: var(--light-color);
}

.bg-dark {
  background-color: var(--dark-color);
}

.bg-white {
  background-color: white;
}

/* Text color utilities */
.text-white {
  color: white;
}

.text-light {
  color: var(--light-color);
}

.text-success {
  color: var(--success-color);
}

.text-warning {
  color: var(--warning-color);
}

/* List utilities */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

/* Display utilities */
.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

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

.vh-100 {
  height: 100vh;
}

/* Border utilities */
.border {
  border: 1px solid var(--neutral-light);
}

.border-primary {
  border-color: var(--primary-color);
}

/* Padding utilities */
.p-4 {
  padding: 1.5rem;
}

.p-5 {
  padding: 3rem;
}

/* Margin utilities */
.me-2 {
  margin-right: 0.5rem;
}

.ms-auto {
  margin-left: auto;
}

.my-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Height utilities */
.h-100 {
  height: 100%;
}

/* Font weight utilities */
.fw-bold {
  font-weight: 700;
}

.fw-500 {
  font-weight: 500;
}

/* Font size utilities */
.fs-6 {
  font-size: 0.875rem;
}

.h4 {
  font-size: 1.5rem;
}

.h2 {
  font-size: 2rem;
}

/* Position utilities */
.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.position-relative {
  position: relative;
}

/* Overflow utilities */
.overflow-hidden {
  overflow: hidden;
}

/* Badge utilities */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

.bg-light.text-primary {
  background-color: var(--light-color);
  color: var(--primary-color);
}

/* Small text utility */
.small {
  font-size: 0.875em;
} 


/* Team Social Links - Colorful Style */
.team-social-links {
    margin-top: 22px;
    padding: 16px 0;
}

.social-icons-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 19px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(45deg, #1877f2, #42a5f5, #64b5f6);
}

.linkedin-link {
    background: linear-gradient(45deg, #0a66c2, #2196f3, #42a5f5);
}

.instagram-link {
    background: linear-gradient(45deg, #e4405f, #f77737, #fcaf45, #ffdc80);
}

.x-link {
    background: linear-gradient(45deg, #000000, #424242, #666666);
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: 900;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* High contrast mode footer styles */
@media (prefers-contrast: high) {
  #footer {
    background-color: #000000 !important;
  }
  
  #footer h5,
  #footer p,
  #footer small {
    color: #ffffff !important;
  }
  
  #footer .text-muted {
    color: #ffffff !important;
  }
  
  #footer a {
    color: #ffffff !important;
    text-decoration: underline;
    border-bottom: 1px solid #ffffff;
  }
  
  #footer a:hover,
  #footer a:focus {
    color: #ffffff !important;
    background-color: #333333 !important;
  }
  
  #footer hr {
    border-color: #ffffff !important;
    border-width: 2px;
  }
}