/* ============================================================
   VINSTA LED — Premium Enhancement Layer
   Supplementary styles for ambient effects, scrollbar,
   focus-visible, selection, and subtle polish.
   ============================================================ */

/* --- Selection Color --- */
::selection {
    background: rgba(0, 243, 255, 0.2);
    color: var(--text-primary);
}

body.light-theme ::selection {
    background: rgba(0, 200, 220, 0.2);
}

/* --- Focus Visible Ring (Accessibility) --- */
:focus-visible {
    outline: 2px solid var(--primary-neon);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-neon);
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
    background-clip: padding-box;
}

body.light-theme ::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    background-clip: padding-box;
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
}

/* --- Ambient Section Glows --- */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Light mode: disable ambient glows */
body.light-theme .why-led::before,
body.light-theme .cta-section::before {
    opacity: 0;
}

/* --- Subtle Section Dividers --- */
.why-led::after,
.applications::after,
.product-showcase::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(80%, 800px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
    z-index: 1;
}

.why-led,
.applications,
.product-showcase {
    position: relative;
}

/* --- Image Smooth Loading --- */
img {
    image-rendering: auto;
}

/* --- Smooth Transitions for Theme Toggle --- */
.app-card,
.premium-card,
.feature-card,
.product-card,
.contact-form,
.comparison-visual,
.benefit-icon {
    transition-property: transform, box-shadow, border-color, background-color, color;
    transition-duration: 0.3s;
    transition-timing-function: var(--ease-premium);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Light Theme Section Background Refinement --- */
body.light-theme .why-led {
    background: var(--bg-primary);
}

body.light-theme .impact-section {
    background: linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

body.light-theme .applications {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

body.light-theme .product-showcase {
    background: radial-gradient(circle at 50% 20%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

body.light-theme .cta-section {
    background: linear-gradient(180deg, rgba(0, 200, 220, 0.04) 0%, transparent 60%);
    border-top-color: rgba(0, 200, 220, 0.1);
}

/* --- Premium Card Light Mode Refinement --- */
body.light-theme .premium-card {
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

body.light-theme .premium-card:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

body.light-theme .premium-card-image {
    background: var(--bg-secondary);
}

body.light-theme .btn-card {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--card-border);
}

body.light-theme .btn-card:hover {
    background: var(--primary-neon);
    color: #FFFFFF;
    border-color: var(--primary-neon);
}

body.light-theme .tab-btn {
    background: var(--bg-secondary);
    border-color: var(--card-border);
    color: var(--text-secondary);
}

body.light-theme .tab-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

body.light-theme .tab-btn.active {
    background: rgba(0, 200, 220, 0.08);
    border-color: rgba(0, 200, 220, 0.3);
    color: #00a5b5;
}

/* --- Neon Icon Colors in Light Mode --- */
body.light-theme .neon-blue {
    color: #00a5b5;
    border-color: #00a5b5;
    box-shadow: 0 0 8px rgba(0, 165, 181, 0.15);
}

body.light-theme .neon-green {
    color: #00b06a;
    border-color: #00b06a;
    box-shadow: 0 0 8px rgba(0, 176, 106, 0.15);
}

body.light-theme .neon-purple {
    color: #9b00cc;
    border-color: #9b00cc;
    box-shadow: 0 0 8px rgba(155, 0, 204, 0.12);
}

body.light-theme .neon-yellow {
    color: #c5a800;
    border-color: #c5a800;
    box-shadow: 0 0 8px rgba(197, 168, 0, 0.15);
}

body.light-theme .benefit-icon {
    background: rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
}

/* --- Comparison Row Light Mode --- */
body.light-theme .comp-row span.highlight {
    color: #00a5b5;
    text-shadow: none;
}