
/* Reset and Global Styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #03071e, #370617, #6a040f, #9d0208, #d00000, #dc2f02, #e85d04, #f48c06, #faa307, #ffba08);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #fff;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #f8f9fa; /* Light text color for headings */
}

h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }

p, ul, ol, pre {
    line-height: 1.7;
    margin-bottom: 1.2em;
    color: #e0e1e2; /* Slightly lighter text for body */
    word-wrap: break-word; /* For long words to prevent overflow */
}

a {
    color: #00bcd4; /* Accent color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00f7ff; /* Hover link color */
}

pre {
    background-color: rgba(0, 0, 0, 0.8);
    color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* Enable horizontal scroll for code blocks */
    tab-size: 4;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap; /* Wrap long lines in <pre> */
}

code {
    font-family: monospace;
    color: #ffeb3b; /* Highlight color for code inline */
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2px 5px;
    border-radius: 3px;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 40px;
    padding-bottom: 60px;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 4px 4px 6px rgba(0,0,0,0.7);
}

.header p {
    font-size: 1.2rem;
    color: #ddd;
}

.section {
    margin-bottom: 3rem;
    padding: 20px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background for sections */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

.section-title {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

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

.grid-item {
    padding: 25px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.grid-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ccf; /* Light purple heading */
}

.grid-item p {
    font-size: 1rem;
}

.image-card {
    text-align: center;
    margin-bottom: 20px;
}

.image-card img {
    width: 100%; /* Ensure image fits container */
    max-width: 200px; /* Limit max image width */
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
}

/* Example Article Styling */
.example-article-section {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 4rem;
}

.example-article-section h2, .example-article-section h3 {
    color: #a7c957; /* Green accent for article headings */
    text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
}

.example-article-section p, .example-article-section ul, .example-article-section ol, .example-article-section pre {
    color: #ddd;
}

.example-article-section pre {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.example-article-section ul, .example-article-section ol {
    padding-left: 30px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: auto; /* Push footer to bottom */
    color: #999;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        padding-top: 30px;
        padding-bottom: 50px;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .grid-container {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    h4 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    .header p {
        font-size: 1rem;
    }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.2rem; }

    .section {
        padding: 15px;
    }

    .example-article-section {
        padding: 20px;
    }
}

/* Orbitron Font (Add this if not already included in your project) */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@400;700&display=swap');

