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

/* Root Variables */
:root {
    --main-bg-gradient: linear-gradient(135deg, #00008B, #4B0082);
    --highlight-color: #00FF00;
    --secondary-color: #C0C0C0;
    --text-color: #FFFFFF;
    --secondary-text-color: #CCCCCC;
    --button-hover-bg: #008000;
    --button-bg: #00FF00;
    --font-family: 'Roboto', sans-serif;
    --header-height: 100vh;
    --transition-speed: 0.3s;
}

/* Body Styling */
body {
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--main-bg-gradient);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: var(--header-height);
    padding: 20px;
}

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

header h1 {
    font-size: 3em;
    font-weight: 900;
    background: linear-gradient(90deg, #0000FF, #4B0082);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

header h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--highlight-color);
    margin-top: 10px;
}

header p {
    font-size: 1.2em;
    color: var(--secondary-text-color);
    margin-top: 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--highlight-color);
    text-decoration: none;
    font-size: 1em;
    transition: color var(--transition-speed);
}

nav ul li a:hover {
    color: var(--button-hover-bg);
}

/* Main Content */
main {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px;
}

main h2, main h3, main h4 {
    color: var(--highlight-color);
    margin-bottom: 20px;
}

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

main pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

main code {
    color: var(--highlight-color);
    font-family: 'Courier New', Courier, monospace;
}

/* Buttons */
button {
    background-color: var(--button-bg);
    color: #000000;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

button:hover {
    background-color: var(--button-hover-bg);
    transform: scale(1.1);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100%;
    bottom: 0;
}

footer p {
    color: var(--secondary-text-color);
    font-size: 1em;
}

/* Dynamic Background Elements */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(360deg);
    }
    100% {
        transform: translateY(0) rotate(720deg);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Particle Animation */
@keyframes stars {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    opacity: 0.1;
    animation: stars 100s linear infinite;
    z-index: -1;
}

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

    main {
        padding: 30px 15px;
    }
}

@media (max-width: 1200px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }
}

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

    main {
        padding: 20px 10px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    header h1 {
        font-size: 1.8em;
    }

    main {
        padding: 15px 5px;
    }
}

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

    button {
        width: 100%;
        padding: 15px;
    }
}

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

    main {
        padding: 10px 2px;
    }
}

/* Code Block Styling */
code {
    background: #2d2d2d;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Highlighted Sections */
.sample-section {
    border: 2px dashed var(--highlight-color);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.sample-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Additional Animations */
@keyframes shimmer {
    0% {
        background-position: -500px 0;
    }
    100% {
        background-position: 500px 0;
    }
}

.shimmer-effect {
    background: linear-gradient(to right, #00008B, #4B0082, #00008B);
    background-size: 1000px 100%;
    animation: shimmer 10s linear infinite;
}


