/* game.css */

:root {
    --primary-color: #00f3ff;
    --primary-glow: rgba(0, 243, 255, 0.5);
    --secondary-color: #ff00a8;
    --secondary-glow: rgba(255, 0, 168, 0.5);
    --dark-bg: #0a0f1d;
    --darker-bg: #050a14;
    --panel-bg: rgba(10, 18, 40, 0.8);
    --text-light: #ffffff;
    --text-dim: #8e9dbd;
    --border-light: rgba(0, 243, 255, 0.2);
    --tower-sniper: #00ff47;
    --tower-standard: #00a8ff;
    --tower-random: #ffff00;
    --tower-shotgun: #ff54ff;
    --neon-shadow: 0 0 5px var(--primary-glow), 0 0 10px var(--primary-glow);
    --panel-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    --scanner-line: rgba(0, 243, 255, 0.3);
    --energy-green: #39ff14;
}

@font-face {
    font-family: 'Cyberpunk';
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/webfonts/fa-brands-400.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

body {
    font-family: 'Rajdhani', 'Orbitron', 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(16, 26, 58, 0.7) 0%, rgba(10, 15, 29, 1) 100%),
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 243, 255, 0.03) 0%, rgba(0, 243, 255, 0) 100%);
    pointer-events: none;
    z-index: -1;
}

header {
    background-color: var(--darker-bg);
    background-image: linear-gradient(90deg, transparent 0%, rgba(0, 243, 255, 0.1) 50%, transparent 100%);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    color: var(--text-light);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 20%, 
        var(--primary-color) 80%, 
        transparent 100%);
    box-shadow: var(--neon-shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    background-color: rgba(0, 243, 255, 0.05);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: 0.5s;
}

nav a:hover {
    background-color: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: translateY(-2px);
}

nav a:hover::before {
    left: 100%;
}

.game-title {
    font-size: 1.8rem;
    margin: 0;
    background: linear-gradient(90deg, var(--primary-color), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.game-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

main {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.container {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--panel-shadow);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(0, 243, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(255, 0, 168, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 20%, 
        var(--primary-color) 80%, 
        transparent 100%);
    box-shadow: var(--neon-shadow);
}

/* HUD Elements */
#game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

#game-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20%;
    height: 1px;
    background-color: var(--primary-color);
    box-shadow: var(--neon-shadow);
    animation: scanner-line 4s infinite alternate ease-in-out;
}

@keyframes scanner-line {
    0% { left: 0; }
    100% { left: 80%; }
}

#game-info {
    display: flex;
    gap: 1.5rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent, 
        rgba(0, 243, 255, 0.05) 50%, 
        transparent
    );
    pointer-events: none;
}

#health {
    border-color: rgba(255, 0, 77, 0.3);
    color: #ff004d;
}

#health i {
    color: #ff004d;
    filter: drop-shadow(0 0 3px rgba(255, 0, 77, 0.7));
}

#health span {
    font-weight: bold;
    background: linear-gradient(to bottom, #ff004d, #ff6f9f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#score {
    border-color: rgba(0, 243, 255, 0.3);
    color: var(--primary-color);
}

#score i {
    color: var(--primary-color);
    filter: drop-shadow(0 0 3px var(--primary-glow));
}

#score span {
    font-weight: bold;
    background: linear-gradient(to bottom, var(--primary-color), #8cfdff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#game-container {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--panel-shadow);
}

canvas {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    background-color: #0a0f1d;
    position: relative;
    z-index: 1;
}

#game-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

button {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--primary-color);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: 0.5s;
}

button:hover {
    background-color: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: translateY(-2px);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(1px);
}

#start-btn {
    background-color: rgba(0, 255, 119, 0.1);
    color: var(--energy-green);
    border-color: rgba(0, 255, 119, 0.3);
}

#start-btn:hover {
    background-color: rgba(0, 255, 119, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 119, 0.5);
}

#pause-btn {
    background-color: rgba(255, 208, 0, 0.1);
    color: #ffd000;
    border-color: rgba(255, 208, 0, 0.3);
}

#pause-btn:hover {
    background-color: rgba(255, 208, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 208, 0, 0.5);
}

/* Tower Selection */
#tower-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tower-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tower-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 243, 255, 0.05), 
        transparent
    );
    pointer-events: none;
}

.tower-option::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.tower-option:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    z-index: 2;
}

.tower-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 10px var(--primary-glow);
}

.tower-option.selected::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 243, 255, 0.1), 
        transparent
    );
}

.tower-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
    position: relative;
}

.tower-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
    pointer-events: none;
}

.tower-option.selected .tower-icon {
    box-shadow: 0 0 15px var(--primary-glow);
}

.tower-icon.sniper {
    background-color: var(--tower-sniper);
    box-shadow: 0 0 10px rgba(0, 255, 71, 0.5);
}

.tower-icon.standard {
    background-color: var(--tower-standard);
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

.tower-icon.random {
    background-color: var(--tower-random);
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.tower-icon.shotgun {
    background-color: var(--tower-shotgun);
    box-shadow: 0 0 10px rgba(255, 84, 255, 0.5);
}

.tower-option span {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.tower-stats {
    font-size: 0.75rem;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    width: 100%;
    margin-top: 0.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
}

/* Tabs */
#game-info-tabs {
    margin-top: 1rem;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--scanner-line);
    animation: scanner-line 8s infinite alternate ease-in-out;
}

.tab {
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    margin-right: 3px;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab i {
    font-size: 0.8rem;
}

.tab:hover {
    background-color: rgba(0, 243, 255, 0.05);
    color: var(--primary-color);
}

.tab.active {
    background-color: rgba(0, 243, 255, 0.1);
    color: var(--primary-color);
    font-weight: bold;
}

.tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: var(--neon-shadow);
}

.tab-content {
    display: none;
    padding: 1.5rem 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

#controls-content ul {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

#controls-content li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-dim);
}

.key {
    display: inline-block;
    padding: 0.35rem 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--primary-color);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    min-width: 2.2rem;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

/* Chat */
#chat-messages {
    height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    font-family: 'Rajdhani', sans-serif;
    position: relative;
}

#chat-messages::before {
    content: 'T.A.C. SYSTEM v2.48.9';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0.6;
    font-family: 'Orbitron', monospace;
}

#chat-form {
    display: grid;
    grid-template-columns: 1fr 3fr auto auto;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    #chat-form {
        grid-template-columns: 1fr 2fr;
        grid-template-rows: auto auto;
    }

    #chat-form input:first-child {
        grid-column: 1;
    }

    #chat-form input:nth-child(2) {
        grid-column: 2;
    }

    #chat-form button:first-of-type {
        grid-column: 1;
        grid-row: 2;
    }

    #chat-form button:last-of-type {
        grid-column: 2;
        grid-row: 2;
    }
}

#chat-form input[type="text"] {
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
}

#chat-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-glow);
}

#emoji-button {
    background-color: rgba(255, 208, 0, 0.1);
    color: #ffd000;
    border-color: rgba(255, 208, 0, 0.3);
    width: 50px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    padding: 0;
}

#emoji-button:hover {
    background-color: rgba(255, 208, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 208, 0, 0.5);
}

.chat-message {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    background-color: rgba(0, 243, 255, 0.05);
    border-left: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.chat-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 243, 255, 0.05), 
        transparent
    );
    pointer-events: none;
}

.chat-message .nickname {
    font-weight: bold;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(10, 15, 29, 0.9);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    text-align: center;
    border-radius: 6px;
    padding: 0.75rem;
    position: absolute;
    z-index: 10;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--border-light) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Game over overlay */
.game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 15, 29, 0.85);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-align: center;
    z-index: 100;
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
    backdrop-filter: blur(5px);
}

.game-over-overlay h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to right, #ff0055, #ff7777);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.game-over-overlay p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dim);
    font-family: 'Orbitron', monospace;
}

.game-over-overlay button {
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    background-color: rgba(255, 0, 85, 0.1);
    color: #ff0055;
    border-color: rgba(255, 0, 85, 0.3);
    min-width: 200px;
}

.game-over-overlay button:hover {
    background-color: rgba(255, 0, 85, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
}

/* Loading/Preload Button */
.preload-button {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border-color: rgba(255, 165, 0, 0.4);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.preload-button:hover {
    background-color: rgba(255, 165, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

/* Media Queries */
@media (max-width: 768px) {
    .game-title {
        font-size: 1.4rem;
    }
    
    main {
        padding: 0.5rem;
    }

    .container {
        padding: 1rem;
    }

    #tower-selection {
        grid-template-columns: repeat(2, 1fr);
    }

    #game-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    #controls-content ul {
        grid-template-columns: 1fr;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
    
    .stat-box {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Futuristic Animations */
@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary-glow); }
    50% { box-shadow: 0 0 15px var(--primary-glow), 0 0 30px var(--primary-glow); }
    100% { box-shadow: 0 0 5px var(--primary-glow); }
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* HUD Animation elements */
.hud-element {
    position: relative;
}

.hud-element::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    animation: pulse 2s infinite;
}

.stat-box:hover {
    animation: glow 2s infinite;
}

.tower-option:hover .tower-icon {
    animation: float 2s infinite;
}

/* Power meter animation */
.power-meter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 200px;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    z-index: 10;
}

.power-meter::before {
    content: 'ENERGY';
    position: absolute;
    top: -18px;
    left: 0;
    font-size: 10px;
    color: var(--text-dim);
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

.power-meter .level {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, var(--energy-green), #8cff8c);
    animation: powerFluctuate 4s infinite;
}

@keyframes powerFluctuate {
    0% { width: 65%; }
    25% { width: 72%; }
    50% { width: 68%; }
    75% { width: 78%; }
    100% { width: 65%; }
}

/* Scan lines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.05) 51%,
        transparent 51%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
}

/* System status indicator */
.system-status {
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--energy-green);
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--energy-green);
    animation: pulse 2s infinite;
}

/* Grid overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.5;
    z-index: 2;
}

/* Terminal text animation */
.terminal-text {
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary-color);
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Holographic projection effect */
.hologram {
    position: relative;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-glow);
    animation: hologramFlicker 4s infinite;
}

.hologram::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(0, 243, 255, 0.4);
    z-index: -1;
    filter: blur(1px);
    transform: translateX(-2px);
}

.hologram::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(255, 0, 168, 0.4);
    z-index: -1;
    filter: blur(1px);
    transform: translateX(2px);
}

@keyframes hologramFlicker {
    0% { opacity: 1; }
    5% { opacity: 0.9; }
    10% { opacity: 1; }
    15% { opacity: 0.95; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    85% { opacity: 0.8; }
    90% { opacity: 1; }
    95% { opacity: 0.9; }
    100% { opacity: 1; }
}

/* Add fonts from CDN */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Rajdhani:wght@300;400;500;600;700&display=swap');

