.home {
    background-size: cover;
    gap: 1rem;
    overflow: hidden !important;
    max-height: 1600px;
}

.home .background:not(.overlay-background) {
    pointer-events: all !important;
    opacity: 0.3;
    transition: opacity 1s ease;
}

.home .overlay-background {
    opacity: 0.3;
}

.home .section-content {
    margin-top: 2rem;
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
    box-sizing: border-box;
    min-height: 70vh;
}

.about .window, .contact .window {
    transform: rotateX(9deg) rotateY(25deg) rotateZ(-4deg);
}

.about:hover .window, .story:hover .window, .clients:hover > .background, .services:hover .card-container, .contact:hover .window {
    pointer-events: all !important;
    opacity: 1 !important;
}

.about .section-content, .story .section-content {
    align-items: center !important;
}

.story .window {
    transform: rotateX(9deg) rotateY(-15deg) rotateZ(2.5deg);
}

.story .grid-background, .testimonials .grid-background {
    background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 0.75px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0.75px, transparent 1px);
}

.story .overlay-background:not(.alt) {
    background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.3) 100%) !important;
}

.clients {
    background-color: var(--line);
    scroll-margin-top: 6rem !important;
}

.clients .section-content {
    z-index: 5 !important;
    background: radial-gradient(var(--main) 30%, transparent 70%) !important;
}

.clients > .background {
    gap: 2rem 0 !important;
    transition: all 0.5s ease;
}

.testimonials {
    overflow: hidden !important;
    max-height: 1000px;
    scroll-margin-top: 6rem !important;
}

.testimonials:has(.dot-background:hover) .hero-caption.background {
    opacity: 0.5;
}

.testimonials .overlay-background {
    background: linear-gradient(transparent 80%, var(--main) 100%);
    z-index: 1;
}

.testimonials .section-content {
    gap: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-height: 60vh;
}

.testimonials .hero {
    min-width: 100%;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.testimonials .hero-sub {
    font-size: 1.5rem;
    line-height: 1.75rem;
    transition: all 0.7s ease;
}

.testimonials .option-icon img {
    max-width: 4rem !important;
    max-height: 4rem !important;
}

.services {
    scroll-margin-top: 6rem !important;
}

.services .section-content, .contact .section-content {
    align-items: center !important;
}

@media (max-width: 1024px) {
    .about .section-content, .services .section-content, .contact .section-content {
        flex-direction: column !important;
    }

    .services .card-container {
        margin: 0 auto;
        justify-content: center !important;
    }
}

@media (max-width: 767px) {
    .home .section-content {
        gap: 2rem !important;
        margin-top: 2rem;
    }

    .story .hero-sub br {
        display: block !important;
    }

    .testimonials .section-content {
        min-height: 80vh;
    }
}

@media (max-width: 480px) {
    .services .card-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 400px) {
    .home .section-content {
        margin-top: 1.5rem !important;
        min-height: 90vh;
    }

    .home .hero-sub {
        font-size: 1.1rem;
        line-height: 1.25rem;
    }
}

@media (max-height: 1000px) {
    .home .section-content {
        gap: 3rem;
    }
}