:root {
    --primary-colour: #111;
    --white-colour: #f1f1f1;
    --purple-colour: #362657;
}

.primarybutton-white,
button {
    cursor: none;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    font-synthesis: none !important;
}

.scrollbar-track, .scrollbar-track-y {
  opacity: 0 !important;
  pointer-events: none !important;
}

body {
    width: 100vw;
    display: flex;
    flex-direction: column;
    background-color: #111;
}

html, body {
  overflow: hidden;
}

#content-wrapper {
  height: 100vh;
  overflow: auto;
}

#section1, #section2, #section3 {
  position: relative;
  overflow: hidden; /* Ensure the moving background stays within bounds */
  height: 100vh;
  width: 100vw;
}

.section-overlay 
{
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #0b0b0b, #00000085);
    z-index: 1;
}

.section2-overlay 
{
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #000000e9;
    z-index: 1;
}

#ProjectSection {
    position: relative; /* Establish positioning context for the overlay */
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url("../Images/Home/MainPic1.png") center no-repeat #000;
    background-attachment: scroll;
    background-size: cover;
    transition: 0.5s ease-in-out;
    opacity: 0;
    transform: scale(1.2);
    animation: fadezoom 1s ease forwards;
}

#ProjectSection2 {
    position: relative; /* Establish positioning context for the overlay */
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url("../Images/Home/MainPic3.png") center no-repeat #000;
    background-attachment: scroll;
    background-size: cover;
}

#ProjectSection3 {
    position: relative; /* Establish positioning context for the overlay */
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url("../Images/Home/MainPic2.png") center no-repeat #000;
    background-attachment: scroll;
    background-size: cover;
}

.section-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.section-info-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* aligns text block and button to the left */
    padding-left: 5vw; /* optional: space from the edge */
    z-index: 3;
    gap: 3.5vh;
}

.mockup-picture {
    z-index: 3;
    width: 60%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s ease-in;
}

.mockup-picture img {
    max-height: 80%; /* or 100%, depending on your layout */
    object-fit: contain;

    width: fit-content;
    transition: 0.2s ease-in-out;
}

.mockup-picture img:hover {
    transform: scale(1.015); 
}


.section-text {
    width: 100%;
}

.section-text h2 {
    text-align: left;
}

.section-text h4 {
    text-align: left;
    color: #d5d5d5;
    padding-left: 4px;
}

#ProjectSection h2, #ProjectSection2 h2, #ProjectSection3 h2 {
    color: var(--white-colour);
    z-index: 3;
}

#ProjectSection h4, #ProjectSection2 h4, #ProjectSection3 h4{
    margin-bottom: 80px;
    margin-top: -5px;
}

.primarybutton-white {
    padding: 0.95rem 1.5rem;
    color: var(--white-colour);
    border: 2px solid var(--white-colour);
    border-radius: 50px;
    background-color: var(transparent);
    z-index: 3;
    transition: 0.2s ease-in;
}

.primarybutton-white:hover {
    background-color: var(--white-colour);
    color: var(--primary-colour);
    transform: scale(1.04);
}

@keyframes fadezoom {
    from {
        opacity: 0;
        transform: scale(1.4);
    }
    
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (width <= 1350px) {
    .section-content {
        flex-direction: column;
        height: fit-content;
        padding-top: 120px;
    }

    #ProjectSection {
        height: 100vh;
    }

    .section-info-content {
        gap: 0vh;
        height: 100%;
        width: 100%;

        flex-direction: column;
        align-items: center; /* aligns text block and button to the left */
        padding-left: 0; /* optional: space from the edge */
    }

    .section-content {
        height: 70%;
        gap: 35px;
    }

    .mockup-picture {
        z-index: 3;
        width: 100%;
        height: 80%;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.2s ease-in;
    }

    .section-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .section-text h2 {
        text-align: center;
    }

    .section-text h4 {
        text-align: center;
        padding-left: 0px;
        width: 75%;
    }
}