/* RESET */

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

/* BODY */

body {
    background: black;
    color: white;

    font-family: Arial, Helvetica, sans-serif;

    overflow-x: hidden;
}

/* PAGE TRANSITIONS */

body {
    opacity: 0;
    transform: translateX(60px);

    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

/* PAGE ENTER */

body.fade-in {
    opacity: 1;
    transform: translateX(0);
}

/* PAGE EXIT */

body.fade-out {
    opacity: 0;
    transform: translateX(-60px);
}

/* HERO */

.hero {
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px;
}

.hero-logo {
    width: 80%;
    max-width: 900px;
}

/* CATEGORY GRID */

.category-grid {
    width: 90%;
    max-width: 1400px;

    margin: auto;
    margin-bottom: 120px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}

.category-card {
    position: relative;

    overflow: hidden;

    border-radius: 20px;

    aspect-ratio: 4 / 3;

    text-decoration: none;

    color: white;
}

.category-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

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

/* OVERLAY */

.overlay {
    position: absolute;

    bottom: 0;

    width: 100%;

    padding: 30px;

    background: linear-gradient(transparent,
            rgba(0, 0, 0, 0.8));
}

/* TOP BAR */

.topbar {
    width: 100%;

    padding: 30px 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button {
    color: white;

    text-decoration: none;

    font-size: 1rem;
}

.topbar-logo {
    width: 120px;
}

/* PAGE BANNER */

.page-banner {
    width: 90%;

    margin: auto;
    margin-bottom: 80px;
}

.page-banner img {
    width: 100%;

    border-radius: 20px;
}

/* GALLERY */

.gallery {
    width: 90%;
    max-width: 1600px;

    margin: auto;
    margin-bottom: 120px;

    columns: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;

    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;

    border-radius: 16px;

    display: block;
}

.gallery-item p {
    margin-top: 12px;

    font-size: 0.95rem;

    opacity: 0.8;

    line-height: 1.4;
}

/* CONTACT */

.contact {
    text-align: center;

    padding: 120px 20px;
}

.contact h2 {
    margin-bottom: 40px;
}

.contact-links {
    display: flex;

    justify-content: center;

    gap: 40px;

    flex-wrap: wrap;
}

.contact-links a {
    color: white;

    text-decoration: none;
}

/* MOBILE */

@media (max-width: 1000px) {

    .gallery {
        columns: 2;
    }

}

@media (max-width: 768px) {

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

    .gallery {
        columns: 1;
    }

    .topbar-logo {
        width: 90px;
    }

}

.gallery-title {

    width: 90%;

    margin: auto;

    margin-bottom: 60px;

}

.gallery-title h1 {

    font-size: 4rem;

    font-weight: 700;

}