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 for smaller screens */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

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

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

/* Nature Page */

/* Big Five Section */
.bigfive-section {
  padding: 2rem 2rem;
  text-align: center;  
}

/* Container */
.bigfive-section .container{
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Heading and intro */
.bigfive-section h2{
  color: var(--kenyan-green);
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  justify-content: center;
}

.bigfive-section .section-intro{
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #333;
  font-size: 1.1rem;
}

/* Grid layout */
.animal-grid {
  display: grid;
  border: 1px solid var(--kenyan-black);
  grid-template-columns: repeat(1, 1fr);
  margin-top: 1.25rem;
}

/* Responsiveness */
@media (min-width: 640px) {
  .animal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .animal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1240px) {
  .animal-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}


/* Card style */
.animal-card{
  display: flex;
  flex-direction: column;
  border: var(--kenyan-black) 1px solid;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  will-change: transform;
  min-height: 100%;
}

/* Card lift on hover/focus */
.animal-card:where(:hover, :focus-within){
  transform: translateY(-6px);
  
  outline: none;
}

.animal-card[tabindex]{
  cursor: pointer;
}

/*  Animal card Image */
.animal-card img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02));
  transition: transform var(--transition);
}

/* small zoom on hover */
.animal-card:where(:hover, :focus-within) img{
  transform: scale(1.03);
}

/* Animal Info */
.animal-info{
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.animal-info h4{
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.2;
  color: var(--text);
  font-weight: 600;
}

.animal-info p{
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

 /* Migration */
.migration-section {
  padding: 5rem 2rem;
  text-align: center;
}

.migration-section h2{
  color: var(--kenyan-green);
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  justify-content: center;
}

/* Destinations */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.destination-card {
  padding: 1.2rem;
  box-shadow: 0 4px 10px var(--kenyan-black);  
}

.destinations-section h2{  
  color: var(--kenyan-green);
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  text-align: center;
}
.destination-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--kenyan-red);
}

