/*font*/
.inria-serif-regular { font-family: "Inria Serif", serif; font-weight: 400; }
.kaisei-decol-regular { font-family: "Kaisei Decol", serif; font-weight: 400; }
.kaisei-decol-bold { font-family: "Kaisei Decol", serif; font-weight: 700; }


/*body & layout */
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #00130D;
  font-family: "Inria Serif", serif;
  color: #ffffff;
  overflow-x: hidden;
}


/* main content */
main.content {
  flex: 1 0 auto; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  
  align-items: center;      
  text-align: center;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}


/* About page top background (Hero) */
.about-hero {
  position: relative;
  height: 600px;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 19, 13, 0.1) 50%,
      rgba(0, 19, 13, 0.65) 80%,
      #00130D 100%
    ),
    url('/img/background.png');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}


/* Nav Header - Ensuring transparency over the hero */
.nav-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 24px;
  position: relative;
  z-index: 1000;
  background: transparent; /* Forces transparency */
}

.nav-header nav {
  display: flex;
  justify-content: center;
  gap: 35px;
}

.nav-header nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  padding: 10px 20px;
  border-radius: 6px;
  transition: 0.3s ease;
}

.nav-header nav a:hover {
  color: #FFECC4;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}

.logo .logo-ani { color: #ffffff; }
.logo .logo-track { color: #FF0000; }


/* Tagline */
.about-hero .tag {
  font-family: "Kaisei Decol", serif;
  display: flex;            
  flex-direction: column;
  justify-content: center;  
  text-align: center; 
  align-items: center;
  z-index: 10;
  font-weight: 400;
  margin-top: 150px; /* Kept low as requested */
  margin-bottom: 0; 
}

.about-hero .tag1 h2 {
  margin: 0;
  font-size: 4.5rem;
  line-height: 1.1;
}


/* identify tag */
.about-hero .identify-tag h1 {
  font-family: "Kaisei Decol", serif;
  font-weight: 400;
  font-size: 1.2rem;
  max-width: 650px;
  opacity: 0.9;
  text-align: center;
  margin: 20px auto; 
  display: flex;
  justify-content: center; 
  align-items: center;      
  min-height: 40px; 
  padding: 10px 20px;
  box-sizing: border-box; 
}


/* feature section */
.feature-section {
  display: flex;
  align-items: center;
  gap: 80px;
  margin: 100px auto;
  text-align: left;
  max-width: 1200px;
  width: 100%;
}

.feature-image {
  flex: 1;
  position: relative;
}

.feature-image img {
  width: 100%;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.pig-label {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #1B3B1F;
  padding: 25px;
  border-radius: 20px;
  color: #8CBA4A;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-text p {
  font-family: "Inria Serif", serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.8;
  border-left: 3px solid #19421D;
  padding-left: 20px;
  margin-bottom: 30px;
}


/* learn more button */
.btn-learn-more {
  font-family: "Inria Serif", serif;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 50px;
  color: #ffffff;
  border: 2px solid #ffffff;
  background: rgba(255,255,255,0.1);
  transition: 0.3s ease;
  display: inline-block;
}

.btn-learn-more:hover {
  background: rgba(255,255,255,0.2);
  border-color: #FFECC4;
  color: #FFECC4;
}


/* species overview grid */
.species-overview {
  text-align: center;
  margin: 100px 0;
  width: 100%;
  max-width: 1200px;
}

.species-overview h2 {
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.species-item .img-box {
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background: #19421D;
  margin-bottom: 10px;
}

.species-item .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.species-item p {
  font-family: "Inria Serif", serif;
  font-weight: 400;
  font-size: 0.95rem;
  opacity: 0.8;
}


/* staff section */
.staff-section {
  text-align: center;
  margin: 150px 0;
}

.staff-section h2 {
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-size: 4rem;
  margin-bottom: 80px;
}

.staff-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.staff-card img {
  width: 240px;
  height: 240px;
  border-radius: 50px;
  object-fit: cover;
  margin-bottom: 20px;
  background: #19421D;
}

.staff-card h4 {
  font-family: "Kaisei Decol", serif;
  font-weight: 400;
  font-size: 1.8rem;
  margin: 0;
}


/* responsiveness */
@media (max-width: 900px) {
  .feature-section { flex-direction: column; text-align: center; }
  .species-grid { grid-template-columns: repeat(3, 1fr); }
  .about-hero .tag1 h2 { font-size: 3.5rem; }
  .feature-text h2 { font-size: 2rem; }
  .staff-section h2 { font-size: 3rem; }
}

@media (max-width: 600px) {
  .about-hero .tag1 h2 { font-size: 2.5rem; }
  .identify-tag h1 { font-size: 1rem; max-width: 90%; }
  .feature-text h2 { font-size: 1.8rem; }
  .staff-section h2 { font-size: 2.2rem; }
  .species-grid { grid-template-columns: repeat(2, 1fr); }
}