/* Responsive navigation and layouts */

.mobile-dock {
    display: none;
}

@media (max-width: 900px) {
    body {
        cursor: auto;
    }

    *,
    *::before,
    *::after {
        cursor: auto !important;
    }

    #custom-cursor {
        display: none !important;
    }

    button,
    a,
    input,
    textarea {
        cursor: auto;
    }

    .site-header {
        gap: 18px;
        padding-right: 24px;
        padding-left: 24px;
    }

    .desktop-nav {
        gap: 17px;
    }

    .desktop-nav a {
        font-size: 12px;
    }

    .nav-actions {
        min-width: auto;
    }

    .nav-user {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 680px) {
    .site-header {
        min-height: 70px;
        justify-content: center;
        padding: 0 18px;
    }

    .site-header > .brand,
    .site-header > .nav-actions,
    .site-header > .desktop-nav {
        display: none;
    }

    .mobile-dock {
        position: fixed;
        right: auto;
        bottom: calc(16px + env(safe-area-inset-bottom));
        left: 50%;
        z-index: 50;
        display: flex;
        width: max-content;
        max-width: calc(100vw - 22px);
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 9px;
        border: 1px solid rgba(255, 51, 51, 0.46);
        border-radius: 20px;
        background: rgba(15, 6, 6, 0.88);
        box-shadow: 0 8px 35px rgba(0, 0, 0, 0.48), 0 0 22px rgba(73, 0, 0, 0.35);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateX(-50%);
    }

    .mobile-dock a {
        display: flex;
        min-width: 61px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 6px 7px;
        border-radius: 13px;
        color: #c8baba;
        font-size: 10px;
        font-weight: 650;
        text-decoration: none;
        transition: background 160ms ease, color 160ms ease;
    }

    .mobile-dock a:hover,
    .mobile-dock a[aria-current="page"] {
        background: rgba(88, 7, 7, 0.58);
        color: #fff;
    }

    .dock-icon {
        display: block;
        width: 23px;
        height: 23px;
        fill: none;
        stroke: #ff5555;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: filter 160ms ease;
    }

    .mobile-dock a[aria-current="page"] .dock-icon {
        filter: drop-shadow(0 0 6px rgba(255, 51, 51, 0.55));
    }

    .hero {
        min-height: 82vh;
        padding: 70px 22px 130px;
    }

    .hero h1 {
        font-size: clamp(39px, 11vw, 58px);
    }

    .hero-copy {
        font-size: 14px;
    }

    .hero-actions {
        width: min(100%, 360px);
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .page-shell {
        width: calc(100% - 34px);
        padding: 55px 0 130px;
    }

    .page-heading {
        margin-bottom: 30px;
    }

    .page-heading h1 {
        font-size: clamp(36px, 10vw, 48px);
    }

    .projects-grid,
    .feature-columns {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 195px;
    }

    .feature-callout {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .feature-callout .button {
        width: 100%;
    }

    .info-panel {
        padding: 23px;
    }

    .modal-panel {
        padding: 29px 22px 23px;
    }

    .auth-layout {
        justify-content: flex-start;
        padding-top: 42px;
        padding-bottom: 45px;
    }

    .auth-card {
        padding: 27px 22px;
    }

    .auth-card h1 {
        font-size: 27px;
    }
}

@media (max-width: 360px) {
    .mobile-dock {
        gap: 1px;
        padding: 7px;
    }

    .mobile-dock a {
        min-width: 55px;
        padding-right: 4px;
        padding-left: 4px;
    }
}
