/* ---------------- General ---------------- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: #f0f7f5; color: #333; line-height: 1.6; overflow-x: hidden; }
.container { width: 90%; max-width: 1200px; margin: auto; }

/* ---------------- Header ---------------- */
header { background: #4cafab; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.2); padding: 15px 20px; }
header .header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo-wrap { display: flex; align-items: center; }
.logo-img { height: 60px; width: 60px; border-radius: 50%; object-fit: cover; margin-right: 20px; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.3); animation: logoBounce 2s ease-in-out infinite, logoGlow 3s ease-in-out infinite; }
@keyframes logoBounce { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.05); } }
@keyframes logoGlow { 0%,100% { box-shadow: 0 4px 10px rgba(0,0,0,0.3), 0 0 10px rgba(76,202,171,0.5); } 50% { box-shadow: 0 6px 15px rgba(0,0,0,0.4), 0 0 25px rgba(76,202,171,0.8); } }
header nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
header nav ul li a { color: #fff; text-decoration: none; font-weight: 500; padding: 6px 10px; border-radius: 6px; transition: 0.3s; }
header nav ul li a:hover { background: rgba(255,255,255,0.2); }



/* ---------------- Hero ---------------- */
.hero { position:relative; text-align:center; padding:120px 20px; background:linear-gradient(to right,#a3e4d7,#67c8b7); border-radius:0 0 50% 50% /0 0 15% 15%; overflow:hidden; }
.hero::before { content:""; position:absolute; top:0; left:0; width:100%; height:100%; background:url('images/pet1.jpg') center/cover no-repeat; opacity:0.15; z-index:0; border-radius:0 0 50% 50% /0 0 15% 15%; }
.hero h1 { font-size:46px; margin-bottom:20px; color:#fff; background:linear-gradient(90deg,#fff,#d0f0e0); -webkit-background-clip:text; -webkit-text-fill-color:transparent; animation:fadeInDown 1.5s ease forwards; opacity:0; position:relative; z-index:1; }
.hero p { font-size:20px; margin-bottom:30px; color:#fff; animation:fadeInUp 2s ease forwards; opacity:0; position:relative; z-index:1; }
.btn { background:#fff; color:#4cafab; padding:15px 35px; border-radius:50px; text-decoration:none; font-weight:600; display:inline-block; transition:0.4s; position:relative; z-index:1; }
.btn:hover { background:#4cafab; color:#fff; transform:translateY(-3px); }

/* Floating paws animation */
.floating-paws { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; gap:20px; }
.floating-paws span { font-size:30px; animation:floatPaws 3s ease-in-out infinite; display:inline-block; }

/* ---------------- About Section ---------------- */
.about { padding:80px 20px; text-align:center; }
.about h2 { font-size:34px; margin-bottom:20px; color:#2b8f7b; }
.about p { max-width:800px; margin:0 auto 40px auto; font-size:18px; }
.about-cards { display:flex; justify-content:center; flex-wrap:wrap; gap:30px; }
.about-cards .card { background:#fff; border-radius:20px; padding:20px; width:250px; box-shadow:0 8px 20px rgba(0,0,0,0.1); transition:0.4s; opacity:0; transform:translateY(50px); animation:slideUp 0.8s forwards; }
.about-cards .card:nth-child(1){animation-delay:0.2s;}
.about-cards .card:nth-child(2){animation-delay:0.4s;}
.about-cards .card:nth-child(3){animation-delay:0.6s;}
.about-cards .card img { width:80px; height:80px; margin-bottom:15px; }
.about-cards .card h3 { color:#4cafab; margin-bottom:10px; }
.about-cards .card:hover { transform:translateY(-10px) scale(1.05); }

/* ---------------- Featured Pets ---------------- */
.featured { padding:80px 20px; text-align:center; }
.featured h2 { font-size:34px; margin-bottom:50px; color:#2b8f7b; }
.pets-grid { display:flex; justify-content:center; flex-wrap:wrap; gap:30px; }
.pet-card { background:#fff; border-radius:20px; overflow:hidden; width:240px; transition:0.4s; box-shadow:0 8px 20px rgba(0,0,0,0.15); cursor:pointer; transform:translateY(50px) scale(0.9); opacity:0; animation:slideUp 0.8s forwards; }
.pet-card:nth-child(1){animation-delay:0.2s;}
.pet-card:nth-child(2){animation-delay:0.4s;}
.pet-card:nth-child(3){animation-delay:0.6s;}
.pet-card:nth-child(4){animation-delay:0.8s;}
.pet-card img { width:100%; height:220px; object-fit:cover; transition:0.4s; }
.pet-card:hover img { transform:scale(1.12) rotate(2deg); }
.pet-card h3 { padding:15px; font-size:20px; text-align:center; color:#4cafab; transition:0.3s; }
.pet-card:hover h3 { color:#1a5f53; transform:scale(1.05); }

/* ---------------- Testimonials ---------------- */
.testimonials { padding:80px 20px; text-align:center; background:#e0f2ef; }
.testimonials h2 { font-size:34px; margin-bottom:50px; color:#2b8f7b; }
.testimonial-cards { display:flex; justify-content:center; flex-wrap:wrap; gap:30px; }
.testimonial { background:#fff; border-radius:20px; padding:25px 20px; width:250px; box-shadow:0 8px 20px rgba(0,0,0,0.1); opacity:0; transform:translateY(50px); animation:slideUp 0.8s forwards; }
.testimonial:nth-child(1){animation-delay:0.2s;}
.testimonial:nth-child(2){animation-delay:0.4s;}
.testimonial:nth-child(3){animation-delay:0.6s;}
.testimonial p { font-style:italic; margin-bottom:10px; }
.testimonial h4 { color:#4cafab; }

/* ---------------- Newsletter ---------------- */
.newsletter { padding:80px 20px; text-align:center; }
.newsletter h2 { font-size:34px; margin-bottom:20px; color:#2b8f7b; }
.newsletter p { margin-bottom:30px; font-size:18px; }
.newsletter form { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }
.newsletter input { padding:12px 15px; border-radius:50px; border:1px solid #ccc; width:250px; transition:0.3s; }
.newsletter input:focus { border-color:#4cafab; box-shadow:0 0 8px rgba(76,202,171,0.4); outline:none; }
.newsletter button { padding:12px 25px; border:none; border-radius:50px; background:#4cafab; color:#fff; font-weight:600; cursor:pointer; transition:0.3s; }
.newsletter button:hover { background:#2b8f7b; transform:scale(1.05); }

/* ---------------- Footer ---------------- */
footer { background:linear-gradient(to right,#4cafab,#2b8f7b); color:#fff; text-align:center; padding:30px 0; margin-top:50px; }
footer .socials { margin-top:15px; }
footer .socials a { color:#fff; font-size:20px; margin:0 10px; text-decoration:none; transition:0.3s; }
footer .socials a:hover { transform:scale(1.2); color:#e0f0e0; }

/* ---------------- Animations ---------------- */
@keyframes fadeInDown {0%{opacity:0; transform:translateY(-30px);}100%{opacity:1; transform:translateY(0);} }
@keyframes fadeInUp {0%{opacity:0; transform:translateY(30px);}100%{opacity:1; transform:translateY(0);} }
@keyframes floatPaws {0%,100%{transform:translateY(0);}50%{transform:translateY(-15px);} }
@keyframes slideUp {0%{opacity:0; transform:translateY(50px) scale(0.9);}100%{opacity:1; transform:translateY(0) scale(1);} }

/* ---------------- Responsive ---------------- */
@media(max-width:768px){
  .pets-grid, .about-cards, .testimonial-cards { flex-direction:column; align-items:center; }
  header{flex-direction:column; gap:10px;}
  header nav ul{flex-direction:column; gap:10px;}
  .hero h1{font-size:36px;}
  .newsletter form{flex-direction:column; gap:15px;}
}


/* ---------------- Hero Section ---------------- */
.hero { position: relative; text-align: center; padding: 120px 20px; background: linear-gradient(to right, #a3e4d7, #67c8b7); border-radius: 0 0 50% 50% / 0 0 15% 15%; overflow: hidden; }
.hero::before { content:""; position: absolute; top:0; left:0; width:100%; height:100%; background: url('images/pet1.jpg') center/cover no-repeat; opacity:0.15; z-index:0; border-radius: 0 0 50% 50% / 0 0 15% 15%; }
.hero h1 { font-size: 46px; margin-bottom:20px; color:#fff; background: linear-gradient(90deg, #fff,#a3e4d7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: fadeInDown 1.5s ease forwards; opacity:0; position:relative; z-index:1; }
.hero p { font-size:20px; margin-bottom:30px; color:#fff; animation: fadeInUp 2s ease forwards; opacity:0; position:relative; z-index:1; }
.btn { background:#fff; color:#4cafab; padding:15px 35px; border-radius:50px; text-decoration:none; font-weight:600; display:inline-block; transition:0.4s; position:relative; z-index:1; }
.btn:hover { background:#4cafab; color:#fff; transform:translateY(-3px); }

/* Floating paws animation */
.floating-paws { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; gap:20px; }
.floating-paws span { font-size:30px; animation: floatPaws 3s ease-in-out infinite; display:inline-block; }
@keyframes floatPaws { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-15px); } }
@keyframes fadeInDown { 0% { opacity:0; transform:translateY(-30px);} 100% { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { 0% { opacity:0; transform:translateY(30px);} 100% { opacity:1; transform:translateY(0); } }

/* ---------------- Featured Pets ---------------- */
.featured { padding:80px 20px; text-align:center; }
.featured h2 { font-size:34px; margin-bottom:50px; color:#2b8f7b; }
.pets-grid { display:flex; justify-content:center; flex-wrap:wrap; gap:30px; }
.pet-card { background:#fff; border-radius:20px; overflow:hidden; width:240px; transition:0.4s; box-shadow:0 8px 20px rgba(0,0,0,0.15); cursor:pointer; transform:translateY(50px) scale(0.9); opacity:0; animation:slideUp 0.8s forwards; }
.pet-card:nth-child(1){animation-delay:0.2s;} .pet-card:nth-child(2){animation-delay:0.4s;} .pet-card:nth-child(3){animation-delay:0.6s;}
@keyframes slideUp { 0% { opacity:0; transform:translateY(50px) scale(0.9);} 100% { opacity:1; transform:translateY(0) scale(1);} }
.pet-card img { width:100%; height:220px; object-fit:cover; transition:0.4s; }
.pet-card:hover img { transform: scale(1.12) rotate(2deg); }
.pet-card h3 { padding:15px; font-size:20px; text-align:center; color:#4cafab; transition:0.3s; }
.pet-card:hover h3 { color:#1a5f53; transform:scale(1.05); }

/* ---------------- Footer ---------------- */
footer { background: linear-gradient(to right,#4cafab,#2b8f7b); color:#fff; text-align:center; padding:30px 0; margin-top:50px; position:relative; }

/* ---------------- Responsive ---------------- */
@media(max-width:768px){
  header .header-flex { flex-direction: column; gap: 15px; }
  header nav ul { flex-direction: column; gap:10px; }
  .logo-img { margin-right:0; }
  .hero h1 { font-size:32px; }
  .hero p { font-size:18px; }
  .pets-grid { flex-direction: column; align-items:center; }
}

.cards-grid {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:center;
  margin-top:40px;
}

.legal-card {
  background:#fff;
  border-radius:15px;
  box-shadow:0 6px 15px rgba(0,0,0,0.1);
  padding:25px;
  width:300px;
  transition:0.3s;
  text-align:center;
}

.legal-card h3 { color:#4cafab; margin-bottom:10px; }
.legal-card p { color:#333; font-size:16px; line-height:1.5; }

.legal-card:hover {
  transform:translateY(-5px);
  box-shadow:0 10px 20px rgba(0,0,0,0.15);
}

#unsubscribeForm {
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
}

#unsubscribeForm input { padding:10px; width:80%; border-radius:6px; border:1px solid #ccc; }
#unsubscribeForm button { padding:10px 20px; border-radius:6px; border:none; background:#4cafab; color:#fff; cursor:pointer; transition:0.3s; }
#unsubscribeForm button:hover { background:#2b8f7b; transform:translateY(-2px); }

@media(max-width:768px) {
  .cards-grid { flex-direction:column; align-items:center; }
  .legal-card { width:90%; }
}
