:root {
  --primary-green: var(--kenyan-white);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--kenyan-black);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Kenyan inspired color variables */
:root {
  --kenyan-green: #006600;
  --kenyan-red: #bb0000;
  --kenyan-black: #000000;
  --kenyan-white: #ffffff;
}

/* Navigation Bar */
.navbar {
  background-color: var(--kenyan-green);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--kenyan-white);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
}

.nav-links a {
  color: var(--kenyan-white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

/* Hover and Active State */
.nav-links a:hover,
.nav-links a.active {
  background: var(--kenyan-red);
  color: var(--kenyan-black);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Responsive tweak for smaller screens */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--kenyan-white);
}

/* Hero Gallery */
.hero-gallery {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
}

.hero-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
  opacity: 0;
  animation: fadeImages 25s infinite ease-in-out;
}

/* Stagger image animations for overlap */
.hero-gallery img:nth-child(1) { animation-delay: 0s; }
.hero-gallery img:nth-child(2) { animation-delay: 4s; }
.hero-gallery img:nth-child(3) { animation-delay: 8s; }
.hero-gallery img:nth-child(4) { animation-delay: 12s; }
.hero-gallery img:nth-child(5) { animation-delay: 16s; }

/* Smooth crossfade keyframes */
@keyframes fadeImages {
  0% { opacity: 0; }
  10% { opacity: 1; }   
  30% { opacity: 1; }   
  40% { opacity: 0; }   
  100% { opacity: 0; }
}


/* Overlay Content */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
}

.hero-content {
  max-width: 700px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #f2f2f2;
}

/* Explore Button */
.hero-btn {
  background-color: var(--kenyan-red);
  color: var(--kenyan-white);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-btn:hover {
  background-color: var(--kenyan-black);
  color: var(--kenyan-white);
  transform: translateY(-3px);
}

/* ABOUT SECTION */
.about-section {
  padding: 5rem 2rem;
}

.about-section h2 {
  color: var(--kenyan-green);
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  text-align: center;
}



.about-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-content {
  flex: 1 1 55%;
  padding: 2.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.6rem;
  line-height: 1.8;
}

/* Fact Box */
.fact-box {
  background-color: #f8f8f8;
  padding: 1.8rem;
  margin-top: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.fact-box h3 {
  color: var(--kenyan-green);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.fact-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fact-box li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #ddd;
  color: var(--kenyan-green);
  font-size: 1rem;
}

.fact-box li:last-child {
  border-bottom: none;
}

/* Map Section */
.about-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-container {
  text-align: center;
  background-color: #fff;
  padding: 1.5rem;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.map-container:hover {
  transform: scale(1.02);
}

.kenya-map {
  width: 100%;
  height: auto;
  border: 3px solid var(--kenyan-green);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.kenya-map:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-caption {
  margin-top: 1rem;
  font-style: italic;
  color: #444;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .about-layout {
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    width: 100%;
    padding: 2rem;
  }

  .about-image {
    width: 100%;
    margin-top: 2rem;
  }

  .map-container {
    max-width: 350px;
  }
}

/* Footer */
footer {
  background-color: var(--kenyan-green);
  color: var(--kenyan-white);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

/* small-screen responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.8rem !important;
  }
}
