/* ----------------------------------------------------
   DUTON DIVISION SPECIFIC STYLE OVERRIDES
   ---------------------------------------------------- */
@import url("../css/main.css?v=1.0.8");

:root {
    /* Yellow/Amber Theme Accents */
    --accent-color: #EAB308;
    --accent-glow: rgba(234, 179, 8, 0.15);
    --accent-glow-strong: rgba(234, 179, 8, 0.3);
    --accent-hover: #CA8A04;
    --accent-bg-soft: rgba(234, 179, 8, 0.08);
}

/* Base custom modifications */
.accent-text {
    color: var(--accent-color);
}

.highlight-italic {
    color: var(--accent-color);
    font-style: italic;
}

/* Custom Navigation highlights */
.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

.theme-switch-pill {
    background-color: var(--accent-color) !important;
}

/* Hero Section */
.duton-hero {
    position: relative;
    padding: 180px 0 100px;
    background: radial-gradient(circle at 10% 20%, var(--accent-glow) 0%, transparent 40%);
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.duton-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 992px) {
    .duton-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

.hero-badge {
    display: inline-block;
    background: var(--accent-bg-soft);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    border: 1px solid rgba(234, 179, 8, 0.15);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 40px;
    }
}

.hero-desc {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    max-width: 600px;
}

@media (max-width: 992px) {
    .hero-desc {
        margin: 0 auto 36px;
    }
}

/* 3D Visual Section */
.canvas-card-3d {
    background: var(--bg-light);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    height: 480px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

body[data-theme="dark"] .canvas-card-3d {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.canvas-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

/* Product Catalog & 3D Hotspot Styles */
.prod-section {
    padding: 100px 0;
}

.plc-hotspot-tooltip {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: rgba(18, 18, 18, 0.95); /* Dark metallic look */
    border: 1.5px solid var(--accent-color);
    color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    z-index: 20;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    display: none; /* Controlled by JS click */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.plc-hotspot-tooltip.active {
    display: block;
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tooltip-badge {
    background: var(--accent-bg-soft);
    color: var(--accent-color);
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tooltip-close {
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 20px;
    cursor: pointer;
}

.tooltip-close:hover {
    color: #ffffff;
}

.plc-hotspot-tooltip h4 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.plc-hotspot-tooltip p {
    color: #d1d5db;
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.tooltip-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-bottom: 12px;
}

.tooltip-specs-table td {
    padding: 4px 0;
    border-bottom: 1px solid #374151;
    font-size: 11px;
}

.tooltip-specs-table td:first-child {
    color: #9ca3af;
    font-weight: 600;
}

.tooltip-specs-table td:last-child {
    color: #ffffff;
    text-align: right;
    font-family: var(--font-mono);
}

/* Catalog Layout */
.catalog-container {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 48px;
}

.catalog-tabs {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 16px;
    overflow-x: auto;
}

.catalog-tab-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition-quick);
    flex: 1;
    min-width: 150px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-muted);
}

.catalog-tab-btn i {
    width: 18px;
    height: 18px;
}

.catalog-tab-btn:hover {
    color: var(--accent-color);
    background: var(--accent-bg-soft);
}

.catalog-tab-btn.active {
    background: var(--color-primary);
    color: var(--bg-white);
    border-color: var(--color-primary);
}

body[data-theme="dark"] .catalog-tab-btn.active {
    background: var(--accent-color);
    color: #121212;
    border-color: var(--accent-color);
}

.catalog-content-panel {
    background: var(--bg-white);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    min-height: 380px;
}

body[data-theme="dark"] .catalog-content-panel {
    background: var(--bg-light);
}

.catalog-product-details {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.catalog-product-details.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.prod-details-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: center;
}

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

.prod-illustration-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    height: 280px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body[data-theme="dark"] .prod-illustration-box {
    background: var(--bg-white);
}

.prod-img-mock {
    width: 140px;
    height: 200px;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cpu-mock {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #475569;
}

.scada-mock {
    width: 240px;
    height: 160px;
    background: linear-gradient(135deg, #020617 0%, #1e1b4b 100%);
    border: 1.5px solid #2563eb;
}

.nodex-mock {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3f3f46 0%, #18181b 100%);
    border: 1px solid #71717a;
}

.nos3-mock {
    width: 100px;
    height: 220px;
    background: linear-gradient(135deg, #78716c 0%, #44403c 100%);
    border: 1px solid #a8a29e;
}

.rack-indicator-leds {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.led-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3f3f46;
}

.led-dot.green.active {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.led-dot.amber {
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.chart-line-mock {
    position: absolute;
    top: 30px;
    left: 20px;
    right: 20px;
    height: 60px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    background: linear-gradient(90deg, transparent 50%, rgba(37, 99, 235, 0.15) 50%);
    background-size: 20px 100%;
}

.node-sensor-head {
    position: absolute;
    top: 20px;
    width: 40px;
    height: 20px;
    background: #eab308;
    border-radius: 4px;
}

.nos-mic-element {
    position: absolute;
    top: -20px;
    left: 38px;
    width: 24px;
    height: 60px;
    background: #1c1917;
    border-radius: 12px;
}

.mock-device-lbl {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
}

.prod-specs-box .prod-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.prod-specs-box .prod-desc {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.specs-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.specs-table td:first-child {
    color: var(--color-text-muted);
    font-weight: 600;
    width: 160px;
}

.specs-table td:last-child {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
}

.prod-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.prod-actions .btn {
    padding: 14px 28px;
    font-weight: 700;
}

/* Live SCADA Simulation Section */
.scada-section {
    padding: 100px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.scada-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: flex-start;
}

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

.scada-dashboard {
    background: #0B0F19; /* Futuristic Dark SCADA interface background */
    border: 1px solid #1E293B;
    border-radius: 24px;
    padding: 30px;
    color: #94A3B8;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1E293B;
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.dashboard-title {
    font-family: var(--font-mono);
    color: #F8FAFC;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-status {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-status.anomaly {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.scada-chart-container {
    height: 260px;
    position: relative;
    margin-bottom: 24px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid #1E293B;
    overflow: hidden;
}

.scada-chart {
    width: 100%;
    height: 100%;
    display: block;
}

.scada-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 576px) {
    .scada-grid-layout {
        grid-template-columns: 1fr;
    }
}

.scada-widget {
    background: #0F172A;
    border: 1px solid #1E293B;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
}

.scada-widget-lbl {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scada-widget-val {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: #F8FAFC;
    margin-top: 6px;
}

.scada-widget-val.warning {
    color: #FBBF24;
}

.scada-widget-val.critical {
    color: #F87171;
}

/* Sound Meter Spec Section */
.sound-section {
    padding: 100px 0;
}

.sound-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: center;
}

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

.sound-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.sound-spec-table td {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.sound-spec-table td:first-child {
    font-weight: 600;
    color: var(--color-primary);
    width: 35%;
}

.sound-spec-table td:last-child {
    color: var(--color-text-muted);
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #121212 !important; /* High contrast black for yellow */
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: #121212 !important;
}

.btn-outline-accent {
    background: transparent;
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-quick);
}

.btn-outline-accent:hover {
    background: var(--accent-color);
    color: #121212;
}

.btn-trigger-modal {
    transition: var(--transition-quick);
}
.btn-trigger-modal:hover {
    background-color: var(--accent-color);
    color: #121212;
    border-color: var(--accent-color);
}

/* Call to Action banner */
.cta-banner {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-radius: 32px;
    padding: 80px 60px;
    text-align: center;
    color: #121212;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    box-shadow: 0 20px 50px var(--accent-glow-strong);
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 36px;
    opacity: 0.9;
}

.cta-banner .btn {
    background: #121212 !important;
    color: #FFFFFF !important;
    border: none !important;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 36px;
}

.cta-banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
