:root {
    /* Visual Identity (Electric Kinetic Palette) */
    --neon-green: #39FF14;
    --neon-green-glow: rgba(57, 255, 20, 0.4);
    --deep-asphalt: #121212;
    --electric-cobalt: #2E5BFF;
    --tech-grey: #1E1E1E;
    --tech-grey-light: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-snappy: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dark-mode-kinetic {
    background-color: var(--deep-asphalt);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Map Simulation */
.map-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.15;
    background-image: 
        linear-gradient(var(--tech-grey-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--tech-grey-light) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.map-scan-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green);
    opacity: 0.5;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.text-neon {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-glow);
}

.monospace-tel, .monospace-feed, .metric-value, .badge {
    font-family: var(--font-mono);
}

/* Navigation */
.kinetic-nav {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(18, 18, 18, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--neon-green);
    color: var(--deep-asphalt);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 15px var(--neon-green-glow);
}

.brand-text h1 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    position: relative;
    top: -2px;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    background: rgba(46, 91, 255, 0.2);
    border: 1px solid var(--electric-cobalt);
    color: #8bb1ff;
    border-radius: 4px;
}

.tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-snappy);
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-glow {
    padding: 0.5rem 1rem;
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 10px rgba(57, 255, 20, 0.1);
}

.btn-glow:hover {
    background: var(--neon-green);
    color: var(--deep-asphalt);
    box-shadow: 0 0 20px var(--neon-green-glow);
}

/* Dashboard Layout */
.dashboard-layout {
    max-width: 1400px;
    margin: 100px auto 40px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--tech-grey);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    padding-left: 4rem;
}

.hero-content {
    z-index: 2;
    padding: 4rem 0;
}

.data-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    background: rgba(57, 255, 20, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(57, 255, 20, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 var(--neon-green-glow); }
    70% { transform: scale(3); opacity: 0; box-shadow: 0 0 0 10px rgba(57, 255, 20, 0); }
    100% { transform: scale(1); opacity: 0; }
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--neon-green);
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 80%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--neon-green);
    color: var(--deep-asphalt);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-snappy);
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--neon-green-glow);
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-snappy);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-metrics {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.metric-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.metric-value {
    font-size: 1.8rem;
    color: var(--electric-cobalt);
    font-weight: 700;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-visual {
    position: relative;
    height: 100%;
    width: 100%;
}

.frame-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--tech-grey) 0%, transparent 20%);
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center left;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
}

.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

.bento-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(57, 255, 20, 0.2);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem 2rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid transparent;
}

.border-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header i {
    color: var(--neon-green);
    width: 20px;
    height: 20px;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    font-family: var(--font-mono);
}

.card-body {
    padding: 0 2rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.split-layout {
    display: flex;
    flex-direction: row;
    padding: 0;
}
.split-reverse {
    flex-direction: row-reverse;
}

.card-text {
    flex: 1;
    padding: 1rem 2rem 2rem;
}

.card-text h4, .card-body h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-text p, .card-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tech-list {
    list-style: none;
}
.tech-list li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}
.tech-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 6px;
    height: 6px;
    background: var(--electric-cobalt);
    border-radius: 50%;
}
.tech-list strong {
    color: var(--text-primary);
}

.card-media {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.bento-card:hover .card-media img {
    transform: scale(1.05);
}

/* Specific Cards */
.dispatch-logic .sim-container {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(57, 255, 20, 0.2);
    margin-top: auto;
}
.sim-container .map-visual {
    width: 100%;
    height: 150px;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2);
}
.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.9);
    padding: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-green);
    border-top: 1px solid rgba(57, 255, 20, 0.3);
}

.inline-media {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.co2-tracker {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--neon-green);
    margin-top: auto;
}
.co2-tracker h5 {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.stat-label {
    font-size: 0.9rem;
    color: white;
}
.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.developer-logs .card-text {
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.log-entry {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.5rem;
}
.log-entry .time {
    color: #555;
}
.highlight-log {
    color: var(--neon-green);
}
.highlight-log .time {
    color: var(--neon-green);
}

.matrix-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 1.5rem;
}
.contact-block h5 {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.contact-block p {
    font-size: 1.1rem;
    color: white;
    margin: 0;
}
.email-list a {
    display: block;
    color: var(--electric-cobalt);
    text-decoration: none;
    margin-bottom: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition-snappy);
}
.email-list a:hover {
    color: var(--neon-green);
}

.contact-status {
    grid-column: span 4;
    padding: 1.5rem;
    background: rgba(57, 255, 20, 0.03);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.border-glow {
    border: 1px solid rgba(57, 255, 20, 0.2);
    box-shadow: inset 0 0 20px rgba(57, 255, 20, 0.02);
}
.contact-status p {
    margin: 0;
    color: var(--text-primary);
}
.contact-status .address-small {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 400px;
    text-align: right;
}

.app-footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navigation Logo */
.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

/* Full Width Section */
.full-width-section {
    position: relative;
    width: 100%;
    min-height: 60vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 4rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.4) saturate(0.8);
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--deep-asphalt) 0%, transparent 70%);
    z-index: 1;
}

.section-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

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

.section-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.bento-grid.mini {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 1rem;
}

.border-glow-blue {
    border: 1px solid rgba(46, 91, 255, 0.2);
    background: rgba(46, 91, 255, 0.02);
}

/* Contact Status Tweaks */
.status-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Fix for footer spacing */
.app-footer {
    margin-top: 4rem;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-span-3 {
        grid-column: span 2;
    }
    .hero-section {
        grid-template-columns: 1fr;
        padding-left: 2rem;
    }
    .hero-visual {
        height: 400px;
    }
    .frame-overlay {
        background: linear-gradient(0deg, var(--tech-grey) 0%, transparent 20%);
    }
    .matrix-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-status {
        grid-column: span 2;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .contact-status .address-small {
        text-align: left;
    }
    .full-width-section {
        padding: 2rem;
    }
    .section-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2, .col-span-3 {
        grid-column: span 1;
    }
    .split-layout {
        flex-direction: column;
    }
    .hero-title {
        font-size: 3rem;
    }
    .metric-value {
        font-size: 1.5rem;
    }
    .matrix-layout {
        grid-template-columns: 1fr;
    }
    .contact-status {
        grid-column: span 1;
    }
    .bento-grid.mini {
        grid-template-columns: 1fr;
    }
}
