/* ==========================================================================
   JANY PHARMA - LUXURY PHARMACEUTICAL CORPORATE DESIGN SYSTEM
   Theme: Light Glassmorphism, Pharmaceutical Teal, Medical Blue, Deep Slate
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Core Color Palette */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-hover: rgba(255, 255, 255, 0.95);

  --primary-teal: #0488D7;
  --primary-teal-dark: #036cae;
  --primary-teal-light: #e0f2fe;
  --primary-teal-glow: rgba(4, 136, 215, 0.18);

  --accent-blue: #0284c7;
  --accent-blue-light: #e0f2fe;
  --accent-emerald: #059669;
  --accent-emerald-light: #d1fae5;

  --navy-deep: #0f172a;
  --navy-dark: #070d19;
  --navy-light: #1e293b;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;

  --border-light: rgba(226, 232, 240, 0.8);
  --border-glass: rgba(255, 255, 255, 0.85);
  --border-active: rgba(4, 136, 215, 0.4);

  /* Shadows & Elevation */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -5px rgba(15, 23, 42, 0.03);
  --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px rgba(4, 136, 215, 0.25);

  /* Border Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Glass Effects */
  --backdrop-blur: blur(16px);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background molecular pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(4, 136, 215, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(5, 150, 105, 0.02) 0%, transparent 50%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   CUSTOM CURSOR (DESKTOP ONLY)
   ========================================================================== */

.custom-cursor-dot,
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-teal);
}

.custom-cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(4, 136, 215, 0.5);
  background-color: rgba(4, 136, 215, 0.04);
}

body.cursor-hover .custom-cursor-ring {
  transform: translate(-50%, -50%) scale(1.6);
  border-color: var(--primary-teal);
  background-color: rgba(4, 136, 215, 0.12);
}

body.cursor-hover .custom-cursor-dot {
  transform: translate(-50%, -50%) scale(0.5);
}

@media (pointer: coarse),
(max-width: 992px) {

  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

/* ==========================================================================
   TYPOGRAPHY & HEADINGS
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--navy-deep);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--primary-teal) 60%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(4, 136, 215, 0.08);
  border: 1px solid rgba(4, 136, 215, 0.2);
  border-radius: var(--radius-full);
  color: var(--primary-teal-dark);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-teal);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin-top: 0.75rem;
}

/* ==========================================================================
   LAYOUT CONTAINERS & GRID SYSTEM
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-lg {
  padding: 7rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-lg {
    padding: 4.5rem 0;
  }
}

/* ==========================================================================
   GLASSMORPHISM CARDS & BUTTONS
   ========================================================================== */

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-teal), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(4, 136, 215, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 136, 215, 0.45);
  color: var(--text-white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid var(--border-light);
  color: var(--navy-deep);
  backdrop-filter: var(--backdrop-blur);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--text-white);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: var(--text-white);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   HEADER & STICKY GLASS NAVBAR
   ========================================================================== */

.header {
  position: fixed;
  top: 1.25rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.75rem;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.6);
  transition: var(--transition-smooth);
}

.header.scrolled {
  top: 0.65rem;
}

.header.scrolled .navbar {
  padding: 0.45rem 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 35px -8px rgba(15, 23, 42, 0.12);
  border-color: rgba(226, 232, 240, 0.9);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  height: 42px;
  width: auto;
  max-height: 42px;
  object-fit: contain;
  transition: var(--transition-fast);
}

.header.scrolled .brand-logo img {
  height: 34px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-deep);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-teal);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-teal);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--navy-deep);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 88%;
  max-width: 380px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.2);
  z-index: 2001;
  padding: 1.75rem 1.75rem 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.mobile-drawer-close:hover {
  background: var(--navy-deep);
  color: var(--text-white);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link.active {
  color: var(--primary-teal);
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

@media (max-width: 1240px) {
  .nav-menu {
    gap: 0.85rem;
  }
  .nav-link {
    font-size: 0.85rem;
  }
  .brand-logo img {
    height: 36px;
    max-height: 36px;
  }
  .navbar {
    padding: 0.55rem 1.25rem;
  }
  .header .nav-cta .btn {
    padding: 0.5rem 1.15rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 992px) {
  .header {
    top: 0.75rem;
  }

  .navbar {
    padding: 0.55rem 1.25rem;
  }

  .nav-menu,
  .header .nav-cta .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(4, 136, 215, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(2, 132, 199, 0.06) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.hero-visual {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-glass);
}

.hero-img-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-img-wrapper:hover img {
  transform: scale(1.03);
}

.hero-glass-floating {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-glass);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 280px;
  animation: floatAnim 6s ease-in-out infinite;
}

.hero-badge-floating {
  position: absolute;
  top: 20px;
  right: -15px;
  background: var(--navy-deep);
  color: var(--text-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: floatAnim 7s ease-in-out infinite reverse;
}

@keyframes floatAnim {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 8rem;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust-bar {
    justify-content: center;
  }

  .hero-glass-floating,
  .hero-badge-floating {
    display: none;
  }
}

/* ==========================================================================
   PRODUCT CATALOG & MODAL
   ========================================================================== */

.catalog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: center;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 540px;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 4px var(--primary-teal-glow);
  background: var(--bg-surface);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tab {
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-deep);
  border-color: var(--primary-teal);
}

.filter-tab.active {
  background: var(--navy-deep);
  color: var(--text-white);
  border-color: var(--navy-deep);
  box-shadow: var(--shadow-md);
}

/* Product Cards Grid */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-img-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.06);
}

.product-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-teal-dark);
  border: 1px solid var(--border-light);
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--navy-deep);
}

.product-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border-light);
}

.product-spec-row:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}

.product-spec-label {
  font-weight: 600;
  color: var(--text-light);
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.product-actions .btn {
  flex: 1;
}

.no-products-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  grid-column: 1 / -1;
  display: none;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2.5rem;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--navy-deep);
  color: var(--text-white);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
}

.modal-img-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.modal-specs-table th,
.modal-specs-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.modal-specs-table th {
  color: var(--text-light);
  font-weight: 600;
  width: 38%;
}

.modal-specs-table td {
  color: var(--navy-deep);
  font-weight: 600;
}

@media (max-width: 768px) {
  .modal-body-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   ABOUT US, LEADERSHIP & MILESTONES
   ========================================================================== */

.leadership-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.leadership-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-blue) 100%);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(4, 136, 215, 0.25);
  border: 3px solid #ffffff;
}

.leadership-role {
  color: var(--primary-teal);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.leadership-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
}

.lead-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0 auto;
  padding-left: 2rem;
  border-left: 2px solid rgba(4, 136, 215, 0.2);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 4px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-teal);
  border: 3px solid var(--bg-body);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-teal);
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   SERVICES & CERTIFICATIONS
   ========================================================================== */

.cert-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
}

.cert-badge-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.15);
}

.cert-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-top: 1rem;
}

/* Accordion */
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-fast);
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-deep);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 1.5rem 1.25rem 1.5rem;
  display: none;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.accordion-item.active .accordion-body {
  display: block;
}

/* ==========================================================================
   CONTACT PAGE & FORMS
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-teal-light);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--navy-deep);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 4px var(--primary-teal-glow);
  background: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  z-index: 990;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.12);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   DARK SECTION (FOR HIGHLIGHT CTAS / FOOTER)
   ========================================================================== */

.bg-dark-section {
  background: var(--navy-deep);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.bg-dark-section h1,
.bg-dark-section h2,
.bg-dark-section h3 {
  color: var(--text-white);
}

.bg-dark-section .section-subtitle {
  color: #94a3b8;
}

/* Counter Stat Cards */
.stat-box {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-teal-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer h4,
.footer-grid h4,
.footer-col h4 {
  color: #ffffff !important;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-teal-light);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-up {
  transform: scale(0.92);
}

.scale-up.is-visible {
  transform: scale(1);
}

/* Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}