@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Libre Baskerville', serif;
    background: linear-gradient(to bottom, #F5E9DD 0%, #C7A98F 40%, rgba(0,0,0,0) 60%), 
        url('mountains-bg.webp') no-repeat center bottom;
    background-size: cover;
    background-attachment: fixed;
}

/* Fade-in effect */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

/* Sections - Adjusted position higher */
section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Moves text higher */
    align-items: center;
    text-align: center;
    padding: 10vh 50px 50px; /* Increased top padding */
}

/* Titles with shadow */
.small-title {
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2D2D2D;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation-delay: 0.2s;
}

.main-title {
    font-size: 40px;
    line-height: 1.6;
    color: #2F3D33;
    font-weight: normal;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    animation-delay: 0.4s;
}

.contact {
    font-size: 24px;
    margin-top: 10px;
    color: #2D2D2D;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation-delay: 0.6s;
}

/* Services Section */
.services {
    background: linear-gradient(to bottom, #F5E9DD, #C7A98F, #A08067);
    width: 100%;
    padding: 80px 0;
}

.services h2 {
    font-size: 36px;
    color: #2D2D2D;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Centered UL and boxed text */
.services ul {
    list-style-type: none;
    text-align: center;
    padding-left: 0;
    font-size: 25px;
    line-height: 2;
}

.services li {
    margin: 15px 0;
    font-family: 'Libre Baskerville', serif;
    color: #2F3D33;
    font-weight: normal;
    display: inline-block;
    width: 65%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6); /* Light boxed effect */
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Scroll-down indicator */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 50px;
    color: #2F3D33;
    animation: bounce 1.5s infinite;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Hide scroll-down icon when scrolling */
.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .small-title {
        font-size: 20px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }

    .main-title {
        font-size: 32px;
        line-height: 1.4;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .contact {
        font-size: 20px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }

    .services-box {
        width: 90%;
    }

    .services ul {
        font-size: 22px;
    }

    .services li {
        width: 90%;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }

    /* Adjusted mobile layout for higher text */
    section {
        padding: 8vh 30px 50px;
    }
}
