/* Basic Reset and Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    overflow-x: hidden; /* Prevents horizontal scrollbar from appearing */
}

/* Section 1: Intro Section Styling */
.intro-section {
    height: 150vh; /* Taller than viewport to allow for scrolling */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to the top to start */
    position: relative;
}

.intro-text {
    text-align: center;
    color: #fff;
    position: sticky; /* This is key for the clamp effect */
    top: 0;
    width: 100%;
    height: 100vh; /* Take full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.intro-text h1 {
    font-size: 12vw;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.intro-text h2 {
    font-size: 4vw;
    font-weight: 300;
    line-height: 1;
    margin-top: 10px;
    color: #a0a0a0;
}

/* Section 2: Gallery Section Styling */
.gallery-section {
    padding: 100px 0;
    background-color: #181818;
    position: relative;
    z-index: 2; /* Ensure it appears above the clamped header */
    visibility: hidden; /* Hide until its animation starts */
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-header p {
    font-size: 1.1rem;
    color: #a0a0a0;
}

.gallery-container {
    width: 100%;
    overflow: hidden; /* This is crucial to hide the non-visible parts of the gallery */
    cursor: grab;
}

.gallery-container:active {
    cursor: grabbing;
}

.gallery {
    display: flex;
    flex-wrap: nowrap; /* Ensures items stay in a single line */
    padding: 0 5vw; /* Give some space on the sides */
}

.item {
    flex: 0 0 30vw; /* flex-grow, flex-shrink, flex-basis */
    max-width: 450px;
    margin: 0 2vw;
    background-color: #222;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.item:hover {
    transform: translateY(-10px);
}

.item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.item-details {
    padding: 20px;
}

.item-details h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.item-details p {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .item {
        flex-basis: 40vw;
    }
    .intro-text h1 {
        font-size: 15vw;
    }
    .intro-text h2 {
        font-size: 5vw;
    }
}

@media (max-width: 600px) {
    .item {
        flex-basis: 70vw;
    }
    .intro-text h1 {
        font-size: 18vw;
    }
    .intro-text h2 {
        font-size: 6vw;
    }
    .gallery-header h3 {
        font-size: 2rem;
    }
}
