.logo-icon,.nav-links a i {
    margin-right: .5rem
}

*,.footer-text p {
    margin: 0
}

:root {
    --primary-color: #0f0f0f;
    --secondary-color: #1a1a1a;
    --accent-color: #1ce783;
    --text-color: #ffffff;
    --text-muted: #b3b3b3
}

* {
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: Poppins,sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6
}

header {
    background-color: rgba(0,0,0,.8);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(8px)
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%
}

.logo,.logo a {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none
}

.logo {
    margin-left: -3rem;
    font-size: 1.5rem;
    font-weight: 700
}

.logo a {
    outline: 0;
    border: none
}

.logo a:hover,.logo a:visited,.nav-links a.active,.nav-links a:hover,.search-bar button:hover {
    color: var(--accent-color)
}

.logo-icon {
    width: 30px;
    height: 30px
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: transform .3s
}

.hamburger-menu.active {
    transform: rotate(90deg)
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-right: -3rem
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,.1);
    border-radius: 20px;
    padding: .5rem 1rem;
    margin-left: 11rem;
    flex-grow: 1;
    max-width: 400px;
    transition: .3s
}

.search-bar button,.search-bar input {
    background: 0 0;
    border: none;
    color: var(--text-color);
    font-size: 1rem
}

.search-bar:focus-within {
    background-color: rgba(255,255,255,.2);
    box-shadow: 0 0 0 2px var(--accent-color)
}

.search-bar input {
    outline: 0;
    width: 100%
}

.search-bar button {
    cursor: pointer;
    transition: color .3s
}

footer {
    background-color: #121212;
    padding: .5rem 5%;
    margin-top: 2rem
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap
}

.footer-text {
    max-width: 600px
}

.footer-text p:first-child {
    font-size: 1rem;
    font-weight: 700
}

.footer-text p:nth-child(2) {
    font-size: .75rem;
    color: #a1a1aa;
    margin-top: .15rem
}

.footer-text p:last-child {
    font-size: .65rem;
    color: rgba(161,161,170,.7);
    margin-top: .15rem
}

.footer-buttons {
    display: flex;
    gap: 1rem
}

.footer-button {
    padding: .3rem .8rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color .3s
}

.footer-button:hover {
    background-color: #19c573;
    transform: scale(1.05)
}

@media (max-width: 768px) {
    nav {
        flex-wrap:wrap;
        padding: 1rem 5% .5rem
    }

    .logo {
        margin-left: 0
    }

    .hamburger-menu {
        display: block
    }

    .nav-links {
        display: none;
        width: 100%;
        order: 3;
        margin-top: .5rem;
        justify-content: center
    }

    .nav-links.active,.search-bar.active {
        display: flex
    }

    .search-bar {
        order: 2;
        width: calc(100% - 3rem);
        margin: .5rem 0 0
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start
    }

    .footer-buttons {
        margin-top: .5rem
    }
}

@media (min-width: 768px) and (max-width:1024px) {
    footer,nav {
        padding:1rem 3%
    }

    .logo {
        margin-left: 0
    }

    .search-bar {
        margin-left: 2rem;
        max-width: 300px
    }

    .nav-links {
        margin-right: 0
    }

    .nav-links a {
        font-size: .9rem
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between
    }

    .footer-text {
        max-width: 60%
    }
}
