/* Electronics Redesign - Global Variables & Utilities */
:root {
    /* Light Mode Defaults */
    --elec-dark-bg: #ffffff;
    --elec-panel-bg: #f8f9fa;
    --elec-card-bg: #ffffff;
    --elec-accent-blue: #004685;
    /* Darker blue for light mode visibility */
    --elec-deep-blue: #004685;
    --elec-alert-red: #ff4d4d;
    --elec-text-main: #1a1a2e;
    /* Black/Dark Blue text */
    --elec-text-muted: #555555;
    --elec-border: #e0e0e0;
    --elec-glow: 0 0 15px rgba(0, 70, 133, 0.1);
    --elec-section-spacing: 80px;
    --elec-title-color: #1a1a2e;
}

/* Dark Mode Overrides */
html[data-theme="dark"] :root,
body.dark-mode :root {
    --elec-dark-bg: #0b0f19;
    --elec-panel-bg: rgba(20, 24, 34, 0.95);
    --elec-card-bg: #141822;
    --elec-accent-blue: #29afe3;
    --elec-text-main: #f0f4f8;
    --elec-text-muted: #8892b0;
    --elec-border: rgba(41, 175, 227, 0.2);
    --elec-glow: 0 0 15px rgba(41, 175, 227, 0.3);
    --elec-title-color: #ffffff;
}

/* Base Override for New Sections */
.new-elec-section {
    position: relative;
    overflow: hidden;
    padding: var(--elec-section-spacing) 0;
    color: var(--elec-text-main);
    background: var(--elec-dark-bg);
    transition: background 0.3s, color 0.3s;
}

.new-elec-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.new-elec-heading-block {
    text-align: center;
    margin-bottom: 50px;
}

.new-elec-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--elec-accent-blue);
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.new-elec-title {
    font-size: 36px;
    color: var(--elec-title-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.new-elec-subtitle {
    font-size: 16px;
    color: var(--elec-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   SECTION 1: INDUSTRY CHALLENGES (RISK RADAR)
   ========================================================================== */
#new-elec-challenges {
    background: var(--elec-dark-bg);
}

/* Dark Mode Specific Background */
html[data-theme="dark"] #new-elec-challenges,
body.dark-mode #new-elec-challenges {
    background: radial-gradient(circle at 50% 50%, #151b29 0%, #0b0f19 100%);
}

.new-elec-radar-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.new-elec-radar-container {
    position: relative;
    width: 460px;
    height: 460px;
    margin: 0 auto;
    border-radius: 50%;
    /* Light mode radar bg */
    background:
        radial-gradient(circle, transparent 60%, rgba(0, 70, 133, 0.05) 60%),
        repeating-radial-gradient(rgba(0, 70, 133, 0.05) 0, rgba(0, 70, 133, 0.05) 1px, transparent 1px, transparent 50px);
    border: 1px solid rgba(0, 70, 133, 0.1);
}

html[data-theme="dark"] .new-elec-radar-container,
body.dark-mode .new-elec-radar-container {
    background:
        radial-gradient(circle, transparent 60%, rgba(41, 175, 227, 0.05) 60%),
        repeating-radial-gradient(rgba(41, 175, 227, 0.1) 0, rgba(41, 175, 227, 0.1) 1px, transparent 1px, transparent 50px);
    border: 1px solid rgba(41, 175, 227, 0.15);
}

.new-elec-radar-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 70, 133, 0.2) 340deg, #004685 360deg);
    opacity: 0.3;
    animation: radarSpin 4s linear infinite;
}

html[data-theme="dark"] .new-elec-radar-sweep,
body.dark-mode .new-elec-radar-sweep {
    background: conic-gradient(from 0deg, transparent 0deg, rgba(41, 175, 227, 0.4) 340deg, #29afe3 360deg);
}

@keyframes radarSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.new-elec-radar-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--elec-accent-blue);
    cursor: pointer;
    box-shadow: 0 0 10px var(--elec-accent-blue);
    transition: transform 0.3s, box-shadow 0.3s;
}

.new-elec-radar-node:hover,
.new-elec-radar-node.active {
    transform: scale(1.5);
    box-shadow: 0 0 20px var(--elec-accent-blue), 0 0 0 5px rgba(41, 175, 227, 0.2);
    background: #fff;
    z-index: 10;
}

.new-elec-node-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--elec-accent-blue);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    /* Light mode text shadow */
    pointer-events: none;
}

html[data-theme="dark"] .new-elec-node-label,
body.dark-mode .new-elec-node-label {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.node-particles {
    top: 20%;
    left: 50%;
}

.node-esd {
    top: 50%;
    left: 80%;
}

.node-chemicals {
    top: 80%;
    left: 50%;
}

.node-audits {
    top: 50%;
    left: 20%;
}

.new-elec-context-panel {
    background: var(--elec-panel-bg);
    border: 1px solid var(--elec-border);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
}

html[data-theme="dark"] .new-elec-context-panel,
body.dark-mode .new-elec-context-panel {
    background: #141822;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.new-elec-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--elec-border);
    padding-bottom: 15px;
}

.new-elec-panel-title {
    font-size: 24px;
    color: var(--elec-title-color);
    margin: 0;
}

.new-elec-panel-tag {
    background: rgba(41, 175, 227, 0.1);
    color: var(--elec-accent-blue);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.new-elec-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.new-elec-stat-item small {
    display: block;
    color: var(--elec-text-muted);
    font-size: 11px;
    text-transform: uppercase;
}

.new-elec-stat-item strong {
    font-size: 18px;
    color: var(--elec-accent-blue);
}

/* ==========================================================================
   SECTION 2: SOLUTIONS (BLUEPRINT JOURNEY)
   ========================================================================== */
#new-elec-solutions {
    background: aliceblue;
    /* Very subtle blue tint for light mode sec 2 */
}

/* Dark Mode Background */
html[data-theme="dark"] #new-elec-solutions,
body.dark-mode #new-elec-solutions {
    background: #0d121c;
}

#new-elec-solutions::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Light mode grid */
    background-image: linear-gradient(rgba(0, 70, 133, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 70, 133, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridDrift 60s linear infinite;
    opacity: 0.5;
}

html[data-theme="dark"] #new-elec-solutions::before,
body.dark-mode #new-elec-solutions::before {
    background-image: linear-gradient(rgba(41, 175, 227, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 175, 227, 0.05) 1px, transparent 1px);
}

@keyframes gridDrift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-40px, 40px);
    }
}

.new-elec-blueprint-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    /* Center align vertically */
}

.new-elec-map-visual {
    position: relative;
    border: 1px solid var(--elec-border);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    /* Light mode map bg */
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .new-elec-map-visual,
body.dark-mode .new-elec-map-visual {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: none;
}

.new-elec-map-svg {
    width: 90%;
    height: 90%;
    filter: drop-shadow(0 0 10px rgba(41, 175, 227, 0.2));
}

.map-zone {
    fill: rgba(0, 70, 133, 0.05);
    stroke: var(--elec-accent-blue);
    stroke-width: 1;
    transition: fill 0.3s;
}

html[data-theme="dark"] .map-zone,
body.dark-mode .map-zone {
    fill: rgba(41, 175, 227, 0.1);
}

.map-zone.active {
    fill: rgba(41, 175, 227, 0.2);
    box-shadow: 0 0 20px var(--elec-accent-blue);
}

html[data-theme="dark"] .map-zone.active,
body.dark-mode .map-zone.active {
    fill: rgba(41, 175, 227, 0.4);
}

/* Emoji Map Styles */
.map-emoji-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-path-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.map-path-bg svg {
    width: 100%;
    height: 100%;
}

.dashed-trace {
    stroke: var(--elec-accent-blue);
    stroke-width: 2;
    stroke-dasharray: 10, 10;
    opacity: 0.3;
    animation: dashMove 30s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -1000;
    }
}

.map-emoji-node {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 5;
}

.map-emoji-node:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 10;
}

.emoji-icon {
    font-size: 40px;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
    animation: emojiFloat 3s ease-in-out infinite;
}

.map-emoji-node:nth-child(2) .emoji-icon {
    animation-delay: 0.5s;
}

.map-emoji-node:nth-child(3) .emoji-icon {
    animation-delay: 1s;
}

.map-emoji-node:nth-child(4) .emoji-icon {
    animation-delay: 1.5s;
}

@keyframes emojiFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.emoji-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--elec-text-muted);
    background: var(--elec-card-bg);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--elec-border);
    margin-top: 5px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.map-emoji-node:hover .emoji-label {
    opacity: 1;
}

.new-elec-map-svg {
    /* Deprecated SVG class, keeping just in case or remove */
    display: none;
}

.new-elec-solution-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.new-elec-step-card {
    background: var(--elec-panel-bg);
    border: 1px solid var(--elec-border);
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    padding-left: 50px;
}

.new-elec-step-card:hover,
.new-elec-step-card.active {
    border-color: var(--elec-accent-blue);
    transform: translateX(10px);
}

html[data-theme="dark"] .new-elec-step-card,
body.dark-mode .new-elec-step-card {
    background: #141822;
    border-color: rgba(41, 175, 227, 0.2);
}

.new-elec-step-num {
    position: absolute;
    left: 15px;
    top: 20px;
    color: var(--elec-accent-blue);
    font-weight: 700;
    font-size: 18px;
}

.new-elec-step-card h4 {
    margin: 0 0 5px 0;
    color: var(--elec-title-color);
    font-size: 16px;
}

.new-elec-step-card p {
    font-size: 13px;
    color: var(--elec-text-muted);
    margin: 0;
}

/* ==========================================================================
   SECTION 3: CLASSES (ORBITAL)
   ========================================================================== */
#new-elec-classes {
    padding-bottom: 100px;
    /* Default (Light Mode) */
    background: transparent;
    color: #1a1a2e;
}

/* Dark Mode Overrides */
html[data-theme="dark"] #new-elec-classes,
body.dark-mode #new-elec-classes {
    background: #0b0f19;
    color: #f0f4f8;
}

.new-elec-orbit-system {
    position: relative;
    height: 500px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-elec-orbits-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(0, 70, 133, 0.1);
    /* Light mode orbit lines */
    transform: rotateX(60deg) scale(0.8);
    opacity: 0.6;
}

/* Light Mode Ring Colors */
.new-elec-orbits-bg,
.new-elec-orbits-bg::before,
.new-elec-orbits-bg::after {
    border-color: rgba(0, 70, 133, 0.15);
}

/* Dark Mode Ring Colors */
html[data-theme="dark"] .new-elec-orbits-bg,
body.dark-mode .new-elec-orbits-bg,
html[data-theme="dark"] .new-elec-orbits-bg::before,
body.dark-mode .new-elec-orbits-bg::before {
    border-color: rgba(41, 175, 227, 0.2);
}

.new-elec-class-display {
    position: relative;
    z-index: 5;
    text-align: center;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* ======================================================================
   PARTICLE CHAMBER VISUAL
   ====================================================================== */
.new-elec-particle-chamber {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto;
}

.chamber-glass {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 60%, transparent 80%);
    box-shadow:
        inset 0 0 20px rgba(65, 184, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

html[data-theme="dark"] .chamber-glass {
    background: radial-gradient(circle at 30% 30%, rgba(41, 175, 227, 0.1) 0%, rgba(10, 20, 40, 0.8) 100%);
    box-shadow:
        inset 0 0 30px rgba(41, 175, 227, 0.2),
        0 0 50px rgba(41, 175, 227, 0.1);
    border: 1px solid rgba(41, 175, 227, 0.3);
}

.chamber-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--elec-accent-blue), transparent 70%);
    opacity: 0.1;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

/* Particles */
.elec-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--elec-text-main);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(0.5px);
}

html[data-theme="dark"] .elec-particle {
    background: #fff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Particle Positions & Animations */
.p1 {
    top: 20%;
    left: 30%;
    animation: floatP 8s infinite ease-in-out;
}

.p2 {
    top: 60%;
    left: 70%;
    animation: floatP 12s infinite ease-in-out reverse;
}

.p3 {
    top: 40%;
    left: 50%;
    animation: floatP 6s infinite ease-in-out 1s;
}

.p4 {
    top: 70%;
    left: 20%;
    animation: floatP 10s infinite ease-in-out 0.5s;
    width: 4px;
    height: 4px;
}

.p5 {
    top: 30%;
    left: 80%;
    animation: floatP 15s infinite ease-in-out;
    width: 4px;
    height: 4px;
}

.p6 {
    top: 50%;
    left: 40%;
    animation: floatP 9s infinite ease-in-out 2s;
}

.p7 {
    top: 80%;
    left: 60%;
    animation: floatP 11s infinite ease-in-out;
    width: 3px;
    height: 3px;
}

.p8 {
    top: 15%;
    left: 60%;
    animation: floatP 13s infinite ease-in-out 1s;
    width: 3px;
    height: 3px;
}

.p9 {
    top: 65%;
    left: 85%;
    animation: floatP 14s infinite ease-in-out;
}

.p10 {
    top: 35%;
    left: 15%;
    animation: floatP 16s infinite ease-in-out 2s;
}

@keyframes floatP {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(15px, -15px);
    }

    66% {
        transform: translate(-10px, 10px);
    }
}

/* Density States - Controlled by JS */
/* ISO 5 (Very Low) */
.chamber-density-iso5 .elec-particle.p1 {
    opacity: 0.5;
}

/* ISO 6 (Low) */
.chamber-density-iso6 .elec-particle:nth-child(-n+3) {
    opacity: 0.6;
}

/* ISO 7 (Medium) */
.chamber-density-iso7 .elec-particle:nth-child(-n+6) {
    opacity: 0.7;
}

/* ISO 8 (High) */
.chamber-density-iso8 .elec-particle {
    opacity: 0.8;
}


/* Button Styles Refined */
.new-elec-class-btn {
    background: var(--elec-card-bg);
    /* Add bg to cover orbits */
    border: 1px solid var(--elec-border);
    color: var(--elec-text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.new-elec-class-btn.active,
.new-elec-class-btn:hover {
    background: var(--elec-accent-blue);
    color: #fff;
    border-color: var(--elec-accent-blue);
    box-shadow: 0 0 15px rgba(41, 175, 227, 0.4);
}

.new-elec-class-info h3 {
    color: var(--elec-title-color);
    margin-bottom: 5px;
}

.new-elec-class-info p {
    color: var(--elec-text-muted);
    font-size: 14px;
}

/* ==========================================================================
   SECTION 4: USE CASES (CAROUSEL)
   ========================================================================== */
#new-elec-usecases {
    background: #ffffff;
}

html[data-theme="dark"] #new-elec-usecases,
body.dark-mode #new-elec-usecases {
    background: linear-gradient(180deg, #0b0f19 0%, #101624 100%);
}

.new-elec-carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 5px;
    scroll-snap-type: x mandatory;
    padding-bottom: 40px;
}

.new-elec-carousel-track::-webkit-scrollbar {
    height: 6px;
}

.new-elec-carousel-track::-webkit-scrollbar-thumb {
    background: var(--elec-border);
    border-radius: 3px;
}

.new-elec-case-card {
    min-width: 300px;
    flex: 1;
    background: var(--elec-card-bg);
    /* Use card-bg instead of panel-bg (white in light) */
    border: 1px solid var(--elec-border);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    scroll-snap-align: center;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .new-elec-case-card,
body.dark-mode .new-elec-case-card {
    background: #141822;
    box-shadow: none;
}

.new-elec-case-card:hover {
    transform: translateY(-10px);
    border-color: var(--elec-accent-blue);
}

.new-elec-case-img {
    height: 160px;
    background: #000;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.new-elec-case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

html[data-theme="dark"] .new-elec-case-img img,
body.dark-mode .new-elec-case-img img {
    opacity: 0.8;
}

.new-elec-case-tag {
    font-size: 10px;
    background: rgba(41, 175, 227, 0.15);
    color: var(--elec-accent-blue);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.new-elec-use-title {
    color: var(--elec-title-color);
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 18px;
}

/* ==========================================================================
   SECTION 5: PRODUCTS (SHOWROOM)
   ========================================================================== */
#new-elec-products {
    background: #f8f9fa;
    /* Light mode bg */
}

html[data-theme="dark"] #new-elec-products,
body.dark-mode #new-elec-products {
    background: #0b0f19;
}

.new-elec-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.new-elec-filter-btn {
    background: transparent;
    color: var(--elec-text-muted);
    border: none;
    font-size: 14px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.new-elec-filter-btn.active {
    color: var(--elec-title-color);
    border-bottom-color: var(--elec-accent-blue);
}

.new-elec-showroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.new-elec-prod-card {
    background: #ffffff;
    /* Light mode card */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .new-elec-prod-card,
body.dark-mode .new-elec-prod-card {
    background: #141822;
    /* Dark mode card */
    box-shadow: none;
}

.new-elec-prod-card:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 5;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .new-elec-prod-card:hover,
body.dark-mode .new-elec-prod-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.new-elec-prod-img {
    height: 200px;
    position: relative;
}

.new-elec-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-elec-prod-content {
    padding: 20px;
}

.new-elec-prod-title {
    color: var(--elec-title-color);
    font-size: 16px;
    margin-bottom: 8px;
}

.new-elec-prod-desc {
    /* Active is always white text */
    box-shadow: 0 0 15px rgba(41, 175, 227, 0.4);
}

.new-elec-class-info h3 {
    color: var(--elec-title-color);
    margin-bottom: 5px;
}

.new-elec-class-info p {
    color: var(--elec-text-muted);
    font-size: 14px;
}

/* ==========================================================================
   SECTION 4: USE CASES (CAROUSEL)
   ========================================================================== */
#new-elec-usecases {
    background: #ffffff;
}

html[data-theme="dark"] #new-elec-usecases,
body.dark-mode #new-elec-usecases {
    background: linear-gradient(180deg, #0b0f19 0%, #101624 100%);
}

.new-elec-carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 5px;
    scroll-snap-type: x mandatory;
    padding-bottom: 40px;
}

.new-elec-carousel-track::-webkit-scrollbar {
    height: 6px;
}

.new-elec-carousel-track::-webkit-scrollbar-thumb {
    background: var(--elec-border);
    border-radius: 3px;
}

.new-elec-case-card {
    min-width: 300px;
    flex: 1;
    background: var(--elec-card-bg);
    /* Use card-bg instead of panel-bg (white in light) */
    border: 1px solid var(--elec-border);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    scroll-snap-align: center;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .new-elec-case-card,
body.dark-mode .new-elec-case-card {
    box-shadow: none;
}

.new-elec-case-card:hover {
    transform: translateY(-10px);
    border-color: var(--elec-accent-blue);
}

.new-elec-case-img {
    height: 160px;
    background: #000;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.new-elec-case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

html[data-theme="dark"] .new-elec-case-img img,
body.dark-mode .new-elec-case-img img {
    opacity: 0.8;
}

.new-elec-case-tag {
    font-size: 10px;
    background: rgba(41, 175, 227, 0.15);
    color: var(--elec-accent-blue);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.new-elec-use-title {
    color: var(--elec-title-color);
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 18px;
}

/* ==========================================================================
   SECTION 5: PRODUCTS (SHOWROOM)
   ========================================================================== */
#new-elec-products {
    background: #f8f9fa;
    /* Light mode bg */
}

html[data-theme="dark"] #new-elec-products,
body.dark-mode #new-elec-products {
    background: #0b0f19;
}

.new-elec-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.new-elec-filter-btn {
    background: transparent;
    color: var(--elec-text-muted);
    border: none;
    font-size: 14px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.new-elec-filter-btn.active {
    color: var(--elec-title-color);
    border-bottom-color: var(--elec-accent-blue);
}

.new-elec-showroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.new-elec-prod-card {
    background: #ffffff;
    /* Light mode card */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .new-elec-prod-card,
body.dark-mode .new-elec-prod-card {
    background: #141822;
    /* Dark mode card */
    box-shadow: none;
}

.new-elec-prod-card:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 5;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .new-elec-prod-card:hover,
body.dark-mode .new-elec-prod-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.new-elec-prod-img {
    height: 200px;
    position: relative;
}

.new-elec-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-elec-prod-content {
    padding: 20px;
}

.new-elec-prod-title {
    color: var(--elec-title-color);
    font-size: 16px;
    margin-bottom: 8px;
}

.new-elec-prod-desc {
    color: var(--elec-text-muted);
    font-size: 13px;
    margin-bottom: 15px;
}

.new-elec-class-selector {
    display: flex;
    /* Ensure flex layout is explicit */
    flex-wrap: wrap;
    /* Handle smaller screens well */
    justify-content: center;
    /* Center visuals */
    gap: 10px;
    /* Spacing between buttons */
    /* Fix Interactivity */
    position: relative;
    z-index: 20;
}

.new-elec-prod-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid transparent;
    transition: border-color 0.3s;
    border-radius: 10px;
}

.new-elec-prod-card:hover .new-elec-prod-overlay {
    border-color: var(--elec-accent-blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .new-elec-radar-wrapper,
    .new-elec-blueprint-grid {
        grid-template-columns: 1fr;
    }

    .new-elec-radar-container {
        width: 300px;
        height: 300px;
    }

    .new-elec-orbit-system {
        height: 400px;
    }

    .new-elec-orbits-bg {
        width: 300px;
        height: 300px;
        inset: 0 !important;
    }
}

/* Fix Interactivity for Class Selector */
.new-elec-class-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 20;
    /* High z-index to click above background animations */
    margin-bottom: 40px;
}


/* New Radar Nodes */
.node-vibration {
    top: 75%;
    left: 25%;
}

.node-humidity {
    top: 25%;
    left: 75%;
}

.node-temp {
    top: 80%;
    left: 60%;
}

/* Class Specs Grid */
.new-elec-class-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--elec-border);
}

.new-elec-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.new-elec-spec-icon {
    width: 30px;
    height: 30px;
    background: rgba(41, 175, 227, 0.1);
    color: var(--elec-accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.new-elec-spec-content {
    display: flex;
    flex-direction: column;
}

.new-elec-spec-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--elec-text-muted);
    letter-spacing: 0.5px;
}

.new-elec-spec-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--elec-title-color);
}

/* Slider Controls */
.new-elec-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Hide scrollbar for slider effect */
}

/* Ensure track is wider than container for sliding */
.new-elec-carousel-track {
    /* Existing flex styles are good, but we need to ensure smoother transition if using offsets */
    scroll-behavior: smooth;
    /* Hide scrollbars */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.new-elec-carousel-track::-webkit-scrollbar {
    display: none;
}

.elec-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--elec-card-bg);
    border: 1px solid var(--elec-border);
    border-radius: 50%;
    color: var(--elec-title-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.elec-slider-btn:hover {
    background: var(--elec-accent-blue);
    color: #fff;
    border-color: var(--elec-accent-blue);
}

.elec-slider-btn.prev {
    left: 10px;
}

.elec-slider-btn.next {
    right: 10px;
}

/* In dark mode, buttons need to be visible */
html[data-theme='dark'] .elec-slider-btn {
    background: #1a202c;
    border-color: #2d3748;
}

@media (max-width: 768px) {
    .new-elec-class-specs {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .elec-slider-btn.prev {
        left: 0;
    }

    .elec-slider-btn.next {
        right: 0;
    }
}

/* Fixed Symmetrical Label Positioning */
/* Right Side (ESD, Humidity, Temp) */
.node-esd .new-elec-node-label,
.node-humidity .new-elec-node-label,
.node-temp .new-elec-node-label {
    top: 50%;
    left: 100%;
    right: auto;
    bottom: auto;
    margin-left: 15px;
    transform: translateY(-50%);
}

/* Left Side (Audits, Vibration) */
.node-audits .new-elec-node-label,
.node-vibration .new-elec-node-label {
    top: 50%;
    right: 100%;
    left: auto;
    bottom: auto;
    margin-right: 15px;
    transform: translateY(-50%);
}

/* Bottom Side (Chemicals) */
.node-chemicals .new-elec-node-label {
    top: auto;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}