/*
Theme Name: SunSpark Enterprise Portal Theme
Theme URI: https://sunsparkcorp.example.com
Author: SunSpark Engineering
Author URI: https://sunsparkcorp.example.com
Description: Clean, high-performance modular theme engineered for modular LED lighting enterprise operations and Rep connectivity.
Version: 1.0.0
Text Domain: sunspark
License: GPL-2.0-or-later
Tags: custom-menu, custom-logo, translation-ready
*/

/* --- BRANDING & VISUAL CONSTANTS --- */
:root {
    --pure-black: #000000;
    --deep-black: #000000;
    --slate-base: #cecece;
    --solar-orange: #f48322;
    --radiant-red: #f53f1f;
    --red-orange: #f53f1f;
    --crisp-white: #ffffff;
    
    --font-stack: 'Inter', sans-serif;
    --font-primary: 'Inter', sans-serif;
    --header-height: 90px;
    --focus-outline: 3px solid var(--solar-orange);
    --focus-ring: 3px solid var(--solar-orange);
}

/* --- BASE RESET & ACCESSIBILITY --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--pure-black);
    color: var(--slate-base);
    font-family: var(--font-stack);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 4px;
}

h1, h2, h3, h4 {
    color: var(--crisp-white);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* --- UI COMPONENTS --- */
.btn {
    display: inline-block;
    background: var(--solar-orange);
    color: var(--crisp-white);
    padding: 0.8rem 1.8rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}
.btn:hover {
    background: var(--radiant-red);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--solar-orange);
    color: var(--solar-orange);
}
.btn-outline:hover {
    background: var(--solar-orange);
    color: var(--pure-black);
}
.btn-login {
    background: var(--crisp-white);
    color: var(--pure-black);
}
.btn-login:hover {
    background: var(--solar-orange);
    color: var(--crisp-white);
}
.btn-full {
    width: 100%;
}
.btn-logout {
    margin-top: 2rem;
    background: var(--slate-base);
    color: var(--pure-black);
}

/* --- MEGA MENU (GLASSMORPHISM) --- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 45px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--crisp-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.nav-link:hover { color: var(--solar-orange); }

/* Mega Menu Dropdown */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 320px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(244, 131, 34, 0.3);
    border-radius: 8px;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

.nav-item:hover .mega-menu,
.nav-link[aria-expanded="true"] + .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu h4, .mega-menu-section-title {
    color: var(--solar-orange);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(206, 206, 206, 0.2);
    padding-bottom: 0.5rem;
}
.mega-menu ul, .mega-menu-list { list-style: none; }
.mega-menu li, .mega-menu-list li { margin-bottom: 0.8rem; }
.mega-menu a, .mega-menu-list a {
    color: var(--slate-base);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.mega-menu a:hover, .mega-menu-list a:hover { color: var(--crisp-white); }

/* --- 3D HERO SLIDER --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    perspective: 2000px;
    padding-top: var(--header-height);
}

.slider-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateZ(-500px) rotateY(15deg);
    transition: opacity 1.2s cubic-bezier(0.2, 1, 0.3, 1), transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
    display: flex;
    align-items: center;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    transform: translateZ(0) rotateY(0deg);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--crisp-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slider-btn:hover {
    background: var(--solar-orange);
    border-color: var(--solar-orange);
}

/* --- COMPLIANCE BANNER --- */
.compliance-banner-section {
    position: relative;
    z-index: 10;
    background: rgb(245, 63, 31);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(206, 206, 206, 0.15);
    border-bottom: 1px solid rgba(206, 206, 206, 0.15);
    padding: 1rem 0;
    overflow: hidden;
    perspective: 1000px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.compliance-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    will-change: transform;
}

.compliance-badge {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 35px;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    border-radius: 4px;
    border: 1px solid transparent;
}

.compliance-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.4s ease;
}

.compliance-badge:hover {
    transform: translateZ(15px) rotateX(10deg);
    box-shadow: 0 0 20px rgba(244, 131, 34, 0.4);
    border-color: rgba(244, 131, 34, 0.5);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.compliance-badge:hover img {
    filter: grayscale(0%) opacity(1);
}

/* --- THE 7 OPERATIONAL PILLARS (AIO/GEO OPTIMIZED) --- */
.pillars-section {
    padding: 8rem 0;
    background: #050505;
    position: relative;
    z-index: 5;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}
.section-header h2 { font-size: 2.5rem; color: var(--solar-orange); margin-bottom: 1rem; }

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    perspective: 1200px;
}

.pillar-card-container {
    width: 100%;
    height: 380px;
    perspective: 1500px;
}

.pillar-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 8px;
}

.pillar-card-container:hover .pillar-card-inner,
.pillar-card-container:focus-within .pillar-card-inner {
    transform: rotateY(180deg);
}

.pillar-card-front, .pillar-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
    border-top: 4px solid var(--solar-orange);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pillar-card-front {
    align-items: center;
    text-align: center;
    background: linear-gradient(145deg, rgba(20,20,20,0.9) 0%, rgba(0,0,0,0.9) 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pillar-card-front h3 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--crisp-white);
}

.pillar-card-front::after {
    content: 'Hover to reveal ↺';
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--solar-orange);
    opacity: 0.7;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pillar-card-back {
    transform: rotateY(180deg);
    border-top-color: var(--radiant-red);
    background: linear-gradient(145deg, rgba(15,15,15,1) 0%, rgba(5,5,5,1) 100%);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 20px rgba(244, 131, 34, 0.05) inset;
    justify-content: flex-start;
}

.pillar-card-back p { margin-bottom: 1rem; font-size: 0.95rem; }

/* Declarative Prose lists for AIO */
.semantic-list { list-style: none; transform: translateZ(10px); }
.semantic-list li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.8rem;
    color: var(--slate-base);
}
.semantic-list li svg {
    flex-shrink: 0;
    color: var(--solar-orange);
    margin-top: 2px;
}

/* Application Series Highlight */
.app-series {
    background: linear-gradient(145deg, rgba(244,131,34,0.1) 0%, rgba(245,63,31,0.02) 100%);
    border-color: var(--solar-orange);
}

/* --- FACTORY TRANSPARENCY PIPELINE --- */
.pipeline-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.pipeline-nodes {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1200px;
}

.data-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(180deg, transparent, var(--solar-orange), var(--radiant-red), transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--solar-orange);
    z-index: 1;
}

.pipeline-node {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.pipeline-node.node-right {
    flex-direction: row-reverse;
}

.node-content {
    flex: 1;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border-left: 4px solid var(--solar-orange);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.node-right .node-content {
    border-left: none;
    border-right: 4px solid var(--solar-orange);
    text-align: right;
}

.node-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--solar-orange);
}

.node-figure {
    flex: 1;
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(206, 206, 206, 0.2);
    overflow: hidden;
    background: rgba(17,17,17,0.8);
    transform-style: preserve-3d;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    cursor: crosshair;
}

.node-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    transition: transform 0.5s ease, opacity 0.5s ease;
    mix-blend-mode: luminosity;
    opacity: 0.6;
}

.node-figure:hover .node-image {
    mix-blend-mode: normal;
    opacity: 1;
}

.parallax-scale { transform: scale(1.0); transition: transform 3s ease-out; }
.is-visible .parallax-scale { transform: scale(1.05); }

.tilt-down { transform: rotateX(15deg); transition: transform 1s ease; }
.is-visible .tilt-down { transform: rotateX(0deg); }

.testing-pulse { box-shadow: 0 0 0 rgba(244, 131, 34, 0); }
.is-visible .testing-pulse { animation: pulse-orange 3s infinite alternate ease-in-out; }
@keyframes pulse-orange {
    0% { box-shadow: 0 0 10px rgba(244, 131, 34, 0.2); }
    100% { box-shadow: 0 0 40px rgba(244, 131, 34, 0.6); }
}

.slide-up { transform: translateY(50px); opacity: 0; transition: all 1s ease; }
.is-visible .slide-up { transform: translateY(0); opacity: 1; }

.spotlight-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle 150px at center, rgba(255,255,255,0.15) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}
.node-figure:hover .spotlight-overlay { opacity: 1; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- 3D OUTBOUND PORTAL (CURSOR TRACKING GATEWAY) --- */
.portal-outbound-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #050505 0%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    perspective: 1500px;
}

.portal-gateway-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.portal-gateway-content {
    flex: 1;
}

.portal-gateway-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Cursor tracking element */
.portal-3d-graphic {
    flex: 1;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    will-change: transform;
}

.portal-anchor-link {
    display: block;
    width: 350px;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    text-decoration: none;
}

/* Glowing Frame */
.portal-frame {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(244, 131, 34, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(244, 131, 34, 0.2), inset 0 0 30px rgba(245, 63, 31, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(50px);
    background: radial-gradient(circle, rgba(244, 131, 34, 0.1) 0%, transparent 60%);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.portal-frame::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px dashed var(--radiant-red);
    border-radius: 50%;
    transform: translateZ(-30px);
    opacity: 0.5;
    animation: spin 30s linear infinite;
}

.portal-text {
    transform: translateZ(100px);
    color: var(--crisp-white);
    font-family: var(--font-stack);
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}

.portal-anchor-link:hover .portal-frame {
    border-color: var(--solar-orange);
    box-shadow: 0 0 80px rgba(244, 131, 34, 0.4), inset 0 0 50px rgba(245, 63, 31, 0.2);
}

.portal-anchor-link:focus-visible .portal-frame {
    outline: var(--focus-outline);
    outline-offset: 10px;
}

@keyframes spin {
    100% { transform: translateZ(-30px) rotate(360deg); }
}

/* --- 3D CONTACT PORTAL --- */
.contact-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* GEO/AIO Declarative Text Layer */
.contact-info-block {
    color: var(--slate-base);
}
.contact-info-block h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--solar-orange);
}
.contact-info-block p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.contact-address-list {
    list-style: none;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.contact-address-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 3D Isometric Map Container */
.contact-map-container {
    perspective: 1200px;
    width: 100%;
    height: 600px;
    position: relative;
}

.isometric-map {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="45" fill="none" stroke="%23333" stroke-width="0.5" stroke-dasharray="2 2"/></svg>') no-repeat center center;
    background-size: contain;
    transform: rotateX(20deg) rotateY(-15deg);
    will-change: transform;
}

/* Glowing Nodes */
.map-node {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--solar-orange);
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(20px);
    box-shadow: 0 0 20px 5px rgba(244,131,34,0.6);
    animation: node-pulse 2s infinite alternate;
}
.node-irwindale { top: 40%; left: 15%; }
.node-texas { top: 45%; left: 25%; }
.node-dongguan { top: 45%; left: 80%; }
.node-hanoi { top: 50%; left: 75%; }

@keyframes node-pulse {
    0% { box-shadow: 0 0 15px 2px rgba(244,131,34,0.4); transform: translate(-50%, -50%) translateZ(20px) scale(1); }
    100% { box-shadow: 0 0 30px 8px rgba(244,131,34,0.8); transform: translate(-50%, -50%) translateZ(20px) scale(1.2); }
}

/* Glassmorphic Form */
.glass-form-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(50px);
    width: 90%;
    max-width: 500px;
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    z-index: 10;
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.contact-form .form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(206,206,206,0.3);
    color: var(--crisp-white);
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-input:focus {
    outline: none;
    border-color: var(--solar-orange);
    box-shadow: 0 0 0 3px rgba(244,131,34,0.2);
}

.contact-form .form-input.valid {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46,204,113,0.2);
}

.contact-form .form-input.invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.2);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}
.form-message.success {
    display: block;
    background: rgba(46,204,113,0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}
.form-message.error {
    display: block;
    background: rgba(231,76,60,0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* --- SECURE LIGHTING REP PORTAL MODAL UI --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.rep-portal-ui {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; max-width: 550px;
    height: 100vh;
    background: var(--pure-black);
    border-left: 2px solid var(--solar-orange);
    z-index: 2000;
    padding: 4rem 3rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-shadow: -30px 0 60px rgba(0,0,0,0.8);
}
.rep-portal-ui.open { right: 0; }

.close-portal {
    position: absolute;
    top: 1.5rem; right: 2rem;
    background: none; border: none;
    color: var(--slate-base);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}
.close-portal:hover { color: var(--crisp-white); }

.portal-title { color: var(--solar-orange); margin-bottom: 2rem; }

.form-input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--slate-base);
    color: var(--crisp-white);
    border-radius: 4px;
    font-family: var(--font-stack);
}
.form-input:focus {
    border-color: var(--solar-orange);
    outline: none;
}

.view-state.hidden { display: none; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}
.data-table th, .data-table td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.data-table th { color: var(--solar-orange); text-transform: uppercase; font-size: 0.8rem; }
.data-table a { color: var(--crisp-white); }

.status-pill {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.status-shipped { background: rgba(0,255,100,0.15); color: #00ff88; }
.status-processing { background: rgba(244,131,34,0.15); color: var(--solar-orange); }

/* --- THE INTEGRAL COG PARTNERSHIP ECOSYSTEM --- */
.partnership-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
    position: relative;
    z-index: 10;
}
.partnership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 992px) {
    .partnership-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 3D Kinetic Handshake Graphic */
.handshake-container {
    perspective: 1000px;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.handshake-mesh {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    will-change: transform;
}
/* Simplified geometric representation of hands shaking */
.hand-mesh {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(206,206,206,0.3);
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(4px);
}
.hand-left {
    top: 50px;
    left: 20px;
    border-radius: 20px 0 20px 20px;
    transform: translateZ(-20px) rotateY(15deg);
}
.hand-right {
    top: 100px;
    left: 130px;
    border-radius: 0 20px 20px 20px;
    transform: translateZ(20px) rotateY(-15deg);
}
.handshake-core {
    position: absolute;
    top: 125px;
    left: 125px;
    width: 50px;
    height: 50px;
    background: var(--solar-orange);
    border-radius: 50%;
    transform: translateZ(40px);
    box-shadow: 0 0 20px rgba(244,131,34,0.5);
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, box-shadow, background;
}
.handshake-container:hover .handshake-core {
    background: var(--radiant-red);
    box-shadow: 0 0 60px rgba(245,63,31,0.9);
    transform: translateZ(60px) scale(1.3);
}

/* Supply Chain Values */
.values-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--crisp-white);
}
.values-content p {
    margin-bottom: 1.5rem;
    color: var(--slate-base);
    font-size: 1.1rem;
}
.values-list {
    list-style: none;
    margin-top: 2rem;
}
.values-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}
.values-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--solar-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(244,131,34,0.4);
}
.values-list h3 {
    font-size: 1.2rem;
    color: var(--crisp-white);
    margin-bottom: 0.5rem;
}

/* --- GLOBAL 3D FOOTER --- */
.global-footer {
    background: radial-gradient(circle at center top, #1a1a1a 0%, #000000 100%);
    padding: 6rem 0 2rem;
    position: relative;
    z-index: 50;
    border-top: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    color: var(--slate-base);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    }
}

/* 3D Kinetic Brand Mark */
.footer-brand-container {
    perspective: 800px;
}
.footer-logo {
    height: 60px;
    width: auto;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    will-change: transform;
    opacity: 0.9;
}
.footer-brand-container:hover .footer-logo {
    opacity: 1;
}

/* Footer Links & Interactive CRO */
.footer-col h4 {
    color: var(--crisp-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-link {
    color: var(--slate-base);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
    will-change: transform;
}
.footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--solar-orange);
    transition: width 0.3s ease;
}
.footer-link:hover {
    color: var(--crisp-white);
    transform: scale(1.05) translate3d(0,0,0);
}
.footer-link:hover::after {
    width: 100%;
}

/* Semantic Address block */
.footer-address {
    font-style: normal;
    line-height: 1.8;
}

/* Back to Top Thruster */
.back-to-top {
    position: absolute;
    bottom: 2rem;
    right: 5vw;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crisp-white);
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}
.back-to-top:hover {
    background: var(--radiant-red);
    border-color: var(--radiant-red);
    box-shadow: 0 0 20px rgba(245,63,31,0.6);
    transform: translateY(-5px);
}
.back-to-top svg {
    transition: transform 0.3s ease;
}
.back-to-top:hover svg {
    transform: translate3d(0, -3px, 0);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
.legal-links a {
    color: var(--slate-base);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s;
}
.legal-links a:hover {
    color: var(--crisp-white);
}

/* Hardware Accelerated Reveal Classes */
.reveal-3d {
    opacity: 0;
    transform: translate3d(0, 40px, -60px) rotateX(5deg);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}
.reveal-3d.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg);
}

@media (max-width: 900px) {
    .portal-gateway-container { flex-direction: column; text-align: center; }
    .portal-3d-graphic { height: 350px; }
    .main-nav { display: none; }
    .rep-portal-ui { padding: 3rem 1.5rem; }
    .mobile-hamburger { display: block !important; }
}

/* --- DYNAMIC 3D MOBILE MENU RESPONSIVE SYSTEM --- */
#site-wrapper {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.6s ease, box-shadow 0.6s ease;
    transform-origin: left center;
    background: var(--pure-black);
    position: relative;
    z-index: 10;
    min-height: 100vh;
    will-change: transform, border-radius;
}

body.nav-open #site-wrapper {
    transform: perspective(1200px) rotateY(-18deg) translate3d(280px, 0, -150px) scale(0.85);
    border-radius: 12px;
    box-shadow: -20px 20px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    pointer-events: none; /* Block clicks on main page when menu open */
}

/* Background LED Circuit Viewport */
.mobile-3d-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 10% 50%, #0c0805 0%, #000000 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}
body.nav-open .mobile-3d-bg {
    opacity: 1;
}

#ledCircuitCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.led-ambient-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 50%, rgba(244, 131, 34, 0.08) 0%, transparent 60%);
    pointer-events: none;
    mix-blend-mode: screen;
}

/* 3D Mobile Menu Sidebar Links */
.mobile-3d-menu {
    position: fixed;
    top: var(--header-height);
    left: 45px;
    bottom: 45px;
    width: 280px;
    z-index: 2;
    opacity: 0;
    transform: translate3d(-50px, 0, 0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    display: flex;
    align-items: center;
    pointer-events: none;
}
body.nav-open .mobile-3d-menu {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.mobile-menu-container {
    width: 100%;
}
.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.mobile-menu-links li {
    perspective: 800px;
}
.mobile-menu-links .mob-link {
    color: var(--crisp-white);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
    transform-style: preserve-3d;
}
.mobile-menu-links .mob-link:hover, 
.mobile-menu-links .mob-link:focus-visible {
    color: var(--solar-orange);
    transform: translateZ(10px) translateX(5px);
    outline: none;
}

/* Accessible Kinetic Hamburger button trigger */
.mobile-hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.mobile-hamburger:hover, .mobile-hamburger:focus-visible {
    background: rgba(244, 131, 34, 0.1);
    border-color: var(--solar-orange);
    outline: none;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--crisp-white);
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}
.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}
.hamburger-inner::before {
    top: -6px;
}
.hamburger-inner::after {
    top: 6px;
}

/* Hamburger Animations when active */
body.nav-open .hamburger-inner {
    background-color: transparent !important;
}
body.nav-open .hamburger-inner::before {
    transform: translateY(6px) rotate(45deg);
    background-color: var(--solar-orange);
}
body.nav-open .hamburger-inner::after {
    transform: translateY(-6px) rotate(-45deg);
    background-color: var(--solar-orange);
}

/* Accessibility Focus Ring Fixes */
:focus-visible {
    outline: 2px solid var(--solar-orange) !important;
    outline-offset: 4px;
}
