/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d9ff;
    --primary-glow: rgba(0, 217, 255, 0.7);
    --secondary-color: #9d00ff;
    --accent-color: #00ff88;
    --bg-dark: #0a0e17;
    --bg-darker: #050811;
    --panel-bg: rgba(10, 20, 35, 0.8);
    --text-color: #e0f7ff;
    --text-secondary: #88aaff;
    --border-color: rgba(0, 217, 255, 0.2);
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --error-color: #ff3366;
    --glass-bg: rgba(16, 25, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(5, 8, 17, 0.95);
}

body {
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
}

/* ===== ANIMATED BACKGROUND ===== */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, var(--bg-darker) 0%, #f200ffde 100%);
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0 16px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.nav-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 217, 255, 0.15);
    border: 1px solid var(--border-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.menu-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.15);
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #00ffff;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px #00ffff;
    transform: scale(1.08);
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 0;
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
}

@media (min-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.logo {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .logo {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
}

.logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-icon img {
    width: 50px;
    height: 50px;
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    letter-spacing: 1px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .logo h1 {
        font-size: 2.2rem;
    }
}

.logo-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: 4px;
}

@media (min-width: 768px) {
    .logo-subtitle {
        margin-left: 10px;
        margin-top: 0;
    }
}

.status-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

@media (min-width: 768px) {
    .status-info {
        flex-wrap: nowrap;
        justify-content: flex-end;
        width: auto;
    }
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    justify-content: center;
    cursor: text;
}

.status-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.status-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.status-item span {
    font-size: 0.9rem;
}

/* ===== AI CORE ===== */
.ai-core-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 40px;
}

@media (min-width: 768px) {
    .ai-core-container {
        width: 320px;
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .ai-core-container {
        width: 350px;
        height: 350px;
    }
}

@media (min-width: 1200px) {
    .ai-core-container {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .ai-core-container {
        width: 250px;
        height: 250px;
    }
}

.core-halo {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.06) 0%, transparent 75%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.core-rings {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgb(225, 0, 255);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    opacity: 0.3;
}

.ring-1 {
    /* ye first bala ring hai jo glow kar raha hai*/
    border-radius: 50%;
    border: 2px solid blue;
    width: 90%;
    height: 90%;
    animation: rotate 20s linear infinite;
    box-shadow:
        0 0 25px rgba(0, 217, 255, 0.5),
        0 0 45px rgba(0, 217, 255, 0.25),
        inset 0 0 18px rgba(255, 255, 255, 0.6);
}

.ring-3 {
    /* ye dusra bala ring hai */
    width: 80%;
    height: 65%;
    animation: rotate 10s linear infinite;
    box-shadow:
        0 0 25px rgba(0, 217, 255, 0.5),
        0 0 45px rgba(0, 217, 255, 0.25),
        inset 0 0 18px rgba(255, 255, 255, 0.6);
}

.ring-8 {
    /* ye dusra bala ring hai */
    width: 80%;
    height: 65%;
    animation: rotate 10s linear infinite reverse;
    box-shadow:
        0 0 25px rgba(0, 217, 255, 0.5),
        0 0 45px rgba(0, 217, 255, 0.25),
        inset 0 0 18px rgba(255, 255, 255, 0.6);
}

.ring-2 {
    /* ye reverse bala ring hai */
    width: 8%;
    height: 90%;
    animation: rotate 10s linear infinite reverse;
}

.ring-4 {
    width: 8%;
    height: 90%;
    animation: rotate 10s linear infinite;
}

.ring-5 {
    width: 8%;
    height: 90%;
    animation: rotate 3s linear infinite reverse;
}

.ring-6 {

    width: 8%;
    height: 90%;
    animation: rotate 3s linear infinite;
}

.ring-7 {
    border: 2px solid blue;
    width: 50%;
    height: 50%;
    box-shadow:
        0 0 25px rgba(0, 217, 255, 0.5),
        0 0 45px rgba(0, 217, 255, 0.25),
        inset 0 0 18px rgba(255, 255, 255, 0.6);
}
.ring-9 {
    border: 2px solid rgba(0, 0, 255, 0.353);
    width: 50%;
    height: 50%;
   
}
.ring-10 {
    border: 2px solid rgba(0, 0, 255, 0.353);
    width: 30%;
    height: 30%;
   
}

.ring-9 img {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    opacity: 1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.core-status {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
    letter-spacing: 2px;
    white-space: nowrap;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .main-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

.panel {
    background: var(--panel-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.1);
}

.panel-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.panel-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.panel-header h2 i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.panel-content {
    padding: 16px;
}

/* Voice Panel Styles */
.status-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex: 1;
    min-width: 120px;
}

.indicator-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #444;
    flex-shrink: 0;
}

.indicator.active .indicator-light {
    background-color: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

.voice-visualizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 80px;
    gap: 5px;
    margin: 16px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 16px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .voice-visualizer {
        height: 100px;
        gap: 6px;
    }
}

.voice-visualizer .bar {
    width: 8px;
    min-height: 5px;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: height 0.1s ease;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .voice-visualizer .bar {
        width: 10px;
    }
}

@media (max-width: 480px) {
    .voice-visualizer .bar {
        width: 6px;
    }
}

.voice-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

@media (min-width: 768px) {
    .voice-controls {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

@media (min-width: 768px) {
    .btn {
        width: auto;
        min-width: 180px;
    }
}

.btn:active {
    transform: scale(0.98);
}

.voice-btn {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    min-width: auto;
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.voice-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.5);
    transform: translateY(-3px);
}

.voice-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.voice-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Command Log */
.command-log {
    margin-top: 24px;
}

.command-log h3 {
    margin-bottom: 12px;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.log-container {
    height: 180px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid var(--border-color);
}

.log-entry {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
    background: rgba(0, 217, 255, 0.05);
    font-family: 'Exo 2', monospace;
    font-size: 0.85rem;
    animation: fadeIn 0.5s ease;
    word-break: break-word;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.log-entry.user {
    border-left-color: var(--accent-color);
    background: rgba(0, 255, 136, 0.05);
}

.log-entry.system {
    border-left-color: var(--text-secondary);
    background: rgba(136, 170, 255, 0.05);
}

.log-time {
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Right Panel Widgets */
.widget {
    margin-bottom: 24px;
    background: var(--glass-bg);
    border-radius: 15px;
    padding: 16px;
    border: 1px solid var(--glass-border);
    width: 100%;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.widget-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: rgba(0, 217, 255, 0.3);
    transform: rotate(90deg);
}

.weather-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .weather-content {
        flex-direction: row;
        text-align: left;
    }
}

.weather-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .weather-icon {
        font-size: 3rem;
    }
}

.weather-details {
    flex: 1;
    width: 100%;
}

@media (min-width: 768px) {
    .weather-details {
        width: auto;
    }
}

.temperature {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .temperature {
        font-size: 1.8rem;
    }
}

.condition {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 8px 0;
}

.location {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .location {
        justify-content: flex-start;
    }
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .commands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .commands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .commands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .commands-grid {
        grid-template-columns: 1fr;
    }
}

.command-btn {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 14px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 0.9rem;
}

@media (min-width: 1024px) {
    .command-btn {
        padding: 15px 10px;
        font-size: 1rem;
    }
}

.command-btn i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

@media (min-width: 1024px) {
    .command-btn i {
        font-size: 1.5rem;
    }
}

.command-btn:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.2);
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.status-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-value {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    font-size: 0.85rem;
}

.status-value.active {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.instructions h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.instruction-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.instruction-list span {
    background: rgba(0, 217, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.instruction-list span:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== TEXT COMMAND INTERFACE ===== */
.text-command-interface {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 40px auto 0;
    z-index: 10;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.text-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    background: rgba(15, 25, 45, 0.9);
    border-radius: 15px;
    padding: 10px;
    border: 1px solid rgba(0, 230, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .text-input-container {
        flex-direction: column;
    }
}

.text-command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00e6ff;
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    padding: 12px 15px;
    outline: none;
}

.text-command-input::placeholder {
    color: rgba(0, 230, 255, 0.5);
}

.text-command-input:focus {
    color: #ffffff;
}

.text-command-btn {
    background: linear-gradient(135deg, #00e6ff 0%, #0080ff 100%);
    border: none;
    border-radius: 10px;
    color: white;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .text-command-btn {
        width: 100%;
        height: 40px;
    }
}

.text-command-btn:hover {
    background: linear-gradient(135deg, #00ffff 0%, #0099ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 230, 255, 0.4);
}

.text-command-btn:active {
    transform: translateY(0);
}

.command-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .command-mode-toggle {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

.mode-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    background: rgba(15, 25, 45, 0.8);
    color: rgba(0, 230, 255, 0.7);
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 230, 255, 0.2);
}

@media (max-width: 768px) {
    .mode-btn {
        width: 100%;
        justify-content: center;
    }
}

.mode-btn.active {
    background: linear-gradient(135deg, #00e6ff 0%, #0080ff 100%);
    color: white;
    border-color: #00e6ff;
    box-shadow: 0 0 15px rgba(0, 230, 255, 0.5);
}

.mode-btn:hover:not(.active) {
    background: rgba(0, 230, 255, 0.1);
    color: #00e6ff;
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(145deg, #232343, #1a1a2e);
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-content {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(85vh - 100px);
}

/* Command Categories */
.command-category {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    border-left: 4px solid #6a11cb;
    transition: transform 0.3s ease;
}

.command-category:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #6a11cb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    width: 36px;
    height: 36px;
    background: rgba(106, 17, 203, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.command-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    .command-list {
        grid-template-columns: 1fr;
    }
}

.command-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.command-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(106, 17, 203, 0.3);
}

.command-text {
    font-weight: 600;
    color: #4fc3f7;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.command-example {
    color: #a0a0c0;
    font-size: 0.95rem;
    font-style: italic;
}

.example-highlight {
    color: #69f0ae;
    font-weight: 500;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 20px;
        max-width: 95%;
    }

    .nav-toggle {
        display: none;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .container {
        max-width: 1400px;
        padding: 30px;
    }

    .nav-container {
        padding: 0 30px;
    }
}

/* Mobile Navbar */
@media (max-width: 767px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
}

/* Very Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .status-item {
        min-width: 100%;
        max-width: 100%;
    }

    .indicator {
        min-width: 100px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .header {
        padding: 12px 0;
        margin-bottom: 20px;
    }

    .ai-core-container {
        width: 200px;
        height: 200px;
        margin-bottom: 30px;
    }

    .ai-core {
        width: 130px;
        height: 130px;
    }

    .core-inner {
        width: 70px;
        height: 70px;
    }

    .voice-visualizer {
        height: 60px;
    }

    .log-container {
        height: 120px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    .btn:hover,
    .command-btn:hover,
    .status-item:hover,
    .instruction-list span:hover {
        transform: none;
    }

    .voice-btn:hover {
        transform: translateY(0);
    }

    .btn:active,
    .command-btn:active {
        transform: scale(0.98);
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .grid-lines {
        background-size: 25px 25px;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #6a11cb, #2575fc);
    border-radius: 10px;
}