@font-face{
    font-family: 'Pixel';
    src: url("../fonts/pixel.f41bdb2adce1.ttf") format('truetype'),
    url("../fonts/pixel.679dcfeeb43a.woff") format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face{
    font-family: 'Cascadia Code';
    src: url("../fonts/CascadiaCode-Regular.b549221bacc8.ttf") format('truetype'),
    url("../fonts/CascadiaCode-Regular.9a87ed132b49.woff") format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    transition: .3s ease-in-out;
}

body{
    background-color: #030F0F;
    width: 100%;
    max-width: 1440px;
    min-width: 320px;
    background-image: url("../img/pattern.94bc4fa0ea1a.svg");
    font-family: 'Pixel', sans-serif;
    font-size: 16px;
    line-height: 33px;
    margin: 0 auto;
    color: #eee;
    overflow-x: hidden;
}

a{
    text-decoration: none;
}

h2{
    font-weight: normal;
    font-size: clamp(20px, 4vw, 32px);
    line-height: 1.4;
}

h4{
    font-weight: normal;
    font-size: clamp(16px, 2.5vw, 20px);
}

section{
    margin: 10px auto 100px auto;
    width: 90%;
    max-width: 1300px;
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.5s, opacity 0.5s;
}

.green-shadow{
    text-shadow: 0 0 7px #009945;
}

.purple-shadow{
    text-shadow: 0 0 7px #6e3ce9;
}

.green-text{
    color: #0dbe3e;
    text-shadow: 0 0 7px #009945;
}

.yellow-text{
    color: #eeff6c;
    text-shadow: 0 0 7px rgba(255, 243, 111, 0.5);
}

.purple-text{
    color: #ac8ef6;
    text-shadow: 0 0 7px #6e3ce9;
}

.light-purple-text{
    color: #c6b0ff;
    text-shadow: 0 0 7px #6e3ce9;
}

header{
    position: relative;
    padding: 10px clamp(10px, 5vw, 70px);
    margin: 0 0 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo{
    width: clamp(110px, 15vw, 145px);
    height: auto;
}

nav ul{
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

nav ul a{
    color: #eee;
    margin: 0 0 0 clamp(10px, 3vw, 30px);
    font-size: clamp(12px, 1.5vw, 16px);
}

.active{
    color: #ac8ef6;
    text-shadow: 0 0 7px #6e3ce9;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 15, 15, 0);
    backdrop-filter: blur(0px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(3, 15, 15, 0.85);
    backdrop-filter: blur(8px);
}

#menu {
    display: flex;
    list-style: none;
    align-items: center;
}

#menu.active-nav {
    display: flex;
    padding: 20px;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    right: auto;
    width: 90%;
    max-width: 400px;
    background: rgba(3, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1001;
    border: 2px solid #0dbe3e;
    box-shadow: 0 0 40px rgba(13, 190, 62, 0.4), 0 20px 60px rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    opacity: 0;
    animation: menuSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#menu.active-nav li {
    margin: 8px 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(-20px);
    animation: menuItemSlideIn 0.3s ease forwards;
}

#menu.active-nav li:nth-child(1) { animation-delay: 0.1s; }
#menu.active-nav li:nth-child(2) { animation-delay: 0.15s; }
#menu.active-nav li:nth-child(3) { animation-delay: 0.2s; }
#menu.active-nav li:nth-child(4) { animation-delay: 0.25s; }
#menu.active-nav li:nth-child(5) { animation-delay: 0.3s; }

#menu.active-nav li a {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#menu.active-nav li a:hover {
    background: rgba(13, 190, 62, 0.1);
    box-shadow: 0 0 15px rgba(13, 190, 62, 0.2);
    transform: translateX(5px);
}

#menu.active-nav .btn-reg {
    margin: 10px auto 0 auto;
    width: 100%;
    max-width: 250px;
}

@keyframes menuSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes menuItemSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

#menu.closing {
    animation: menuSlideOut 0.3s ease forwards;
}

@keyframes menuSlideOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
    }
}

.nav-toggle {
    display: none;
    cursor: pointer;
    width: 55px;
    height: 42px;
    position: relative;
    z-index: 1002;
}

.nav-toggle span {
   display: block;
   position: absolute;
   top: 19px;
   left: 8px;
   right: 8px;
   height: 2px;
   background: #0DBE3E;
   box-shadow: 0 0 7px 0 #009945;
   transition: all 0.3s ease;
}

.nav-toggle span:before, .nav-toggle span:after {
   content: "";
   position: absolute;
   display: block;
   left: 0;
   width: 100%;
   height: 2px;
   background: #0DBE3E;
   box-shadow: 0 0 7px 0 #009945;
   transition: all 0.3s ease;
}

.nav-toggle span:before {
   top: -10px;
}

.nav-toggle span:after {
   bottom: -10px;
}

.nav-toggle.active span {
   background: transparent;
   box-shadow: none;
}

.nav-toggle.active span:before {
   top: 0;
   transform: rotate(45deg);
   background: #ac8ef6;
   box-shadow: 0 0 7px #6e3ce9;
}

.nav-toggle.active span:after {
   bottom: 0;
   transform: rotate(-45deg);
   background: #ac8ef6;
   box-shadow: 0 0 7px #6e3ce9;
}

.btn-reg{
    background: url("../img/btn-reg-border.f78687e98171.png");
    background-size: cover;
    background-position: center;
    font-size: clamp(12px, 2vw, 16px);
    margin: 0 0 0 clamp(10px, 3vw, 30px);
    width: clamp(180px, 25vw, 250px);
    height: clamp(35px, 6vw, 50px);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-reg a{
    margin: 0 auto;
}

footer{
    color: #eee;
    padding: 0 clamp(10px, 5vw, 70px);
    margin: 10px 0 0 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: right;
}

.footer-block{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 15px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.container-line{
    width: 100%;
    border-top: solid 3px #0dbe3e;
    box-shadow: 0 0 7px #009945;
}

.purple-container-line{
    width: 100%;
    border-top: solid 3px #AC8EF6;
    box-shadow: 0 0 7px #6E3CE9;
}

@media screen and (max-width: 1024px){
    body{
        font-size: 15px;
        line-height: 28px;
    }

    section{
        margin: 10px auto 60px auto;
    }

    nav ul a{
        margin: 0 0 0 15px;
    }
}

@media screen and (max-width: 768px){
    body{
        font-size: 14px;
        line-height: 26px;
    }

    .nav-toggle {
        display: block;
    }

    #menu{
        display: none;
    }

    #menu li{
        margin: 10px 0;
    }

    #menu li a{
        margin: 0;
        font-size: 16px;
    }

    header{
        padding: 10px 20px;
    }

    h2{
        text-align: center;
    }

    section{
        margin: 10px auto 50px auto;
        width: 95%;
    }

    .footer-block{
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    footer .logo{
        margin-bottom: 20px;
    }

    footer .container-line{
        margin: 10px 0;
    }

    .socials{
        margin: 20px 0;
    }

    .btn-reg{
        margin: 10px 0 0 0;
    }
}

@media screen and (max-width: 480px){
    body{
        font-size: 12px;
        line-height: 22px;
    }

    header{
        padding: 12px 15px;
        justify-content: space-around;
        gap: 10px;
    }

    .logo{
        width: clamp(130px, 35vw, 160px);
        height: auto;
    }

    h2{
        font-size: 18px;
    }

    h4{
        font-size: 14px;
    }

    section{
        margin: 10px auto 40px auto;
    }

    .btn-reg{
        width: 160px;
        height: 32px;
        font-size: 11px;
    }

    #menu.active-nav {
        top: 80px;
        width: 95%;
        padding: 15px;
    }

    #menu.active-nav li a {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media screen and (max-width: 320px){
    body{
        min-width: 280px;
    }

    header{
        padding: 12px 10px;
        gap: 10px;
    }

    .logo{
        width: clamp(120px, 45vw, 150px);
    }

    .btn-reg{
        width: 140px;
        height: 30px;
    }
}