/* ===== BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #0b1220;
    color: #e5e7eb;
}

/* ===== HEADER ===== */
.main-header {
    background: linear-gradient(135deg, #0f1e33, #1e3a5f);
    padding: 25px;
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
}

.header-text {
    text-align: left;
}

.tagline {
    color: #cbd5e1;
}

/* ===== NAV ===== */
.site-nav {
    background: #020617;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 12px;
    flex-wrap: wrap;
}

.site-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
}

.site-nav a:hover {
    color: #00f0ff;
}

.nav-button {
    background: linear-gradient(90deg, #2563eb, #00f0ff);
    padding: 6px 16px;
    border-radius: 999px;
    color: white;
}

/* ===== CONTENT ===== */
.content-wrapper {
    max-width: 1100px;
    margin: auto;
    padding: 30px 20px;
}

.content-box {
    background: #020617;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* ===== TEXT ===== */
h2 {
    margin-bottom: 10px;
}

ul, ol {
    margin-left: 20px;
    margin-top: 10px;
}

/* ===== CODE BLOCK ===== */
.code-block {
    background: #0f172a;
    color: #e5e7eb;
    padding: 15px;
    border-radius: 6px;
    font-family: Consolas, monospace;
    margin-top: 10px;
}

/* ===== FOOTER ===== */
footer {
    background: #020617;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

/* ===== TOP BUTTON ===== */
#topBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
}

#topBtn:hover {
    background: #1d4ed8;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        text-align: center;
    }
}