:root {
    --dark-bg: #111;
    --card-bg: #1e1e1e;
    --accent-green: #30df4d;
    --text-color: #f1f1f1;
    --light-gray: #b0b0b0;
    --dark-green: #23a033;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(circle at top right, rgba(48, 223, 77, 0.1) 0%, transparent 25%),
        radial-gradient(circle at bottom left, rgba(48, 223, 77, 0.1) 0%, transparent 25%);
    background-size: 800px 800px;
    background-repeat: no-repeat;
    background-position: top right, bottom left;
    color: var(--text-color);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background-color: transparent;
    padding: 1.5rem 3rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    color: var(--accent-green);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

nav ul li a {
    color: var(--light-gray);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--text-color);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: var(--light-gray) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #2c2c2c;
    color: var(--text-color) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-right a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-right a:hover {
    color: var(--text-color);
}

.nav-time {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Live time and status dot */
.online-status {
    width: 10px;
    height: 10px;
    background-color: var(--accent-green);
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

.logo .online-status {
    position: relative;
    top: -2px;
}

.nav-right .online-status {
    position: relative;
    top: -2px;
}

/* Main Content - Hero Section */
.hero-section {
    background: linear-gradient(180deg, rgba(17, 17, 17, 1) 0%, rgba(30, 30, 30, 0.4) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-icon {
    font-size: 5rem;
    color: var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-top: 1rem;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--dark-bg);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Stats Section */
.stats-section {
    background-color: var(--dark-bg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 3rem;
    position: relative;
    top: -5rem;
    margin-left: 5rem;
    margin-right: 5rem;
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-card p {
    font-size: 1rem;
    color: var(--light-gray);
}

/* Features Section */
.features-section {
    background-color: var(--dark-bg);
    padding: 2rem 5rem;
    text-align: center;
}

.features-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.features-header p {
    font-size: 1.2rem;
    color: var(--light-gray);
}

/* Commands Page Specific Styles */
.commands-main {
    padding-top: 100px;
}

.commands-section {
    padding: 5rem 5rem 2rem;
}

.commands-header {
    text-align: center;
    margin-bottom: 2rem;
}

.commands-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 50px;
    border: 1px solid var(--accent-green);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input::placeholder {
    color: var(--light-gray);
}

.search-bar input:focus {
    border-color: #50e964;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-gray);
}

.commands-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.command-category {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
}

.command-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.command-category h3 i {
    color: var(--accent-green);
}

.command-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.command-item {
    background-color: #2c2c2c;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--accent-green);
}

.command-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.command-name {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 0.25rem;
}

.command-description {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Docs Page Specific Styles */
.docs-main {
    padding-top: 100px;
}

.docs-section {
    padding: 5rem 5rem 2rem;
}

.docs-header {
    text-align: center;
    margin-bottom: 2rem;
}

.docs-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.documentation-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.doc-category {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
}

.doc-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: capitalize;
}

.doc-item {
    background-color: #2c2c2c;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-green);
}

.doc-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.doc-item p {
    color: var(--light-gray);
    white-space: pre-wrap;
}

/* New Sync Page CSS */
.sync-page {
    padding-top: 100px;
}

.sync-section {
    padding: 5rem 5rem 2rem;
    text-align: center;
}

.sync-content {
    max-width: 800px;
    margin: 0 auto;
}

.sync-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.sync-content p {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

#sync-button {
    background-color: var(--accent-green);
    color: var(--dark-bg);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
}

#sync-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#sync-output-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
    border: 1px solid var(--accent-green);
}

#sync-output-container h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

#sync-output {
    background-color: #2c2c2c;
    color: var(--accent-green); /* Green for success */
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
}

.error-output {
    color: #ff6347 !important; /* A nice red for errors */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 2rem;
        top: -3rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul {
        display: none;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    .nav-right {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-right a, .nav-time {
        font-size: 0.8rem;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .stats-section {
        grid-template-columns: 1fr;
        margin: 0 1rem;
        padding: 2rem;
        top: -2rem;
    }
    .commands-section {
        padding: 2rem 1rem;
    }
    .command-group {
        grid-template-columns: 1fr;
    }
    .docs-section {
        padding: 2rem 1rem;
    }
    .sync-section {
        padding: 2rem 1rem;
    }
}