/* =========================================================
   DEVORBIT — MOBILE FINAL FIX
   Fixes hero overlap, orbit, buttons, cards & spacing
========================================================= */

@media (max-width: 600px) {

    /* =====================================================
       GLOBAL MOBILE
    ===================================================== */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .section-container {
        width: 100%;
        padding-left: 22px;
        padding-right: 22px;
    }


    /* =====================================================
       NAVBAR
    ===================================================== */

    .site-header {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .navbar {
        width: 100%;
        max-width: 100%;
    }

    .mobile-brand-name {
        font-size: 15px;
    }

    .nav-actions {
        gap: 7px;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }


    /* =====================================================
       HERO
    ===================================================== */

    .hero {
        min-height: auto;
        height: auto;

        padding:
            125px
            22px
            360px;

        position: relative;
        overflow: hidden;

        align-items: flex-start;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        position: relative;
        z-index: 5;
    }

    .hero-eyebrow {
        width: 100%;
        margin-bottom: 24px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        font-size: 9px;
        line-height: 1.4;
    }

    .eyebrow-line {
        width: 24px;
        flex-shrink: 0;
    }


    /* =====================================================
       HERO TITLE
    ===================================================== */

    .hero-title {
        width: 100%;
        max-width: 100%;

        margin: 0;

        font-size:
            clamp(
                2.65rem,
                11.8vw,
                4rem
            );

        line-height: 0.94;
        letter-spacing: -0.055em;

        word-break: normal;
        overflow-wrap: normal;
    }


    /* =====================================================
       HERO BOTTOM
    ===================================================== */

    .hero-bottom {
        width: 100%;

        display: block;

        margin-top: 34px;

        position: relative;
        z-index: 8;
    }

    .hero-description {
        width: 100%;
        max-width: 330px;

        margin: 0;

        font-size: 13px;
        line-height: 1.75;
    }


    /* =====================================================
       HERO BUTTONS
    ===================================================== */

    .hero-actions {
        width: 100%;

        margin-top: 25px;

        display: flex;
        flex-direction: column;

        gap: 10px;

        position: relative;
        z-index: 10;
    }

    .hero-actions a,
    .hero-actions button {
        width: 100%;
        min-height: 58px;

        display: flex;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;
    }


    /* =====================================================
       HERO ORBIT
    ===================================================== */

    .hero-visual {
        position: absolute;

        left: 50%;
        right: auto;

        width: 105vw;
        height: 105vw;

        max-width: 520px;
        max-height: 520px;

        margin-left: -52.5vw;

        top: auto;
        bottom: 25px;

        opacity: 0.28;

        transform: scale(0.78);

        pointer-events: none;

        z-index: 1;
    }


    /* =====================================================
       ORBIT CENTER
    ===================================================== */

    .orbit-center {
        width: 90px;
        height: 90px;
    }

    .orbit-symbol {
        font-size: 17px;
    }


    /* =====================================================
       ORBIT RINGS
    ===================================================== */

    .ring-outer {
        transform: scale(0.95);
    }

    .ring-middle {
        transform: scale(0.72);
    }

    .ring-inner {
        transform: scale(0.48);
    }


    /* =====================================================
       ORBIT CARDS
    ===================================================== */

    .orbit-card {
        min-width: 100px;
        max-width: 115px;

        padding: 7px 9px;

        gap: 6px;

        border-radius: 9px;

        transform: scale(0.9);
    }

    .orbit-card strong {
        font-size: 8px;
        line-height: 1.2;
    }

    .orbit-card small {
        font-size: 6.5px;
        line-height: 1.3;
    }

    .orbit-card-alote {
        top: 9%;
        right: 2%;
    }

    .orbit-card-zaysai {
        right: 0%;
        bottom: 18%;
    }

    .orbit-card-web {
        left: 0%;
        bottom: 8%;
    }


    /* =====================================================
       HERO META
    ===================================================== */

    .hero-meta {
        position: absolute;

        left: 22px;
        right: 22px;

        bottom: 18px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 12px;

        z-index: 12;
    }

    .hero-scroll {
        right: 22px;
        bottom: 18px;
    }


    /* =====================================================
       INTRO
    ===================================================== */

    .intro-section {
        padding:
            90px
            0
            100px;
    }

    .intro-content {
        margin-top: 50px;
    }

    .intro-title {
        font-size:
            clamp(
                2.45rem,
                10vw,
                4rem
            );

        line-height: 0.98;
        letter-spacing: -0.05em;
    }

    .intro-description {
        max-width: 330px;

        font-size: 13px;
        line-height: 1.75;
    }


    /* =====================================================
       WORK
    ===================================================== */

    .work-section {
        padding:
            90px
            0
            100px;
    }

    .work-section .section-header {
        margin-bottom: 45px;
    }

    .featured-project {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-preview,
    .alote-preview,
    .zaysai-preview {
        min-height: 380px;
    }

    .project-frame {
        border-radius: 10px;
        overflow: hidden;
    }

    .browser-bar {
        height: 38px;
    }

    .preview-content {
        width: 84%;
    }

    .preview-content h3 {
        font-size: 2.35rem;
    }

    .preview-search {
        height: 48px;

        margin-top: 22px;

        padding: 0 13px;
    }

    .project-floating-label {
        right: 8px;
        bottom: 10px;

        padding: 8px 9px;

        font-size: 7px;
    }

    .project-info {
        grid-template-columns: 30px 1fr;
        gap: 15px;
    }

    .project-title {
        font-size: 2.6rem;
        line-height: 0.95;
    }

    .project-description {
        font-size: 13px;
        line-height: 1.7;

        margin-top: 18px;
    }

    .project-tech {
        margin-top: 18px;

        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .project-link {
        margin-top: 24px;
    }

    .project-zaysai {
        margin-top: 80px;
    }

    .zaysai-preview-content {
        width: 84%;
    }

    .zaysai-preview-content h3 {
        font-size: 3rem;
    }

    .zaysai-preview-content p {
        font-size: 11px;
        line-height: 1.6;
    }

    .zaysai-interface {
        margin-top: 24px;
    }

    .zaysai-interface-card {
        height: 56px;
    }


    /* =====================================================
       SERVICES
    ===================================================== */

    .services-section {
        padding:
            90px
            0
            100px;
    }

    .services-intro,
    .process-title,
    .team-intro {
        margin-top: 50px;
    }

    .services-intro h2,
    .process-title h2,
    .team-intro h2,
    .technology-heading h2 {
        font-size:
            clamp(
                2.5rem,
                10.2vw,
                4rem
            );

        line-height: 0.98;
        letter-spacing: -0.05em;
    }

    .services-list {
        margin-top: 50px;
    }

    .service-item {
        grid-template-columns:
            30px
            1fr
            36px;

        gap: 12px;

        min-height: 90px;
    }

    .service-item:hover {
        padding-inline: 6px;
    }

    .service-name {
        font-size: 1.2rem;
    }

    .service-description {
        display: none;
    }

    .service-arrow {
        width: 32px;
        height: 32px;

        font-size: 13px;
    }


    /* =====================================================
       PROCESS
    ===================================================== */

    .process-grid {
        grid-template-columns: 1fr;

        margin-top: 50px;
    }

    .process-item {
        min-height: 180px;

        padding:
            22px
            0;

        border-right: 0;

        border-bottom:
            1px solid
            var(--border);
    }

    .process-item:not(:first-child) {
        padding-left: 0;
    }

    .process-item:last-child {
        border-bottom: 0;
    }

    .process-item:nth-child(n + 3) {
        border-top: 0;
    }

    .process-item h3 {
        margin-top: 38px;
    }


    /* =====================================================
       TECHNOLOGY
    ===================================================== */

    .technology-section {
        padding:
            90px
            0
            100px;
    }

    .technology-layout {
        grid-template-columns: 1fr;

        gap: 50px;

        margin-top: 50px;
    }

    .technology-heading h2 {
        font-size:
            clamp(
                2.5rem,
                10.2vw,
                4rem
            );
    }

    .technology-row {
        grid-template-columns:
            78px
            1fr;

        gap: 15px;

        min-height: 70px;

        padding:
            17px
            0;
    }

    .technology-row:hover {
        padding-left: 5px;
        padding-right: 5px;
    }

    .technology-row p {
        font-size: 10.5px;
        line-height: 1.65;
    }

    .technology-row::after {
        display: none;
    }


    /* =====================================================
       PROJECT STATS
    ===================================================== */

    .stats-section {
        padding:
            80px
            0
            90px;
    }

    .stats-section .section-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 16px;

        margin-bottom: 45px;
    }

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

    .stat-item {
        min-height: 135px;

        padding:
            20px
            12px
            0
            0;
    }

    .stat-item:not(:first-child) {
        padding-left: 12px;
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .stat-item:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }

    .stat-number {
        font-size:
            clamp(
                2.4rem,
                13vw,
                3.7rem
            );
    }

    .stat-label {
        margin-top: 12px;

        font-size: 8px;

        line-height: 1.5;
    }


    /* =====================================================
       CTA
    ===================================================== */

    .cta-section {
        min-height: 70vh;

        overflow: hidden;
    }

    .cta-orbit {
        width: 360px;
        height: 360px;
    }

    .cta-content {
        padding:
            0
            22px;
    }

    .cta-content h2 {
        font-size:
            clamp(
                2.8rem,
                11.5vw,
                4.5rem
            );

        line-height: 0.95;
    }

    .cta-description {
        max-width: 320px;

        font-size: 13px;
        line-height: 1.7;
    }


    /* =====================================================
       FOOTER
    ===================================================== */

    .site-footer {
        padding:
            55px
            0
            22px;
    }

    .footer-top {
        flex-direction: column;

        gap: 40px;
    }

    .footer-links {
        gap: 35px;

        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

        margin-top: 50px;
    }


    /* =====================================================
       HIDE NON-ESSENTIAL DECORATION ON SMALL SCREENS
    ===================================================== */

    .hero-visual::before,
    .hero-visual::after {
        pointer-events: none;
    }

}


/* =========================================================
   VERY SMALL PHONES
   iPhone SE / 360px / small Android
========================================================= */

@media (max-width: 380px) {

    .hero {
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 330px;
    }

    .section-container {
        padding-left: 18px;
        padding-right: 18px;
    }

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

    .hero-description {
        font-size: 12px;
    }

    .hero-actions a,
    .hero-actions button {
        min-height: 54px;
    }

    .hero-visual {
        width: 110vw;
        height: 110vw;

        margin-left: -55vw;

        transform: scale(0.72);
    }

    .orbit-card {
        min-width: 92px;
    }

    .orbit-card strong {
        font-size: 7.5px;
    }

    .orbit-card small {
        font-size: 6px;
    }

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

    .stat-item,
    .stat-item:not(:first-child) {
        padding-left: 0;
        padding-right: 0;
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .stat-item:nth-child(n + 2) {
        border-top: 1px solid var(--border);
    }

}
