﻿:root {
    --bg-dark: #050505;
    --bg-overlay: rgba(0, 0, 0, 0.75); 
    --cyan: #00f3ff;
    --magenta: #ff003c;
    --text-primary: #e0e0e0;
    --text-secondary: #aaaaaa;
    --hero-panel: rgba(10, 10, 15, 0.85);
    --font-heading: 'Orbitron', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}
[data-theme="neon"] {
    --bg-overlay: rgba(0, 0, 0, 0.2); 
    --hero-panel: rgba(10, 10, 15, 0.6);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: var(--bg-dark);
    background-image: url('assets/crazy_city.png');
    background-size: 150% auto;
    background-position: center center;
    background-attachment: fixed;
    animation: panBg 40s ease-in-out infinite alternate;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    cursor: none; 
}
a, button {
    cursor: none;
}
.custom-cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--cyan);
}
.custom-cursor-outline {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid var(--magenta);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}
.custom-cursor-outline.hover {
    width: 60px; height: 60px;
    background: rgba(255, 0, 60, 0.1);
}
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-text {
    font-family: 'Courier New', Courier, monospace;
    color: var(--cyan);
    font-size: 1.5rem;
    letter-spacing: 3px;
}
.loader-text .cursor {
    animation: blink 1s infinite;
}
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
@keyframes panBg {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-overlay);
    z-index: -3;
    transition: background 0.5s ease;
    pointer-events: none;
}
#cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.8;
}
.crazy-robot {
    position: fixed;
    bottom: -10vh;
    right: -10vw;
    width: 60vw;
    height: 60vw;
    min-width: 500px;
    background-image: url('assets/giant_robot.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    mix-blend-mode: screen;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
    animation: floatRobot 10s ease-in-out infinite alternate;
}
@keyframes floatRobot {
    0% { transform: translateY(0) scale(1) rotate(0deg); filter: hue-rotate(0deg); }
    100% { transform: translateY(-40px) scale(1.05) rotate(2deg); filter: hue-rotate(20deg); }
}
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.6;
}
h1, h2, h3, .logo-text {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.text-cyan { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 243, 255, 0.5); }
.text-magenta { color: var(--magenta); text-shadow: 0 0 10px rgba(255, 0, 60, 0.5); }
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-sub);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links a:hover {
    color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan);
}
.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.theme-btn {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    padding: 0.5rem 1rem;
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.theme-btn:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
}
.nav-cta {
    background: transparent;
    color: var(--magenta);
    border: 1px solid var(--magenta);
    padding: 0.5rem 1.5rem;
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.2);
}
.nav-cta:hover {
    background: var(--magenta);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.6);
}
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 5% 0;
    position: relative;
}
.hero-content {
    z-index: 10;
    max-width: 800px;
    background: var(--hero-panel);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    transition: background 0.5s ease;
}
.subtitle {
    font-family: var(--font-sub);
    color: var(--magenta);
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}
.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 0px var(--cyan), -2px -2px 0px var(--magenta);
}
.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0 auto 2.5rem;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.primary-btn, .secondary-btn {
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.primary-btn {
    background: var(--cyan);
    color: var(--bg-dark);
    border: none;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.8);
}
.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s, color 0.3s;
}
.secondary-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}
.glitch-btn .btn-glitch {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--magenta);
    transform: translateX(-100%);
    z-index: -1;
    transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}
.glitch-btn:hover .btn-glitch {
    transform: translateX(0);
}
.glitch-btn:hover {
    color: white;
    background: transparent;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.5);
}
section {
    padding: 6rem 5%;
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}
.glass {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan));
    transition: left 0.5s;
}
.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--magenta);
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.4);
    z-index: 10;
}
.card:hover::before {
    left: 150%;
}
.card-icon {
    margin-bottom: 1.5rem;
    display: inline-block;
}
.cyan-glow { color: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
.magenta-glow { color: var(--magenta); filter: drop-shadow(0 0 8px var(--magenta)); }
.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.tech-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.tech-bar .fill {
    height: 100%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}
.specs-section {
    display: flex;
    justify-content: center;
}
.specs-content {
    width: 100%;
    max-width: 1000px;
    border: 1px solid var(--cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 12px;
}
.hud-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.warning-banner {
    background: rgba(255, 0, 60, 0.15);
    border: 1px dashed var(--magenta);
    padding: 0.8rem;
    text-align: center;
    animation: flashWarning 2s infinite;
}
.warning-text {
    font-family: var(--font-heading);
    color: var(--magenta);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--magenta);
}
@keyframes flashWarning {
    0%, 100% { opacity: 1; background: rgba(255, 0, 60, 0.15); }
    50% { opacity: 0.6; background: rgba(255, 0, 60, 0.05); }
}
.hud-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 1.5rem;
}
.hud-panel {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.panel-header {
    font-family: var(--font-sub);
    color: var(--cyan);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding-bottom: 0.5rem;
}
.data-stream {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #fff;
    opacity: 0.7;
    height: 200px;
    overflow: hidden;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.radar-container {
    align-items: center;
    justify-content: center;
}
.radar {
    width: 180px;
    height: 180px;
    position: relative;
    border-radius: 50%;
    border: 1px solid var(--cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2) inset;
    margin-bottom: 1rem;
}
.radar-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(0, 243, 255, 0.4);
}
.r1 { width: 140px; height: 140px; animation: spin 10s linear infinite; }
.r2 { width: 100px; height: 100px; border-style: dotted; animation: spin 15s linear infinite reverse; }
.r3 { width: 50px; height: 50px; border: 2px solid var(--magenta); box-shadow: 0 0 15px var(--magenta); }
.radar-sweep {
    position: absolute;
    top: 0; left: 50%;
    width: 50%; height: 50%;
    background: linear-gradient(90deg, rgba(0,243,255,0.4) 0%, rgba(0,0,0,0) 100%);
    transform-origin: bottom left;
    animation: spin 3s linear infinite;
    border-left: 2px solid var(--cyan);
}
.radar-dot {
    width: 6px; height: 6px;
    background: var(--magenta);
    border-radius: 50%;
    position: absolute;
    top: 30%; left: 60%;
    box-shadow: 0 0 8px var(--magenta);
    animation: blink 2s infinite;
}
.dot2 {
    top: 70%; left: 30%;
    background: #fff;
    animation: blink 3s infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hud-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 0 10px var(--cyan);
}
.hud-label {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
}
.stats-container {
    justify-content: space-around;
}
.stat-bar {
    width: 100%;
}
.stat-bar label {
    display: block;
    font-family: var(--font-sub);
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}
.bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.bar-fill {
    height: 100%;
    width: 0%; 
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}
.cyan-fill { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.magenta-fill { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.red-fill { background: #ff0000; box-shadow: 0 0 10px #ff0000; animation: pulseRed 0.5s infinite alternate; }
@keyframes pulseRed {
    0% { opacity: 1; }
    100% { opacity: 0.5; }
}
footer {
    padding: 2rem 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sub);
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--cyan);
}
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--magenta);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    5% { clip: rect(61px, 9999px, 32px, 0); }
    10% { clip: rect(98px, 9999px, 8px, 0); }
    15% { clip: rect(4px, 9999px, 75px, 0); }
    20% { clip: rect(31px, 9999px, 85px, 0); }
    25% { clip: rect(81px, 9999px, 49px, 0); }
    30% { clip: rect(9px, 9999px, 66px, 0); }
    35% { clip: rect(64px, 9999px, 20px, 0); }
    40% { clip: rect(38px, 9999px, 4px, 0); }
    45% { clip: rect(95px, 9999px, 63px, 0); }
    50% { clip: rect(13px, 9999px, 93px, 0); }
    55% { clip: rect(56px, 9999px, 5px, 0); }
    60% { clip: rect(84px, 9999px, 26px, 0); }
    65% { clip: rect(25px, 9999px, 73px, 0); }
    70% { clip: rect(99px, 9999px, 41px, 0); }
    75% { clip: rect(45px, 9999px, 82px, 0); }
    80% { clip: rect(21px, 9999px, 35px, 0); }
    85% { clip: rect(74px, 9999px, 60px, 0); }
    90% { clip: rect(11px, 9999px, 90px, 0); }
    95% { clip: rect(88px, 9999px, 18px, 0); }
    100% { clip: rect(52px, 9999px, 57px, 0); }
}
@media (max-width: 1024px) {
    .hud-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .nav-links {
        display: none; 
    }
    .crazy-robot {
        width: 120vw;
        height: 120vw;
        right: -30vw;
        opacity: 0.4;
    }
}
@media (max-width: 600px) {
    .hero-content {
        padding: 1.5rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 0.8rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .card {
        padding: 1.5rem;
    }
    .radar {
        width: 140px; height: 140px;
    }
    .r1 { width: 100px; height: 100px; }
    .r2 { width: 70px; height: 70px; }
    .r3 { width: 30px; height: 30px; }
    .hud-panel {
        padding: 1rem;
    }
    .theme-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}

