/* --- 1. Global Reset & Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Arial', sans-serif;
}

body {
  background: #f7fafc; 
  color: #222;
  min-height: 100vh;
  line-height: 1.6;
}

/* Background Image Layer */
.page-bg {
  background: url('https://images.unsplash.com/photo-1583337130417-3346a1be7dee') no-repeat center center fixed;
  background-size: cover;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2; /* Moved further back */
  opacity: 0.1; /* Made subtle so text is readable */
}

/* --- 2. Navigation & Header --- */
header {
  background: #00b8d9; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.logo img {
  height: 38px;
  margin-right: 10px;
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

nav a:hover, nav a.active {
  color: #edd237; 
}

nav a.donate-link {
  background: linear-gradient(90deg, #ffb347 0%, #ff6f61 100%);
  color: #fff;
  border-radius: 24px;
  padding: 8px 20px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

/* --- 3. Hero Section --- */
.hero {
  max-width: 1100px;
  margin: 30px auto;
  padding: 80px 20px;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('https://images.unsplash.com/photo-1450778869180-41d0601e046e') no-repeat center center;
  background-size: cover;
  border-radius: 24px;
  text-align: center;
  color: #fff;
  border: 4px solid orange;
}

.hero h2 {
  font-size: 48px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* --- 4. Pet Grid & Cards --- */
.adoption {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.pets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-top: 30px;
}

.pet-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  text-align: center;
}

.pet-card:hover {
  transform: translateY(-10px);
}

.pet-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* --- 5. Slider --- */
.slider-container {
  position: relative;
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
}

.slide {
  display: none;
  animation: fadeIn 0.8s;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 184, 217, 0.8);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* --- 6. Forms --- */
.contact-form {
  max-width: 500px;
  margin: 0 auto 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 100%;
}

.btn {
  display: inline-block;
  background: orange;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #ff9800;
}

/* --- 7. Footer --- */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

footer a {
  color: #00b8d9;
  margin: 0 10px;
  text-decoration: none;
}

/* --- 8. Animations & Queries --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,111,97,0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255,111,97,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,111,97,0); }
}

@media (max-width: 768px) {
  .navbar { flex-direction: column; }
  nav { margin-top: 15px; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .hero h2 { font-size: 28px; }
  .pet-card { width: 100%; }
}