/* ==========================================================
   Unibiotech Formulations - Consolidated Premium Stylesheet
   ========================================================== */

/* ── 1. GLOBAL BASE STYLES & SCROLLBAR ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

::-webkit-scrollbar-thumb {
  background: #5A0E1D;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7A1528;
}

canvas {
  display: block;
}

.magnetic-el {
  will-change: transform;
  backface-visibility: hidden;
}

/* ── Hero Heading Mobile Size Fix ──
   Tailwind's text-6xl (60px) overflows on mobile phones.
   Use fluid vw-based sizes to fit any phone screen perfectly.
   Breakpoints match Tailwind's 'sm' (640px) and below. */
@media (max-width: 480px) {
  #hero-wrapper {
    height: 50vh !important;
    min-height: 50vh !important;
  }
  #headline {
    font-size: 10.5vw !important;
    line-height: 0.88 !important;
    letter-spacing: -0.03em !important;
  }
  /* Ensure other section headings are never bigger than hero heading */
  h2, h3.text-3xl, h3.text-4xl, h3.text-5xl {
    font-size: 9.5vw !important;
    line-height: 1.1 !important;
  }
}

@media (min-width: 481px) and (max-width: 639px) {
  #hero-wrapper {
    height: 50vh !important;
    min-height: 50vh !important;
  }
  #headline {
    font-size: 11.5vw !important;
    line-height: 0.88 !important;
    letter-spacing: -0.03em !important;
  }
  /* Ensure other section headings are never bigger than hero heading */
  h2, h3.text-3xl, h3.text-4xl, h3.text-5xl {
    font-size: 10vw !important;
    line-height: 1.1 !important;
  }
}

.float-el {
  animation: gentleFloat 3s ease-in-out infinite;
}

@keyframes gentleFloat {

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

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

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(107, 29, 47, 0.15) 50%, transparent 100%);
}

/* ── 2. BRANDING & HEADER ── */
.brand-dot {
  animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(107, 29, 47, 0);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(107, 29, 47, 0.12);
  }
}

.link-underline {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #6B1D2F;
  transform-origin: left center;
  will-change: transform;
}

#main-header {
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.will-change-transform {
  will-change: transform, opacity;
}

/* Mobile Hamburger Menu Animations */
#mobile-menu-trigger .line-1 {
  transform: translateY(-6px);
}

#mobile-menu-trigger .line-3 {
  transform: translateY(6px);
}

#mobile-menu-trigger.active .line-1 {
  transform: translateY(0) rotate(45deg);
  background-color: #5A0E1D;
}

#mobile-menu-trigger.active .line-2 {
  opacity: 0;
  transform: translateX(10px);
}

#mobile-menu-trigger.active .line-3 {
  transform: translateY(0) rotate(-45deg);
  background-color: #5A0E1D;
}

/* ── 3. SHARED FOOTER STRUCTURE ── */
.footer-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.06) 20%, rgba(0, 0, 0, 0.06) 80%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.footer-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, #6B1D2F 50%, transparent 100%);
  background-size: 200% 100%;
  animation: dividerShimmer 3.5s ease-in-out infinite;
  opacity: 0.35;
}

@keyframes dividerShimmer {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.footer-watermark {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer-watermark.visible {
  opacity: 1;
  transform: scale(1);
}

.footer-col {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.footer-col.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-bottom {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-bottom.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-contact {
  will-change: transform;
  backface-visibility: hidden;
}

/* ── 4. RESPONSIVE GRID LAYOUTS ── */
@media (max-width: 767px) {
  .mobile-swap {
    display: flex;
    flex-direction: column;
  }

  .mobile-swap> :first-child {
    order: 2;
  }

  .mobile-swap> :last-child {
    order: 1;
  }
}

/* ── 5. THEME SPECIFIC STYLES & INTERACTIVE CARDS ── */

/* =======================================
   A. DARK PAGES (index.php & contact.php)
   ======================================= */
.page-dark {
  background: #000000;
}

/* Pillar Cards (Dark Theme) */
.page-dark .pillar-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  cursor: default;
}

.page-dark .pillar-card:hover {
  border-color: rgba(107, 29, 47, 0.3);
}

/* Zone Cards (Dark Theme) */
.page-dark .zone-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

.page-dark .zone-card:hover {
  border-color: rgba(107, 29, 47, 0.25);
  background: rgba(107, 29, 47, 0.04);
  transform: translateY(-2px);
}

.page-dark .compliance-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.page-dark .compliance-item:last-child {
  border-bottom: none;
}

.page-dark .compliance-item:hover {
  padding-left: 6px;
  border-bottom-color: rgba(107, 29, 47, 0.2);
}

.page-dark .compliance-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6B1D2F;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.page-dark .compliance-item:hover .compliance-dot {
  transform: scale(1.4);
}

.page-dark .pillar-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  will-change: transform;
}

.page-dark .pillar-cta .arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.page-dark .pillar-cta:hover .arrow {
  transform: translateX(4px) translateY(-2px);
}

/* Kinetic Cards (Dark Theme) */
.page-dark .kinetic-card {
  will-change: transform, border-color;
  backface-visibility: hidden;
  transition: border-color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.page-dark .kinetic-card .card-bg {
  will-change: opacity;
}

.page-dark .kinetic-card:hover {
  border-color: rgba(107, 29, 47, 0.35);
}

/* Products Section Blobs & Tabs */
.page-dark .products-blob {
  will-change: transform;
  pointer-events: none;
}

.page-dark .category-tab {
  white-space: nowrap;
}

.page-dark #active-pill {
  will-change: transform, width;
}

.page-dark .product-silhouette {
  will-change: transform;
  backface-visibility: hidden;
}

.page-dark .pedestal-glow {
  will-change: transform, opacity;
}

/* Testimonials Marquee */
.page-dark .marquee-track {
  will-change: transform;
}

.page-dark .testimonial-card {
  will-change: transform, border-color, opacity;
  backface-visibility: hidden;
}

/* Team Cards */
.page-dark .team-card-wrapper {
  perspective: 1200px;
}

.page-dark .team-card {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.page-dark .team-card .glare-layer {
  will-change: background;
}

/* Theme Dark Variables and Products Grid */
#unibiotec-scope.theme-dark {
  --pharma-light: #000000;
  --pharma-white: #0a0a0a;
  --pharma-dark: #ffffff;
  --text-primary: #f8fafc;
  --text-muted: #a1a1aa;
  --card-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  background-color: #000000;
  color: #ffffff;
  --pharma-red: #6b1d2f;
  --pharma-red-hover: #802338;
  --pharma-red-rgb: 107, 29, 47;

  /* Redefined portfolio variables to match brand theme */
  --pharma-red-portfolio: #6b1d2f;
  --pharma-red-hover-portfolio: #802338;
  --pharma-red-rgb-portfolio: 107, 29, 47;
  --pharma-dark-portfolio: #ffffff;
  --pharma-dark-rgb-portfolio: 255, 255, 255;
  --pharma-light-portfolio: #000000;
  --pharma-white-portfolio: #0a0a0a;
  --text-primary-portfolio: #f8fafc;
  --text-muted-portfolio: #a1a1aa;
  --text-light-portfolio: #666666;

  --glass-bg: rgba(10, 10, 10, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(107, 29, 47, 0.15);

  --card-shadow-portfolio: 0 4px 20px 0 rgba(0, 0, 0, 0.5);
  --hover-shadow-portfolio: 0 20px 40px 0 rgba(107, 29, 47, 0.2);
  --glow-shadow: 0 0 25px rgba(107, 29, 47, 0.45);
  --glow-shadow-weak: 0 0 15px rgba(107, 29, 47, 0.25);
}

#unibiotec-scope.theme-dark .product-card {
  background-color: #0a0a0a;
  border-color: #222222;
}

#unibiotec-scope.theme-dark .category-btn {
  background-color: #0a0a0a;
  border-color: #222222;
  color: #a1a1aa;
}

#unibiotec-scope.theme-dark .category-btn.active {
  background-color: var(--pharma-red);
  color: #ffffff;
}

#unibiotec-scope.theme-dark .category-btn:hover {
  border-color: var(--pharma-red);
}

#unibiotec-scope.theme-dark .products-section {
  background-color: #000000;
  padding-top: 0px;
}

/* =======================================
   B. LIGHT PAGES (about.php)
   ======================================= */
.page-light {
  background: #ffffff;
}

/* Pillar Cards (Light Theme) */
.page-light .pillar-card {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  cursor: default;
}

.page-light .pillar-card:hover {
  border-color: rgba(107, 29, 47, 0.25);
}

/* Zone Cards (Light Theme) */
.page-light .zone-card {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

.page-light .zone-card:hover {
  border-color: rgba(107, 29, 47, 0.2);
  background: rgba(107, 29, 47, 0.03);
  transform: translateY(-2px);
}

/* Page Light Section Utilities */
.page-light-section {
  background-color: #fafafa !important;
}

.page-light-section .kinetic-card {
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.015) !important;
  transition: border-color 0.5s cubic-bezier(0.23, 1, 0.32, 1), transform 0.5s ease !important;
}

.page-light-section .kinetic-card:hover {
  border-color: rgba(107, 29, 47, 0.25) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03), 0 0 25px rgba(107, 29, 47, 0.03) !important;
}

/* Theme Light Variables and Scope */
#unibiotec-scope.theme-light {
  --pharma-light: #ffffff;
  --pharma-white: #ffffff;
  --pharma-dark: #111111;
  --text-primary: #111111;
  --text-muted: #666666;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  color: #111111;
  --pharma-red: #6b1d2f;
  --pharma-red-hover: #802338;
  --pharma-red-rgb: 107, 29, 47;
}

#unibiotec-scope.theme-light .product-card {
  background-color: #ffffff;
  border-color: #f1f1f1;
}

#unibiotec-scope.theme-light .category-btn {
  background-color: #ffffff;
  border-color: #eaeaea;
  color: #666666;
}

#unibiotec-scope.theme-light .category-btn.active {
  background-color: var(--pharma-red);
  color: #ffffff;
}

#unibiotec-scope.theme-light .category-btn:hover {
  border-color: var(--pharma-red);
}

#unibiotec-scope.theme-light .products-section {
  background-color: #ffffff;
  padding-top: 0px;
}

/* Interactive Tabs for Mission Vision Goals */
.mvg-tab-btn {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mvg-tab-btn.active {
  background: rgba(107, 29, 47, 0.05);
  border-color: rgba(107, 29, 47, 0.4);
  color: #6B1D2F;
  box-shadow: 0 8px 25px rgba(107, 29, 47, 0.05);
}

.mvg-tab-btn.active .mvg-tab-dot {
  background: #6B1D2F;
  box-shadow: 0 0 10px rgba(107, 29, 47, 0.3);
  transform: scale(1.3);
}

.mvg-tab-pane {
  display: none !important;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mvg-tab-pane.active {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

/* Bento Grid Cards for Values */
.bento-card {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(107, 29, 47, 0.3) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 0 25px rgba(107, 29, 47, 0.03);
}

.bento-card:hover .bento-icon {
  color: #ffffff;
  background: #6B1D2F;
  box-shadow: 0 8px 16px rgba(107, 29, 47, 0.18);
  border-color: #6B1D2F;
}

/* Approach Cards */
.approach-card {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.approach-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 29, 47, 0.3) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.approach-card:hover .approach-num {
  color: #6B1D2F;
}

.stat-counter {
  font-variant-numeric: tabular-nums;
}

.about-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.gradient-text {
  background: linear-gradient(135deg, #111111 0%, #555555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.red-gradient-text {
  background: linear-gradient(135deg, #6B1D2F 0%, #a83254 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 29, 47, 0.15), transparent);
  opacity: 0.8;
}

.value-card {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: rgba(107, 29, 47, 0.3) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.04), 0 0 30px rgba(107, 29, 47, 0.03);
}

.value-card:hover .value-icon {
  background: #6B1D2F;
  box-shadow: 0 8px 20px rgba(107, 29, 47, 0.25);
}

.timeline-item {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(even) {
  transform: translateX(30px);
}

.timeline-item:nth-child(even).visible {
  transform: translateX(0);
}

.cert-badge {
  transition: all 0.4s ease;
  cursor: default;
}

.cert-badge:hover {
  border-color: rgba(107, 29, 47, 0.3) !important;
  background: rgba(107, 29, 47, 0.03) !important;
  transform: translateY(-3px);
}

.strength-card {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

.strength-card:hover {
  transform: translateY(-6px);
  border-color: rgba(107, 29, 47, 0.3) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04), 0 0 15px rgba(107, 29, 47, 0.03);
}

.strength-card:hover .strength-num {
  color: #6B1D2F;
}

.quote-card {
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 24px;
  font-size: 220px;
  font-weight: 900;
  color: rgba(107, 29, 47, 0.04);
  line-height: 1;
  pointer-events: none;
  font-family: Georgia, serif;
}

.floating-orb {
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatOrb {

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

  50% {
    transform: translateY(-25px) scale(1.05);
  }
}

.floating-orb-2 {
  animation: floatOrb2 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatOrb2 {

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

  50% {
    transform: translateY(20px) scale(0.96);
  }
}

.line-appear {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.line-appear.visible {
  clip-path: inset(0 0% 0 0);
}

.text-shimmer {
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.4) 0%, rgba(17, 17, 17, 0.9) 50%, rgba(17, 17, 17, 0.4) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s linear infinite;
}

@keyframes shimmerText {
  to {
    background-position: 200% center;
  }
}

.portrait-ring {
  box-shadow: 0 0 0 1px rgba(107, 29, 47, 0.1), 0 0 40px rgba(107, 29, 47, 0.06), 0 0 80px rgba(107, 29, 47, 0.03);
}

.stat-block {
  transition: all 0.4s ease;
  cursor: default;
}

.stat-block:hover {
  transform: translateY(-4px);
}

.stat-block:hover .stat-counter {
  color: #6B1D2F;
}

/* Horizontal timeline for desktop */
.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #6B1D2F40, #6B1D2F, #6B1D2F40, transparent);
}

@media(max-width: 767px) {
  .timeline-track {
    grid-template-columns: 1fr;
  }

  .timeline-track::before {
    display: none;
  }
}

/* ── 6. UNIBIOTECH PORTFOLIO SECTION (SHARED) ── */
#unibiotec-scope {
  --pharma-red-portfolio: #9c0900;
  --pharma-red-hover-portfolio: #bc0d02;
  --pharma-red-rgb-portfolio: 156, 9, 0;
  --pharma-dark-portfolio: #0f1319;
  --pharma-dark-rgb-portfolio: 15, 19, 25;
  --pharma-light-portfolio: #f8fafc;
  --pharma-white-portfolio: #ffffff;
  --text-primary-portfolio: #121824;
  --text-muted-portfolio: #5e6b7e;
  --text-light-portfolio: #94a3b8;

  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(var(--pharma-red-rgb-portfolio), 0.05);

  --card-shadow-portfolio: 0 4px 20px 0 rgba(15, 19, 25, 0.04);
  --hover-shadow-portfolio: 0 20px 40px 0 rgba(var(--pharma-red-rgb-portfolio), 0.08);
  --glow-shadow: 0 0 25px rgba(var(--pharma-red-rgb-portfolio), 0.35);
  --glow-shadow-weak: 0 0 15px rgba(var(--pharma-red-rgb-portfolio), 0.15);

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-out;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-width: 1240px;
}

#unibiotec-scope .products-section {
  padding: 120px 0;
  background-color: var(--pharma-light-portfolio);
  position: relative;
  z-index: 2;
}

#unibiotec-scope .category-tabs-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

#unibiotec-scope .category-btn {
  background-color: var(--pharma-white-portfolio);
  border: 1px solid rgba(15, 19, 25, 0.06);
  color: var(--text-muted-portfolio);
  padding: 10px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

#unibiotec-scope .category-btn:hover {
  background-color: rgba(var(--pharma-red-rgb-portfolio), 0.05);
  color: var(--pharma-red-portfolio);
  border-color: rgba(var(--pharma-red-rgb-portfolio), 0.2);
}

#unibiotec-scope .category-btn.active {
  background-color: var(--pharma-red-portfolio);
  color: var(--pharma-white-portfolio);
  border-color: var(--pharma-red-portfolio);
  box-shadow: 0 4px 15px rgba(var(--pharma-red-rgb-portfolio), 0.25);
}

#unibiotec-scope .products-grid-wrapper {
  overflow: hidden;
  padding: 10px 0 40px;
}

#unibiotec-scope .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  transition: var(--transition-smooth);
}

#unibiotec-scope .product-card {
  position: relative;
  background-color: var(--pharma-white-portfolio);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(15, 19, 25, 0.06);
  box-shadow: var(--card-shadow-portfolio);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  overflow: hidden;
  height: 100%;
}

#unibiotec-scope .product-card.hidden {
  display: none;
}

#unibiotec-scope .product-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(var(--pharma-red-rgb-portfolio), 0.04) 0%, transparent 70%);
  top: -50px;
  right: -50px;
  z-index: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

#unibiotec-scope .product-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pharma-red-portfolio);
  background-color: rgba(var(--pharma-red-rgb-portfolio), 0.06);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  z-index: 1;
}

#unibiotec-scope .product-icon {
  font-size: 2.2rem;
  color: var(--pharma-red-portfolio);
  margin-bottom: 24px;
  width: 60px;
  height: 60px;
  background-color: rgba(var(--pharma-red-rgb-portfolio), 0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 1;
}

#unibiotec-scope .product-name {
  font-size: 1.3rem;
  color: var(--pharma-dark-portfolio);
  margin-bottom: 6px;
  z-index: 1;
}

#unibiotec-scope .product-formula {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pharma-red-portfolio);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  z-index: 1;
}

#unibiotec-scope .product-desc {
  font-size: 0.88rem;
  color: var(--text-muted-portfolio);
  margin-bottom: 24px;
  flex-grow: 1;
  z-index: 1;
}

#unibiotec-scope .product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(15, 19, 25, 0.06);
  padding-top: 20px;
  z-index: 1;
}

#unibiotec-scope .packaging {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light-portfolio);
  display: flex;
  align-items: center;
  gap: 6px;
}

#unibiotec-scope .product-inquire-btn {
  background: none;
  border: 1px solid rgba(var(--pharma-red-rgb-portfolio), 0.2);
  color: var(--pharma-red-portfolio);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

#unibiotec-scope .product-inquire-btn:hover {
  background-color: var(--pharma-red-portfolio);
  border-color: var(--pharma-red-portfolio);
  color: var(--pharma-white-portfolio);
}

#unibiotec-scope .product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--pharma-red-rgb-portfolio), 0.2);
  box-shadow: var(--hover-shadow-portfolio);
}

#unibiotec-scope .product-card:hover .product-glow {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(var(--pharma-red-rgb-portfolio), 0.08) 0%, transparent 70%);
}

#unibiotec-scope .product-card:hover .product-icon {
  background-color: var(--pharma-red-portfolio);
  color: var(--pharma-white-portfolio);
  box-shadow: var(--glow-shadow-weak);
}

@media (max-width: 1024px) {
  #unibiotec-scope {
    --container-width: 960px;
  }

  #unibiotec-scope .hero-section {
    flex-direction: column;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: 60px;
  }

  #unibiotec-scope #canvas-container {
    position: relative;
    width: 100%;
    height: 400px;
    order: -1;
    margin-bottom: 40px;
  }

  #unibiotec-scope .hero-content {
    max-width: 100%;
    text-align: center;
  }

  #unibiotec-scope .tagline-badge {
    justify-content: center;
  }

  #unibiotec-scope .hero-ctas {
    justify-content: center;
  }

  #unibiotec-scope .why-us-grid,
  #unibiotec-scope .certifications-grid,
  #unibiotec-scope .footer-grid {
    grid-template-columns: 1fr;
  }

  #unibiotec-scope .form-row-2 {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #unibiotec-scope .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

#unibiotec-scope .section-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pharma-red-portfolio);
  background-color: rgba(var(--pharma-red-rgb-portfolio), 0.08);
  border: 1px solid rgba(var(--var-name-dummy, var(--pharma-red-rgb-portfolio)), 0.15);
  border-radius: 50px;
  margin-bottom: 16px;
}

#unibiotec-scope .section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--pharma-dark-portfolio);
  margin-bottom: 16px;
}

#unibiotec-scope .section-desc {
  color: var(--text-muted-portfolio);
  font-size: 1.1rem;
  margin-bottom: 48px;
  line-height: 1.7;
}

#unibiotec-scope .text-center {
  text-align: center;
}

#unibiotec-scope .max-w-600 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#unibiotec-scope .container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

#unibiotec-scope {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary-portfolio);
  line-height: 1.6;
}

#unibiotec-scope h2,
#unibiotec-scope h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ==========================================================
   6. PRODUCTS CATALOG DYNAMIC STYLES (products.php)
   ========================================================== */
.no-scrollbar::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Tactile Pill Filter Buttons */
.pill-tab {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-tab.active {
  background-color: #6B1D2F !important;
  color: #ffffff !important;
  border-color: #6B1D2F !important;
  box-shadow: 0 10px 25px rgba(107, 29, 47, 0.15);
}

/* Modal Overlay Animation Settings */
#product-detail-modal {
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  will-change: opacity, visibility;
}

#product-detail-modal .modal-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

#product-detail-modal.hidden-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#product-detail-modal.hidden-modal .modal-card {
  transform: scale(0.9) translateY(20px);
}

#product-detail-modal.active-modal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#product-detail-modal.active-modal .modal-card {
  transform: scale(1) translateY(0);
}

/* Product Card Layout Styles */
.product-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 29, 47, 0.18) !important;
  box-shadow: 0 20px 40px rgba(107, 29, 47, 0.03), 0 0 25px rgba(107, 29, 47, 0.01) !important;
}

/* Home Product Card Layout Styles */
.home-product-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
}

.home-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(107, 29, 47, 0.15) !important;
}

/* Interactive Input Highlight */
.search-input-wrap input:focus {
  border-color: #6B1D2F !important;
  box-shadow: 0 0 0 3px rgba(107, 29, 47, 0.06);
}

/* ==========================================================
   7. STICKY GLOBAL HEADER & GLASSMORPHISM
   ========================================================== */
#global-header {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#global-header.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Light page scroll states (Light background, dark text) */
.page-light #global-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.page-light #global-header.scrolled a,
.page-light #global-header.scrolled span,
.page-light #global-header.scrolled button,
.page-light #global-header.scrolled #menu-icon {
  color: rgba(0, 0, 0, 0.5) !important;
}

.page-light #global-header.scrolled a:hover,
.page-light #global-header.scrolled button:hover,
.page-light #global-header.scrolled a.font-semibold {
  color: rgba(0, 0, 0, 0.95) !important;
}

.page-light #global-header.scrolled .brand-dot {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

.page-light #global-header.scrolled .brand-dot span {
  background-color: #ffffff !important;
}

/* Dark page scroll states (Dark background, light text) */
.page-dark #global-header.scrolled {
  background-color: rgba(10, 10, 10, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

.page-dark #global-header.scrolled a,
.page-dark #global-header.scrolled span,
.page-dark #global-header.scrolled button,
.page-dark #global-header.scrolled #menu-icon {
  color: rgba(255, 255, 255, 0.4) !important;
}

.page-dark #global-header.scrolled a:hover,
.page-dark #global-header.scrolled button:hover,
.page-dark #global-header.scrolled a.font-semibold {
  color: rgba(255, 255, 255, 0.95) !important;
}

.page-dark #global-header.scrolled .brand-dot {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

.page-dark #global-header.scrolled .brand-dot span {
  background-color: #000000 !important;
}

/* ==========================================================
   8. SCROLL TO TOP FLOATING BUTTON
   ========================================================== */
#scroll-to-top {
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

#scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#scroll-to-top.visible:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 24px rgba(107, 29, 47, 0.25), 0 0 15px rgba(107, 29, 47, 0.15);
  border-color: #6B1D2F !important;
  color: #6B1D2F !important;
}

.page-dark #scroll-to-top {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.page-dark #scroll-to-top:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #6B1D2F;
}

.page-light #scroll-to-top {
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.6);
}

.page-light #scroll-to-top:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.9) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ── 9. GLOBAL MOBILE RESPONSIVENESS & PERFORMANCE ── */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
  }

  /* Prevent absolute blobs from causing overflow or lagging mobile */
  .products-blob, .floating-orb, .floating-orb-2 {
    max-width: 100vw;
    overflow: hidden;
    filter: blur(80px) !important; /* Reduce blur intensity for performance */
    transform: translateZ(0); /* Hardware acceleration */
  }



  /* Simplify floats on mobile */
  .float-el {
    animation-duration: 6s; /* Slower = less CPU */
  }

  /* ── GLOBAL MOBILE & TABLET GSAP OVERRIDE ──
     Forces all scroll-revealed components to bypass GSAP inline 
     styles (opacity: 0, transforms) on mobile/tablet. Prevents blank sections. */
  [class*="reveal"], 
  .pillar-card, 
  .zone-card, 
  .compliance-item,
  .kinetic-card, 
  .home-product-card, 
  #headline, 
  .team-card, 
  .team-card-wrapper,
  .testimonial-card,
  .achievement-card,
  .process-card, 
  .value-card, 
  .stat-card,
  .stat-counter,
  .bento-card,
  .strength-card,
  .approach-card,
  .cert-card,
  .opportunity-card,
  .job-card,
  .quote-card,
  .timeline-step,
  .timeline-card,
  .journey-mob-card,
  .reveal-achieve-header,
  .reveal-test-header,
  .reveal-team-header,
  #core-capabilities,
  #team-grid,
  .footer-watermark, 
  .footer-col, 
  .footer-col.visible,
  .footer-bottom,
  .footer-bottom.visible,
  .footer-content {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    animation: none !important;
    transition: none !important;
  }

  /* Freeze decorative blobs to save mobile battery/CPU */
  #footer-blob-1, 
  #footer-blob-2,
  #core-blob-1,
  #core-blob-2,
  .products-blob, 
  .floating-orb {
    transform: none !important;
    animation: none !important;
  }
}

/* ── Journey Animated Wave Line ── */
@keyframes journey-wave-march {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -56; }
}

.journey-wave-path {
  stroke-dasharray: 8 6;
  animation: journey-wave-march 1.8s linear infinite;
  will-change: stroke-dashoffset;
}