:root {
    --bg-dark: #0a0e17;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary-cyan: #00f3ff;
    --primary-green: #00ff9d;
    --accent-purple: #bd00ff;
    --text-main: #ffffff;
    --text-muted: #a0a8b8;
    --glow-strength: 0px 0px 20px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor handling */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-cyan);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-cyan);
    transition: width 0.2s, height 0.2s;
}

/* Typography & Utilities */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--primary-cyan);
}

.btn-primary,
.btn-secondary,
.btn-submit,
.btn-small {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: none;
}

.btn-primary,
.btn-submit {
    background: linear-gradient(45deg, var(--primary-cyan), var(--accent-purple));
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    border: none;
}

.btn-secondary {
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
}

.btn-primary:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 15px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-cyan);
}

.mobile-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: top center;
}

.glow-sphere {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 30px;
}

.stats-row {
    margin-top: 50px;
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hologram-container {
    position: relative;
    width: 400px;
    height: 300px;
}

.base-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.8;
    filter: sepia(100%) hue-rotate(180deg) saturate(200%);
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-cyan);
    box-shadow: 0 0 15px var(--primary-cyan);
    animation: scan 3s infinite linear;
    z-index: 5;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.point {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-green);
    cursor: help;
}

.p1 {
    top: 30%;
    left: 40%;
    animation: pulse 2s infinite;
}

.p2 {
    top: 60%;
    left: 70%;
    animation: pulse 2s infinite 0.5s;
}

.p3 {
    top: 45%;
    left: 20%;
    animation: pulse 2s infinite 1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* AI Scanner Section */
.scan-section {
    padding: 100px 10%;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f1623 100%);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    margin-bottom: 50px;
}

.scanner-interface {
    max-width: 800px;
    margin: 0 auto;
}

.scan-window {
    background: #000;
    border: 1px solid var(--primary-cyan);
    height: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scan-overlay {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1566093097221-ac2335b09e70?q=80&w=2938&auto=format&fit=crop') center/cover;
    opacity: 0.3;
    filter: grayscale(100%) contrast(1.2);
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 157, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 157, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
}

.scan-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 2px;
    background: var(--primary-cyan);
    box-shadow: 0 0 50px var(--primary-cyan);
    animation: rotate-scan 4s infinite linear;
}

@keyframes rotate-scan {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.status-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 5px;
}

.status-active {
    color: var(--primary-green);
}

.blinking {
    animation: blink 1s infinite;
    color: var(--primary-cyan);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.scan-trigger {
    position: relative;
    z-index: 10;
    padding: 15px 40px;
    background: var(--primary-cyan);
    border: none;
    font-weight: 700;
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 2px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    transition: 0.3s;
}

.scan-trigger:hover {
    background: #fff;
    color: #000;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.scan-result {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 23, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.hidden {
    display: none !important;
}

.result-bar {
    width: 80%;
    margin: 10px 0;
    text-align: left;
}

.result-bar label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.progress {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-cyan));
    width: 0;
    /* Animated via JS */
    transition: width 1s ease-out;
}

/* Services Section */
.services-section {
    padding: 100px 10%;
    position: relative;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.service-card li i {
    color: var(--primary-green);
    margin-right: 10px;
}

.card-glow {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
}

.sun-glow {
    background: orange;
}

.wind-glow {
    background: lightblue;
}

.tech-glow {
    background: purple;
}

/* Contact Section */
.contact-section {
    padding: 100px 10%;
    background: linear-gradient(0deg, #05070a 0%, var(--bg-dark) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 1.2rem;
}

.contact-item i {
    color: var(--primary-cyan);
}

.contact-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 5px;
    outline: none;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-muted);
    transition: 0.3s;
    pointer-events: none;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-dark);
    padding: 0 5px;
    color: var(--primary-cyan);
}

.input-group input:focus {
    border-color: var(--primary-cyan);
}

/* Tech Section (New Features) */
.tech-section {
    padding: 100px 10%;
    background: #0f1623;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.tech-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.tech-item h3 {
    color: var(--primary-cyan);
    margin-bottom: 5px;
}

.tech-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* 3D Container */
#turbine-canvas-container {
    flex: 1;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: move;
}

.tech-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--primary-green);
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--primary-green);
    display: flex;
    gap: 15px;
}

/* Radar */
#drone-radar {
    width: 100%;
    flex: 1;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 70%);
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.1);
}

.radar-stats {
    position: absolute;
    top: 30px;
    right: 30px;
    text-align: right;
    font-family: monospace;
}

/* Cleaning Slider (Before/After) */
.cleaning-section {
    padding: 100px 10%;
    text-align: center;
}

.comparison-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--primary-cyan);
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1592833159155-c62df1b65634?q=80&w=2574&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

/* Dirty State (Before) */
.before {
    filter: sepia(50%) brightness(50%) contrast(80%) blur(1px);
    z-index: 1;
}

/* Clean State (After) - Cropped by scroller */
.after {
    width: 50%;
    /* Initial state */
    filter: brightness(110%) contrast(110%) saturate(120%);
    z-index: 2;
    border-right: 3px solid var(--primary-cyan);
    box-shadow: 5px 0 20px rgba(0, 243, 255, 0.5);
}

.scroller {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Sync with .after width */
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--primary-cyan);
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: ew-resize;
    box-shadow: 0 0 15px var(--primary-cyan);
}

.comp-label {
    position: absolute;
    top: 20px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-weight: 700;
    border-radius: 5px;
}

.before .comp-label {
    right: 20px;
    color: #ff6b6b;
}

.after .comp-label {
    left: 20px;
    color: var(--primary-green);
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .comparison-container {
        height: 300px;
    }
}


/* Physics Controls (Normal Mode) */
.physics-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--primary-cyan);
    z-index: 10;
}

.control-group {
    margin-bottom: 10px;
}

.control-group label {
    display: block;
    color: var(--primary-cyan);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.control-group input[type=range] {
    width: 150px;
    accent-color: var(--primary-cyan);
}

footer {
    padding: 50px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        height: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Todo: Add Toggle Logic */
    }

    .mobile-toggle {
        display: block;
    }

    .stats-row {
        justify-content: center;
    }
}

/* ======================== */
/* PHASE 3: New Features    */
/* ======================== */

/* 1. Theme Toggle (Navbar) */
.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
    transition: 0.3s;
}

.theme-btn:hover {
    color: #ffaa00;
    /* Sun color */
    transform: rotate(15deg);
}

/* Light Mode Variables */
body.light-mode {
    --bg-dark: #f0f4f8;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-main: #1a1a2e;
    --text-muted: #5a6b7c;
    --primary-cyan: #0077ff;
    /* Darker blue for visibility */
    --glass-border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode .hero-content h1,
body.light-mode .stat-num {
    color: #1a1a2e;
}

/* 2. Weather Widget */
.weather-widget {
    position: fixed;
    top: 100px;
    right: 30px;
    background: rgba(10, 14, 23, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 900;
    transition: 0.3s;
}

body.light-mode .weather-widget {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.weather-icon {
    font-size: 2rem;
    color: #ffaa00;
}

.weather-info .temp {
    font-size: 1.5rem;
    font-weight: 700;
}

.weather-info .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
}

.status-badge.optimal {
    font-size: 0.7rem;
    background: rgba(0, 255, 157, 0.2);
    color: var(--primary-green);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
    display: inline-block;
}

/* 3. AI Chatbot */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.4);
    transition: 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid white;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--bg-dark);
    border: 1px solid var(--primary-cyan);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform-origin: bottom right;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.hidden {
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
}

.chat-header {
    background: linear-gradient(90deg, var(--primary-cyan), var(--accent-purple));
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.bot-info h4 {
    font-size: 1rem;
    margin: 0;
}

.bot-info span {
    font-size: 0.8rem;
    opacity: 0.8;
}

#close-chat {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
}

.message {
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    max-width: 80%;
    font-size: 0.9rem;
}

.message.bot {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-bottom-left-radius: 2px;
}

.message.user {
    background: var(--primary-cyan);
    color: #000;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.quick-replies {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.quick-replies button {
    background: transparent;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.quick-replies button:hover {
    background: var(--primary-cyan);
    color: #000;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 10px;
    border-radius: 20px;
    color: white;
    outline: none;
}

body.light-mode .chat-input input {
    color: black;
    background: rgba(0, 0, 0, 0.05);
}

#send-btn {
    background: var(--primary-cyan);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
}

/* ======================== */
/* PHASE 4: Expansion       */
/* ======================== */

/* 1. Carbon Ticker (Hero) */
.carbon-stat .stat-num {
    color: #00ff9d;
    /* Green for ecology */
    font-family: 'Courier New', monospace;
    letter-spacing: -1px;
}

/* 2. 3D Globe Container (Replaces Radar) */
.globe-container {
    background: rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#globe-canvas-container {
    width: 100%;
    height: 300px;
}

.globe-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 3. ROI Calculator */
.roi-section {
    padding: 100px 50px;
    background: linear-gradient(to top, var(--bg-dark), rgba(0, 243, 255, 0.05));
    text-align: center;
}

.calculator-card {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.calc-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.calc-input label {
    font-size: 1.1rem;
    color: var(--primary-cyan);
}

.calc-input input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-cyan);
    padding: 15px;
    font-size: 1.5rem;
    color: white;
    border-radius: 10px;
    outline: none;
}

.calc-arrow {
    font-size: 2rem;
    color: var(--text-muted);
    animation: slideRight 1s infinite alternate;
}

@keyframes slideRight {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(10px);
    }
}

/* AI Assistant Widget */
#ai-assistant-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.chat-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--neon-cyan);
    color: #000;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    transition: transform 0.3s;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-fab:hover {
    transform: scale(1.1);
}

.status-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    border: 2px solid #000;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 400px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--neon-cyan);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    display: none;
    /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    transform-origin: bottom right;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-header {
    background: linear-gradient(90deg, #004d40, #000);
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    color: var(--neon-cyan);
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg {
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    line-height: 1.4;
}

.msg.bot {
    background: #222;
    align-self: flex-start;
    border-top-left-radius: 0;
    color: #eee;
}

.msg.user {
    background: var(--neon-cyan);
    color: #000;
    align-self: flex-end;
    border-top-right-radius: 0;
    font-weight: 500;
}

.chat-input-area {
    padding: 10px;
    background: #111;
    border-top: 1px solid #333;
}

.chat-options {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.opt-btn {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.opt-btn:hover {
    background: var(--neon-cyan);
    color: #000;
}

.calc-result {
    flex: 1;
    background: rgba(0, 255, 157, 0.1);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #00ff9d;
}

.calc-result span {
    display: block;
    font-size: 1rem;
    color: #00ff9d;
    margin-bottom: 10px;
}

.saving-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
}

@media (max-width: 768px) {
    .calculator-card {
        flex-direction: column;
    }

    .calc-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
}

/* ======================== */
/* PHASE 5: Configurator    */
/* ======================== */

.configurator-section {
    padding: 100px 50px;
    background: radial-gradient(circle at center, #0f1823, #000);
}

.game-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.game-info {
    display: flex;
    gap: 30px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.info-box {
    text-align: center;
    background: rgba(0, 243, 255, 0.05);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.info-box span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-box strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

#reset-game-btn {
    background: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
}

#reset-game-btn:hover {
    background: #ff6b6b;
    color: white;
}

.solar-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 10px;
}

.grid-cell {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: 0.2s;
}

.grid-cell:hover {
    background: rgba(0, 255, 157, 0.3);
}

.grid-cell.active {
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    border-color: #fff;
}

.game-hint {
    color: var(--text-muted);
    font-style: italic;
}

/* ======================== */
/* PHASE 5: Finance Ticker  */
/* ======================== */

.finance-ticker {
    background: #000;
    border-top: 1px solid var(--primary-cyan);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 9999;
    display: flex;
    align-items: center;
    color: #fff;
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.ticker-wrap {
    width: 100%;
    display: flex;
    align-items: center;
}

.ticker-item {
    background: var(--primary-cyan);
    color: #000;
    padding: 0 20px;
    height: 40px;
    display: flex;
    align-items: center;
    font-weight: bold;
    z-index: 2;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    gap: 50px;
    padding-left: 20px;
}

.ticker-content span {
    white-space: nowrap;
}

.up {
    color: #00ff9d;
}

.down {
    color: #ff6b6b;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Push footer up to avoid overlap */
footer {
    padding-bottom: 60px;
}

/* ======================== */
/* PHASE 6: Cyber Features  */
/* ======================== */

/* 1. Virtual Cyber Field */
.references-section {
    padding: 100px 50px;
    background: #000;
}

.virtual-field-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    border: 1px solid var(--primary-cyan);
    border-radius: 10px;
    overflow: hidden;
    height: 500px;
}

#virtual-field-container {
    width: 100%;
    height: 100%;
}

.overlay-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

/* 2. Neural Search (Matrix) */
#neural-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#neural-search-overlay.hidden {
    display: none;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.search-box-container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 80%;
    max-width: 600px;
}

#neural-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #0f0;
    color: #0f0;
    padding: 20px;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    border-radius: 5px;
}

#neural-search-input::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

#search-status {
    margin-top: 10px;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: #0f0;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;

    /* ======================== */
    /* PHASE 7: Final Polish    */
    /* ======================== */

    /* 1. Boot Preloader */
    #boot-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000;
        z-index: 99999;
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: 'Courier New', monospace;
        color: #0f0;
    }

    .boot-terminal {
        width: 300px;
        text-align: left;
    }

    .boot-line {
        font-size: 1rem;
        margin-bottom: 20px;
        height: 20px;
    }

    .loading-bar {
        width: 100%;
        height: 5px;
        background: #333;
        position: relative;
        overflow: hidden;
    }

    .bar-fill {
        height: 100%;
        background: #0f0;
        width: 0%;
        transition: width 0.1s linear;
    }

    body.booting {
        overflow: hidden;
    }

    /* 2. Login & Dashboard */
    .highlight {
        color: var(--primary-cyan);
        font-weight: bold;
    }

    #login-trigger:hover {
        text-shadow: 0 0 10px var(--primary-cyan);
    }

    #login-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 30000;
        display: flex;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(5px);
    }

    #login-overlay.hidden {
        display: none;
    }

    .login-modal {
        padding: 40px;
        border-radius: 20px;
        border: 1px solid var(--primary-cyan);
        width: 90%;
        max-width: 400px;
        text-align: center;
        position: relative;
    }

    .login-modal h3 {
        color: white;
        margin-bottom: 30px;
        font-family: 'Exo 2', sans-serif;
    }

    .login-modal .input-group input {
        width: 100%;
        padding: 15px;
        margin-bottom: 15px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        border-radius: 5px;
    }

    #login-msg {
        margin-top: 10px;
        height: 20px;
        font-size: 0.9rem;
    }

    .error-msg {
        color: #ff6b6b;
    }

    .success-msg {
        color: #00ff9d;
    }

    /* Dashboard */
    .dashboard-section {
        padding: 100px 50px;
        background: linear-gradient(to bottom, #001f17, #000);
    }

    .dashboard-section.hidden {
        display: none;
    }

    .dashboard-grid {
        max-width: 1200px;
        margin: 50px auto;
        padding: 40px;
        border-radius: 20px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .dash-card {
        background: rgba(0, 0, 0, 0.4);
        padding: 20px;
        border-radius: 10px;
        border: 1px solid var(--primary-cyan);
    }

    .dash-card h3 {
        font-size: 1.2rem;
        color: var(--text-muted);
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .big-stat {
        font-size: 3rem;
        font-weight: 800;
        color: white;
    }

    .stat-trend.up {
        color: #00ff9d;
        font-weight: bold;
    }

    .server-status {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        color: white;
        font-family: 'Courier New', monospace;
    }

    .status-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

    .status-dot.green {
        background: #00ff9d;
        box-shadow: 0 0 10px #00ff9d;
    }

    .status-dot.yellow {
        background: #ffd700;
        box-shadow: 0 0 10px #ffd700;
    }

    .log-list {
        list-style: none;
        padding: 0;
    }

    .log-list li {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--text-muted);
        font-size: 0.9rem;
    }

    /* ======================== */
    /* PHASE 11: Global & AR    */
    /* ======================== */

    /* 1. Logos Marquee */
    .logo-marquee {
        overflow: hidden;
        padding: 40px 0;
        margin-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(0, 0, 0, 0.3);
    }

    .marquee-content {
        display: flex;
        gap: 60px;
        animation: scrollLogos 20s linear infinite;
        width: max-content;
    }

    .marquee-content i {
        font-size: 3rem;
        color: #444;
        /* Grayscale default */
        transition: 0.3s;
    }

    .marquee-content i:hover {
        color: var(--primary-cyan);
        filter: drop-shadow(0 0 10px var(--primary-cyan));
        transform: scale(1.1);
    }

    @keyframes scrollLogos {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    /* 2. AR Modal */
    #ar-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 50000;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(10px);
    }

    #ar-modal.hidden {
        display: none;
    }

    .ar-content {
        padding: 40px;
        text-align: center;
        border: 1px solid var(--primary-green);
        box-shadow: 0 0 50px rgba(0, 255, 157, 0.2);
        position: relative;
        width: 90%;
        max-width: 400px;
    }

    .qr-placeholder {
        margin: 30px 0;
        padding: 20px;
        background: white;
        border-radius: 10px;
        display: inline-block;
    }

    #close-ar {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* 3. Lang Toggle */
    #lang-toggle:hover {
        color: var(--primary-cyan);
        border-color: var(--primary-cyan);
    }

    #logout-btn {
        grid-column: 1 / -1;
        justify-self: end;
    }

    /* ======================== */
    /* PHASE 10: MOBILE RESPONSIVE */
    /* ======================== */

    @media (max-width: 900px) {

        /* 1. Navigation */
        .navbar {
            padding: 15px 20px;
        }

        .nav-links {
            display: none;
            /* Hidden by default */
            position: absolute;
            top: 70px;
            left: 0;
            width: 100%;
            background: rgba(10, 14, 23, 0.98);
            flex-direction: column;
            padding: 30px;
            gap: 20px;
            border-bottom: 1px solid var(--primary-cyan);
            backdrop-filter: blur(20px);
        }

        .nav-links.active {
            display: flex;
            animation: slideDown 0.3s ease-out;
        }

        .nav-links a {
            margin: 0;
            font-size: 1.2rem;
            display: block;
            text-align: center;
            padding: 10px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        .mobile-toggle {
            display: block;
            cursor: pointer;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 2. Hero Section */
        .hero-section {
            padding: 100px 20px 20px;
            /* Top padding for fixed nav */
            flex-direction: column;
            height: auto;
            text-align: center;
        }

        .hero-content {
            margin-bottom: 50px;
        }

        .hero-content h1 {
            font-size: 2.5rem;
        }

        .hero-buttons {
            justify-content: center;
        }

        .stats-row {
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
        }

        .stat-item {
            min-width: 40%;
        }

        .glow-sphere {
            width: 100vw;
            height: 100vw;
            top: 0;
            right: 0;
            opacity: 0.5;
        }

        /* 3. Global Grids & Sections */
        .tech-grid,
        .contact-grid,
        .cards-container {
            grid-template-columns: 1fr;
        }

        .tech-item.three-d-container,
        .tech-item.globe-container {
            height: 400px;
            /* Limit height on mobile */
        }

        .service-card {
            margin-bottom: 20px;
        }

        /* 4. Utilities */
        .weather-widget {
            top: 80px;
            right: 10px;
            transform: scale(0.8);
            transform-origin: top right;
            background: rgba(0, 0, 0, 0.8);
            /* More contrast */
        }

        .chatbot-widget {
            bottom: 20px;
            right: 20px;
        }

        .chat-window {
            width: 90vw;
            bottom: 80px;
            right: 5vw;
        }

        /* 5. Hide Heavy Elements if needed */
        .hero-visual {
            display: none;
            /* Hide 3D hologram on mobile for performance/space */
        }

        /* Configurator */
        .solar-grid {
            grid-template-columns: repeat(10, 1fr);
            /* Keep grid but scale down cells */
            gap: 2px;
        }

        .grid-cell {
            height: 30px;
            /* Smaller cells */
        }
    }

    /* Phase 18: Exploded Solar Panel Styles */
    .tech-deep-dive {
        padding: 100px 5%;
        position: relative;
    }

    .exploded-view-container {
        height: 600px;
        width: 100%;
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        margin-top: 40px;
    }

    #exploded-canvas-container {
        width: 100%;
        height: 100%;
    }

    .scroll-instruction {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        color: var(--neon-cyan);
        animation: bounce 2s infinite;
        z-index: 10;
        pointer-events: none;
    }

    .panel-label {
        position: absolute;
        background: rgba(0, 0, 0, 0.8);
        border: 1px solid var(--neon-cyan);
        color: #fff;
        padding: 10px 20px;
        border-radius: 5px;
        font-family: 'Exo 2', sans-serif;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    #label-glass {
        top: 30%;
        left: 70%;
    }

    #label-cell {
        top: 50%;
        left: 70%;
    }

    #label-backsheet {
        top: 70%;
        left: 70%;
    }


    /* Phase 18: Exploded View Styles */
    .exploded-view-container {
        width: 100%;
        height: 600px;
        position: relative;
        overflow: hidden;
        background: radial-gradient(circle at center, rgba(0, 20, 40, 0.5), transparent);
    }

    #exploded-canvas-container {
        width: 100%;
        height: 100%;
    }

    #exploded-canvas-container canvas {
        display: block;
        width: 100%;
        height: 100%;
    }

    @media (max-width: 768px) {
        .exploded-view-container {
            height: 400px;
        }
    }


    /* Phase 18: Grid Manager Game Styles */
    #grid-game-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        z-index: 2000;
        display: flex;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(10px);
    }

    .game-window {
        width: 600px;
        padding: 30px;
        border: 2px solid var(--neon-cyan);
        border-radius: 15px;
        background: rgba(10, 20, 30, 0.95);
        box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
    }

    .game-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
    }

    #close-game {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .status-panel {
        display: flex;
        justify-content: space-between;
        margin-bottom: 30px;
    }

    .metric {
        text-align: center;
    }

    .digital-val {
        font-family: 'Courier New', monospace;
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--neon-cyan);
        margin-top: 5px;
    }

    .game-visual {
        height: 150px;
        background: #000;
        border: 1px solid #333;
        position: relative;
        overflow: hidden;
        margin-bottom: 30px;
    }

    .frequency-line {
        position: absolute;
        top: 50%;
        width: 100%;
        height: 2px;
        background: rgba(255, 255, 255, 0.2);
    }

    #freq-indicator {
        width: 10px;
        height: 10px;
        background: var(--neon-cyan);
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 10px var(--neon-cyan);
        transition: top 0.1s linear;
    }

    .controls-panel {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .control-slider label {
        display: block;
        margin-bottom: 10px;
        color: #ccc;
    }

    .control-slider input {
        width: 100%;
    }

    .game-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #game-timer {
        font-family: 'Courier New', monospace;
        font-size: 1.2rem;
        color: #ffd700;
    }

    #game-message {
        margin-top: 15px;
        text-align: center;
        font-weight: bold;
        min-height: 20px;
    }

    .game-over {
        color: #ff6b6b;
    }

    .game-win {
        color: #00ff9d;
    }

    @media (max-width: 600px) {
        .game-window {
            width: 95%;
            padding: 20px;
        }

        .status-panel {
            flex-direction: column;
            gap: 15px;
        }
    }
}