@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

h1, h2, a, img, .gallery-controls {
    /* Prevent text selection */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Old Firefox */
    -ms-user-select: none;     /* IE10+/Old Edge */
    user-select: none;         /* Standard */

    /* Prevent image/link dragging (Chrome, Safari, Edge) */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
}

.container {
    display: flex;
    padding: 5em;
    gap: 5em;
}

.sidebar {
    height: fit-content;
}

.sidebar a {
    text-decoration: none;
    color: black;
}

.sidebar h1 {
    line-height: 1.1;
    margin: 0 0 2em 0;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-bottom: 3em;
}

.nav-link {
    text-decoration: none;
    color: black;
    transition: opacity 0.2s ease;
    opacity: 0.4;
    font-size: 1.3rem;
}

.nav-home {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2em;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link.active {
    opacity: 1;
}

.home-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 10em); 
}

.home-img {
    width: 100%;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    animation: fadeIn 0.5s ease-in-out forwards;
    opacity: 0;
}

.gallery-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-title {
    font-size: 2.2rem;
    letter-spacing: 0.1;
    font-weight: 400;
    text-align: center;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 75vh;
    display: flex;
    flex-direction: column;
    margin-top: 3em;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    min-height: 0;
    gap: 5vw;
    scrollbar-width: none;
}

.gallery-item {
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    cursor: pointer;
    scroll-snap-stop: always;
}

.gallery-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-item.active img {
    opacity: 1;
    cursor: default;
}

.scroll-hint {
    display: none;
    text-align: right;
    font-size: 0.9rem;
    opacity: 0.5;
    margin-top: 1em;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.scroll-hint.hidden {
    opacity: 0 !important;
}

.gallery-controls {
    position: flex;
    justify-content: center;
    margin-top: 3em;
    width: 100%;
}

.gallery-nav-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    cursor: pointer;
    padding-left: 0;
    padding-right: 1.5em;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.gallery-nav-btn:hover {
    opacity: 1;
}

.gallery-nav-btn.disabled {
    opacity: 0 !important;
    pointer-events: none;
}

.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 1em;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: black;
    font-size: 1.2rem;
    transition: opacity 0.2s ease;
}

.contact-item:hover {
    opacity: 0.5;
}

.contact-item svg {
    stroke-width: 2; 
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.home-img.img-loaded {
    opacity: 1;
}

.gallery-item img.img-loaded {
    opacity: 0.3;
}

.gallery-item.active img.img-loaded {
    opacity: 1;
}

@media (max-width: 1500px) {
    .container {
        padding: 3em;
        gap: 3em;
    }

    .sidebar h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5em;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .gallery-container {
        height: 65vh; 
        margin-top: 2em;
    }

    .gallery-track {
        gap: 3vw;
    }

    .gallery-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 850px) {
    .container {
        flex-direction: column;
        padding: 1em;
        gap: 3em;
    }

    .sidebar {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar h1 {
        margin: 0;
        font-size: 2rem;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 100;
        background-color: white;

        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav-link {
        font-size: 2rem;
        font-weight: 300;
    }

    .nav-home {
        margin-bottom: 0;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 101;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open nav {
        opacity: 1;
        visibility: visible;
    }

    .home-container {
        min-height: 60vh;
    }

    .gallery-container {
        height: 85vh;
    }

    .gallery-item {
        flex: 0 0 85%;
    }

    .scroll-hint {
        display: block;
    }

    .gallery-controls {
        display: none;
    }
}


