/* CSS Design System for X-Implant Global */

/* 1. Global Variables & Base Setup */
:root {
    --bg-dark: #07090e;
    --bg-card: rgba(17, 24, 39, 0.65);
    --bg-input: rgba(15, 23, 42, 0.8);
    
    /* Dynamic Accent Colors */
    --accent-teal: #00e1d9;
    --accent-teal-glow: rgba(0, 225, 217, 0.15);
    --accent-gold: #d4af37;
    --accent-gold-glow: rgba(212, 175, 55, 0.2);
    
    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    /* Transitions & Borders */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 225, 217, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Diameter Color Codes */
    --color-dia-33: #f59e0b; /* Yellow */
    --color-dia-35: #10b981; /* Green */
    --color-dia-38: #3b82f6; /* Blue */
    --color-dia-43: #8b5cf6; /* Purple */
    --color-dia-50: #ef4444; /* Red */
}

/* Patient Portal Overrides */
body.patients-portal {
    --bg-dark: #0b0f17;
    --accent-teal: #0ea5e9; /* Sky Blue */
    --accent-teal-glow: rgba(14, 165, 233, 0.15);
    --accent-gold: #f43f5e; /* Rose / Warm Pink */
    --accent-gold-glow: rgba(244, 63, 94, 0.15);
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Full-Screen Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
    background: transparent;
    display: block;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Ensure content elements stack above particles, but image wrappers stay below canvas (z-index: 3) */
header,
.hero-content,
.explorer-content,
.explorer-tabs-container,
.header-controls,
.specs-dashboard,
.workflow-simulator,
.contact-section,
footer {
    position: relative;
    z-index: 10;
}

.hero-image-wrapper,
.explorer-image-wrapper {
    position: relative;
    z-index: 2 !important;
}

/* Utilities */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px; /* Reduced from 100px to make spacing more compact */
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 30%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-teal {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-teal);
}

/* 2. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 20px;
    height: 80px;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    border: 2px solid var(--accent-teal);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    box-shadow: 0 0 15px var(--accent-teal-glow);
    transition: var(--transition-smooth);
}

.logo-icon .x-glow {
    animation: pulseGlow 3s infinite alternate;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ffffff 50%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Main Nav */
.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: var(--transition-smooth);
}

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

/* Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Portal Switcher */
.portal-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 3px;
    border-radius: 30px;
}

.portal-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.portal-btn.active {
    background: var(--accent-teal);
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0, 225, 217, 0.2);
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-trigger {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.lang-trigger:hover {
    border-color: var(--accent-teal);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #0f172a;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    list-style: none;
    padding: 6px 0;
    min-width: 120px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
}

.lang-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.lang-dropdown li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.lang-dropdown li a:hover, .lang-dropdown li a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-teal);
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 3. Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh; /* Reduced from 100vh to reduce bottom empty space */
    display: flex;
    align-items: center;
    padding-top: 80px; /* Reduced from 100px */
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 40%, rgba(0, 225, 217, 0.07) 0%, rgba(7, 9, 14, 0) 60%),
                radial-gradient(circle at 10% 80%, rgba(212, 175, 55, 0.04) 0%, rgba(7, 9, 14, 0) 50%);
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background: var(--accent-teal-glow);
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    animation: pulseBorder 2s infinite alternate;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    color: var(--accent-teal);
    font-size: 1.2rem;
}

.feature-text {
    font-weight: 500;
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--accent-teal);
    color: var(--text-dark);
    box-shadow: 0 8px 24px rgba(0, 225, 217, 0.25);
}

.btn-primary:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-teal);
    transform: translateY(-2px);
}

/* Hero Image & Floating Indicators */
/* Hero Image & Floating Indicators */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 520px;
    margin: 0 auto;
}

.glow-sphere {
    position: absolute;
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-teal-glow) 0%, rgba(0,0,0,0) 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

/* STL 3D Viewer Canvas */
.stl-viewer-canvas {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: block;
    cursor: grab;
    filter: drop-shadow(0 20px 60px rgba(0, 255, 200, 0.15)) drop-shadow(0 8px 32px rgba(0,0,0,0.5));
    background: transparent;
}
.stl-viewer-canvas:active {
    cursor: grabbing;
}

/* STL Loading Overlay */
.stl-loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: rgba(180, 220, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.stl-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.stl-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 200, 0.15);
    border-top-color: var(--accent-teal, #00d4aa);
    border-radius: 50%;
    animation: stlSpin 0.9s linear infinite;
}
@keyframes stlSpin {
    to { transform: rotate(360deg); }
}

/* Indicators */
.image-indicator {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    opacity: 0.9;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.image-indicator:hover {
    opacity: 1;
    transform: scale(1.05);
}

.ind-dot {
    width: 14px;
    height: 14px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-gold);
    position: relative;
    flex-shrink: 0;
}

.ind-dot::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--accent-gold);
    border-radius: 50%;
    animation: radarPulse 2s infinite;
}

.ind-label {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 6px 0;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    transition: var(--transition-smooth);
}

/* Rich Tooltip Styling (Disabled per user request) */
.ind-tooltip {
    display: none !important;
}

.ind-tooltip::before {
    display: none !important;
}

.ind-tooltip h5 {
    display: none !important;
}

/* Tooltip Display States */
.image-indicator.active {
    opacity: 1;
    z-index: 15;
}
.image-indicator.active .ind-tooltip {
    display: none !important;
}

@media (hover: hover) {
    .image-indicator:hover .ind-tooltip {
        display: none !important;
    }
}

/* Specific Positions - Aligned with centered 3D model contour */
.ind-1 { top: 15%; left: 53%; right: auto; flex-direction: row; }
.ind-1 .ind-tooltip { left: 0; transform: translateY(10px); }
.ind-1 .ind-tooltip::before { left: 15px; }

.ind-2 { top: 40%; right: 53%; left: auto; flex-direction: row-reverse; }
.ind-2 .ind-tooltip { right: 0; transform: translateY(10px); }
.ind-2 .ind-tooltip::before { right: 15px; }

.ind-3 { top: 65%; left: 53%; right: auto; flex-direction: row; }
.ind-3 .ind-tooltip { left: 0; transform: translateY(10px); }
.ind-3 .ind-tooltip::before { left: 15px; }

.ind-4 { top: 85%; right: 53%; left: auto; flex-direction: row-reverse; }
.ind-4 .ind-tooltip { right: 0; transform: translateY(10px); }
.ind-4 .ind-tooltip::before { right: 15px; }

/* 4. Product Systems (Grid Layout) */
.products-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d121f 50%, var(--bg-dark) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 840px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mega-showcase-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.product-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 225, 217, 0.08);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 225, 217, 0.03) 0%, rgba(0,0,0,0) 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.product-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    font-size: 2rem;
    color: var(--accent-teal);
    margin-bottom: 25px;
    display: inline-block;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-features {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-features li {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-features li i {
    color: var(--accent-teal);
}

.card-specs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.spec-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.spec-tag.text-teal {
    border-color: rgba(0, 225, 217, 0.2);
    color: var(--accent-teal);
}

.btn-card-details {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.product-card:hover .btn-card-details {
    background: var(--border-light);
    border-color: var(--accent-teal);
}

/* Highlighted Card */
.product-card.highlighted {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.product-card.highlighted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
}

.product-card.highlighted .card-icon {
    color: var(--accent-gold);
}

.badge-card {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--accent-gold-glow);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-card-details.btn-highlighted {
    background: var(--accent-gold-glow);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-card-details.btn-highlighted:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
}

/* 5. Surface Technology (Flex Layout) */
.surface-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 80px;
}

.section-badge {
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.surface-bullets {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bullet-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.bullet-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-teal);
    line-height: 1;
    min-width: 80px;
}

.bullet-text h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.bullet-text p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.surface-media-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.micro-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px rgba(0, 225, 217, 0.15);
    z-index: 2;
    pointer-events: none;
}

.surface-image {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.surface-media-wrapper:hover .surface-image {
    transform: scale(1.1);
}

.zoom-helper {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 30px;
    z-index: 3;
    pointer-events: none;
}

/* 6. Technical Specifications (Interactive dashboard) */
.specs-section {
    background: #090d16;
}

/* About Us Grid & Cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 243, 255, 0.06), transparent 80%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.about-card:hover .about-card-glow {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 243, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 243, 255, 0.08);
}

.about-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 243, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #00f3ff;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
    transition: all 0.3s ease;
}

.about-card:hover .about-icon-wrapper {
    background: #00f3ff;
    color: #090d16;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
    transform: scale(1.05);
}

.about-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.about-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.about-card-text em {
    display: block;
    margin-top: 12px;
    color: #00f3ff;
    font-style: italic;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.specs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.btn-group-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-toggle {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-toggle:hover {
    border-color: var(--accent-teal);
    color: var(--text-main);
}

.btn-toggle.active {
    background: var(--accent-teal-glow);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

/* Diameter Color Indicators on Buttons */
.btn-toggle.color-yellow.active { border-color: var(--color-dia-33); color: var(--color-dia-33); background: rgba(245, 158, 11, 0.1); }
.btn-toggle.color-green.active { border-color: var(--color-dia-35); color: var(--color-dia-35); background: rgba(16, 185, 129, 0.1); }
.btn-toggle.color-blue.active { border-color: var(--color-dia-38); color: var(--color-dia-38); background: rgba(59, 130, 246, 0.1); }
.btn-toggle.color-purple.active { border-color: var(--color-dia-43); color: var(--color-dia-43); background: rgba(139, 92, 246, 0.1); }
.btn-toggle.color-red.active { border-color: var(--color-dia-50); color: var(--color-dia-50); background: rgba(239, 68, 68, 0.1); }

/* Table styling */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.specs-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
}

.specs-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.specs-table tr {
    transition: var(--transition-smooth);
}

.specs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Color Coding Dots */
.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* Dynamic styling classes */
.row-dia-33 { border-left: 3px solid var(--color-dia-33); }
.row-dia-35 { border-left: 3px solid var(--color-dia-35); }
.row-dia-38 { border-left: 3px solid var(--color-dia-38); }
.row-dia-43 { border-left: 3px solid var(--color-dia-43); }
.row-dia-50 { border-left: 3px solid var(--color-dia-50); }

/* 7. Workflow Simulator */
.workflow-section {
    background: #0d121f;
}

.workflow-simulator {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Timeline nodes */
.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 60px;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-light);
    z-index: 1;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    width: 15%;
}

.step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.step-label {
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition-smooth);
}

/* Active timeline nodes */
.step-node.active .step-num {
    background: var(--accent-teal-glow);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    box-shadow: 0 0 20px var(--accent-teal-glow);
}

.step-node.active .step-label {
    color: var(--text-main);
}

.step-node.completed .step-num {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: var(--text-dark);
}

/* Content Box */
.sim-content-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.sim-step-title {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--accent-teal);
}

.sim-step-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.sim-stats {
    display: flex;
    gap: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    padding: 16px 24px;
    border-radius: 8px;
}

.stat-val {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sim-media {
    border-radius: 12px;
    overflow: hidden;
    border: none; /* Removed border to eliminate the photo box look */
}

.sim-image {
    max-width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen; /* Blends the dark background of the image out dynamically */
}

/* 8. Lead & Contact Section */
.contact-section {
    background: linear-gradient(180deg, #0d121f 0%, var(--bg-dark) 100%);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.meta-item i {
    font-size: 1.5rem;
    color: var(--accent-teal);
    margin-top: 4px;
}

.meta-item span {
    font-size: 0.95rem;
}

.contact-form-wrapper {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 0.92rem;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-teal);
    outline: none;
    box-shadow: 0 0 10px var(--accent-teal-glow);
}

.btn-submit {
    margin-top: 10px;
    width: 100%;
}

/* Success Overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-success-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.success-content {
    text-align: center;
    max-width: 400px;
    padding: 20px;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-teal);
    margin-bottom: 20px;
}

.success-content h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.success-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* 9. Footer */
.site-footer {
    background: #05070a;
    border-top: 1px solid var(--border-light);
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

#footer-bio {
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 320px;
}

.certifications {
    display: flex;
    gap: 12px;
}

.cert-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.footer-link-col h4 {
    font-size: 1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-link-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-col ul a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-link-col ul a:hover {
    color: var(--accent-teal);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 30px 20px;
    background: #040508;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal-links a:hover {
    color: var(--text-main);
}

/* 10. Technical Specs Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(12px);
}

.modal-content {
    background: #0d121f;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    max-width: 650px;
    width: 90%;
    position: relative;
    z-index: 10;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

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

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--text-main);
}

.modal-body h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--accent-teal);
}

.modal-body p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.modal-specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.modal-specs-list li {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.modal-specs-list li i {
    color: var(--accent-teal);
    font-size: 1.1rem;
}

/* Animations */
@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 2px var(--accent-teal-glow)); }
    100% { filter: drop-shadow(0 0 12px var(--accent-teal)); }
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 5px var(--accent-teal-glow); }
    100% { box-shadow: 0 0 15px rgba(0, 225, 217, 0.4); }
}

@keyframes hoverFloating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes radarPulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Responsive CSS */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content {
        align-items: center;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-image-wrapper {
        height: 420px;
    }
    .image-indicator {
        display: flex;
    }
    .image-indicator .ind-label {
        display: flex !important; /* Force display labels on mobile/tablet */
    }
    .ind-tooltip {
        width: 220px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .surface-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .sim-content-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 480px) {
    .hero-image-wrapper {
        height: 340px;
    }
    .ind-tooltip {
        width: 170px;
        font-size: 0.68rem;
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Mobile menu hidden by default */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #07090e;
        border-bottom: 1px solid var(--border-light);
        padding: 20px;
    }
    .main-nav.show {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .portal-switcher {
        display: none; /* Hide portal switch in header of mobile for space, fallback in layout if necessary */
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .workflow-steps {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    .step-node {
        width: 30%;
    }
    .workflow-steps::before {
        display: none;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Interactive Background Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: transparent;
}

/* Ensure other content elements stack on top of particles */
main, 
section, 
footer {
    position: relative;
    z-index: 2;
}

/* Scroll Reveal Animations */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.js-enabled .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delay Helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Typing Cursor Animation */
.typing-cursor {
    color: var(--accent-teal);
    font-weight: 300;
    margin-left: 2px;
    display: inline-block;
    animation: cursorBlink 0.8s steps(2, start) infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* 3.5. DXL Implant Explorer Section */
.explorer-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d121f 50%, var(--bg-dark) 100%);
    position: relative;
    z-index: 2;
    padding: 20px 0; /* Reduced from 100px to avoid double-padding with section-container */
}

/* Theme Variables Override */
.theme-smart {
    --explorer-accent: #d4af37; /* Premium Gold/Bronze representing Smart */
    --explorer-glow: rgba(212, 175, 55, 0.12);
}
.theme-premium-hybrid {
    --explorer-accent: #b0bec5; /* Silver Grey representing Premium Hybrid */
    --explorer-glow: rgba(176, 190, 197, 0.12);
}
.theme-neo {
    --explorer-accent: #00e676; /* Vibrant Green representing Neo */
    --explorer-glow: rgba(0, 230, 118, 0.12);
}
.theme-mega {
    --explorer-accent: #00b0ff; /* Bright Blue representing Mega */
    --explorer-glow: rgba(0, 176, 255, 0.12);
}

.explorer-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    width: 100%;
}

.explorer-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Tab Thumbnails replacing simple dots */
.tab-thumb {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 255, 200, 0.2));
    transition: var(--transition-smooth);
}
.tab-btn:hover .tab-thumb,
.tab-btn.active .tab-thumb {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(0, 255, 212, 0.5));
}

.explorer-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 70px;
    width: 100%;
}

.explorer-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-sphere {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--explorer-glow) 0%, rgba(0,0,0,0) 70%);
    filter: blur(40px);
    z-index: 1;
    transition: background 0.5s ease;
}

.explorer-image {
    max-height: 520px;
    width: auto;
    max-width: 100%;
    position: relative;
    z-index: 2;
    animation: hoverFloating 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
}

.explorer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.explorer-features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}

.explorer-feat-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.explorer-feat-icon {
    font-size: 1.4rem;
    color: var(--explorer-accent);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 12px;
    transition: color 0.5s ease;
}

.explorer-feat-text h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.explorer-feat-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-explorer-details {
    background: transparent;
    border: 1px solid var(--explorer-accent);
    color: var(--explorer-accent);
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-explorer-details:hover {
    background: var(--explorer-accent);
    color: #07090e;
    box-shadow: 0 10px 25px var(--explorer-glow);
}

/* Indicators themeing overrides */
.explorer-section .image-indicator .ind-dot {
    background: var(--explorer-accent);
    box-shadow: 0 0 15px var(--explorer-accent);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.explorer-section .image-indicator .ind-dot::before {
    border-color: var(--explorer-accent);
    transition: border-color 0.3s ease;
}

.explorer-section .image-indicator .ind-label {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,1) !important;
    transition: color 0.3s ease;
}

.explorer-section .image-indicator {
    position: absolute;
    display: flex !important;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

/* Base vertical levels and horizontal directions for Explorer Hotspots */
.explorer-section .ind-1 { top: 9%; flex-direction: row !important; }                     /* Right side: dot left, text right */
.explorer-section .ind-2 { top: 18%; flex-direction: row-reverse !important; }            /* Left side: text left, dot right */
.explorer-section .ind-3 { top: 40%; flex-direction: row-reverse !important; }            /* Left side: text left, dot right */
.explorer-section .ind-4 { top: 68%; flex-direction: row !important; }                     /* Right side: dot left, text right */
.explorer-section .ind-5 { top: 89%; flex-direction: row-reverse !important; }            /* Left side: text left, dot right */

/* Individual system hotspot offsets to align dots on left/right contours of implant */

/* Smart & Neo */
.theme-smart .ind-1, .theme-neo .ind-1 { left: 53.5%; right: auto; }
.theme-smart .ind-2, .theme-neo .ind-2 { right: 56.5%; left: auto; }
.theme-smart .ind-3, .theme-neo .ind-3 { right: 61%; left: auto; }
.theme-smart .ind-4, .theme-neo .ind-4 { left: 61%; right: auto; }
.theme-smart .ind-5, .theme-neo .ind-5 { right: 54%; left: auto; }

/* Mega */
.theme-mega .ind-1 { left: 53.5%; right: auto; }
.theme-mega .ind-2 { right: 56.5%; left: auto; }
.theme-mega .ind-3 { right: 62%; left: auto; }
.theme-mega .ind-4 { left: 62%; right: auto; }
.theme-mega .ind-5 { right: 54.5%; left: auto; }

/* Premium Hybrid */
.theme-premium-hybrid .ind-1 { left: 53.5%; right: auto; }
.theme-premium-hybrid .ind-2 { right: 54.5%; left: auto; }
.theme-premium-hybrid .ind-3 { right: 55%; left: auto; }
.theme-premium-hybrid .ind-4 { left: 56.5%; right: auto; }
.theme-premium-hybrid .ind-5 { right: 52%; left: auto; }

/* Mobile and Tablet Responsive Overrides for DXL Explorer */
@media (max-width: 1024px) {
    .explorer-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .explorer-image-wrapper {
        width: 100%;
        max-width: 320px;
        margin: 0 auto 20px auto;
        min-height: 420px; /* Preserve space for hotspots */
    }
    
    .explorer-image {
        max-height: 380px;
    }
    
    .explorer-content {
        align-items: center;
    }
    
    .explorer-features-list {
        align-items: center;
        max-width: 600px;
        margin: 30px auto 0 auto;
    }
    
    .explorer-feat-item {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .explorer-section {
        padding: 50px 0;
    }
    
    .explorer-tabs-container {
        margin-bottom: 35px;
        padding: 0 15px;
    }
    
    .explorer-tabs {
        width: 100%;
        max-width: 450px;
        display: flex;
        flex-wrap: wrap;
        border-radius: 16px;
        padding: 4px;
        gap: 4px;
    }
    
    .tab-btn {
        font-size: 0.75rem;
        padding: 8px 12px;
        flex: 1 1 calc(50% - 4px); /* Clean 2x2 grid */
        justify-content: center;
        border-radius: 12px;
    }
    
    /* Hotspot label scaling on mobile screen to prevent overflow */
    .explorer-section .image-indicator .ind-label {
        font-size: 0.62rem;
        padding: 4px 8px;
    }
    
    .explorer-section .image-indicator {
        gap: 8px;
    }
    
    /* Mobile hotspot coordinates match desktop layout for consistent alignment */
    .theme-smart .ind-1, .theme-neo .ind-1 { left: 53.5%; right: auto; }
    .theme-smart .ind-2, .theme-neo .ind-2 { right: 56.5%; left: auto; }
    .theme-smart .ind-3, .theme-neo .ind-3 { right: 61%; left: auto; }
    .theme-smart .ind-4, .theme-neo .ind-4 { left: 61%; right: auto; }
    .theme-smart .ind-5, .theme-neo .ind-5 { right: 54%; left: auto; }

    .theme-mega .ind-1 { left: 53.5%; right: auto; }
    .theme-mega .ind-2 { right: 56.5%; left: auto; }
    .theme-mega .ind-3 { right: 62%; left: auto; }
    .theme-mega .ind-4 { left: 62%; right: auto; }
    .theme-mega .ind-5 { right: 54.5%; left: auto; }

    .theme-premium-hybrid .ind-1 { left: 53.5%; right: auto; }
    .theme-premium-hybrid .ind-2 { right: 54.5%; left: auto; }
    .theme-premium-hybrid .ind-3 { right: 55%; left: auto; }
    .theme-premium-hybrid .ind-4 { left: 56.5%; right: auto; }
    .theme-premium-hybrid .ind-5 { right: 52%; left: auto; }
}

/* Force visibility of detail hotspots on mobile for the interactive explorer */
.explorer-section .image-indicator {
    display: flex !important;
}
