@import url("../root.css");

.header {
    position: fixed;
    width: 100%;
    z-index: 999;
    background: var(--header-background);
    position: relative;
    overflow: hidden;
    height: 70px;
    display: flex;
    align-items: center;
}

.header > .header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1427px;
}

.header > .header__container-mobile {
    display: none;
}

.header .header__nav {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.header .btn__link,
.header .btn__link-outline {
    font-size: var(--small-font-size);
    position: relative;
    transition: all 0.3s ease;
}

.header .btn__link-outline {
    padding: 10px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .btn__link-outline img {
    opacity: 0.7;
    transition: all 0.2s;
}

.header .btn__link-outline:hover img {
    opacity: 1;
}

.header .btn__link-outline:hover {
    color: var(--default-font-color-hove);
}

.header .burger__checkbox {
    position: absolute;
    visibility: hidden;
}

.header .burger {
    position: relative;
    z-index: 999;
    cursor: pointer;
    display: block;
    position: relative;
    border: none;
    background: transparent;
    width: 40px;
    height: 26px;
}

.header .burger::before,
.header .burger::after {
    content: '';
    left: 0;
    position: absolute;
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 10px;
    background: var(--default-font-color-hover);
}

.header .burger::before {
    top: 0;
    box-shadow: 0 11px 0 var(--default-font-color-hover);
    transition: box-shadow .3s .15s, top .3s .15s, transform .3s;
}

.header .burger::after {
    bottom: 0;
    transition: bottom .3s .15s, transform .3s;
}

.header .burger__checkbox:checked + .burger::before {
    top: 12px;
    transform: rotate(45deg);
    box-shadow: 0 6px 0 rgba(0,0,0,0);
    transition: box-shadow .15s, top .3s, transform .3s .15s;
}

.header .burger__checkbox:checked + .burger::after {
    bottom: 11px;
    transform: rotate(-45deg);
    transition: bottom .3s, transform .3s .15s;
}

.header .menu__list {
    top: 0;
    left: 0;
    position: absolute;
    display: grid;
    gap: 12px;
    padding: 42px 0;
    margin: 0;
    background: var(--block-background);
    list-style-type: none;
    transform: translateY(-100%);
    transition: .3s;
    width: 100%;
    z-index: 998;
}

.header .menu__item {
    display: block;
    padding: 8px;
    color: var(--default-font-color);
    font-size: var(--small-font-size);
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.header .menu__item:hover {
    color: var(--default-font-color-hover);
}

.header .burger__checkbox:checked ~ .menu__list {
    transform: translateY(0);
}

.header .mobail__social {
    display: flex;
    margin-top: 15px;
    flex-direction: column;
    align-items: center;
    font-size: var(--default-font-size);
}

.header .mobail__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--default-font-size);
}

.header .header__container-mobile {
    width: 100%;
}

.header .mobail__menu {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-direction: row;
}

@media (max-width: 900px){
    .header > .header__container {
        display: none;
    }

    .header > .header__container-mobile {
        display: flex;
    }
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        #4568DC 0%,
        #B06AB3 25%,
        #4568DC 50%,
        #B06AB3 75%,
        #4568DC 100%
    );
    background-size: 200% 100%;
    animation: headerGlow 3s linear infinite;
    box-shadow: 
        0 0 10px rgba(69, 104, 220, 0.5),
        0 0 20px rgba(69, 104, 220, 0.3),
        0 0 30px rgba(69, 104, 220, 0.1);
    opacity: 0.8;
}

@keyframes headerGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.header::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background-image: 
        radial-gradient(circle, #fff 1px, transparent 1px),
        radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 0;
    animation: twinkle 2s linear infinite;
    opacity: 0.5;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}

.header .btn__link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4568DC, #B06AB3);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(69, 104, 220, 0.5);
}

.header .btn__link:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.header .btn__link:hover::before {
    width: 100%;
}

.header .btn__link.active::before {
    width: 100%;
    background: linear-gradient(90deg, #B06AB3, #4568DC);
    animation: gradientFlow 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.header .btn__link i {
    margin-right: 5px;
    transition: all 0.3s ease;
}

.header .btn__link:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px rgba(69, 104, 220, 0.5));
}