/*
========================================
Jiří Byrt Portfolio
Sdílené komponenty
========================================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.navbar {
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: rgba(14, 22, 40, 0.72);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: 0.3s ease;
}

.navbar.scrolled {
    padding-top: 15px;
    padding-bottom: 15px;
    background: rgba(10, 17, 32, 0.86);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.logo {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav-menu ul {
    display: flex;
    gap: 27px;
    list-style: none;
}

.nav-menu ul a {
    color: #c9c9c9;
    font-size: 14px;
    position: relative;
    transition: 0.3s ease;
}

.nav-menu ul a::after {
    content: "";
    width: 0;
    height: 2px;
    position: absolute;
    left: 0;
    bottom: -7px;
    background: linear-gradient(90deg, #6a5af9, #8f6dfd);
    transition: 0.3s ease;
}

.nav-menu ul a:hover,
.nav-menu ul a.active-link {
    color: #fff;
}

.nav-menu ul a:hover::after,
.nav-menu ul a.active-link::after {
    width: 100%;
}

.cta-btn,
.btn-primary,
.btn-secondary {
    padding: 13px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    transition: 0.35s ease;
}

.cta-btn,
.btn-primary {
    background: linear-gradient(90deg, #6a5af9, #8f6dfd);
    box-shadow: 0 0 30px rgba(106,90,249,0.25);
}

.btn-secondary {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(143,109,253,0.55);
}

.cta-btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 45px rgba(106,90,249,0.4);
}

.hamburger {
    display: none;
    position: relative;
    z-index: 1002;

    width: 42px;
    height: 42px;
    padding: 7px;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 0;
    background: transparent;
    cursor: pointer;
}

.hamburger span {
    display: block;

    width: 28px;
    height: 3px;

    background: #fff;
    border-radius: 999px;

    transition:
        transform 0.35s ease,
        opacity 0.25s ease;

    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 800px) {
    .hamburger {
        display: flex;
    }

    .hamburger.active {
        position: fixed;
        top: 22px;
        right: 22px;

        z-index: 1002;
    }

    .nav-menu {
        z-index: 1001;
    }
}

.page-footer {
    padding: 75px 8% 30px;
    background: #080d18;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-top {
    max-width: 1250px;
    margin: 0 auto 55px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 0.7fr);
    gap: 55px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 18px;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
}

.footer-brand p {
    max-width: 330px;
    margin-bottom: 20px;
    color: #aeb5c4;
    line-height: 1.7;
}

.footer-email {
    color: #bdb3ff;
    font-weight: 700;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h3 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 15px;
}

.footer-column a {
    color: #aeb5c4;
    font-size: 14px;
    transition: 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1250px;
    margin: 0 auto;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #777f91;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 13px;
}

.footer-bottom a {
    color: #bdb3ff;
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        width: 280px;
        height: 100vh;
        padding: 110px 30px 40px;
        position: fixed;
        right: -300px;
        top: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(10,17,32,0.98);
        transition: 0.35s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .navbar {
        padding-left: 6%;
        padding-right: 6%;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}