/* =========================================
   CSS Variables - Color Scheme (Triadic)
   ========================================= */
:root {
  /* Primary Colors */
  --primary-color: #3a86ff;
  --primary-light: #61a0ff;
  --primary-dark: #2563c0;
  
  /* Secondary Colors (Triadic) */
  --secondary-color: #ff3a86;
  --secondary-light: #ff61a0;
  --secondary-dark: #c02563;
  
  /* Tertiary Colors (Triadic) */
  --tertiary-color: #86ff3a;
  --tertiary-light: #a0ff61;
  --tertiary-dark: #63c025;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #495057;
  --black: #212529;
  
  /* Typography */
  --heading-font: 'Inter', sans-serif;
  --body-font: 'IBM Plex Sans', sans-serif;
  
  /* Spacing */
  --section-spacing: 5rem;
  --card-spacing: 1.5rem;
  
  /* Shadows */
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

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

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

section {
  padding: 5rem 0;
}

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

/* =========================================
   Typography - Adaptive Typography
   ========================================= */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 400;
}

@media (max-width: 768px) {
  h1, .h1 {
    font-size: calc(1.5rem + 1.5vw);
  }
  
  h2, .h2 {
    font-size: calc(1.4rem + 1vw);
  }
  
  h3, .h3 {
    font-size: calc(1.2rem + 0.8vw);
  }
}

/* =========================================
   Buttons & Form Elements
   ========================================= */
.btn {
  font-family: var(--heading-font);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-medium);
  text-transform: capitalize;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.02em;
}

.btn:hover, .btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
}

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

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

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-color);
  color: white;
}

.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

input, select, textarea {
  font-family: var(--body-font);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--medium-gray);
  padding: 0.75rem;
  transition: border-color var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

/* =========================================
   Navbar & Header
   ========================================= */
.navbar {
  padding: 1rem 0;
  transition: all var(--transition-medium);
}

.navbar-brand {
  font-family: var(--heading-font);
  font-weight: 700;
}

.navbar-brand img {
  transition: transform var(--transition-fast);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark-gray);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
}

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

header {
  transition: all var(--transition-medium);
}

header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

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

.hero h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  margin-bottom: 2rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.particles-container {
  z-index: 1;
  pointer-events: none;
}

/* =========================================
   About Section
   ========================================= */
#about img {
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-medium);
  box-shadow: var(--card-shadow);
}

#about img:hover {
  transform: scale(1.02);
  box-shadow: var(--hover-shadow);
}

/* =========================================
   Statistics Section
   ========================================= */
#statistics .card {
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

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

#statistics .display-4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

#statistics .card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* =========================================
   Destinations Section
   ========================================= */
#destinations .card {
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

#destinations .card-image {
  overflow: hidden;
  position: relative;
  height: 220px; /* Fixed height for image container */
  display: flex;
  justify-content: center;
  align-items: center;
}

#destinations .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

#destinations .card:hover .card-img-top {
  transform: scale(1.05);
}

/* =========================================
   Events Section
   ========================================= */
#events .card {
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

#events .card-image {
  overflow: hidden;
  position: relative;
  height: 200px; /* Fixed height for image container */
  display: flex;
  justify-content: center;
  align-items: center;
}

#events .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

#events .card:hover .card-img-top {
  transform: scale(1.05);
}

#events .badge {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5em 0.75em;
}

/* =========================================
   Gallery Section
   ========================================= */
#gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

#gallery .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

#gallery .gallery-item img {
  width: 100%;
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-slow);
}

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

#gallery .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: var(--white);
  padding: 1.5rem 1rem 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-medium);
}

#gallery .gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

#gallery .gallery-caption h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

#gallery .gallery-caption p {
  font-size: 0.9rem;
  margin-bottom: 0;
  opacity: 0.9;
}

/* =========================================
   Resources Section
   ========================================= */
#resources .card {
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  border-radius: var(--border-radius-md);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

#resources .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#resources .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* =========================================
   Research Section
   ========================================= */
#research img {
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

#research img:hover {
  transform: scale(1.02);
  box-shadow: var(--hover-shadow);
}

#research ul {
  padding-left: 1.5rem;
}

#research ul li {
  margin-bottom: 0.75rem;
}

#research ul li strong {
  color: var(--primary-color);
}

/* =========================================
   Insights Section
   ========================================= */
#insights .card {
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

#insights .card-image {
  overflow: hidden;
  position: relative;
  height: 220px; /* Fixed height for image container */
  display: flex;
  justify-content: center;
  align-items: center;
}

#insights .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

#insights .card:hover .card-img-top {
  transform: scale(1.05);
}

#insights .btn-sm {
  margin-top: auto;
  align-self: flex-start;
}

/* =========================================
   Partners Section
   ========================================= */
#partners .partner-logo {
  max-height: 80px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-medium);
  margin: 0 auto;
}

#partners .partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* =========================================
   Contact Section
   ========================================= */
#contact .card {
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  border-radius: var(--border-radius-md);
  height: 100%;
}

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

#contact form label {
  font-weight: 500;
}

#contact .bi {
  color: var(--primary-color);
}

/* =========================================
   Footer
   ========================================= */
footer {
  background-color: var(--black);
  color: var(--white);
}

footer h3 {
  color: var(--white);
  font-weight: 600;
}

footer a {
  color: var(--white);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

footer .text-decoration-none:hover {
  color: var(--primary-light);
}

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

footer .social-links a {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

footer .social-links a:hover {
  color: var(--primary-light);
  transform: translateY(-2px);
}

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

.success-page .icon {
  font-size: 4rem;
  color: var(--tertiary-color);
  margin-bottom: 2rem;
}

.success-page h1 {
  margin-bottom: 1.5rem;
}

/* =========================================
   Privacy & Terms Pages
   ========================================= */
.page-content {
  padding-top: 100px;
  padding-bottom: 5rem;
}

.page-content h2 {
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.page-content h3 {
  color: var(--dark-gray);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* =========================================
   Animations - Particle Animation
   ========================================= */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

/* Counter animation */
.counter {
  display: inline-block;
  transition: all 2s ease;
}

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 991.98px) {
  section {
    padding: 4rem 0;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  #gallery .gallery-caption {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 575.98px) {
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .display-3, .display-4 {
    font-size: calc(1.5rem + 3vw);
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .hero {
    background-attachment: scroll;
  }
}

/* =========================================
   Utilities
   ========================================= */
.bg-light {
  background-color: var(--light-gray) !important;
}

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

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

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

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

/* "Read More" links styling */
.read-more {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.read-more::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover::after {
  transform: translateX(4px);
}