/* =========================================================
   CARIPULSE HEADER
========================================================= */


/* =========================================================
   HEADER
========================================================= */

header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 99999;

    padding: 25px 0;

    background: transparent;

    border-bottom: 1px solid transparent;

    transition:
        background .35s ease,
        backdrop-filter .35s ease,
        -webkit-backdrop-filter .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        padding .35s ease;

}


/* =========================================================
   SCROLLED GLASS HEADER
========================================================= */

header.scrolled {

    padding: 20px 0;

    background:
        rgba(8, 18, 33, 0.94) !important;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.16);

    box-shadow:
        0 8px 35px rgba(0, 0, 0, 0.30);

    backdrop-filter:
        blur(24px)
        saturate(180%);

    -webkit-backdrop-filter:
        blur(24px)
        saturate(180%);

}


/* =========================================================
   HEADER CONTAINER
========================================================= */

header .container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

}


/* =========================================================
   LOGO
========================================================= */

header .logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;

}


header .logo img {

    display: block;

    width: 190px;

    height: auto;

}


/* =========================================================
   NAVIGATION
========================================================= */

header nav {

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 1;

}


header nav ul {

    display: flex;

    align-items: center;

    justify-content: center;

    list-style: none;

    gap: 38px;

    margin: 0;

    padding: 0;

}


header nav li {

    list-style: none;

    margin: 0;

    padding: 0;

}


header nav a {

    position: relative;

    display: inline-block;

    padding: 8px 0;

    color: #ffffff;

    text-decoration: none;

    font-size: 15px;

    font-weight: 500;

    white-space: nowrap;

    transition:
        color .3s ease;

}


header nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 0;

    height: 2px;

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            #ff2f75,
            #ff9d1c
        );

    transition:
        width .3s ease;

}


header nav a:hover {

    color: #ff9d1c;

}


header nav a:hover::after {

    width: 100%;

}


/* =========================================================
   DOWNLOAD BUTTON
========================================================= */

header .download-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    padding: 15px 35px;

    border-radius: 40px;

    background:
        linear-gradient(
            90deg,
            #ff2f75,
            #ff9d1c
        );

    color: #ffffff;

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    white-space: nowrap;

    box-shadow:
        0 8px 25px rgba(255, 80, 90, 0.20);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

}


header .download-btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(255, 120, 60, 0.45);

}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

header .menu-toggle {

    display: none;

    width: 48px;

    height: 48px;

    padding: 0;

    border:
        1px solid rgba(255, 255, 255, 0.25);

    border-radius: 12px;

    background:
        rgba(8, 18, 33, 0.55);

    cursor: pointer;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 6px;

    flex-shrink: 0;

    transition:
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;

}


header .menu-toggle:hover {

    background:
        rgba(8, 18, 33, 0.80);

    border-color:
        rgba(255, 255, 255, 0.40);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);

}


header .menu-toggle span {

    display: block;

    width: 23px;

    height: 2px;

    border-radius: 5px;

    background: #ffffff;

    transition:
        transform .3s ease,
        opacity .3s ease;

}


/* =========================================================
   HAMBURGER → X
========================================================= */

header .menu-toggle.active span:nth-child(1) {

    transform:
        translateY(8px)
        rotate(45deg);

}


header .menu-toggle.active span:nth-child(2) {

    opacity: 0;

}


header .menu-toggle.active span:nth-child(3) {

    transform:
        translateY(-8px)
        rotate(-45deg);

}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 1000px) {

    header {

        padding: 20px 0;

    }


    header.scrolled {

        padding: 20px 0;

    }


    header .container {

        gap: 20px;

    }


    /* -----------------------------------------------------
       LOGO
    ----------------------------------------------------- */

    header .logo {

        margin-right: auto;

    }


    header .logo img {

        width: 190px;

    }


    /* -----------------------------------------------------
       MOBILE NAVIGATION
    ----------------------------------------------------- */

    header nav {

        position: absolute;

        top: calc(100% + 12px);

        left: 5%;

        width: 90%;

        display: block;

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-12px);

        pointer-events: none;

        padding: 15px;

        border:
            1px solid rgba(255, 255, 255, 0.16);

        border-radius: 20px;

        background:
            rgba(8, 18, 33, 0.96);

        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.35);

        backdrop-filter:
            blur(24px)
            saturate(180%);

        -webkit-backdrop-filter:
            blur(24px)
            saturate(180%);

        transition:
            opacity .3s ease,
            visibility .3s ease,
            transform .3s ease;

    }


    /* -----------------------------------------------------
       OPEN MOBILE NAVIGATION
    ----------------------------------------------------- */

    header nav.active {

        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);

        pointer-events: auto;

    }


    /* -----------------------------------------------------
       MOBILE NAVIGATION LIST
    ----------------------------------------------------- */

    header nav ul {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 4px;

    }


    header nav li {

        width: 100%;

    }


    header nav a {

        display: block;

        width: 100%;

        padding: 14px 16px;

        border-radius: 10px;

        font-size: 15px;

    }


    header nav a:hover {

        background:
            rgba(255, 255, 255, 0.08);

        color: #ff9d1c;

    }


    header nav a::after {

        display: none;

    }


    /* -----------------------------------------------------
       HAMBURGER
    ----------------------------------------------------- */

    header .menu-toggle {

        display: flex;

    }


    /* -----------------------------------------------------
       HIDE DOWNLOAD BUTTON
    ----------------------------------------------------- */

    header .download-btn {

        display: none;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    header {

        padding: 17px 0;

    }


    header.scrolled {

        padding: 17px 0;

    }


    header .logo img {

        width: 175px;

    }


    header .menu-toggle {

        width: 46px;

        height: 46px;

    }


    header nav {

        left: 4%;

        width: 92%;

    }


    header nav a {

        padding: 14px 15px;

        font-size: 15px;

    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    header .logo img {

        width: 160px;

    }


    header .menu-toggle {

        width: 44px;

        height: 44px;

    }


    header nav {

        left: 3%;

        width: 94%;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    header,
    header *,
    header nav,
    header .menu-toggle span {

        transition: none !important;

    }

}