
:root {
    --primary-color: #1e272e;
    --secondary-color: #4834d4;
    --accent-color: #ffbe76;
    --background-color: #f5f5f5;
    --text-color: #333;
    --code-bg: #f4f4f4;
    --code-text: #d63384;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
}

header p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.particle-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatParticle 5s infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-200px); opacity: 0; }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

.flip-card {
    perspective: 1000px;
    height: 100%;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: var(--secondary-color);
    color: white;
}

.node-network {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    margin: 20px 0;
}

.node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: moveNode 5s infinite;
}

@keyframes moveNode {
    0% { transform: translate(0, 0); }
    50% { transform: translate(100px, -50px); }
    100% { transform: translate(0, 0); }
}

pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    margin: 20px 0;
}

code {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 2px 5px;
    border-radius: 3px;
}

footer {
    text-align: center;
    padding: 20px;
    background: var(--primary-color);
    color: white;
    margin-top: 40px;
}

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

    .card {
        margin-bottom: 20px;
    }
}

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

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.8rem;
    }
}

