/* =========================================================
   SEA MARINE NAVBAR
   COMMON NAVBAR FOR ALL PAGES
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: fixed;
    top: 25px;
    left: 50%;

    width: 95%;
    max-width: 1600px;
    min-height: 85px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 45px;

    z-index: 9999;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.08);

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;

    gap: 18px;

    min-width: 0;
    flex-shrink: 0;
}

.logo img {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;

    display: block;

    padding: 6px;

    object-fit: contain;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 30px rgba(33, 181, 255, 0.45);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.logo img:hover {
    transform: translateY(-3px);

    box-shadow:
        0 0 15px rgba(35, 183, 255, 0.55),
        0 0 30px rgba(35, 183, 255, 0.35);
}

.logo h2 {
    margin: 0;

    color: #ffffff;

    font-family: "Poppins", sans-serif;
    font-size: clamp(24px, 2.2vw, 36px);
    font-weight: 700;

    line-height: 1;
    letter-spacing: 2px;

    white-space: nowrap;
}

.logo span {
    color: #23b7ff;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

#mainNav {
    display: block;

    min-width: 0;
    flex: 1;

    margin: 0 25px;
}

#mainNav ul {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(18px, 2.5vw, 42px);

    margin: 0;
    padding: 0;

    list-style: none;
}

#mainNav ul li {
    margin: 0;
    padding: 0;

    list-style: none;
}

#mainNav ul li a {
    position: relative;

    display: inline-block;

    padding: 7px 0;

    color: #ffffff;

    font-family: "Poppins", sans-serif;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;
    white-space: nowrap;

    transition:
        color 0.35s ease,
        transform 0.35s ease,
        text-shadow 0.35s ease;
}


/* =========================================================
   NAV LINK EFFECT
========================================================= */

#mainNav ul li a::before {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -13px;

    width: 0;
    height: 32px;

    transform: translateX(-50%);

    border-radius: 50px;

    background:
        radial-gradient(
            ellipse,
            rgba(35, 183, 255, 0.30),
            rgba(35, 183, 255, 0.08),
            transparent 70%
        );

    filter: blur(5px);

    opacity: 0;

    z-index: -1;

    transition:
        width 0.4s ease,
        opacity 0.35s ease;
}

#mainNav ul li a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -7px;

    width: 0;
    height: 2px;

    transform: translateX(-50%);

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #23b7ff,
            #8de3ff,
            #23b7ff,
            transparent
        );

    box-shadow:
        0 0 6px rgba(35, 183, 255, 0.8),
        0 0 15px rgba(35, 183, 255, 0.5);

    transition: width 0.4s ease;
}

#mainNav ul li a:hover,
#mainNav ul li a.active {
    color: #8de3ff;

    text-shadow:
        0 0 8px rgba(35, 183, 255, 0.7),
        0 0 18px rgba(35, 183, 255, 0.35);
}

#mainNav ul li a:hover {
    transform: translateY(-3px);
}

#mainNav ul li a:hover::before,
#mainNav ul li a.active::before {
    width: 90px;
    opacity: 0.8;
}

#mainNav ul li a:hover::after,
#mainNav ul li a.active::after {
    width: 100%;
}


/* =========================================================
   PHONE BUTTON
========================================================= */

.quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 15px 30px;

    flex-shrink: 0;

    border: 0;
    border-radius: 40px;

    background:
        linear-gradient(
            90deg,
            #18b8ff,
            #58cbff
        );

    color: #ffffff;

    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;

    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    box-shadow:
        0 0 30px rgba(24, 184, 255, 0.35);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.quote-btn i {
    margin-right: 10px;
}

.quote-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 40px rgba(24, 184, 255, 0.55);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;

    width: 52px;
    height: 42px;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.12);

    cursor: pointer;

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.menu-toggle span {
    display: block;

    width: 27px;
    height: 2px;

    border-radius: 5px;

    background: #ffffff;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* =========================================================
   LAPTOP
========================================================= */

@media screen and (max-width: 1199px) {

    .navbar {
        width: 94%;
        padding-left: 30px;
        padding-right: 30px;
    }

    .logo {
        gap: 14px;
    }

    #mainNav {
        margin-left: 18px;
        margin-right: 18px;
    }

    #mainNav ul {
        gap: 25px;
    }

    #mainNav ul li a {
        font-size: 16px;
    }

    .quote-btn {
        padding: 14px 24px;
        font-size: 15px;
    }

}


/* =========================================================
   TABLET + MOBILE MENU
========================================================= */

@media screen and (max-width: 992px) {

    .navbar {
        top: 15px;

        width: calc(100% - 30px);
        max-width: none;

        min-height: 84px;

        padding: 8px 20px;

        border-radius: 16px;
    }

    .logo {
        gap: 12px;

        max-width: calc(100% - 70px);
    }

    .logo h2 {
        max-width: 100%;

        overflow: hidden;
        text-overflow: ellipsis;

        font-size: clamp(19px, 3.2vw, 25px);

        letter-spacing: 1px;
    }

    .quote-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }


    /* MOBILE DROPDOWN */

    #mainNav {
        position: absolute;

        top: calc(100% + 12px);
        left: 0;

        width: 100%;

        margin: 0;

        max-height: 0;

        overflow: hidden;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;

        background: rgba(8, 18, 28, 0.97);

        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);

        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.45);

        transition:
            max-height 0.4s ease,
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    #mainNav.active {
        max-height: 600px;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #mainNav ul {
        display: flex;

        flex-direction: column;
        align-items: stretch;

        width: 100%;

        gap: 0;

        padding: 10px;
    }

    #mainNav ul li {
        width: 100%;

        text-align: center;
    }

    #mainNav ul li a {
        display: block;

        width: 100%;

        padding: 15px 20px;

        font-size: 18px;

        text-align: center;

        border-radius: 10px;

        transform: none;
    }

    #mainNav ul li a::before,
    #mainNav ul li a::after {
        display: none;
    }

    #mainNav ul li a:hover,
    #mainNav ul li a.active {
        transform: none;

        background:
            linear-gradient(
                90deg,
                rgba(35, 183, 255, 0.16),
                rgba(35, 183, 255, 0.04),
                transparent
            );
    }


    /* HAMBURGER TO X */

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 600px) {

    .navbar {
        top: 10px;

        width: calc(100% - 20px);

        min-height: 82px;

        padding: 7px 15px;

        border-radius: 14px;
    }

    .logo {
        gap: 9px;

        max-width: calc(100% - 58px);
    }

    .logo h2 {
        font-size: clamp(17px, 5vw, 21px);

        letter-spacing: 0.8px;
    }

    .menu-toggle {
        width: 48px;
        height: 38px;
    }

    .menu-toggle span {
        width: 24px;
    }

    #mainNav ul li a {
        padding: 14px 15px;

        font-size: 17px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 400px) {

    .navbar {
        width: calc(100% - 14px);

        padding: 6px 12px;
    }

    .logo {
        gap: 7px;

        max-width: calc(100% - 53px);
    }

    .logo h2 {
        font-size: 17px;

        letter-spacing: 0.5px;
    }

    .menu-toggle {
        width: 45px;
        height: 36px;
    }

    .menu-toggle span {
        width: 22px;
    }

}