
:root {
    --main-bg: linear-gradient(135deg, #0D2E56, #1E1B4B);
    --accent-color: #1E90FF;
    --highlight-color: #32CD32;
    --text-color: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.08);
    --hover-bg: #32CD32;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-secondary);
    color: var(--text-color);
    background: var(--main-bg);
    line-height: 1.6;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: bold;
    margin-top: 0;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    background: linear-gradient(90deg, #1E90FF, #32CD32);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.module {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-color);
    color: #000;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button:hover {
    background: var(--hover-bg);
    transform: scale(1.05);
}

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

code {
    color: var(--highlight-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .container {
        grid-template-columns: 1fr;
    }
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--accent-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.item.in-view {
    opacity: 1;
    transform: translateY(0);
}

.shape {
    width: 100px;
    height: 100px;
    background: var(--highlight-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: rotate-shape 5s linear infinite;
    margin: 20px auto;
}

@keyframes rotate-shape {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

