:root {
    --bs-nav-link-font-size: 1.1rem;
    --bs-nav-link-font-weight: 600;
}

html {
    /* scroll-behavior: smooth; */
    scrollbar-width: none;
    /* Firefox */
    scroll-behavior: auto !important;
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
}

.scroll-section {
    scroll-snap-align: start;
    scroll-margin-top: 1000px;
    flex: 0 0 100%;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    padding: 2rem;
    background: #f8f9fa;
    border-right: 1px solid #ccc;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle, rgb(195, 213, 255) 0%, rgb(63, 87, 153) 100%) !important;
    color: #222;
}

nav {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px #5b6986;
}

nav .nav-link {
    margin-right: 1rem;
    text-decoration: none;
    font-weight: 500;
    user-select: none;

}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px #eee;
}

.unselectable {
    user-select: none;
    /* Prevent selection highlight */
    -webkit-user-drag: none;
    /* Safari & Chrome */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hide-scrollbar {
    overflow: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.btn-primary {
    background-color: #476bb1 !important;
    border: 1px solid #eaf5fa !important;
    transition: transform 1s ease;
}

.bg-blue {
    background-color: #e5ebfc;
}

h1 {
    font-size: 2.2em;
    margin-bottom: 0.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    cursor: default;
    user-select: none;
}

p {
    color: #444;
    font-size: 1.1em;
    margin-bottom: 1em;
}

button {
    font-family: inherit;
}

.logo-div {
    height: 120px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo {
    padding-top: 10px;
    /* filter: grayscale(100%); */
    display: block;
    width: 250px;
}

/* .carousel, */
/* .carousel-inner, */
.carousel-item {
    overflow: visible !important;
}

.carousel .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.nav-link.active {
    background-color: #92160e !important;
    border-bottom: 2px solid #600000;
}

.form-control {
    background-color: #eff4ff !important;
}

#formStatus {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

#formStatus.show {
    max-height: 200px;
    /* enough height for your message */
    opacity: 1;
}

#formStatusCloseBtn {
    width: 0.5rem;            /* smaller width */
    height: 0.5rem;           /* smaller height */
    background-size: 0.5rem;  /* shrink the × icon */
    padding: 0.4rem;

}

#undoBtn {
    cursor: pointer;
}

footer {
    font-size: 0.9rem;
}



@media (max-width: 800px) {

    #about-york {
        flex-direction: column !important;
    }

    #testimonials .card {
        max-width: 100%;
    }

    nav .nav-link {
        margin: 0.0rem !important;

    }
}

@media (max-width: 768px) {

    /* .carousel, */
    .carousel-inner {
        padding-left: 10px;
        padding-right: 10px;
        overflow: visible !important;
    }

    .carousel-control-prev {
        width: 0px !important
    }

    .carousel-control-next {
        width: 0px !important
    }
}

@media (max-width: 620px) {

    #nav-logo {
        max-height: 50px;
    }

    .navbar {
        justify-content: center !important
    }

    nav .nav-link {
        font-size: small !important;
    }

    .scroll-section {
        padding: 0rem !important;
    }
}

@media (max-width: 480px) {
    div.container {
        padding: 15px !important;
    }

    div.clients-div {
        padding: 5px !important;
    }
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: scale(1.15);
        z-index: 10;
        position: relative;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .btn-primary:hover {
        background-color: #15439e !important;
        border: 1px solid #0400f3 !important;
        transform: scale(1.1);
        transition: transform 0.2s ease;
    }

    .nav-link.active {
        background-color: #92160e !important;
        border: 1px solid #3f0404 !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .card.hovered {
        transform: scale(1.15);
        z-index: 10;
        position: relative;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        transform: translateZ(0); /* triggers GPU */
        -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
    }
}