/**
 * Pharma One — High-Graphics 3D & Next-Gen Movement System (2026 Bespoke Edition)
 * Provides 3D perspective transforms, dynamic specular lighting, magnetic micro-physics,
 * volumetric glass depth, and high-budget enterprise pharmaceutical aesthetics.
 */
:root {
    --po-navy: #041d37;
    --po-navy-2: #072a4f;
    --po-navy-soft: #0b3a68;
    --po-blue: #095999;
    --po-blue-bright: #1276dc;
    --po-blue-soft: #edf6ff;
    --po-cyan: #00d2ff;
    --po-cyan-glow: rgba(0, 210, 255, 0.40);
    --po-orange: #f47b20;
    --po-orange-dark: #d85f09;
    --po-orange-glow: rgba(244, 123, 32, 0.45);
    --po-gold: #f2af38;
    --po-gold-glow: rgba(242, 175, 56, 0.35);
    --po-ink: #0b1d30;
    --po-text: #455a70;
    --po-muted: #64788c;
    --po-line: rgba(9, 89, 153, 0.14);
    --po-line-strong: rgba(9, 89, 153, 0.28);
    --po-soft: #f3f7fb;
    --po-white: #ffffff;
    --po-glass-bg: rgba(255, 255, 255, 0.88);
    --po-glass-border: rgba(255, 255, 255, 0.95);
    --po-radius-sm: 12px;
    --po-radius-md: 18px;
    --po-radius-lg: 26px;
    --po-radius-xl: 36px;
    --po-shadow-sm: 0 10px 28px rgba(4, 29, 55, 0.06);
    --po-shadow: 0 24px 64px rgba(4, 29, 55, 0.10);
    --po-shadow-3d: 0 32px 80px -16px rgba(4, 29, 55, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    --po-glow-shadow: 0 20px 50px rgba(244, 123, 32, 0.30);
    --po-section-y: clamp(76px, 8vw, 112px);
    --po-content-max: 44rem;
    --base-color: var(--po-orange);
    --dark-gray: var(--po-navy);
}

html {
    scroll-behavior: smooth;
}

/* ------------------------------------------------================--
   Custom Ultra-Luxe Scrollbar
   ------------------------------------------------------------------ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #eaf1f8;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--po-blue-bright) 0%, var(--po-navy) 100%);
    border-radius: 999px;
    border: 2px solid #eaf1f8;
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.4);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--po-orange) 0%, var(--po-orange-dark) 100%);
}

body {
    color: var(--po-text);
    font-size: clamp(16px, 1.05vw, 17px);
    line-height: 1.68;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    background-color: #f6f9fc;
    position: relative;
}

body.po-site {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    overflow-x: clip;
}

/* Interactive Cursor Ambient Light Beam */
.po-cursor-light-beam {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.85;
    background: radial-gradient(650px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(18, 118, 220, 0.08), rgba(244, 123, 32, 0.035), transparent 70%);
    transition: opacity 0.4s ease;
}

/* ------------------------------------------------================--
   3D Typography, Headlines & High-Graphics Badges
   ------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--po-ink);
    letter-spacing: -0.028em;
    line-height: 1.16;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    font-weight: 850;
}

h1, .h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); text-shadow: 0 4px 20px rgba(4, 29, 55, 0.08); }
h2, .h2 { font-size: clamp(1.7rem, 3.5vw, 2.55rem); }
h3, .h3 { font-size: clamp(1.32rem, 2.6vw, 1.8rem); }

/* Metallic & Holographic Text Effects */
.po-gradient-text-3d {
    background: linear-gradient(135deg, var(--po-navy) 0%, var(--po-blue-bright) 50%, var(--po-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(18, 118, 220, 0.18));
}

.po-metallic-gold {
    background: linear-gradient(135deg, #d88b13 0%, #f4c242 50%, #b87508 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.po-cyan-shimmer {
    background: linear-gradient(135deg, #00b4d8 0%, var(--po-cyan) 50%, #0077b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* High-Graphics Eyebrows & Badges with 3D Aura */
.po-badge,
.po-eyebrow,
.po-mfg-eyebrow,
.about-eyebrow,
.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--po-orange-dark);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(254, 243, 235, 0.95) 100%);
    border: 1px solid rgba(244, 123, 32, 0.28);
    box-shadow: 0 10px 24px rgba(244, 123, 32, 0.10), inset 0 1px 1px rgba(255, 255, 255, 0.9);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    backdrop-filter: blur(12px);
}

.po-badge:hover,
.po-eyebrow:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 30px rgba(244, 123, 32, 0.18), inset 0 1px 1px rgba(255, 255, 255, 1);
}

.po-badge::before,
.po-eyebrow::before,
.po-mfg-eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--po-orange);
    box-shadow: 0 0 0 5px rgba(244, 123, 32, 0.22), 0 0 12px var(--po-orange);
    animation: poBadgePulse3D 2.4s ease-in-out infinite;
}

@keyframes poBadgePulse3D {
    0%, 100% { box-shadow: 0 0 0 5px rgba(244, 123, 32, 0.22), 0 0 12px var(--po-orange); }
    50% { box-shadow: 0 0 0 11px rgba(244, 123, 32, 0.04), 0 0 20px var(--po-orange); }
}

/* ------------------------------------------------================--
   Interactive 3D Spatial Cards with Hardware Elevation & Multi-Z Depth
   ------------------------------------------------------------------ */
body.po-site .po-card,
body.po-site .home-capability-card,
body.po-site .home-production-card,
body.po-site .home-quality-card,
body.po-site .po-profile-card,
body.po-site .po-credential-card,
body.po-site .po-production-list-card,
body.po-site .po-stat-link.home-stat-card,
body.po-site .po-mfg-card,
body.po-site .po-team-card,
body.po-site .po-news-public-card,
body.po-site .po-price-highlight-card {
    position: relative;
    border-radius: var(--po-radius-lg);
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--po-line);
    box-shadow: var(--po-shadow-sm), inset 0 1px 1px rgba(255, 255, 255, 0.9);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    overflow: hidden;
}

/* Specular Reflection Overlay on Hover */
body.po-site .po-card::before,
body.po-site .home-capability-card::before,
body.po-site .home-production-card::before,
body.po-site .home-quality-card::before,
body.po-site .po-profile-card::before,
body.po-site .po-credential-card::before,
body.po-site .po-stat-link.home-stat-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--po-radius-lg);
    background: radial-gradient(500px circle at var(--card-x, 50%) var(--card-y, 50%), rgba(255, 255, 255, 0.65), rgba(18, 118, 220, 0.06) 40%, transparent 80%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

body.po-site .po-card:hover::before,
body.po-site .home-capability-card:hover::before,
body.po-site .home-production-card:hover::before,
body.po-site .home-quality-card:hover::before,
body.po-site .po-profile-card:hover::before,
body.po-site .po-credential-card:hover::before,
body.po-site .po-stat-link.home-stat-card:hover::before {
    opacity: 1;
}

/* Border Light Trace on Active 3D Hover */
body.po-site .po-card:hover,
body.po-site .home-capability-card:hover,
body.po-site .home-production-card:hover,
body.po-site .home-quality-card:hover,
body.po-site .po-profile-card:hover,
body.po-site .po-credential-card:hover,
body.po-site .po-stat-link.home-stat-card:hover {
    border-color: rgba(244, 123, 32, 0.38);
    box-shadow: var(--po-shadow-3d);
}

/* Multi-Layer Z-Depth Floating Children */
body.po-site .po-card h1,
body.po-site .po-card h2,
body.po-site .po-card h3,
body.po-site .po-card h4,
body.po-site .po-card h5,
body.po-site .po-card .po-stat-icon,
body.po-site .po-card .btn,
body.po-site .home-capability-card h5,
body.po-site .home-production-card h5,
body.po-site .home-quality-card h5,
body.po-site .po-profile-card h5,
body.po-site .po-stat-link.home-stat-card h3 {
    transform: translateZ(26px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

body.po-site .po-card:hover h1,
body.po-site .po-card:hover h2,
body.po-site .po-card:hover h3,
body.po-site .po-card:hover h4,
body.po-site .po-card:hover h5,
body.po-site .po-card:hover .po-stat-icon,
body.po-site .home-capability-card:hover h5,
body.po-site .home-production-card:hover h5,
body.po-site .home-quality-card:hover h5,
body.po-site .po-profile-card:hover h5,
body.po-site .po-stat-link.home-stat-card:hover h3 {
    transform: translateZ(36px);
}

/* Volumetric Media Zoom Frame */
.po-media-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--po-radius-md);
    transform-style: preserve-3d;
}

.po-media-frame img,
.po-media-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.po-media-frame:hover img,
.po-media-frame:hover video {
    transform: scale(1.07) translateZ(10px);
    filter: saturate(1.08) contrast(1.05) brightness(1.03);
}

/* ------------------------------------------------================--
   Magnetic High-Tech Buttons with Shimmer Light Sweeps
   ------------------------------------------------------------------ */
body.po-site .btn,
.btn-base-color,
.btn.btn-base-color,
.btn-dark-gray,
.btn.btn-dark-gray,
.btn-white,
.btn.btn-white {
    position: relative;
    overflow: hidden;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px !important;
    padding: 13px 28px !important;
    font-weight: 850;
    font-size: 15px;
    letter-spacing: 0.015em;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), background 0.32s ease, border-color 0.32s ease;
    z-index: 1;
    cursor: pointer;
    transform-style: preserve-3d;
}

/* Shimmer Light Streak Across Button */
body.po-site .btn::after,
.btn-base-color::after,
.btn-dark-gray::after,
.btn-white::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -70%;
    width: 45%;
    height: 220%;
    transform: rotate(25deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

body.po-site .btn:hover::after,
.btn-base-color:hover::after,
.btn-dark-gray:hover::after,
.btn-white:hover::after {
    left: 135%;
}

.btn-base-color,
.btn.btn-base-color {
    background: linear-gradient(135deg, #f58226 0%, #d85f09 100%) !important;
    border: 1px solid #f68934 !important;
    color: #ffffff !important;
    box-shadow: 0 16px 36px rgba(244, 123, 32, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-base-color:hover,
.btn.btn-base-color:hover {
    transform: translateY(-3px) scale(1.03) translateZ(15px) !important;
    background: linear-gradient(135deg, #f78f3e 0%, #e2670d 100%) !important;
    box-shadow: 0 24px 50px rgba(244, 123, 32, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
}

.btn-dark-gray,
.btn.btn-dark-gray {
    background: linear-gradient(135deg, #052445 0%, #072a4f 100%) !important;
    border: 1px solid #0a3a66 !important;
    color: #ffffff !important;
    box-shadow: 0 16px 36px rgba(4, 29, 55, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-dark-gray:hover,
.btn.btn-dark-gray:hover {
    transform: translateY(-3px) scale(1.03) translateZ(15px) !important;
    background: linear-gradient(135deg, #093763 0%, #1276dc 100%) !important;
    box-shadow: 0 24px 50px rgba(4, 29, 55, 0.34), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

.btn-white,
.btn.btn-white {
    background: #ffffff !important;
    border: 1px solid rgba(9, 89, 153, 0.18) !important;
    color: var(--po-navy) !important;
    box-shadow: 0 16px 36px rgba(4, 29, 55, 0.08), inset 0 1px 1px #ffffff;
}

.btn-white:hover,
.btn.btn-white:hover {
    transform: translateY(-3px) scale(1.03) translateZ(15px) !important;
    border-color: var(--po-orange) !important;
    color: var(--po-orange) !important;
    box-shadow: 0 24px 50px rgba(244, 123, 32, 0.20) !important;
}

/* Micro-Ripple Touch Physics */
.po-btn-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: poRippleAnim 0.65s ease-out;
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

@keyframes poRippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ------------------------------------------------================--
   3D Scroll Reveal & Stagger Animation Engine
   ------------------------------------------------------------------ */
.po-reveal {
    opacity: 0;
    transform: translateY(32px) rotateX(6deg) scale(0.97);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.po-reveal.po-reveal-left {
    transform: translateX(-40px) rotateY(-8deg);
}

.po-reveal.po-reveal-right {
    transform: translateX(40px) rotateY(8deg);
}

.po-reveal.po-reveal-scale {
    transform: scale(0.90) translateZ(-40px);
}

.po-reveal.is-revealed,
.po-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
    filter: none !important;
}

/* Stagger Delays for Grid Children */
.po-stagger > *:nth-child(1) { transition-delay: 0.06s; }
.po-stagger > *:nth-child(2) { transition-delay: 0.13s; }
.po-stagger > *:nth-child(3) { transition-delay: 0.20s; }
.po-stagger > *:nth-child(4) { transition-delay: 0.27s; }
.po-stagger > *:nth-child(5) { transition-delay: 0.34s; }
.po-stagger > *:nth-child(6) { transition-delay: 0.41s; }

/* ------------------------------------------------================--
   High-Graphics Glass Banners & Floating 3D Elements
   ------------------------------------------------------------------ */
.po-floating-card,
.home-factory-photo-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    padding: 20px 24px;
    border-radius: var(--po-radius-md);
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 24px 60px rgba(4, 29, 55, 0.16), inset 0 1px 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 5;
    transform: translateZ(35px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.po-floating-card:hover {
    transform: translateZ(48px) translateY(-4px);
    box-shadow: 0 32px 75px rgba(4, 29, 55, 0.22);
}

/* ------------------------------------------------================--
   Enhanced Form Controls & Interactive Inputs
   ------------------------------------------------------------------ */
body.po-site .form-control,
body.po-site select.form-control,
body.po-site textarea.form-control {
    border-radius: var(--po-radius-md);
    border: 1px solid var(--po-line-strong);
    background: #ffffff;
    color: var(--po-ink);
    padding: 13px 20px;
    font-size: 15px;
    transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
    box-shadow: inset 0 2px 4px rgba(4, 29, 55, 0.02);
}

body.po-site .form-control:focus,
body.po-site select.form-control:focus,
body.po-site textarea.form-control:focus {
    border-color: var(--po-blue-bright);
    box-shadow: 0 0 0 4px rgba(18, 118, 220, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    background: #ffffff;
    outline: none;
}

body.po-site .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.16);
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid rgba(244, 123, 32, 0.50);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .po-reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 767px) {
    body { font-size: 16px; line-height: 1.62; }
    .po-cursor-light-beam { display: none; }
}
