/* ============================================
   JivaSiddhi Biopharma - Shared Stylesheet
   ============================================ */

/* ---------- Base & Reset ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
}

h1, h2, h3, h4, .heading-font {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.5);
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-outline {
  border: 1.5px solid #0d9488;
  color: #0d9488;
  transition: all 0.3s ease;
  background: transparent;
  display: inline-block;
  text-align: center;
}

.btn-outline:hover {
  background: #0d9488;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.6);
  color: white;
  transition: all 0.3s ease;
  background: transparent;
  display: inline-block;
  text-align: center;
}

.btn-outline-light:hover {
  background: white;
  color: #0f766e;
  transform: translateY(-2px);
}

/* ---------- Cards ---------- */
.card-gradient {
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.card-gradient:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 40px -12px rgba(13, 148, 136, 0.25);
  border-color: #99f6e4;
}

/* ---------- logo ---------- */

.logo 
{
    width: auto;
  height: 80px;
    }

/* ---------- Tabs ---------- */
.dept-tab.active {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: white;
  box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.4);
}

.dept-tab.active .tab-icon {
  color: white;
}

/* ---------- Filters ---------- */
.filter-btn.active {
  background: #0d9488;
  color: white;
  border-color: #0d9488;
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.3);
}

/* ---------- Stats ---------- */
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0f766e, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Modal ---------- */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 960px;
  width: 100%;
  background: #0f172a;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8);
  border: 1px solid #1e293b;
}

.modal-content iframe, .modal-content video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

.close-modal {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  color: white;
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 10;
  transition: 0.2s;
  background: rgba(0,0,0,0.5);
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: #0d9488;
  transform: rotate(90deg);
}

/* ---------- Fade In Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0f766e;
}

/* ---------- Hamburger ---------- */
.hamburger-line {
  transition: 0.3s;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Page Banner ---------- */
.page-banner {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
  padding-top: 100px;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/4033324/pexels-photo-4033324.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover;
  opacity: 0.18;
  mix-blend-mode: overlay;
}

.banner-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 3rem 0;
}

.banner-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.breadcrumb a {
  color: #5eead4;
  text-decoration: none;
  transition: 0.2s;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb .current {
  color: rgba(255,255,255,0.6);
}

/* ---------- Testimonial Slider ---------- */
.testimonial-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
  display: none;
}

.testimonial-card.active {
  display: block;
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background: #25d366;
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 3rem;
  height: 3rem;
  background: #0f766e;
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.3);
  z-index: 999;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #0d9488;
  transform: translateY(-4px);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: #f8fafc;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid #e2e8f0;
  border-top-color: #0d9488;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   FOOTER LOGO WRAPPER
   ============================================ */

.footer-logo-wrap {
  background: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  max-width: 240px;
}

.footer-logo-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.35);
}

.footer-logo {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .footer-logo-wrap {
    max-width: 200px;
    padding: 0.6rem 1rem;
  }
  .footer-logo {
    height: 48px;
  }
}