/* =========================
   PRODUCT PAGE ROOT & UTILS
========================= */
.relative { position: relative; }
.z-index-1 { z-index: 1; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.w-100 { width: 100%; display: block; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.overflow-hidden { overflow: hidden; }
.hidden { display: none !important; opacity: 0; pointer-events: none; }
.glassmorphism { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.5); box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-radius: 16px; }

/* Scroll Reveals */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.is-visible { opacity: 1; transform: translate(0) scale(1); filter: blur(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================
   PRODUCT HERO
========================= */
.product-hero { position: relative; padding-top: 180px; padding-bottom: 80px; background: var(--white); overflow: hidden; }
.hero-bg-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
#hero-particles { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; }
.hero-glow { position: absolute; top: 10%; right: 10%; width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(67, 217, 163, 0.1) 0%, transparent 70%); filter: blur(50px); border-radius: 50%; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-title { font-size: 3.5rem; margin-bottom: 24px; line-height: 1.1; }
.hero-subtitle { font-size: 1.15rem; color: var(--gray); margin-bottom: 32px; max-width: 500px; }

/* =========================
   HERO GRAPHICS
========================= */
.abstract-medical-graphic { width: 100%; max-width: 500px; margin: 0 auto; }
.ring-slow { transform-origin: center; animation: spin 40s linear infinite; }
.ring-fast { transform-origin: center; animation: spinReverse 25s linear infinite; }
.float-capsule { transform-origin: center; animation: floatCapsule 6s infinite alternate ease-in-out; }
.c1 { animation-delay: 0s; } .c2 { animation-delay: -2s; } .c3 { animation-delay: -4s; }
.pulse-core { animation: pulseGlow 3s infinite alternate; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spinReverse { 100% { transform: rotate(-360deg); } }
@keyframes floatCapsule { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-20px) rotate(5deg); } }
@keyframes pulseGlow { 0% { filter: drop-shadow(0 0 10px rgba(11,94,215,0.4)); } 100% { filter: drop-shadow(0 0 25px rgba(11,94,215,0.8)); } }

/* =========================
   PRODUCT PORTFOLIO & SEARCH
========================= */
.portfolio-bg-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(var(--gray-light) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.3; pointer-events: none; }
.search-container { max-width: 600px; margin: 40px auto 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.search-box { width: 100%; display: flex; align-items: center; padding: 12px 24px; transition: var(--transition); }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 10px 30px rgba(11, 94, 215, 0.15); transform: translateY(-2px); }
.search-icon { width: 24px; height: 24px; color: var(--gray); margin-right: 12px; }
.search-box input { width: 100%; border: none; background: transparent; font-family: var(--font-body); font-size: 1.1rem; color: var(--dark); outline: none; }
.product-count-display { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; color: var(--primary); letter-spacing: 1px; }

/* =========================
   PRODUCT GRID
========================= */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; transition: all 0.4s; }

/* =========================
   PRODUCT CARD
========================= */
.product-card { background: var(--white); border: 1px solid var(--gray-light); border-radius: 20px; padding: 32px 24px; display: flex; flex-direction: column; position: relative; transition: var(--transition); z-index: 1; opacity: 0; transform: translateY(30px); animation: cardReveal 0.6s forwards; }
@keyframes cardReveal { to { opacity: 1; transform: translateY(0); } }

.product-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 20px; background: radial-gradient(circle at top, rgba(11,94,215,0.05) 0%, transparent 60%); opacity: 0; transition: var(--transition); z-index: -1; }
.product-card:hover { transform: translateY(-8px); border-color: rgba(11,94,215,0.3); box-shadow: 0 20px 40px rgba(11, 94, 215, 0.08); }
.product-card:hover::before { opacity: 1; }

/* =========================
   PRODUCT IMAGE & LOGO
========================= */
.pc-image-wrap { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; position: relative; }
.pc-image-platform { position: absolute; bottom: 10px; width: 60%; height: 10px; background: radial-gradient(ellipse, rgba(255, 255, 255, 0.479) 0%, transparent 70%); }
.pc-image { max-width: 80%; max-height: 180px; object-fit: contain; animation: subtleFloat 4s infinite alternate ease-in-out; transition: var(--transition); position: relative; z-index: 2; }
.product-card:hover .pc-image { transform: scale(1.05) translateY(-5px); }

@keyframes subtleFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }

.pc-content { flex-grow: 1; display: flex; flex-direction: column; }
.pc-logo { max-width: 130px; max-height: 30px; object-fit: contain; margin-bottom: 16px; display: block; }
.pc-title { font-size: 1.25rem; margin-bottom: 16px; line-height: 1.3; color: var(--dark); }

.pc-features { list-style: none; margin-bottom: 24px; flex-grow: 1; padding: 0; }
.pc-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9rem; color: var(--gray); margin-bottom: 8px; line-height: 1.4; }
.feat-icon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--primary); }

.btn-details { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.product-card:hover .btn-details { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Empty State & Disclaimer */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { width: 64px; height: 64px; color: var(--gray-light); margin: 0 auto 16px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--gray); }
.product-disclaimer { max-width: 800px; margin: 40px auto 0; font-size: 0.8rem; color: var(--gray); opacity: 0.7; }

/* =========================
   PRODUCT MODAL (Glassmorphism)
========================= */
.product-modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(7, 21, 37, 0.769); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; transition: opacity 0.4s; }
.glassmorphism-dark { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.3); backdrop-filter: blur(20px); }
.product-modal-container { width: 100%; max-width: 900px; position: relative; transform: scale(0.95) translateY(20px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); opacity: 0; overflow: hidden; }
.product-modal-backdrop.active { opacity: 1; pointer-events: auto; }
.product-modal-backdrop.active .product-modal-container { transform: scale(1) translateY(0); opacity: 1; }

.modal-close-btn { position: absolute; top: 20px; right: 24px; background: transparent; border: none; font-size: 2rem; color: var(--white); cursor: pointer; z-index: 10; transition: var(--transition); opacity: 0.7; }
.modal-close-btn:hover { opacity: 1; transform: rotate(90deg); }

.modal-grid { display: grid; grid-template-columns: 1fr 1.2fr; }
.modal-image-col { padding: 40px; display: flex; align-items: center; justify-content: center; position: relative; background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%); }
.modal-spotlight { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 300px; height: 250px; background: white; filter: blur(100px); opacity: 1; border-radius: 30%; }
.modal-product-img { max-width: 100%; max-height: 300px; object-fit: contain; position: relative; z-index: 2; animation: subtleFloat 4s infinite alternate; }

.modal-content-col { padding: 40px 40px 40px 20px; display: flex; flex-direction: column; justify-content: center; }
.modal-product-logo { max-width: 100px; max-height: 40px; object-fit: contain; margin-bottom: 20px; display: block; filter: brightness(0) invert(1); /* Makes logo white for dark modal, remove if logos are colorful */ }
.modal-title { font-size: 2rem; color: var(--white); margin-bottom: 24px; line-height: 1.2; }
.modal-features { list-style: none; margin-bottom: 32px; padding: 0; }
.modal-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.modal-features .feat-icon { color: var(--accent); width: 20px; height: 20px; }

/* =========================
   QUALITY SECTION
========================= */
.quality-grid { gap: 24px; }
.quality-pillar { text-align: center; padding: 32px 24px; background: var(--light); border-radius: 16px; border: 1px solid var(--gray-light); }
.qp-icon { width: 48px; height: 48px; margin: 0 auto 20px; color: var(--primary); }
.quality-pillar h4 { font-size: 1.2rem; margin-bottom: 8px; }
.quality-pillar p { color: var(--gray); font-size: 0.95rem; }

/* =========================
   SIGNATURE GRAPHIC
========================= */
.signature-section { min-height: 600px; }
.sig-bg-grid { position: absolute; top:0; left:0; width:100%; height:100%; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 50px 50px; }
.signature-orbital-system { position: relative; width: 400px; height: 400px; }
.sig-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 5; }
.sig-product-placeholder svg { width: 64px; height: 64px; position: relative; z-index: 2; }
.core-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; background: var(--primary); filter: blur(50px); opacity: 0.5; border-radius: 50%; animation: pulseGlow 4s infinite alternate; }

.sig-orbit-path { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px dashed rgba(255,255,255,0.1); border-radius: 50%; }
.path-1 { width: 250px; height: 250px; animation: spin 30s linear infinite; }
.path-2 { width: 380px; height: 380px; animation: spinReverse 40s linear infinite; }

.sig-node { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; color: var(--secondary); z-index: 3; }
.sig-node .dot { width: 12px; height: 12px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 15px var(--accent); animation: pulseCore 2s infinite alternate; }
.node-top { top: -20px; left: 50%; transform: translateX(-50%); }
.node-bottom { bottom: -20px; left: 50%; transform: translateX(-50%); }
.node-left { top: 50%; left: -40px; transform: translateY(-50%); }
.node-right { top: 50%; right: -40px; transform: translateY(-50%); }
.sig-connectors { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.line-pulse { animation: fadePulse 3s infinite alternate; }

@keyframes fadePulse { 0% { opacity: 0.2; } 100% { opacity: 0.8; } }

/* =========================
   PRODUCT CTA
========================= */
.product-cta-section { background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%); overflow: hidden; }
.cta-particles { position: absolute; top:0; left:0; width:100%; height:100%; opacity: 0.5; background-image: radial-gradient(var(--primary-light) 2px, transparent 2px); background-size: 30px 30px; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1280px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-visual { margin: 40px auto 0; }
    .quality-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-image-col { padding: 30px; height: 250px; }
    .modal-content-col { padding: 30px; }
    .modal-product-img { max-height: 200px; }
    .modal-close-btn { top: 10px; right: 15px; color: var(--dark); /* Adjust if image bg is light */ }
}

@media (max-width: 768px) {
    .product-hero { padding-top: 140px; }
    .hero-title { font-size: 2.5rem; }
    .product-grid { grid-template-columns: 1fr; }
    .quality-grid { grid-template-columns: 1fr; }
    .signature-orbital-system { transform: scale(0.7); }
    .signature-section { min-height: 400px; }
    .product-modal-container { border-radius: 16px; max-height: 90vh; overflow-y: auto; }
    .modal-image-col { background: var(--light); border-bottom: 1px solid var(--gray-light); }
    .modal-close-btn { color: var(--dark); background: rgba(255,255,255,0.8); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
    .modal-product-logo { filter: none; } /* Revert invert for mobile stacked view if bg isn't dark */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    #hero-particles, .cta-particles { display: none; }
}