/* RESET & VARIAVEIS */
:root {
    --primary: #6c63ff;
    --primary-dark: #574fd6;
    --glass-bg: rgba(0, 0, 0, 0.25);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #D6D8FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* BODY */
body {
    color: var(--text-color);
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    transition: background-image 0.5s ease-in-out;
}

body.light-mode {
    color: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --text-color: #1a1a1a;
}

/* OVERLAY DE DESFOCU (Z-index 1) */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

body.light-mode .background-overlay {
    background: rgba(255, 255, 255, 0.1);
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar h1 {
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar nav a {
    color: inherit;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
}

.navbar nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* HERO SECTION */
.hero {
    position: relative;
    z-index: 2;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.6);
    border: 3px solid var(--primary);
    animation: float 4s ease-in-out infinite;
}

/* DASHBOARD & COMMANDS GRID */
.commands-section {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cmd-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.cmd-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.cmd-name {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.cmd-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* BOTÕES */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.6);
}

/* BOTÃO DE TEMA */
.floating-theme-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

/* SPARKLES (PARTICULAS) */
.sparkle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px var(--primary);
}

/* ANIMAÇÕES */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .hero h2 { font-size: 2.2rem; }
}