/* =========================
        RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
}

img,
video,
iframe {
    max-width: 100%;
}

/* =========================
        NAVBAR
========================= */

.navbar {
    position: fixedi-;
    top: 0;
    width: 100%;
    max-width: 100vw;
    height: 90px;
    padding: 0 7%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(15px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);

    z-index: 999;
}

/* =========================
        LOGO
========================= */

.logo img {
    height: 75px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
}

/* =========================
        MENU
========================= */

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav ul li {
    position: relative;
}

nav ul li>a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    padding: 34px 0;
    transition: .3s;
}

/* Hover Line */

nav ul li>a::after {
    content: "";
    position: absolute;
    bottom: 22px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: .35s;
}

nav ul li:hover>a::after {
    width: 100%;
}

.right-side {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

nav ul li>a:hover,
nav ul li>a.active {
    color: var(--primary-color);
}

/* Rotate Arrow */

.dropdown>a i {
    transition: .3s;
}

.dropdown:hover>a i {
    transform: rotate(180deg);
}

/* =========================
      DROPDOWN
========================= */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
    display: block;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .3s;
    z-index: 999;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    border-bottom: none;
}

.dropdown-menu li {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    width: 100%;
    padding: 16px 22px;
    color: var(--text-color);
    text-decoration: none;
    transition: .3s;
    outline: none;
}

.dropdown-menu li a:hover {
    background: var(--primary-color);
    color: var(--white);
    outline: none;
    border-bottom: none;
}

.dropdown-menu a,
.dropdown-menu a:hover,
.dropdown-menu a:focus,
.dropdown-menu a:active {
    outline: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.dropdown-menu li>a::after {
    display: none;
}

.quote-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: var(--white);
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: .35s;
    box-shadow: 0 10px 25px rgba(13, 107, 83, .25);
}

.quote-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(13, 107, 83, .35);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
}

/* =========================
      RESPONSIVE
========================= */

@media(max-width: 992px) {
    .hamburger {
        display: block;
    }

    nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: var(--white);
        box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
        transition: left 0.35s ease;
        overflow-y: auto;
        padding: 20px 0;
        z-index: 998;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li>a {
        padding: 16px 30px;
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li>a::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        padding-left: 20px;
        background: var(--bg-color);
        display: none;
    }

    .dropdown.active .dropdown-menu,
    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .phone {
        display: none;
    }

    .navbar {
        padding: 0 20px;
    }
}

@media(max-width: 576px) {
    .navbar {
        padding: 0 15px;
    }

    .logo img {
        height: 55px;
        max-width: 140px;
    }

    .quote-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .right-side {
        gap: 10px;
    }
}

/* =========================
        PRELOADER
========================= */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#preloader img {
    max-width: 120px;
    animation: float 2s ease-in-out infinite;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}