/* 
  base.css
  Variables, Reset, and Core Scroll Layout
*/

:root {
    --bg-color: #0d0d0d;
    --text-color: #f0f0f0;
}

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

body,
html {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-color);
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    /* Remove overflow: hidden to allow our custom scroll container to work or apply it specifically to the container */
    margin: 0;
    padding: 0;
}

/* ========================================= */
/* FullPage Scroll Snap Layout               */
/* ========================================= */
.scroll-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* Optional: hide scrollbar for cleaner look */
    scrollbar-width: none;
    /* Firefox */
}

.scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.scroll-section {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    /* For slideshow to work properly as absolute children */
}

/* ========================================= */
/* Preloader                                 */
/* ========================================= */
#page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--text-color);
    border-radius: 50%;
    animation: preloader-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes preloader-spin {
    to {
        transform: rotate(360deg);
    }
}

.preloader-text {
    color: var(--text-color);
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
    animation: preloader-pulse 1.5s ease-in-out infinite;
}

@keyframes preloader-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Prevent scrolling while loading */
body.is-loading .scroll-container {
    overflow-y: hidden;
}