/* Custom Animation & Styling for Yugen Pharmaceuticals PHP Application (Axiom Themes Lab Edition) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

:root {
  --brand-red: #dc2626;
  --brand-red-hover: #b91c1c;
  --brand-blue: #0984E3;
  --brand-blue-hover: #0876CC;
  --brand-dark: #090116;
  --brand-bg: #F7F6F9;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #F7F6F9;
  color: #090116;
  background-image: linear-gradient(to bottom, rgba(247, 246, 249, 0.92), rgba(247, 246, 249, 0.98)), url('../hero-bg.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

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

/* Unified Section Subheading / Eyebrow Badge (Matching Reference Image media_1790163895786.png) */
.subheading-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #dc2626;
  background-color: rgba(254, 242, 242, 0.6);
  border: 1px solid #fca5a5;
  padding: 6px 18px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.05);
  transition: all 0.3s ease;
}

/* Axiom Lab Running Marquee Ticker */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.marquee-content {
  display: inline-flex;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

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

/* Axiom Lab Card Styling */
.axiom-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #DEDDE0;
  box-shadow: 0 10px 30px rgba(9, 1, 22, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.axiom-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(9, 1, 22, 0.1);
  border-color: #0984E3;
}

.axiom-pill-btn {
  background: #0984E3;
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.axiom-pill-btn:hover {
  background: #0876CC;
  box-shadow: 0 10px 25px rgba(9, 132, 227, 0.35);
  transform: scale(1.03);
}

/* Glassmorphism Badge */
.glass-badge {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.1), 0 0 20px rgba(220, 38, 38, 0.12);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-badge:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 40px -5px rgba(220, 38, 38, 0.22);
}

/* Main Card with High-Tech Lab Background Integration */
.main-card-bg {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.88) 100%), url('../hero-bg.jpg');
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 3D Product & Asset Levitation Animations */
.float-anim {
  animation: floatProduct 5s ease-in-out infinite;
}

.float-3d-slow {
  animation: float3dSlow 7s ease-in-out infinite;
}

.float-3d-reverse {
  animation: float3dReverse 6s ease-in-out infinite;
}

/* 3D Product Rotating Animation */
.rotate-product-container {
  perspective: 1200px;
}

.rotate-product-3d {
  animation: rotateProduct3D 14s linear infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 25px 35px rgba(220, 38, 38, 0.3)) drop-shadow(0 15px 15px rgba(15, 23, 42, 0.2));
  transition: transform 0.5s ease;
}

.rotate-product-3d:hover {
  animation-play-state: paused;
}

/* Envato Commercial Futuristic Holographic HUD & Scattered Capsules */
.envato-hud-badge {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(220, 38, 38, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(220, 38, 38, 0.2);
  animation: hudPulse 3.5s ease-in-out infinite alternate;
}

.float-capsule-orbit-1 {
  animation: floatOrbit1 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 10px 15px rgba(220, 38, 38, 0.3));
}

.float-capsule-orbit-2 {
  animation: floatOrbit2 7s ease-in-out infinite alternate;
  filter: drop-shadow(0 10px 15px rgba(15, 23, 42, 0.3));
}

.tech-data-line {
  font-family: monospace;
  letter-spacing: 0.15em;
  opacity: 0.75;
  animation: dataGlitch 4s step-end infinite;
}

@keyframes hudPulse {
  0% { transform: translateY(0px) scale(1); border-color: rgba(220, 38, 38, 0.4); }
  50% { transform: translateY(-6px) scale(1.03); border-color: rgba(220, 38, 38, 0.8); }
  100% { transform: translateY(0px) scale(1); border-color: rgba(220, 38, 38, 0.4); }
}

@keyframes floatOrbit1 {
  0% { transform: translateY(0px) rotate(0deg) scale(0.9); }
  50% { transform: translateY(-20px) rotate(12deg) scale(1.05); }
  100% { transform: translateY(5px) rotate(-6deg) scale(0.95); }
}

@keyframes floatOrbit2 {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(18px) rotate(-15deg) scale(0.85); }
  100% { transform: translateY(-10px) rotate(8deg) scale(1.05); }
}

@keyframes dataGlitch {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.95; }
}

/* Catalog Product Card Images */
.rotate-card-img {
  animation: none;
  filter: none;
  transform: none;
}

.group:hover .rotate-card-img {
  animation-play-state: paused;
  transform: scale(1.04);
  filter: none;
}

@keyframes cardRotate3D {
  0% {
    transform: perspective(800px) rotateY(-12deg) rotateX(6deg) translateY(0px);
  }
  50% {
    transform: perspective(800px) rotateY(12deg) rotateX(-6deg) translateY(-10px);
  }
  100% {
    transform: perspective(800px) rotateY(-12deg) rotateX(6deg) translateY(0px);
  }
}

@keyframes rotateProduct3D {
  0% {
    transform: rotateY(0deg) translateY(0px) rotateZ(0deg);
  }
  25% {
    transform: rotateY(90deg) translateY(-10px) rotateZ(1.5deg);
  }
  50% {
    transform: rotateY(180deg) translateY(0px) rotateZ(0deg);
  }
  75% {
    transform: rotateY(270deg) translateY(-10px) rotateZ(-1.5deg);
  }
  100% {
    transform: rotateY(360deg) translateY(0px) rotateZ(0deg);
  }
}

@keyframes floatProduct {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.18));
  }
  50% {
    transform: translateY(-14px) rotate(1.5deg) scale(1.02);
    filter: drop-shadow(0 35px 35px rgba(220, 38, 38, 0.28));
  }
}

@keyframes float3dSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-18px) rotate(8deg) scale(1.05);
  }
}

@keyframes float3dReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(16px) rotate(-6deg) scale(0.98);
  }
}

/* Smooth Product Transition */
.product-fade-enter {
  animation: productFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes productFadeIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Scroll Reveal Classes */
.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);
}

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

/* Shimmer Button Effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  animation: shimmer 6s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  20%, 100% { transform: translateX(100%) rotate(30deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #dc2626;
}

/* Connected Liquid Dual Button Component (Matching Reference Image media_1790156560000.png) */
.liquid-btn-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  filter: drop-shadow(0 6px 16px rgba(9, 1, 22, 0.12));
}

.liquid-btn-wrapper a {
  font-family: 'Poppins', sans-serif !important;
}

.liquid-btn-svg {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-btn-wrapper:hover .liquid-btn-svg {
  filter: drop-shadow(0 8px 20px rgba(9, 1, 22, 0.2));
}

/* Unified Button Typography & Color Standard */
button,
.btn,
a[class*="btn"],
input[type="submit"] {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.875rem !important; /* text-sm standard */
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-red,
.btn-primary-red {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}

.btn-red:hover,
.btn-primary-red:hover {
  background-color: #b91c1c !important;
  color: #ffffff !important;
}

/* Left Feature Card Pointer Arrow (Matching Reference Image media_1790185561115.png) */
.feature-dark-card {
  position: relative;
}

@media (min-width: 1024px) {
  .feature-dark-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 14px solid #0f172a; /* Slate 900 */
    z-index: 25;
  }
}

/* Horizontal Carousel Scrollbar Hider */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}



