@font-face {
    font-family: "Avenir Next";
    src: url('./fonts/AvenirNext-Regular.woff') format("woff");
    font-display: swap;
    font-style: normal;
    font-weight: 300 500;
}

@font-face {
    font-family: "Avenir Next";
    src: url('./fonts/AvenirNext-Medium.woff') format("woff");
    font-display: swap;
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: "Avenir Next";
    src: url('./fonts/AvenirNext-Bold.woff') format("woff");
    font-display: swap;
    font-style: normal;
    font-weight: 800;
}

@font-face {
    font-family: "Avenir Next";
    src: url('./fonts/AvenirNext-Italic.woff') format("woff");
    font-display: swap;
    font-style: italic;
    font-weight: 300 500;
}

@font-face {
    font-family: "Avenir Next";
    src: url('./fonts/AvenirNext-MediumItalic.woff') format("woff");
    font-display: swap;
    font-style: italic;
    font-weight: 600;
}   

:root {
    scrollbar-color: #504060 transparent;
    font-family: "Avenir Next", sans-serif;
    text-rendering: geometricPrecision;
    color: #504060;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    --grad: linear-gradient(
        to bottom,
        hsla(0, 0%, 0%, 0) 0%,
        hsla(0, 0%, 0%, 0.011) 8%,
        hsla(0, 0%, 0%, 0.039) 15.1%,
        hsla(0, 0%, 0%, 0.081) 21.2%,
        hsla(0, 0%, 0%, 0.135) 26.8%,
        hsla(0, 0%, 0%, 0.198) 31.9%,
        hsla(0, 0%, 0%, 0.267) 36.8%,
        hsla(0, 0%, 0%, 0.341) 41.6%,
        hsla(0, 0%, 0%, 0.415) 46.5%,
        hsla(0, 0%, 0%, 0.488) 51.7%,
        hsla(0, 0%, 0%, 0.557) 57.4%,
        hsla(0, 0%, 0%, 0.62) 63.8%,
        hsla(0, 0%, 0%, 0.673) 71.1%,
        hsla(0, 0%, 0%, 0.714) 79.4%,
        hsla(0, 0%, 0%, 0.741) 89%,
        hsla(0, 0%, 0%, 0.75) 100%
    );
}

p{
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 900px;
}

.scroll-arrow {
    position: fixed;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: #eeeeee; 
    animation: bounce 2s 2;
    z-index: 1000; 
    opacity: 0.8; 
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Add transition for smooth fading */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.mobile-only {
    display: none;
}

.map-link{
    color: #504060;
    font-weight: 600;
}

.map-link:hover{
    color: #70557A;
}

.dark-block {
    font-size: 1.7rem;
    font-weight: 400;
    width: 80%;
    max-width: 900px;
    margin: 1em auto;
}

.light-block {
    font-size: 1.7rem;
    font-weight: 600;
    width: 80%;
    max-width: 900px;
    margin: 1em auto;
}

.serv-list {
    text-transform: uppercase;
    font-style: italic;
    font-size: 1.3rem;
}

.noTop{
    margin-top: 0;
}

.noBtm{
    margin-bottom: 0;
}

.noMrg{
    margin: 0;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

.hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: top 0.3s ease-in-out;
}

.layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.front {
    z-index: 3;
    transform: scale(1);
}

.middle {
    z-index: 2;
    transform: scale(1);
}

.back {
    z-index: 1;
    transform: scale(1); 
}

.content {
    background: #EEEEEE;
    position: relative;
    z-index: 1;
}

.intro-text-container {
    height: 100dvh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 5;
}

.intro-first {
    opacity: 0.5 !important; 
    transform: translateY(30px) scale(1) perspective(1px); filter: blur(3px);
}

.intro-text {
    position: fixed;
    line-height: 1;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    margin-top: 0;
    max-width: 60%;
}

.intro-4{
    padding-bottom: 50px;
    max-width: 300px;
}

.block{
    padding: 5%;
}

.first-block{
    margin: 0;
    color: #E6E6E6;
    background-image: linear-gradient(90deg, #504060 0%, #70557A 100%);
}

.footer-block{
    margin: 0;
    background: #d6d3d2;
    display: flex;
    flex-direction: column;
}

.footer-block-inner{
    -webkit-text-stroke: 0.3px;
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
}

.footer-logo{
    margin-left: -3%;
    margin-bottom: 30px;
}

.footer-column-1{
    flex: 2;
    order: 1;
    padding-right: 20px;
}

.footer-column-2{
    flex: 1;
    order: 1;
    padding: 0 20px;
}

.footer-column-3{
    flex: 1;
    order: 1;
    padding: 0 20px;
}


/* Carousel - Start */

.picture-1::after{
    background-image: url('./img/Carousel_1.webp');
    background-size: cover;
}

.picture-2::after{
    background-image: url('./img/Carousel_2.webp');
    background-size: cover;
}

.picture-3::after{
    background-image: url('./img/Carousel_3.webp');
    background-size: cover;
}

.picture-4::after{
    background-image: url('./img/Carousel_4.webp');
    background-size: cover;
}

.picture-5::after{
    background-image: url('./img/Carousel_5.webp');
    background-size: cover;
}

.picture-6::after{
    background-image: url('./img/Carousel_6.webp');
    background-size: cover;
}

.carousel-container {
    background-color: #000000;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 70%;
    height: 100dvh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden; 
}

.carousel-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(80, 64, 96, 0.75);
    transition: 1s ease-in-out;
    z-index: 2; 
}

.carousel-slide.active::before {
    background-color: rgba(0, 0, 0, 0); 
}

.carousel-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1; /* Place it below the overlay */
    filter: grayscale(1); 
    transition: 0.5s ease;
}

.carousel-slide.active::after {
    filter: none;
}

.carousel-text {
    background-image: var(--grad);
    padding: 2.5rem 1rem 1rem 2.5rem;
    margin: 0;
    width: 100%;
    max-width: none;
    color: white;
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    text-align: left;
    z-index: 3; /* Ensure text is above both overlay and image */
}

.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
}

.btn.prev {
    left: 10px;
}

.btn.next {
    right: 10px;
}

/* Carousel - End */


/* Mobile */

@media only screen and (max-width: 767px) {

    .mobile-only {
        display: inline;
    }

    .carousel-slide{
        height: 30vh;
    }

    .carousel-text {
        padding: 2.5rem 1rem 1rem 2.5rem;
    }

    .block{
        padding: 10% 5%;
    }

    .intro-text {
        font-size: 1.5rem;
        padding-bottom: 20%;
    }

    .intro-4{
        max-width: 60%;
    }

    .dark-block{
        font-size: 1.5rem;
        width: 90%;
        margin: 0;
        padding: 5%;
    }

    .light-block{
        font-size: 1.5rem;
        width: 90%;
        margin: 0;
        padding: 5%;
    }

    .serv-list {
        text-transform: none;
        font-size: 1.5rem;
        padding: 2% 5%;
        white-space: pre-wrap;
    }

    .footer-block-inner{
        width: 90%;
        flex-direction: column;
    }

    .footer-logo{
        width: 65%;
        margin-left: -7%;
        margin-bottom: 0;
    }

    .footer-column-1, .footer-column-2, .footer-column-3{
        padding: 0;
    }
}
