:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #555;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

/* Header & Navigation */
header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    height: 50px;
    width: auto;
    mix-blend-mode: multiply;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 21px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: all var(--transition-speed);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-background-image);
    background-size: cover;
    background-position: center;
    filter: brightness(1.05) contrast(1.18) saturate(1.03);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: 1;
}

/* Mosaic Section */
.mosaic-section {
    padding: 0;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 0;
}

.mosaic-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4 / 3;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mosaic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}

.mosaic-item:hover img {
    transform: scale(1.1);
}

.mosaic-item.is-centered img {
    filter: brightness(0.6);
    transform: scale(1.04);
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
}

.mosaic-item.is-centered .mosaic-overlay {
    opacity: 1;
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2rem 0 0;
    background-color: #f7f3ef;
    border-top: 1px solid #e5ddd4;
}

.image-section {
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.image-section img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    /* Remove white background if image has it */
    mix-blend-mode: screen;
    /* The logo is now png, if it still has white we shift to screen or multiply */
    /* If the user wants white on black footer, we might need a different approach */
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity var(--transition-speed);
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: block;
    width: auto;
    max-width: min(96vw, 1800px);
    max-height: 92vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.close {
    position: absolute;
    top: 15px;
    right: 24px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.modal-nav:hover,
.modal-nav:focus {
    background: rgba(255, 255, 255, 0.26);
}

.modal-prev {
    left: 24px;
}

.modal-next {
    right: 24px;
}

.modal-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        width: 100%;
        transition: right var(--transition-speed);
        padding-top: 2rem;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 1rem;
    }

    .close {
        top: 10px;
        right: 16px;
    }

    .modal-nav {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }

    .modal-prev {
        left: 12px;
    }

    .modal-next {
        right: 12px;
    }

    .modal-caption {
        bottom: 16px;
        width: calc(100% - 2rem);
        text-align: center;
        border-radius: 18px;
    }
}

@media screen and (max-width: 480px) {
    .mosaic-grid {
        grid-template-columns: 1fr;
    }
}
