html {
    scroll-behavior: smooth;
}

body {
    background-color: #0f1626;
    color: #e6e8eb;
    margin: 0;
}

body.open {
    overflow: hidden;
}

section {
    scroll-margin-top: 60px;
    padding: 60px 20px;
    text-align: center;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo {
    height: 50px;
    width: auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 24px;
}

.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(15, 22, 38, 1), rgba(15, 22, 38, 0));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

.navbar .social-icons {
    justify-self: start;
    display: flex;
    gap: 16px;
    align-items: center;
}

.navbar .social-icons img {
    height: 24px;
    width: 24px;
}

.navbar nav {
    justify-self: end;
}

.navbar nav a {
    color: #e6e8eb;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.navbar nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.hero {
    aspect-ratio: 16 / 9;
    padding: 0;
    position: relative;
    overflow: hidden;
    margin-top: -82px;
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 22, 38, 0.4), rgba(15, 22, 38, 0) 40%, #0f1626);
}

.video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 24px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 48px;
}

.yt-channel-link {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 24px;
    background-color: #0f1626;
    color: #e6e8eb;
    border: 1px solid #e6e8eb;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.yt-channel-link:hover {
    background-color: #e6e8eb;
    color: #0f1626;
}

footer {
    text-align: center;
    padding: 24px 20px;
}

footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
}

footer .social-icons img {
    height: 24px;
    width: 24px;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #e6e8eb;
    transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


@media (max-width: 900px) {
    section {
        padding: 30px 10px;
    }

    main {
        padding: 0;
    }

    .navbar .social-icons {
        display: none;
    }

    .navbar {
        display: flex;
        justify-content: space-between;
    }

    .navbar nav {
        display: none;
    }

    .navbar nav.open {
        display: flex;
        position: fixed;
        justify-self: stretch;
        flex-direction: column;
        gap: 32px;
        inset: 0;
        justify-content: center;
        align-items: center;
        background-color: rgba(15, 22, 38, 0.95);
        backdrop-filter: blur(10px);
    }

    .navbar nav.open a {
        font-size: 1.5rem;
        margin-left: 0;
    }

    .logo {
        height: 32px;
    }

    .burger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        position: relative;
        z-index: 1001;
    }

    .hero {
        aspect-ratio: 9 / 16;
        max-height: 90svh;
        width: 100%;
        margin-top: -64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero video {
        display: none;
    }

    .hero {
        background-image: url('../video/hero-poster.jpg');
        background-size: cover;
        background-position: center;
    }
}