/* =========================================
   HEADER
========================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 40px;

    background: transparent;

    box-sizing: border-box;

    transition:
        background 0.35s ease,
        backdrop-filter 0.35s ease,
        box-shadow 0.35s ease,
        padding 0.35s ease;
}


/* =========================================
   SCROLLED HEADER
========================================= */

.header.scrolled {
    background: rgba(2, 8, 23, 0.92);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);

    padding-top: 7px;
    padding-bottom: 7px;
}


/* =========================================
   LOGO
========================================= */

.logo {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    background: #000000;

    border-radius: 10px;

    text-decoration: none;

    flex-shrink: 0;

    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    display: block;
}


/* =========================================
   NAVIGATION
========================================= */

.navigation {
    display: flex;
    align-items: center;

    gap: 35px;
}

.navigation a {
    color: rgba(255, 255, 255, 0.94);

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition:
        color 0.3s ease,
        background 0.3s ease;
}

.navigation a:hover {
    color: #a993ff;
}


/* =========================================
   ABOUT MENU
========================================= */

.about-menu {
    position: relative;
}


/* About button */

.about-toggle {
    display: flex !important;

    align-items: center;

    gap: 6px;

    cursor: pointer;
}


/* Arrow */

.about-arrow {
    display: inline-block;

    font-size: 13px;

    transition:
        transform 0.3s ease;
}


/* Rotate arrow */

.about-menu.active .about-arrow {
    transform: rotate(180deg);
}


/* =========================================
   ABOUT DROPDOWN - DESKTOP
========================================= */

.about-dropdown {
    position: absolute;

    top: calc(100% + 15px);

    left: 50%;

    width: 190px;

    padding: 7px;

    box-sizing: border-box;

    background: rgba(2, 8, 23, 0.98);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 12px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.45);

    opacity: 0;

    visibility: hidden;

    transform:
        translateX(-50%)
        translateY(-10px)
        scale(0.97);

    transform-origin: top center;

    transition:
        opacity 0.25s ease,
        transform 0.3s cubic-bezier(.2, .8, .2, 1),
        visibility 0.25s ease;

    z-index: 10001;
}


/* Dropdown OPEN */

.about-menu.active .about-dropdown {
    opacity: 1;

    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0)
        scale(1);
}


/* =========================================
   ABOUT DROPDOWN LINKS
========================================= */

.about-dropdown a {
    display: block !important;

    width: 100% !important;

    box-sizing: border-box;

    padding: 13px 15px !important;

    margin: 0;

    border: none !important;

    border-radius: 8px;

    color: rgba(255, 255, 255, 0.92) !important;

    font-size: 14px !important;

    font-weight: 500 !important;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        padding-left 0.25s ease;
}


/* Dropdown hover */

.about-dropdown a:hover {
    background: rgba(169, 147, 255, 0.10);

    color: #a993ff !important;

    padding-left: 20px !important;
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.mobile-menu {
    display: none;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 30px;

    cursor: pointer;

    padding: 5px 10px;

    line-height: 1;

    outline: none;

    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    /* =====================================
       HEADER
    ===================================== */

    .header {
        position: fixed;

        top: 0;
        left: 0;

        width: 100%;
        height: 64px;

        padding: 8px 15px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        box-sizing: border-box;

        flex-wrap: nowrap;
    }


    /* =====================================
       MOBILE LOGO
    ===================================== */

    .logo {
        width: 48px !important;
        height: 48px !important;

        flex-shrink: 0;
    }

    .logo img {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }


    /* =====================================
       HAMBURGER
    ===================================== */

    .mobile-menu {
        display: flex;

        width: 45px;
        height: 45px;

        align-items: center;
        justify-content: center;

        padding: 0;
        margin: 0;

        border: none;
        outline: none;

        background: transparent;

        color: #ffffff;

        font-size: 28px;

        line-height: 1;

        cursor: pointer;

        flex-shrink: 0;

        transition:
            transform 0.3s ease,
            opacity 0.2s ease;
    }


    /* Button press */

    .mobile-menu:active {
        transform: scale(0.85);
    }


    /* =====================================
       NAVIGATION CONTAINER
    ===================================== */

    .navigation {
        position: absolute;

        top: 64px;

        left: 15px;
        right: 15px;

        width: auto;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        margin: 0;

        padding: 8px 0;

        box-sizing: border-box;

        background: rgba(2, 8, 23, 0.97);

        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);

        border: 1px solid rgba(255, 255, 255, 0.08);

        border-radius: 14px;

        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.45);

        overflow: hidden;

        /* CLOSED */

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-15px)
            scale(0.97);

        transform-origin: top center;

        transition:
            opacity 0.3s ease,
            transform 0.35s cubic-bezier(.2, .8, .2, 1),
            visibility 0.3s ease;
    }


    /* =====================================
       NAVIGATION OPEN
    ===================================== */

    .navigation.active {
        opacity: 1;

        visibility: visible;

        transform:
            translateY(0)
            scale(1);
    }


    /* =====================================
       NORMAL NAVIGATION LINKS
    ===================================== */

    .navigation > a {
        display: block;

        width: 100%;

        padding: 16px 20px;

        box-sizing: border-box;

        color: rgba(255, 255, 255, 0.95);

        font-size: 15px;

        font-weight: 600;

        text-decoration: none;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.07);

        opacity: 0;

        transform: translateY(-8px);

        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            background 0.25s ease,
            color 0.25s ease;
    }


    /* =====================================
       NORMAL LINKS ANIMATION
    ===================================== */

    .navigation.active > a {
        opacity: 1;

        transform: translateY(0);
    }


    /* =====================================
       STAGGER ANIMATION
    ===================================== */

    .navigation.active > a:nth-child(1) {
        transition-delay: 0.05s;
    }

    .navigation.active > a:nth-child(3) {
        transition-delay: 0.13s;
    }

    .navigation.active > a:nth-child(4) {
        transition-delay: 0.17s;
    }

    .navigation.active > a:nth-child(5) {
        transition-delay: 0.21s;
    }

    .navigation.active > a:nth-child(6) {
        transition-delay: 0.25s;
    }

    .navigation.active > a:nth-child(7) {
        transition-delay: 0.29s;
    }


    /* =====================================
       NORMAL LINK HOVER
    ===================================== */

    .navigation > a:hover {
        background: rgba(255, 255, 255, 0.06);

        color: #a993ff;
    }


    /* =====================================
       ABOUT MENU MOBILE
    ===================================== */

    .about-menu {
        width: 100%;

        opacity: 0;

        transform: translateY(-8px);

        transition:
            opacity 0.3s ease,
            transform 0.3s ease;
    }


    /* Show About with menu */

    .navigation.active .about-menu {
        opacity: 1;

        transform: translateY(0);

        transition-delay: 0.09s;
    }


    /* =====================================
       ABOUT BUTTON MOBILE
    ===================================== */

    .about-toggle {
        width: 100% !important;

        min-height: 50px;

        box-sizing: border-box;

        display: flex !important;

        align-items: center;

        justify-content: space-between;

        padding: 16px 20px !important;

        color: rgba(255, 255, 255, 0.95) !important;

        font-size: 15px !important;

        font-weight: 600 !important;

        text-decoration: none;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.07) !important;
    }


    /* About hover */

    .about-toggle:hover {
        background: rgba(255, 255, 255, 0.06);

        color: #a993ff !important;
    }


    /* =====================================
       ABOUT ARROW MOBILE
    ===================================== */

    .about-arrow {
        font-size: 15px;

        transition:
            transform 0.3s ease;
    }


    .about-menu.active .about-arrow {
        transform: rotate(180deg);
    }


    /* =====================================
       ABOUT DROPDOWN MOBILE
    ===================================== */

    .about-dropdown {
        position: static;

        width: calc(100% - 20px);

        margin: 0 10px;

        padding: 0;

        box-sizing: border-box;

        background: rgba(255, 255, 255, 0.025);

        backdrop-filter: none;
        -webkit-backdrop-filter: none;

        border:
            1px solid rgba(255, 255, 255, 0.06);

        border-radius: 10px;

        box-shadow: none;

        transform: translateY(-8px);

        max-height: 0;

        overflow: hidden;

        opacity: 0;

        visibility: hidden;

        transition:
            max-height 0.4s ease,
            opacity 0.25s ease,
            transform 0.3s ease,
            padding 0.3s ease;
    }


    /* =====================================
       ABOUT DROPDOWN OPEN
    ===================================== */

    .about-menu.active .about-dropdown {
        max-height: 180px;

        padding: 5px 0;

        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    /* =====================================
       ABOUT DROPDOWN LINKS MOBILE
    ===================================== */

    .about-dropdown a {
        display: block !important;

        width: 100% !important;

        box-sizing: border-box;

        padding: 13px 18px !important;

        margin: 0;

        border-radius: 0;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.05) !important;

        color: rgba(255, 255, 255, 0.88) !important;

        font-size: 14px !important;

        font-weight: 500 !important;

        text-decoration: none;

        opacity: 1 !important;

        transform: none !important;

        transition:
            background 0.25s ease,
            color 0.25s ease,
            padding-left 0.25s ease;
    }


    /* Last About option */

    .about-dropdown a:last-child {
        border-bottom: none !important;
    }


    /* About option hover */

    .about-dropdown a:hover {
        background: rgba(169, 147, 255, 0.08);

        color: #a993ff !important;

        padding-left: 23px !important;
    }


    /* =====================================
       HAMBURGER OPEN ANIMATION
    ===================================== */

    .navigation.active ~ .mobile-menu {
        transform: rotate(180deg);
    }


    /* =====================================
       SCROLLED HEADER MOBILE
    ===================================== */

    .header.scrolled {
        padding-top: 8px;

        padding-bottom: 8px;

        background: rgba(2, 8, 23, 0.94);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 480px) {

    .header {
        height: 60px;

        padding: 7px 12px;
    }


    .logo {
        width: 44px !important;
        height: 44px !important;
    }


    .mobile-menu {
        width: 42px;
        height: 42px;

        font-size: 27px;
    }


    .navigation {
        top: 60px;

        left: 12px;
        right: 12px;
    }
}