:root {
    --bg-color: #fcfbf4;
    --text-color: #2c2c2c;
    --accent-color: #555;
    font-family: 'Mazius Display', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', serif, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --spacing-unit: 1.5rem;
    --header-height: 80px;
}

@font-face {
    font-family: 'Mazius Display';
    src: url('/fonts/MaziusDisplay-Regular.woff2');
    font-style: normal;
}

@font-face {
    font-family: 'Mazius Display';
    src: url('/fonts/MaziusDisplay-Extraitalic.woff2');
    font-style: italic;
}

.title {
    font-size: 4rem;
    text-align: center;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url('assets/paper.webp');
    background-size: tile;
    background-repeat: repeat;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

body>header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 8vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1000;
}



.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: fixed;
    top: 4vh;
    transform: translateY(-50%);
    right: 5%;
    z-index: 1002;
}

.hamburger div {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: 0.3s;
}

.mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: #f8f8f8;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

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

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }
}

main {
    padding-top: var(--header-height);
}

#hero {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    width: 100%;
}

#hero .hero-content {
    width: 100%;
}

#hero h1,
#hero p,
#hero .btn,
#hero button,
.page-header h1,
.page-header p,
.page-header .btn,
.page-header button {
    position: relative;
    z-index: 10;
}

#hero h1 {
    font-size: clamp(2.5rem, 7vw, 6rem);
    max-width: 800px;
    margin: 0 auto 2rem;
}

#hero p {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
}

button,
.btn {
    padding: 1rem 2.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin: 2rem 0;
    font-weight: 500;
}

button:hover,
.btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    opacity: 1;
}

#exhibitions {
    padding: 5rem 5%;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--text-color);
}

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

.exhibition-card {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.exhibition-card:hover {
    transform: translateY(-5px);
}

.card-image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.card-content {
    padding: 0 1.5rem 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--accent-color);
}

#contact-section {
    padding: 5rem 0;
    display: flex;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1 1 300px;
    padding: 3rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.02);
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.map-container {
    flex: 1 1 400px;
    height: 500px;
    min-height: 400px;
    position: relative;
}

#map,
.map-container iframe {
    width: 100%;
    height: 100%;
}

footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--accent-color);
}

.page-header {
    height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.page-header [data-us-project] {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}

.search-container {
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
    padding: 3rem 5%;
}

#collections .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.category-card {
    position: relative;
    height: 250px;
    background: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: scale(1.02);
}

.category-card span {
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #ddd;
    margin-bottom: 1rem;
    object-fit: cover;
}

.artist-card {
    text-align: center;
    cursor: pointer;
}

.artist-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #ddd;
    margin-bottom: 1rem;
    object-fit: cover;
}

.collection-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #ddd;
    margin-bottom: 1rem;
    object-fit: cover;
}

.artist-name {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    font-family: var(--font-heading);
}

.collection-name {
    font-size: 1.6rem;
    font-family: var(--font-heading);
}

.about-section {
    padding: 4rem 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: 4rem;
}

.about-block h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.bio-image {
    width: 100%;
    height: auto;
    background: #ccc;
    aspect-ratio: 3/4;
}

@media (max-width: 768px) {
    .bio-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: 3rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    position: relative;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    z-index: 10;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.modal-body {
    font-size: 1.1rem;
}

.modal-gallery {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.modal-gallery-item {
    width: 100%;
    aspect-ratio: 1;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
}

#artistModalName {
    font-style: italic;
}
