/*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 & layout */
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display:flex;
  flex-direction: column;
  background-color: #00130D;
  font-family: "Inria Serif", serif;
  color: #ffffff;
}


/* main content */

main.content {
  flex: 1;                 
  flex-direction: column;
  justify-content: center;  
  align-items: center;     
  text-align: center;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.identify-container {
  display: flex;
  flex-direction: column; 
  justify-content: center; 
  align-items: center;     
  text-align: center;
  position: relative;      
  z-index: 10;             
  width: 100%;        
  padding: 20px;
}


/* Index page top background */
body.home .home-hero {
  position: relative;
  height: 600px;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 19, 13, 0.1) 50%,
      rgba(0, 19, 13, 0.65) 70%,
      #00130D 100%
    ),
    url('/img/background.png');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: 1;
}

body.home .header-top {
  background: transparent;
  position: relative;
  z-index: 2;
}

body:not(.home) header {
  background-color: #19421D;
}


.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: -30px;
}

.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;
  background-color: transparent;
}

.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 */
.nav-header nav a.login-btn {
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Style the icon */
.nav-header nav a.login-btn .login-icon {
  width: 98px;
  height: 78px;
  transition: transform 0.2s, filter 0.2s;
}

/* Hover effect */
.nav-header nav a.login-btn:hover .login-icon {
  transform: scale(1.1);
  filter: brightness(1.2);
}


/* import & result */


.detect-tag h1{
  margin: 30px auto;
  max-width: 1100px;
  text-align: center;
  font-size: 1.5rem;
  padding-bottom: 30px;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
}

.detect-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 50px;
    z-index: 10;
}

.detect-container h2{
    font-family: "Kaisei Decol", serif; 
    font-weight: 400;
    font-size: 3rem;
}

.detection-image img{
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 15px auto;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detection-result-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Keeps the animal visible without cropping */
}

.upload-card p {
    font-family: "Kaisei Decol", serif; 
    font-weight: 400;
    font-size: 1.1rem;
}

.upload-card form {
    display: flex;
    flex-direction: column;
    align-items: start; 
    gap: 10px; 
}




/*import btn */

.import-btn {
    display: inline-block;
    padding: 6px 20px;
    margin-bottom: 15px;
    
    background-color: #D9D9D9; 
    color: #000000; 
    

    font-family: "Inria Serif", serif;
    font-size: 0.9rem;
    text-transform: lowercase; 
    
 
    border-radius: 20px;
    cursor: pointer;
    

    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.import-btn:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.import-btn:active {
    transform: translateY(0);
}


/* detect, result box */

.detect-box, .results-box{
    text-align: left;
}

/* Glass cards */
.upload-card, .results-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 30px;
    min-width: 400px;
    backdrop-filter: blur(10px);
}

/* preview area */

.preview-area {
    width: 100%;
    max-width: 300px; 
    height: 300px;
    margin: 15px auto;
    border-radius: 15px;
    overflow: hidden; /* Keep content inside */
    background: rgba(255, 255, 255, 0.05); 
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.preview-area img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.preview-area, .preview-area img{
     pointer-events: none;

}

/* get location group */
.get-location{
    width: 100%;
    max-width: 500px; 
    height: 300px;
    margin: 15px auto;
    border-radius: 15px;
    overflow: hidden; /* Keep content inside */
    background: rgba(255, 255, 255, 0.05); 
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.get-location img{
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.location-btn-group{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.btn-location{
    display: inline-block;
    background: #E1C15A;
    color: #00130D;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    font-family: "Kaisei Decol", serif;
    border: none;
    cursor: pointer;
}

/* Detect Button */
.btn-identify {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    background: rgba(217, 217, 217, 0.2);
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    font-family: "Inria Serif", serif;
    position: relative;
    z-index: 5;

}

.btn-identify:hover {
  color:#FFECC4;
  border: 3px solid #FFECC4;
  opacity: 1;
}


.detect-btn-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.status-tag {
    color: #65ce76; 
}

.date-sighting {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 0.9rem;
}


/* learn more */ 

.learn-group-detect{
    display: flex;
    justify-content: center;
    flex-direction: row;
    text-align: left;
    align-items: center;
}

.learn-tag-detect{
    margin: 0;
    font-size: 3.5rem;
    font-family: "Kaisei Decol", serif; 
    font-weight: 400;
    margin-bottom: 30px;
}

.learn-text-p-detect{
    font-size: 1.2rem;
    font-weight: 400;
    font-family: "Kaisei Decol", serif; 
}
.lcontainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;       
  justify-content: center;
  align-items: flex-start; 
  gap: 80px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
}

.learn-cat{
  border-radius: 25px;
  padding: 20px;
  width: 250px;
  padding-right: 100px;
  padding-top: 50px;
  min-height: 150px;
  position: relative;
  overflow: visible;
  margin: 50px 0 0 0; /* vertical spacing only */
  cursor: pointer;
}

/* individual colors */
.learn-cat { background: #A08361; }



/* individual image containers */
.leopard   { position: absolute; top: 24px;  right: 0px;   z-index: 2; }


/* individual image sizes */
.leopard   img { width: 250px; height: auto; border-radius: 20px; display: block; }




/* Card hover effect */
 .learn-cat{
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.learn-cat:hover{
  transform: translateY(-10px) scale(1.03); /* lifts and slightly enlarges */
  box-shadow: 0 20px 40px rgba(238, 237, 235, 0.4); /* shadow for depth */
}


.leopard:hover img{
  transition: transform 0.3s ease;
}



/* divider*/

.white-line-divider {
  width: 70%;  
  height: 2px; 
  background-color: #ffffff; 
  margin: 1em 0; 
  z-index: 3;
  border: 1px white;
  margin-top: 100px;
  margin-bottom: 50px;
}


/*emergency group */

.emergency-tag{
    text-align: left;
    font-size: 5rem;
    font-family: "Kaisei Decol", serif; 
    font-weight: 400;
    margin-bottom: 30px;
}


/*button */

.emergency-button-group{
    display:flex;
    gap:30px;
    
}
.btn-emergency {

    align-items: center;
    justify-content: center;

    width: 72px;
    height: 122px;

    background: #00875C;
    border: none;
    border-radius: 30%; 

    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-emergency img {
    width: 60px;
    height: 60px;
}

.btn-emergency:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.emergency-call-tag h1{

  margin:0;
  font-size: 3.3rem;
  text-align: left;
  
}


/* footer */

.main-footer {
    width: 100%; 
    background: #19421D;
    color: #cfd8e3;
    padding: 0;
    margin-top: auto; /* This is the magic: it pushes the footer to the bottom */
    position: relative;

}

/* 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: 'Inria Serif', 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;
}

@media (max-width: 768px) {
  /* 1. Header & Navigation */
  .nav-header {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }
  
  .nav-header nav {
    flex-wrap: wrap;
    gap: 10px;
  }


  /* 2. Detection Container (Stacking the Cards) */

  .detect-tag h1{
  margin: 30px auto;
  max-width: 400px;
  text-align: center;
  font-size: 1.1rem;
  padding-bottom: 30px;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
}

  .detect-container {
    flex-direction: column; /* Stack Upload and Results */
    padding: 20px;
    gap: 20px;
  }

  .detect-container h2 {
    font-size: 2rem;
    text-align: center;
  }

/* Container for the image */
.detection-image img {
    max-width: 100%;    /* Never wider than the results card */
    max-height: 300px;  /* Never taller than 300px */
    width: auto;        /* Maintains aspect ratio */
    height: auto;       /* Maintains aspect ratio */
    border-radius: 8px; /* Optional: adds rounded corners */
    object-fit: contain; /* Ensures the whole animal is visible */
}

.detection-result-img {
    width: 100%;
    height: 300px;    /* Set a fixed height */
    object-fit: cover; /* This crops the image to fill the box without stretching */
    display: block;
}



  .upload-card, .results-card {
    min-width: unset; /* Remove the 400px constraint */
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }

  .preview-area {
    height: 250px; /* Slightly shorter for mobile screens */
  }

  /* 3. Learn More Section */

  .learn-group-detect{
    display: flex;
    flex-direction: column;

    
  }
  .learn-text-detect {
    position: relative;
    z-index: 5;            /* Ensures text stays above animal images */
    text-align: center;
    justify-content: center;
    align-items: center;
    pointer-events: none;  /* Makes sure text doesn't interfere with card clicks */
  }

  .learn-more-tag-detect {
    font-size: 2.5rem !important;
    line-height: 1.2;
    margin: 0;
  }

  .learn-p-detect{
    text-align: center;
  }

  /* Leopard Card specific fix */
  .learn-cat {
    width: 90%;
    max-width: 300px;
    margin: 40px auto;
    padding-right: 20px;
    overflow: hidden; /* Clips leopard to card */
  }

  .leopard {
    top: auto;
    bottom: 0;
    right: -10px;
  }

  .leopard img {
    width: 180px; /* Scale leopard to fit smaller card */
  }

  /* 4. Emergency Section */

  .emergency-container{
    display: flex;
    flex-direction: column;
    padding-right: 30px;
  }
  .emergency-tag {
    font-size: 2.5rem;
    text-align: center;
  }

  .emergency-button-group {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .emergency-call-tag h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .btn-emergency {
    width: 100px; /* Slightly wider for easier tapping */
    height: 80px; /* Square/Oval mix rather than tall rectangle */
    border-radius: 20px;
  }

  .btn-emergency img {
    width: 40px;
    height: 40px;
  }

  /* 5. Global Fixes */
  .white-line-divider {
    width: 90%;
    margin-top: 50px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-brand {
    align-items: center;
  }
}






