/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: rgba(0, 0, 0, 0.85);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-tertiary: rgba(0, 0, 0, 0.4);
    --background: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    /* Dynamic max-width based on screen size */
    --max-width: min(90%, 1800px);
    --gutter: clamp(1rem, 4vw, 3rem);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    /* Fluid base font size */
    font-size: clamp(14px, 1vw + 0.5rem, 18px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - Fluid sizing */
h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
}

h4 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: clamp(0.5rem, 1vh, 1rem);
}

p {
    margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--text-tertiary);
    transition: border-color 0.2s ease;
}

a:hover {
    border-bottom-color: var(--text-primary);
}

/* Navigation */
nav {
    padding: clamp(1.5rem, 3vh, 2.5rem) var(--gutter);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    max-width: var(--max-width);
    margin: 0 auto;
}

nav a {
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    letter-spacing: 0.02em;
    border: none;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--text-primary);
}

/* Layout Containers */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(3rem, 6vh, 5rem) var(--gutter);
}

/* Header */
header {
    padding: clamp(4rem, 8vh, 8rem) var(--gutter) clamp(3rem, 6vh, 5rem);
    text-align: center;
    background-color: #fafafa;
}

header h1 {
    max-width: 800px;
    margin: 0 auto clamp(1rem, 2vh, 1.5rem);
}

.subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
main {
    padding: clamp(3rem, 6vh, 5rem) var(--gutter);
}

article {
    max-width: min(90%, 900px);
    margin: 0 auto;
}

/* Overview Section */
.overview {
    margin-bottom: clamp(3rem, 6vh, 5rem);
    padding: clamp(2rem, 4vh, 3rem);
    background-color: #f8f9fa;
    border-radius: 12px;
}

.overview h2 {
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(2rem, 4vh, 3rem);
}

.stat {
    padding: clamp(1rem, 2vh, 1.5rem);
    background: white;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Media Grid */
.media-grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: clamp(3rem, 6vh, 5rem);
}

.media-grid.two-column {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.media-grid img,
.media-grid video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: clamp(2rem, 4vh, 3rem) 0;
    border-radius: 8px;
}

.full-width {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin: clamp(3rem, 6vh, 5rem) 0;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin: 0;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Sections */
section {
    margin-bottom: clamp(3rem, 6vh, 5rem);
}

section h2 {
    color: var(--text-primary);
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
}

/* Lists */
ul, ol {
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
    padding-left: 2rem;
}

li {
    margin-bottom: 0.75rem;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.6;
}

/* Footer */
footer {
    padding: clamp(3rem, 6vh, 5rem) var(--gutter);
    background-color: #fafafa;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
}

/* Responsive Breakpoints */

/* Large Screens (1440px and up) */
@media (min-width: 1440px) {
    :root {
        --max-width: 1600px;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    article {
        max-width: 1000px;
    }
}

/* Ultra Wide Screens (1920px and up) */
@media (min-width: 1920px) {
    :root {
        --max-width: 1800px;
    }

    body {
        font-size: 18px;
    }

    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    article {
        max-width: 1100px;
    }
}

/* 4K Screens (2560px and up) */
@media (min-width: 2560px) {
    :root {
        --max-width: 2200px;
    }

    body {
        font-size: 20px;
    }

    article {
        max-width: 1200px;
    }
}

/* Tablet and Medium Screens */
@media (max-width: 1024px) {
    nav ul {
        gap: 2rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Screens */
@media (max-width: 768px) {
    nav ul {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    header {
        text-align: left;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .media-grid.two-column {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.75rem;
    }

    body {
        font-size: 14px;
    }

    ul, ol {
        padding-left: 1.5rem;
    }
}

/* Print Styles */
@media print {
    nav,
    footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        font-size: 18pt;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}