@import "../fonts/poppins/index.css";
@import "../styles/fontawesome.css";
@import "../styles/brands.css";
@import "../styles/regular.css";
@import "../styles/solid.css";

:root {
    --surface-0: hsl(0, 0%, 6%);
    --surface-1: hsl(0, 0%, 9%);
    --surface-2: hsl(0, 0%, 12%);
    --surface-3: hsl(0, 0%, 15%);
    --surface-4: hsl(0, 0%, 18%);
    --text-0: hsl(0, 0%, 95%);
    --text-1: hsl(0, 0%, 65%);
    --text-2: hsl(0, 0%, 35%);

    --accent: hsl(219, 77%, 55%);
    --accent-rgb: 51, 122, 204;
    --yellow: hsl(54, 65%, 57%);
    --nav-height: 4.2em;
}

body, html {
    padding: 0;
    margin: 0;
    background-color: var(--surface-1);
    color: var(--text-0);
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    font-family: "Poppins Regular", sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins SemiBold", sans-serif;
    font-weight: 600;
    margin: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2em;
    height: var(--nav-height);
    background-color: var(--surface-2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-logo a {
    text-decoration: none;
    color: var(--text-0);
    font-size: 1.2em;
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-km95 {
    background-color: var(--accent);
    padding: 0.3em 0.6em;
    border-radius: 0.3em;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2em;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-1);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-0);
}

.button-primary {
    background-color: var(--accent);
    padding: 0.5em 1em;
    border-radius: 0.5em;
    color: var(--text-0) !important;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#hero .button-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform-origin: center;
    animation: button-pulse-circle 4s infinite;
    animation-delay: 2s;
    z-index: -1;
}

.button-primary i {
    margin-right: 0.5em;
}

.button-secondary {
    background-color: hsl(135, 60%, 40%);
    padding: 0.5em 1em;
    border-radius: 0.5em;
    color: var(--text-0) !important;
    text-decoration: none;
}

.button-secondary i {
    margin-right: 0.5em;
}

#hero {
    height: 80vh;
    position: relative;
    background-color: var(--surface-0);
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    justify-content: center;
}

.hero-text {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: 0;
}

.hero-buttons {
    display: flex;
    gap: 1em;
    margin-top: 2em;
    align-items: center;
}

.van-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--surface-3);
}

.hero-text h1 {
    font-size: 2.5em;
    color: var(--text-0);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-text h1 span {
    font-size: 1em;
}

.hero-text h1 .scrolling-text-container {
    color: var(--accent);
    font-size: 0.8em;
}

.scrolling-text-container {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
}

.scrolling-text {
    display: block;
}

.hero-keywords {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.hero-keywords li {
    font-size: 1.2em;
    color: var(--text-1);
    margin-right: 0.5em;
}

.hero-keywords li:not(:last-child)::after {
    content: '•';
    margin-left: 0.5em;
}

.hero-keywords li:last-child {
    margin-right: 0;
}

.tag-container {
    display: flex;
    gap: 1em;
    width: fit-content;
    margin-bottom: 0.5em;
}

.location-tag {
    background-color: hsla(0, 70%, 60%, 0.15);
    padding: 0.3em 1em;
    border-radius: 0.5em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.location-tag i {
    color: hsl(0, 70%, 60%);
}

.time-tag {
    background-color: hsla(219, 77%, 55%, 0.2);
    padding: 0.3em 1em;
    border-radius: 0.5em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.time-tag i {
    color: var(--accent);
}

#services {
    padding: 4em 2em;
}

.section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 1.5em;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
}

.service-card {
    background-color: var(--surface-2);
    padding: 2em;
    border-radius: 0.5em;
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.service-card .service-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5em;
    margin-bottom: 1em;
}

.service-card .service-header i {
    font-size: 1.5em;
    color: var(--accent);
    margin-bottom: 0;
    background-color: var(--surface-3);
    padding: 0.5em;
    border-radius: 0.3em;
    width: 1em;
    height: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card .service-header h3 {
    font-size: 1.5em;
    margin-bottom: 0;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

@media (max-width: 992px) {
    .logo-km95 {
    }

    .hide-on-mobile {
        display: none;
    }

    .nav-links-container {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--surface-2);
        padding: 1em 0;
    }

    .nav-links-container.show {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links .button-primary {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .hero-container {
        flex-direction: column;
        justify-content: center;
    }

    .hero-text, .hero-image {
        width: 100%;
    }

    .hero-text {
        padding: 2em 0;
        align-items: center;
    }

    .hero-text h1 {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .tag-container {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .location-tag, .time-tag {
        padding: 0.5em 1em;
        font-size: 0.9em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 2em;
    }

    .hero-buttons .button-primary, .hero-buttons .button-secondary {
        width: 80%;
        text-align: center;
        border-radius: 0.5em;
    }

    .hero-buttons span {
        display: none;
    }

    .section-title {
        font-size: 1.5em;
    }

}

.service-card p {
    color: var(--text-1);
}

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

    .service-card .service-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-card p {
        font-size: 1.1em;
    }

    .service-card {
        padding: 1.5em;
    }

    .service-card .service-header i {
        font-size: 1.5em;
        margin-bottom: 0.5em;
    }

    .service-card h3 {
        font-size: 1em;
    }

    #services {
        padding: 2em 1em;
    }
}

#gallery {
    padding: 4em 2em;
    background-color: var(--surface-0);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
}

.gallery-item {
    overflow: hidden;
    border-radius: 0.5em;
    background-color: var(--surface-3);
    position: relative;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-item img.fade-out {
    opacity: 0;
}

.gallery-item img.fade-in {
    opacity: 1;
}

@media (max-width: 768px) {
    #gallery {
        padding: 2em 1em;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }
}

#testimonials {
    padding: 4em 2em;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
}

.testimonial-card {
    background-color: var(--surface-2);
    padding: 2em;
    border-radius: 0.5em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-0);
    margin: 0;
}

.testimonial-source {
    font-size: 0.9em;
    color: var(--text-1);
    margin: 0;
}

.testimonial-rating {
    color: var(--yellow);
    white-space: nowrap;
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-1);
    margin: 0;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1em;
    border-top: 1px solid var(--surface-3);
}

.testimonial-service,
.testimonial-location {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.9em;
    color: var(--text-1);
    white-space: nowrap;
}

.testimonial-service i,
.testimonial-location i {
    color: var(--accent);
}

@media (max-width: 768px) {
    #testimonials {
        padding: 2em 1em;
    }

    .testimonial-card {
        padding: 1em;
    }

    .testimonial-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }

    .testimonial-rating {
        white-space: normal;
    }

    .modal-content {
        width: 85%;
    }
}

footer {
    background-color: var(--surface-0);
    padding: 2em 2em 1em;
    margin-top: 4em;
}

.footer-bottom {
    text-align: center;
    padding-top: 1em;
    color: var(--text-1);
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2em;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-1);
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    margin: 0;
    font-size: 0.8em;
}

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

@keyframes button-pulse-circle {
    0% {
        transform: scale(0);
        opacity: 0.7;
    }
    100% {
        transform: scale(350);
        opacity: 0;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--surface-2);
    padding: 1.5em;
    border: 1px solid var(--surface-3);
    width: 90%;
    max-width: 500px;
    border-radius: 0.5em;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.modal-content h2 {
    font-size: 1.5em;
    margin: 0;
}

.close-button {
    color: var(--text-1);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-0);
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.phone-number {
    display: flex;
    align-items: center;
    background-color: var(--surface-4);
    padding: 0.8em;
    border-radius: 0.5em;
}

.phone-number i {
    font-size: 1.2em;
    color: var(--accent);
    margin-right: 1em;
}

.phone-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.phone-name {
    font-size: 1.1em;
    font-weight: 600;
}

.phone-value {
    font-size: 1em;
    color: var(--text-1);
}