:root {
    --primary-color: #00f3ff;
    --secondary-color: #0066ff;
    --accent-color: #ff00c8;
    --bg-dark: #050510;
    --card-bg: rgba(20, 20, 40, 0.7);
    --text-color: #e0e6ed;
    --text-dim: #94a3b8;
    --sidebar-width: 300px;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Animated Background --- */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000 url('assets/bg.png') repeat top center;
    z-index: -2;
}

.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/123163/twinkling.png') repeat top center;
    z-index: -1;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -10000px 5000px;
    }
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(10, 10, 25, 0.9);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 40px 20px;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    display: none;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 5px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 15px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(0, 243, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    transform: translateX(5px);
}

/* --- Main Content --- */
.content {
    margin-left: var(--sidebar-width);
    padding: 40px;
    max-width: 1200px;
}

.chapter {
    margin-bottom: 60px;
    scroll-margin-top: 40px;
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
}

ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* --- Specialized Components --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 100px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.hero-image {
    margin-top: 40px;
}

#hero-ship {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.tip-box,
.warning-box {
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.tip-box {
    background: rgba(0, 243, 255, 0.1);
    border-left: 4px solid var(--primary-color);
}

.warning-box {
    background: rgba(255, 0, 200, 0.1);
    border-left: 4px solid var(--accent-color);
}

/* --- Tables --- */
.table-container {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(0, 243, 255, 0.05);
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* --- Mobile --- */
.menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    background: var(--card-bg);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .content {
        margin-left: 0;
        padding: 20px;
    }

    .menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

.glass-footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    margin-left: var(--sidebar-width);
}

@media (max-width: 1024px) {
    .glass-footer {
        margin-left: 0;
    }
}