 body {
      font-family: "Segoe UI", Tahoma, sans-serif;
      margin: 0;
      background-color: #f9fdf9;
      
      
    }


    header {
      background-color: #4CAF50;
      color: white;
      padding: 12px 5px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 10px 10px rgb(72, 225, 42);
      position: fixed;
      width: 100%;
      z-index: 1;
    }
.header-spacer {
  height: 80px;
}
.features {
  padding: 60px 20px;
  background-color: #f1fff1;
  text-align: center;
}

.features h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #2e7d32;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.feature-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.feature-card h3 {
  color: #4CAF50;
  margin-bottom: 10px;
}


.cta-button {
  display: inline-block;
  background: white;
  color: #4CAF50;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition:  0.3s, color 0.3s;
}

.cta-button:hover {
  background: #388e3c;
  color: white;
     
}


    .logo-section {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .logo-section img {
      max-height: 60px;
        animation: rollIn 1.2s ease-out;
    }

    .logo-section h1 {
      margin: 0;
      font-size: 22px;
      font-weight: 600;
    }

    nav {
      display: flex;
      gap: 50px;
              /* animation: rollIn 1.2s ease-out; */
                       animation: bounceInLeft 1.2s ease-out;
                       margin-right: 5%;

    }

    nav a {
      background: white;
      color: #4CAF50;
      text-decoration: none;
      padding: 8px 14px;
      border-radius: 6px;
      font-size: 14px;
      transition: all 0.3s ease;
      font-weight: 500;
    }

    nav a:hover {
      background: #388e3c;
      color: white;
      animation: bounce 0.6s;
    }

    .intro {
      text-align: center;
      padding: 40px 20px;
      max-width: 800px;
      margin: auto;
    }

    .intro h2 {
      font-size: 40px;
      color: #2e7d32;
      margin-top: 10%;
    }

 
 .carousel-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 50px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.carousel-track {
  display: flex;
  width: fit-content;
  animation: scroll-left 30s linear infinite;
}

.carousel-track img {
  width: 1000px; 
  height:500px;
  flex-shrink: 0;
}


@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-4000px);
  }
}


    .intro p {
        color: #2e7d32;
      font-size: 18px;
      font-weight: bolder;
       /* animation: slideInLeft 1.2s ease-out; */
         animation: bounceInLeft 1.2s ease-out;

    }

    .pet-list {
      display: grid;
      grid-template-columns: repeat(4, 2fr);
      gap: 25px;
      padding: 20px 30px;
      overflow-x: auto;            
     scroll-behavior: smooth; 
    }

    .pet-card {
      background: rgb(255, 255, 255);
      padding: 15px;
      border-radius: 12px;
      text-align: center;
      box-shadow: 0 10px 40px rgba(20, 20, 20, 0.388);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .pet-card:hover {
      transform: translateY(6px);
      box-shadow: 0 6px 14px rgba(169, 255, 169, 0.621);
        animation: pulse 0.8s infinite;
    }

    .pet-img {
      width: 100%;
      height: 190px;
      border-radius: 10px;
    
    }

    .pet-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 10px;
    }

    .pet-card h3 {
      margin: 8px 0 5px;
      font-size: 18px;
      color: #2e7d32;
    }

     .details{
      padding-top: 20px;
      font-size: larger;
     }

     .pet-buttons{
         background: #4CAF50;
      color: white;
      border: none;
      padding: 10px 30px;
      border-radius: 6px;
      font-size: 14px;
      cursor: pointer;
      margin-top: 20px;        
    }
     .pet-buttons:hover{
      transition: 5000ms;
      background-color: green;
              animation: glow 1s infinite;

     
     }
    footer {
      text-align: center;
      background-color: #4CAF50;
      color: white;
      padding: 25px 15px;
      margin-top: 40px;
      box-shadow: 0 -5px 10px rgb(72, 225, 42);
            
    }

    .footer-buttons {
      margin-bottom: 15px;
    }
    .footer-buttons a{
      text-decoration: none;
      background-color: white;
         border: none;
      color: #4CAF50;
      padding: 10px 20px;
      margin: 5px;
      border-radius: 6px;
      font-size: 14px;
      cursor: pointer;
    }
    .footer-buttons a:hover{
      color: white;
      background-color:#4CAF50;
        animation: glow 1s infinite;
         /* animation: bounce 0.6s; */
         
    }

    /* .footer-buttons button {
      background: #4CAF50;
   
    }

    .footer-buttons button:hover {
      color:#4CAF50;
      
    } */

    footer p {
      font-size: 14px;
      margin: 15px 0;
    }

    .social-links a {
      margin: 0 12px;
      text-decoration: none;
      color: white;
      font-weight: 500;
      transition: 0.3s;
    }

    .social-links a:hover {
      color: #ffeb3b;
         animation: bounce 0.6s;
    }
    ::selection{
      background-color: rgb(115, 255, 0);
      color: white;
    }
 .fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
}

.cta-button {
  animation: pulse 2s infinite;
}
.typing {
      font-size: 2.5rem;
      color: white;
      animation: textPulse 2s infinite;
    }

    /* Pulse animation on text */
    @keyframes textPulse {
      0% {
        transform: scale(1);
        color: #ffffff;
      }
      50% {
        transform: scale(1.1);
        color: #ffffff;
      }
      100% {
        transform: scale(1);
        color: #ffffff;
      }
    }



.intro h2 {

  display: inline-block;       /* so width affects only text */
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typingErase 2s linear infinite;
}

@keyframes typingErase {
  0% { width: 0; }
  50% { width: 10ch; }   /* Adjust 10ch to match text length */
  100% { width: 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 2px 10px #ff9800; }
  50% { box-shadow: 0 2px 30px #ff9800; }
}
@keyframes rollIn {
  from { transform: translateX(-100%) rotate(-120deg); opacity: 0; }
  to { transform: translateX(0) rotate(0); opacity: 1; }
}

@keyframes bounceInLeft {
  0% {
    transform: translateX(-300px);
    opacity: 0;
  }
  60% {
    transform: translateX(30px);
    opacity: 1;
  }
  80% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(0);
  }
}
html {
  scroll-behavior: smooth;
}
.faq-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.faq-card {
  background: #fff;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.3s;
}



.newsletter {
  background: #ffffff; /* clean white */
  padding: 60px 20px;
  text-align: center;
  border-radius: 25px; /* smoother corners */
  margin: 40px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* soft shadow */
  transition: transform 0.3s, box-shadow 0.3s;
}

.newsletter:hover {
  transform: translateY(-5px); /* subtle lift on hover */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.newsletter h2 {
  color: #388e3c; /* green heading */
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.newsletter p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #555;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  padding: 14px 18px;
  border-radius: 15px;
  border: 1px solid #ccc;
  min-width: 280px;
  flex: 1;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}

.newsletter-form input[type="email"]:focus {
  border-color: #388e3c; /* green focus border */
  box-shadow: 0 0 10px rgba(56, 142, 60, 0.3);
}

.newsletter-form .btn {
  background: #388e3c;
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(56, 142, 60, 0.3);
}

.newsletter-form .btn:hover {
  background: #2e7030; /* slightly darker green */
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(56, 142, 60, 0.4);
}

