/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Space+Grotesk:wght@300&display=swap');


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

body {
    height: 100%;
    overflow: hidden;
    background-color: #0f0e0f;
}




/* Project Scroller Styles */
.project-scroller {
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;  /* Edge */
}

.project-scroller::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.project-slide {
    height: calc(100% - 100px);
    width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center !important;
    background-repeat: no-repeat;
    background-attachment: fixed !important;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
}

#slide1 {
    margin-top: 100px;
}

.overlay {
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.overlay::before {
    background: inherit;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: -20px;
  box-shadow: inset 0 0 500px rgba(255, 255, 255, .4); 
  filter: blur(10px);
  z-index: -1;
}

.overlay-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    background: transparent;
    backdrop-filter: blur(10px);
}

.overlay-img {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.overlay-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 788px;
    object-fit: cover !important;
}

#slide2 .overlay-img {
    width: 100%;
    max-width: 700px;
    height: auto;
}

#slide2 .overlay-img img {
    width: 100%;
    max-width: 700px;
    height: auto;
    max-height: 788px;
    object-fit: cover !important;
}

.overlay h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 1.15;
    max-width: 550px;
}

.overlay p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #a6a6a6;
    max-width: 550px;
    font-family: "Inter", sans-serif;
}

.overlay a {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    padding: 0.75rem 1.5rem;
    color: #fff;
    background: transparent;
    width: 250px;
    text-align: center;
    text-decoration: none;
    border: 2px solid #fff;
    transition: background 0.3s;
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.overlay a:hover {
    background: #ff0000;
    color: #fff;
    border: 2px solid #fff;
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 10rem;
    color: #fff;
    font-size: 1rem;
    /* small, readable */
    opacity: 0.8;
    letter-spacing: 0.05em;
    pointer-events: none;
    /* avoid blocking button clicks */
    user-select: none;
}

.scroll-cue p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.scroll-cue span i {
    display: inline-block;
    animation: floatArrow 2s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.pagination {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 500;
}

.pagination:hover {
    cursor: pointer;
}

.dot {
    width: 12px;
    height: 12px;
    border: 1px solid white;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #ff0000;
}








/* Rise Animations */
[data-rise="true"] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
/* Activated on page load */
[data-rise="true"].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Animations */
[slide-right="true"] {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[slide-right="true"].visible {
    opacity: 1;
    transform: translateX(0);
}

[slide-left="true"] {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[slide-left="true"].visible {
    opacity: 1;
    transform: translateX(0);
}


/* Tablet Styles */
@media (max-width: 1024px) {
.project-slide {
        height: 100vh;
        width: 100vw;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-size: cover;
        background-position: center;
    }

    .overlay {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }

    .overlay-text {
        max-width: 90%;
        text-align: center;
    }

    .overlay-img {
        display: none;
    }

    .overlay a {
        position: static;
        transform: none;
        margin-top: 2rem;
    }

    .scroll-cue {
        position: relative;
        margin: 0 auto;
        font-size: 1rem;
        bottom: -5rem;
        left: 1rem;
    }
}



/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        top: 2.5rem;
        right: 4rem;
        font-size: 28px;
    }
    .project-scroller {
        height: 100vh;
        width: 100vw;
    }
    .overlay {
        padding: 1rem;
    }
    .overlay a {
        position: static;
        transform: none;
        margin-top: 1rem;
    }
    .pagination {
        right: 15px;
    }
    .scroll-cue {
        position: relative;
        margin: 0 auto;
        font-size: 1.25rem;
        bottom: 0.25rem;
    }
    .project-scroller {
        scroll-snap-type: y mandatory;
    }

}


@media (max-width: 480px) {
    .project-slide {
        height: calc(100vh - 80px);
        width: 100vw;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-size: cover;
        background-position: center;
    }

    #slide1 {
        margin-top: 80px;
    }

    

    .overlay {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
    }

    .overlay-text {
        max-width: 90%;
        text-align: center;
    }

    .overlay-img {
        display: none;
    }

    .overlay a {
        position: static;
        transform: none;
        margin-top: 1rem;
    }

    .pagination {
        right: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .scroll-cue {
        position: relative;
        margin: 0 auto;
        font-size: 1.25rem;
        bottom: 0;
    }
}