/* AAZP Vandalur Zoo Modern CSS Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Noto+Sans+Tamil:wght@400;600;700&display=swap');

:root {
  --primary-emerald: #0d5c3a;
  --primary-dark: #052e16;
  --primary-glow: #10b981;
  --accent-gold: #f59e0b;
  --accent-amber: #d97706;
  --accent-coral: #f97316;
  --bg-dark: #09130d;
  --bg-card: rgba(18, 38, 26, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #fde047;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 10px 30px -10px rgba(16, 185, 129, 0.3);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(13, 92, 58, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Quick Access Persistent Header Bar */
.top-quick-bar {
  background: linear-gradient(90deg, #041f0e 0%, #0d5c3a 50%, #052e16 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;
  font-size: 0.88rem;
}

.quick-bar-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.quick-links a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.quick-links a:hover {
  color: var(--accent-gold);
}

.btn-emergency {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.lang-switch-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.2s;
}

.lang-switch-btn:hover {
  background: var(--primary-glow);
  color: #000;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 19, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  max-width: 86%;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.brand-icon-emblem {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-glow), var(--accent-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  background: linear-gradient(90deg, #ffffff, #a7f3d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  padding: 6px 12px;
  border-radius: 8px;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary-glow);
  background: rgba(16, 185, 129, 0.1);
}

.btn-book-ticket {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-coral));
  color: #fff !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.btn-book-ticket:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.6);
}

/* Hero Banner */
.hero-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 80px 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5, 46, 22, 0.4) 0%, rgba(9, 19, 13, 0.9) 100%),
              url('https://images.unsplash.com/photo-1534188753412-3e26d0d618d6?auto=format&fit=crop&w=1920&q=80') center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(5, 46, 22, 0.85) 0%, rgba(9, 19, 13, 0.95) 80%);
}

.hero-container {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--primary-glow);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-content h2 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-glow), var(--primary-emerald));
  color: #000;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  color: #000;
}

.btn-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Quick Ticket Calculator Widget on Hero */
.hero-ticket-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.ticket-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-card-header h3 {
  font-size: 1.3rem;
  color: var(--accent-gold);
}

.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-counter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.btn-counter:hover {
  background: var(--primary-glow);
  color: #000;
}

/* Stat Counter Strip */
.stats-strip {
  background: rgba(5, 46, 22, 0.7);
  border-y: 1px solid var(--border-glass);
  padding: 30px 20px;
}

.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  font-weight: 800;
  line-height: 1;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section Containers */
.section {
  padding: 70px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-subtitle {
  color: var(--primary-glow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
}

/* Animal Cards Grid */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.animal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.animal-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.2);
}

.animal-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.animal-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.animal-card:hover .animal-img-wrapper img {
  transform: scale(1.08);
}

/* IUCN Status Badge */
.iucn-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.iucn-CR { background: rgba(220, 38, 38, 0.9); color: #fff; }
.iucn-EN { background: rgba(234, 88, 12, 0.9); color: #fff; }
.iucn-VU { background: rgba(217, 119, 6, 0.9); color: #fff; }
.iucn-NT { background: rgba(202, 138, 4, 0.9); color: #000; }
.iucn-LC { background: rgba(22, 163, 74, 0.9); color: #fff; }

.btn-roar-audio {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(13, 92, 58, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  backdrop-filter: blur(8px);
}

.btn-roar-audio:hover {
  transform: scale(1.15);
  background: var(--accent-gold);
  color: #000;
}

.animal-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.animal-names h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.tamil-sub {
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;

}

.sci-name {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.animal-details-list {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.animal-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adopt-link {
  color: var(--primary-glow);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.adopt-link:hover {
  color: #fff;
}

/* Live Stream Section */
.live-stream-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  box-shadow: var(--shadow-card);
}

.stream-player-area {
  position: relative;
  background: #000;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.stream-player-area video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-overlay-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.live-indicator {
  background: rgba(220, 38, 38, 0.85);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.viewers-badge {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stream-cam-selector {
  padding: 20px;
  background: rgba(13, 26, 18, 0.9);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid var(--border-glass);
}

.cam-option {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cam-option:hover, .cam-option.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary-glow);
}

.cam-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

/* Modal Popup & Forms */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #0f2417;
  border: 1px solid var(--primary-glow);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);

}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

/* Certificate Generator Printable Layout */
.certificate-preview-box {
  background: #fff;
  color: #1e293b;
  padding: 40px;
  border-radius: 12px;
  border: 8px double #0d5c3a;
  text-align: center;
  position: relative;
}

.certificate-header h4 {
  font-size: 1.8rem;
  color: #0d5c3a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.certificate-header p {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: #041209;
  border-top: 1px solid var(--border-glass);
  padding: 60px 20px 30px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
}

.footer-links a:hover {
  color: var(--primary-glow);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .live-stream-box {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-content h2 {
    font-size: 2.4rem;
  }
}
