/*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;
}


/* Index page top background */
body.home .home-hero {
  position: relative;
  height: 480px;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 19, 13, 0.1) 30%,
      rgba(0, 19, 13, 0.65) 90%,
      #00130D 100%
    ),
    url('../img/login-bg.png');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

body.home .header-top {
  background: transparent;
  position: relative;
  z-index: 2;
}


/* logo */
.logo, .footer-brand h2 {
  font-family: "Inria Serif", serif;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  justify-self: start;  
  display: flex;
  align-items: center;
	margin-top: 20px;
}

.logo .logo-ani { color: #ffffff; }
.logo .logo-track { color: #FF0000; }


/* Nav Header */
.nav-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 24px;
  position: relative;
  z-index: 1000;
}

.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;
}

/* Login button icon */
.nav-header nav a.login-btn {
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-header nav a.login-btn .login-icon {
  width: 98px;
  height: 78px;
  transition: transform 0.2s, filter 0.2s;
}

.nav-header nav a.login-btn:hover .login-icon {
  transform: scale(1.1);
  filter: brightness(1.2);
}


/* Tagline (Home Hero) */
.tag {
  font-family: "Kaisei Decol", serif;
  display: flex;            
  flex-direction: column;
  justify-content: center;  
  gap: 10px;                
  text-align: center; 
  align-items: center;
  z-index: 10;
  font-weight: 400;
  margin-top: -100px; 
  margin-bottom: 60px; 
}

.tag1 h2, .tag2 h2 {
  margin: 0;
  font-size: 4.5rem;
  line-height: 1.1;
}

.tag2 h2 { color: #FF0000; }


/* identify tag */
.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; 
}


/* detect & call button group */
.button-group1 {
  display: flex;
  flex-direction: row;
  padding-top: 10px;
  gap: 25px;
  align-items: center;
  margin-bottom: 40px;
}

.btn-detect {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(217, 217, 217, 0.2);
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.btn-detect:hover {
  color: #FFECC4;
  border: 2px solid #FFECC4;
}

.btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: #00875C;
  border: none;
  border-radius: 50%; 
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-call:hover { transform: translateY(-2px); }

.call-tag h1 {
  margin: 0;
  font-size: 1.1rem;
  text-align: left;
  line-height: 1.2;
}


/* Animal Cards (Home Content) */
.card-container {
  width: 100%;
  padding-top: 40px;
}

.card {
  background: #3C6440;        
  border-radius: 35px;
  padding: 40px 50px;
  max-width: 950px;
  width: 90%;
  margin: 40px auto;
  position: relative;
}

.card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.text {
  text-align: left;
  max-width: 55%;
  z-index: 10;
}

.text h2 {
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.animal-status {
  background-color: #ff0000; 
  color: #fff;
  padding: 5px 15px;
  display: inline-block;
  border-radius: 5px;
  font-weight: 600;
  margin-bottom: 15px;
}

.bird img {
  position: absolute;
  top: -80px;                   
  right: -30px;              
  width: 550px;                 
  height: auto;
  z-index: 5;
  pointer-events: none;
}


/* footer */

.main-footer {
  width: 100vw;
  background: #19421D;
  color: #cfd8e3;
  padding: 0;
  margin: 150px 0 0 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-shadow: 0 -2px 24px #5e3d2c33;
  font-family: "Inria Serif", serif;

}

/* Footer layout */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 18px 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


/* footer logo */

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-logo .logo-ani {
  color: #ffffff;
}

.footer-logo .logo-track {
  color: #FF0000;
}


.footer-tagline {
  font-size: 1rem;
  color: #ffffff;
  margin: 4px 0 0 0;
  font-family: "Kaisei Decol", serif;
  font-weight: 500;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #ffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.2s;
  opacity: 0.85;
}

.footer-nav a:hover {
  color: #FFECC4;
  opacity: 1;
}


.footer-social-icon img {
  width: 28px;
  height: 28px;
  filter: invert(1) brightness(2);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s, transform 0.2s;
}

.footer-social-icon:hover img {
  filter: invert(1) brightness(2) drop-shadow(0 0 6px #e2b07a);
  opacity: 1;
  transform: scale(1.12) rotate(-6deg);
}

.footer-bottom {
  text-align: center;
  padding: 12px 0 18px 0;
  font-size: 0.98rem;
  color: #fff;
  background: transparent;
  opacity: 0.85;
  border-top: 1px solid #e2b07a22;
  letter-spacing: 0.01em;
}


/* responsiveness */
@media (max-width: 950px) {
  .footer-content { flex-direction: column; align-items: center; gap: 18px; }
  .tag1 h2, .tag2 h2 { font-size: 3rem; }
  .nav-header { grid-template-columns: 1fr; row-gap: 10px; }
  .nav-header nav { flex-direction: column; gap: 15px; align-items: center; }
  .card-content { flex-direction: column; align-items: center; }
  .text { max-width: 100%; text-align: center; }
  .bird img { position: relative; top: 0; right: 0; width: 100%; max-width: 400px; margin-top: 20px; }
}

@media (max-width: 600px) {
  .tag1 h2, .tag2 h2 { font-size: 2.2rem; }
  .identify-tag h1 { font-size: 1rem; }
  .footer-logo { font-size: 1.1rem; }
}