/* ============================================
   RESPONSIVE - Mobile First
   ============================================ */

/* ---- Mobile Navigation (below 1024px) ---- */
@media (max-width: 1023px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: rgba(15, 15, 26, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--color-border);
        padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
        transition: right var(--transition-base);
        z-index: 999;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu--open {
        right: 0;
    }

    .nav-menu__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-menu__list li {
        width: 100%;
    }

    .nav-menu__list li a {
        display: block;
        padding: var(--space-sm) 0;
        font-size: 0.9375rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .nav-menu__list li a::after {
        display: none;
    }

    /* Language toggle inside mobile menu */
    .lang-toggle {
        margin-left: 0;
        margin-top: var(--space-md);
        align-self: flex-start;
    }
}

/* ---- md: 768px and up ---- */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }

    /* Hero */
    .hero-logo-wrapper {
        width: 230px;
        height: 230px;
        margin-bottom: 48px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 21px;
        margin-top: 12px;
    }

    .hero-desc {
        font-size: 15px;
        max-width: 560px;
        margin-top: 16px;
    }

    .hero-buttons {
        margin-top: 22px;
    }

    .hero-buttons .btn {
        width: 190px;
        height: 48px;
    }

    .scroll-indicator {
        margin-top: 36px;
    }

    /* Marquee */
    .marquee-item {
        font-size: 1.5rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 2.25rem;
    }

    /* Architecture */
    .architecture-title {
        font-size: 4.125rem;
    }

    .architecture-block {
        grid-template-columns: repeat(2, 1fr);
    }

    .architecture-block--reverse .architecture-block__content {
        order: 2;
    }

    .architecture-block--reverse .architecture-block__image {
        order: 1;
    }

    .architecture-block__title {
        font-size: 2.25rem;
    }

    /* Stats */
    .stats-bar__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-item__value {
        font-size: 3rem;
    }

    /* CTA */
    .cta-section__title {
        font-size: 3rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Page Hero */
    .page-hero__title {
        font-size: 3rem;
    }

    /* Competencies cards */
    .competencies-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Support */
    .support-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Projects */
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- lg: 1024px and up ---- */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    /* Hero */
    .hero-logo-wrapper {
        width: 245px;
        height: 245px;
        margin-bottom: 56px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 23px;
        margin-top: 14px;
    }

    .hero-desc {
        font-size: 15px;
        max-width: 600px;
        margin-top: 20px;
    }

    .hero-buttons {
        margin-top: 26px;
    }

    .hero-buttons .btn {
        width: 190px;
        height: 48px;
    }

    .scroll-indicator {
        margin-top: 42px;
    }

    /* Competencies - sticky sidebar layout */
    .competencies-grid {
        grid-template-columns: 40% 1fr;
        gap: var(--space-2xl);
    }

    .competencies-sidebar {
        position: sticky;
        top: calc(var(--header-height) + var(--space-lg));
        align-self: start;
    }

    .section-title {
        font-size: 2.25rem;
    }

    /* Architecture */
    .architecture-title {
        font-size: 4.5rem;
    }

    .architecture-block__title {
        font-size: 2.5rem;
    }

    /* CTA */
    .cta-section__title {
        font-size: 3.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    /* Page Hero */
    .page-hero__title {
        font-size: 3.5rem;
    }

    /* Tabs */
    .tabs-nav {
        gap: 0.625rem;
    }

    /* Projects */
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- xl: 1440px and up ---- */
@media (min-width: 1440px) {
    .hero-logo-wrapper {
        width: 259px;
        height: 259px;
        margin-bottom: 64px;
    }

    .hero-title {
        font-size: 96px;
    }

    .hero-subtitle {
        font-size: 24px;
        letter-spacing: 0.32em;
        margin-top: 16px;
    }

    .hero-desc {
        font-size: 15px;
        max-width: 620px;
        margin-top: 24px;
    }

    .hero-buttons {
        margin-top: 30px;
    }

    .hero-buttons .btn {
        width: 190px;
        height: 48px;
    }

    .scroll-indicator {
        margin-top: 48px;
    }

    .section-title {
        font-size: 3rem;
    }

    .architecture-title {
        font-size: 5.25rem;
    }

    .cta-section__title {
        font-size: 64px;
    }
}
