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

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Particle Background */
.body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 0;
    background-image: url('https://images.gptkong.com/demo/sample1.png'), url('https://images.gptkong.com/demo/sample2.png'), url('https://images.gptkong.com/demo/sample3.png');
    background-size: 50px 50px;
    animation: moveParticles 20s linear infinite;
}

@keyframes moveParticles {
    from {
        background-position: 0 0, 100px 100px, 200px 200px;
    }
    to {
        background-position: 1000px 1000px, 1100px 1100px, 1200px 1200px;
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #00c6ff;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background: rgba(26, 26, 29, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    width: 300px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: rotateY(10deg) scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

.card img {
    width: 100%;
    border-radius: 10px;
}

.card h3 {
    margin-top: 15px;
    font-size: 1.5rem;
    color: #00c6ff;
}

.card p {
    margin: 10px 0;
    line-height: 1.6;
    color: #d0d0d0;
}

.code-block {
    background: #1a1a1d;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-block code {
    display: block;
    color: #00ffcc;
    font-family: 'Courier New', Courier, monospace;
}

.sample-article {
    background: rgba(26, 26, 29, 0.9);
    padding: 30px;
    border-radius: 15px;
    margin-top: 50px;
    color: #e0e0e0;
}

.sample-article h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff6ec7;
}

.sample-article h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    color: #ff6ec7;
}

.sample-article p {
    line-height: 1.8;
    margin: 10px 0;
}

.sample-article pre {
    background: #2c2c2e;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.sample-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.sample-article table, .sample-article th, .sample-article td {
    border: 1px solid #444;
}

.sample-article th, .sample-article td {
    padding: 10px;
    text-align: left;
}

.footer {
    text-align: center;
    margin-top: 50px;
    color: #a0a0a0;
}

@media (max-width: 1440px) {
    .container {
        max-width: 1100px;
    }
}

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

@media (max-width: 1024px) {
    .cards {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
}

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

    .section-title {
        font-size: 2rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 320px) {
    .card {
        width: 100%;
    }

    .sample-article h2 {
        font-size: 1.5rem;
    }
}

/* Animation for loader */
@keyframes openGate {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #00c6ff;
    padding: 20px 40px;
    border-radius: 10px;
    animation: openGate 2s ease-out forwards;
    z-index: 2;
}

.hidden {
    display: none;
}

