
/* reset and base styles */
html, body, div, section, article, aside, header, footer, nav, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
body {
    line-height: 1;
    font-family: 'Inter', sans-serif;
    color: #ecf0f1; /* Metal Grey for text */
    background: #2c3e50; /* Deep Blue background */
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding-bottom: 50px;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
a {
    text-decoration: none;
    color: inherit;
}

/* Typography and Color Palette */
h1, h2, h3 {
    font-family: 'Monument Extended', sans-serif;
    color: #2ecc71; /* Fluorescent Green for titles */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    letter-spacing: 1.5px;
}
h1 { font-size: 2.5em; line-height: 1.2; }
h2 { font-size: 2em; line-height: 1.3; }
h3 { font-size: 1.6em; line-height: 1.4; }
p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #d0d8e0; /* Slightly lighter grey for paragraphs */
}
code, pre {
    font-family: monospace, monospace;
    font-size: 0.9em;
    background-color: #34495e; /* Darker Blue for code blocks */
    color: #f8f8f2; /* Light grey for code text */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* Enable horizontal scroll for long code lines if needed */
    white-space: pre-wrap; /* Wrap long lines */
    word-wrap: break-word; /* Break long words */
    display: block; /* Ensure block display */
    margin: 10px 0;
}

/* Layout and Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
header {
    padding: 50px 0;
    text-align: center;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.7)); /* Gradient header background */
    border-bottom: 2px solid #3498db; /* Border below header */
}
header h1 {
    font-size: 3em;
    color: #3498db; /* Lighter blue for header title */
    text-shadow: 3px 3px 5px rgba(0,0,0,0.7);
    margin-bottom: 10px;
}
header p {
    color: #95a5a6; /* Light grey for header paragraph */
    font-size: 1.2em;
}
section {
    padding: 40px 0;
    border-bottom: 1px dashed #7f8c8d; /* Dashed border between sections */
}
section:last-child {
    border-bottom: none;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative; /* For pseudo-element underline */
    padding-bottom: 20px;
}
.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #2ecc71; /* Fluorescent Green underline */
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
}
.card {
    background-color: rgba(52, 73, 94, 0.8); /* Card background */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}
.card h3 {
    margin-bottom: 10px;
    font-size: 1.4em;
}

/* Image Styles */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.image-gallery img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db; /* Border for gallery images */
    transition: border-color 0.3s ease;
}
.image-gallery img:hover {
    border-color: #2ecc71; /* Hover border color */
}

/* Article Styles */
article {
    background-color: rgba(52, 73, 94, 0.9); /* Article background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    margin-top: 30px;
}
article h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: #3498db; /* Lighter blue for article main title */
}
article h3 {
    font-size: 1.8em;
    margin-top: 25px;
    margin-bottom: 20px;
    color: #2ecc71; /* Fluorescent green for article subtitles */
}
article p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #d0d8e0; /* Slightly lighter grey for article text */
}
article ul, article ol {
    margin-left: 30px;
    margin-bottom: 15px;
}
article li {
    line-height: 1.7;
    color: #d0d8e0;
    margin-bottom: 8px;
}
article table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}
article th, article td {
    border: 1px solid #7f8c8d;
    padding: 10px;
    text-align: left;
    color: #ecf0f1; /* Metal Grey for table text */
}
article th {
    background-color: #34495e; /* Darker Blue for table header */
    font-weight: bold;
}

/* Footer Style */
footer {
    text-align: center;
    padding: 20px 0;
    color: #7f8c8d; /* Light grey footer text */
    font-size: 0.9em;
    margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    header {
        padding: 40px 0;
    }
    header h1 {
        font-size: 2em;
    }
    header p {
        font-size: 1em;
    }
    section {
        padding: 30px 0;
    }
    .section-title {
        margin-bottom: 40px;
    }
    .card-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
    article {
        padding: 20px;
    }
    article h2 {
        font-size: 1.8em;
    }
    article h3 {
        font-size: 1.5em;
    }
    article p {
        font-size: 1em;
    }
    .image-gallery img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.7em;
    }
    .section-title {
        font-size: 1.8em;
    }
    .card h3 {
        font-size: 1.2em;
    }
    article h2 {
        font-size: 1.6em;
    }
    article h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5em;
    }
    .section-title {
        font-size: 1.6em;
    }
    .card h3 {
        font-size: 1.1em;
    }
    article h2 {
        font-size: 1.4em;
    }
    article h3 {
        font-size: 1.2em;
    }
    .image-gallery img {
        width: 60px;
        height: 60px;
    }
}

/* Animations and Transitions - Optional, can be expanded */
.card {
    background-image: linear-gradient(45deg, rgba(52, 73, 94, 0.8), rgba(52, 73, 94, 0.6)); /* Subtle gradient for cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: scale(1.05); /* Slightly scale up on hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.section-title {
    animation: fadeInTitle 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInTitle {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Example Gradient Text Style - can be used for specific elements */
.gradient-text {
    background: linear-gradient(to right, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Important for text clip to work correctly */
}

