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

html {
    scroll-behavior: smooth;
}


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

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

    padding: 5px 50px 0px;

    background: rgb(255, 255, 255);

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    margin: 0px 50px 0px 50px;

    border-radius: 10px;

    position: relative;
    z-index: 1000;
}


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

.logo img {
    height: 45px;
    display: block;
}


/* =========================
   RIGHT SIDE
========================= */

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}


/* =========================
   NAV LINKS
========================= */

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgb(1, 0, 43);
    font-size: 18px;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: rgb(0, 151, 221);
}


/* =========================
   SEARCH WRAPPER
========================= */

.search-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}


/* =========================
   SEARCH ICON
========================= */

.search-icon {
    width: 40px;
    height: 40px;

    border: none;
    background: transparent;

    color: rgb(1, 0, 43);

    font-size: 19px;

    cursor: pointer;

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

    transition: 0.3s ease;
}

.search-icon:hover {
    color: rgb(0, 151, 221);
    transform: scale(1.08);
}


/* =========================
   SEARCH FORM
========================= */

.search-form {
    position: absolute;

    right: 0;
    top: 50%;

    transform: translateY(-50%) scaleX(0);

    transform-origin: right center;

    width: 0;

    height: 42px;

    opacity: 0;

    visibility: hidden;

    display: flex;
    align-items: center;

    background: white;

    border: 1px solid #ddd;

    border-radius: 25px;

    overflow: hidden;

    transition:
        width 0.35s ease,
        transform 0.35s ease,
        opacity 0.25s ease;

    z-index: 20;
}


/* OPEN SEARCH */

.search-form.active {

    width: 300px;

    transform: translateY(-50%) scaleX(1);

    opacity: 1;

    visibility: visible;
}


/* SEARCH INPUT */

.search-form input {

    flex: 1;

    width: 100%;

    height: 100%;

    border: none;

    outline: none;

    padding: 0 15px;

    font-size: 14px;

    color: rgb(1, 0, 43);

    background: white;
}


/* SEARCH SUBMIT BUTTON */

.search-form button {

    width: 48px;

    height: 100%;

    border: none;

    background: rgb(0, 151, 221);

    color: white;

    cursor: pointer;

    font-size: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: 0.3s ease;
}

.search-form button:hover {
    background: rgb(1, 0, 43);
}


/* =========================
   HAMBURGER
========================= */

.hamburger {
    display: none;

    flex-direction: column;

    gap: 5px;

    cursor: pointer;
}

.hamburger span {

    width: 28px;

    height: 3px;

    background: rgb(1, 0, 43);

    border-radius: 5px;

    transition: 0.3s;
}


/* =========================
   HAMBURGER ACTIVE
========================= */

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .navbar {

        padding: 10px 20px;

        margin: 0 10px;

        position: relative;
    }


    .logo img {
        height: 50px;
    }


    .nav-right {

        gap: 10px;
    }


    /* SEARCH ICON */

    .search-icon {

        width: 40px;
        height: 40px;

        font-size: 18px;
    }


    /* HAMBURGER */

    .hamburger {
        display: flex;
    }


    /* NAV MENU */

    .nav-links {

        flex-direction: column;

        position: absolute;

        top: 75px;

        left: 0;

        width: 100%;

        background: white;

        padding: 20px 0;

        gap: 20px;

        text-align: center;

        border-radius: 10px;

        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-20px);

        transition: all 0.3s ease;
    }


    .nav-links.active {

        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    /* MOBILE SEARCH */

    .search-form {

        position: fixed;

        top: 85px;

        left: 50%;

        right: auto;

        transform: translateX(-50%) scaleX(0);

        transform-origin: center;

        width: 90%;

        max-width: 400px;

        height: 45px;
    }


    .search-form.active {

        width: 90%;

        max-width: 400px;

        transform: translateX(-50%) scaleX(1);
    }

}