
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto&display=swap');

:root {
    --primary-color: #0A192F;
    --secondary-color: #6C5DD3;
    --highlight-green: #18B495;
    --highlight-orange: #FF7B54;
    --text-color: #FFFFFF;
    --background-gradient: linear-gradient(135deg, #0A192F, #6C5DD3);
    --font-family-body: 'Roboto', sans-serif;
    --font-family-heading: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    background: var(--background-gradient);
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.9);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

header h1 {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--highlight-green);
}

nav ul {
    list-style: none;
}

nav ul li {
    margin: 15px 0;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--highlight-orange);
}

.main-content {
    margin-left: 250px;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

section:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

h2, h3 {
    font-family: var(--font-family-heading);
    color: var(--highlight-green);
    margin-bottom: 15px;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}

pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
    font-family: 'Courier New', Courier, monospace;
}

code {
    color: var(--highlight-orange);
    white-space: pre-wrap;
}

img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(10, 25, 47, 0.9);
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    color: var(--highlight-green);
}

@media (max-width: 1440px) {
    header {
        width: 220px;
    }
    .main-content {
        margin-left: 220px;
    }
}

@media (max-width: 1200px) {
    header {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
    }
}

@media (max-width: 1024px) {
    header {
        width: 180px;
    }
    .main-content {
        margin-left: 180px;
    }
}

@media (max-width: 768px) {
    header {
        display: none;
    }
    .main-content {
        margin: 0;
    }
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: rgba(10, 25, 47, 0.9);
        padding: 10px 0;
        display: flex;
        justify-content: space-around;
    }
    .mobile-nav a {
        color: var(--text-color);
        text-decoration: none;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    h3 {
        font-size: 1.1rem;
    }
    nav ul li a {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    .main-content {
        padding: 60px 10px;
    }
    pre {
        font-size: 0.9rem;
    }
}

@keyframes particleMove {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    top: 0;
    left: 0;
    overflow: hidden;
}

.particles div {
    position: absolute;
    bottom: 0;
    width: 3px;
    height: 3px;
    background: var(--highlight-green);
    animation: particleMove linear;
}

.particles div:nth-child(odd) {
    animation-duration: 10s;
    left: 20%;
}

.particles div:nth-child(even) {
    animation-duration: 15s;
    left: 80%;
}

.cube {
    width: 100px;
    height: 100px;
    perspective: 1000px;
    margin: auto;
}

.cube div {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: var(--highlight-orange);
    transform-style: preserve-3d;
    animation: rotateCube 5s infinite linear;
}

@keyframes rotateCube {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.fixed-sidebar a {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fixed-sidebar a:hover {
    color: var(--highlight-green);
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: background 0.3s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.table th, .table td {
    border: 1px solid var(--highlight-green);
    padding: 10px;
    text-align: left;
}

.table th {
    background-color: rgba(24, 180, 149, 0.2);
}

.table td {
    background-color: rgba(255, 123, 84, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

