/* All rights reserved. Copyright Blokalyze. */
/* Created: 2025-10-15 */
@import url('colors.css');
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Chakra+Petch:wght@500;600&family=Orbitron&family=Rajdhani:wght@600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overscroll-behavior: none;
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--background-color);
    color: var(--main-text-color);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.content {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    position: relative;
    background-color: rgba(37, 34, 34, 0.62);
    padding: 110px 24px 80px;
    max-width: 1040px;
    margin: auto;
    margin-top: 70px;
    z-index: 2;
    backdrop-filter: blur(3px);
}

.video-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: left;
    position: relative;
    background-color: rgba(37, 34, 34, 0.62);
    padding: 74px 24px 80px;
    max-width: 1040px;
    margin: auto;
    margin-top: 66px;
    z-index: 2;
    backdrop-filter: blur(3px);
}

.content-content {
    position: relative;
    z-index: 2;
}

.services-content {
    width: 100%;
}

.services-content h2 {
    max-width: 820px;
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.services-lead {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.76);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 17px;
    line-height: 1.8;
}

.about-content {
    width: 100%;
    max-width: 940px;
    scroll-margin-top: 140px;
    text-align: left;
}

.section-label {
    color: var(--logo-color);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.about-content h2 {
    max-width: 760px;
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 22px;
}

.about-lead {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-intro {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 38px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.about-card {
    min-height: 250px;
    padding: 24px;
    border: 1px solid rgba(179, 6, 6, 0.35);
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.42);
    box-shadow: 0 0 24px rgba(150, 0, 0, 0.14);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(179, 6, 6, 0.72);
    background: rgba(18, 10, 10, 0.58);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 26px rgba(179, 6, 6, 0.28);
}

.about-card span {
    display: inline-block;
    color: rgba(255, 255, 255, 0.48);
    font-size: 28px;
    line-height: 1;
    margin-bottom: 34px;
}

.about-card h3 {
    color: var(--main-text-color);
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 14px;
}

.about-card p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.65;
}

.about-card:nth-child(1) p {
    font-family: 'Chakra Petch', sans-serif;
}

.about-card:nth-child(2) p {
    font-family: 'Chakra Petch', sans-serif;
}

.about-card:nth-child(3) p {
    font-family: 'Chakra Petch', sans-serif;
}

.logo {
    width: 180px;
    filter: drop-shadow(0 0 10px var(--logo-color));
}

h1,
h3 {
    margin: 15px 0;
}

.header.show {
    transform: translateY(0);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav a {
    color: var(--main-text-color);
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav a:hover {
    background-color: var(--secondary-background-color);
}

.nav-brand {
    display: none;
}

.nav-toggle {
    display: none;
}

.video-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
}

.video-container iframe {
    max-width: 100%;
    height: auto;
}

.video-grid {
    display: flex;
    flex-direction: column;
    gap: 34px;
    margin-top: 46px;
}

.video-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(179, 6, 6, 0.35);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.72), rgba(37, 16, 16, 0.48));
    box-shadow: 0 0 24px rgba(150, 0, 0, 0.14);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.video-item:nth-child(even) .video-frame {
    order: 2;
}

.video-item:nth-child(even) .video-text {
    order: 1;
}

.video-item:hover {
    transform: translateY(-8px);
    border-color: rgba(179, 6, 6, 0.72);
    background: linear-gradient(135deg, rgba(14, 10, 10, 0.82), rgba(48, 14, 14, 0.58));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 26px rgba(179, 6, 6, 0.28);
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
}

.video-frame lite-youtube {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-item .video-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 30px;
}

.video-item .video-text span {
    color: var(--logo-color);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.video-item .video-text h3 {
    font-size: 18px;
    line-height: 1.4;
    color: var(--main-text-color);
    margin: 0;
}

.video-item .video-text p {
    color: rgba(255, 255, 255, 0.68);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

.site-footer {
    position: relative;
    z-index: 2;
    padding: 18px 20px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 12px;
    letter-spacing: 0;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 820px) {
    .nav {
        justify-content: space-between;
        padding: 12px 18px;
    }

    .nav-brand {
        display: inline-block;
        padding: 8px 0;
        font-size: 18px;
    }

    .nav-brand:hover {
        background-color: transparent;
    }

    .nav-toggle {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border: 1px solid rgba(179, 6, 6, 0.45);
        border-radius: 8px;
        background: rgba(37, 34, 34, 0.7);
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: var(--main-text-color);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav.open .nav-toggle {
        border-color: rgba(179, 6, 6, 0.8);
        box-shadow: 0 0 16px rgba(179, 6, 6, 0.24);
    }

    .nav.open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .nav.open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 10px 18px 16px;
        background: rgba(10, 10, 10, 0.96);
        border-top: 1px solid rgba(179, 6, 6, 0.28);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.34);
    }

    .nav.open .nav-links {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 14px 12px;
        font-size: 17px;
        text-align: center;
    }

    .content {
        padding: 90px 18px 56px;
        margin-top: 40px;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .about-content {
        scroll-margin-top: 136px;
    }

    .about-lead {
        font-size: 16px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .services-content h2 {
        font-size: 31px;
    }

    .services-lead {
        font-size: 16px;
    }

    .video-content {
        padding: 70px 18px 56px;
        margin-top: 66px;
    }

    .video-grid {
        gap: 24px;
    }

    .video-item {
        grid-template-columns: 1fr;
    }

    .video-item:nth-child(even) .video-frame {
        order: 1;
    }

    .video-item:nth-child(even) .video-text {
        order: 2;
    }

    .about-card {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-card,
    .video-item {
        transition: none;
    }

    .about-card:hover,
    .video-item:hover {
        transform: none;
    }
}
