
/* CSS Variables for Theme Colors */
:root {
    --background-color: #121212;
    --primary-color: #1E90FF;
    --accent-color: #39FF14;
    --secondary-color: #8A2BE2;
    --highlight-color: #FF69B4;
    --text-color: #FFFFFF;
    --muted-text-color: #B0B0B0;
    --card-background: #1E1E1E;
    --border-color: #333333;
    --transition-speed: 0.3s;
    --font-family: 'Roboto', sans-serif;
    --code-background: #2D2D2D;
    --code-text: #FFFFFF;
    --code-border: #444444;
}

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

body {
    background: radial-gradient(circle, #1E1E1E, #121212);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    padding: 20px;
    animation: background-animate 15s linear infinite;
}

@keyframes background-animate {
    0% { background: radial-gradient(circle, #1E1E1E, #121212); }
    50% { background: radial-gradient(circle, #2E2E2E, #1C1C1C); }
    100% { background: radial-gradient(circle, #1E1E1E, #121212); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--primary-color);
}

header p {
    font-size: 1.2rem;
    color: var(--muted-text-color);
}

/* Sections */
section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

section p {
    margin-bottom: 20px;
}

section pre {
    background: var(--code-background);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid var(--code-border);
}

section code {
    color: var(--code-text);
    font-family: 'Fira Code', monospace;
}

/* Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card p {
    color: var(--muted-text-color);
}

/* Buttons */
.button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

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

/* Images */
img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: opacity 0.5s ease-in-out;
}

img.lazy {
    opacity: 0;
}

img.lazy.loaded {
    opacity: 1;
}

/* Animation for Aurora Move */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.aurora-background {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Code Blocks */
.code-block {
    background: var(--code-background);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--code-border);
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block code {
    color: var(--code-text);
    font-family: 'Fira Code', monospace;
}

/* Demo Article */
.demo-article {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.demo-article h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.demo-article h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.demo-article pre {
    background: var(--code-background);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid var(--code-border);
}

.demo-article code {
    color: var(--code-text);
    font-family: 'Fira Code', monospace;
}

/* Responsive Design */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5rem;
    }

    section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 1024px) {
    section h2 {
        font-size: 1.5rem;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

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

    section h2 {
        font-size: 1.4rem;
    }

    .button {
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    section h2 {
        font-size: 1.2rem;
    }

    .card {
        padding: 15px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 1rem;
    }

    .button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

