@media (max-width: 1199.98px) {
    :root {
        --section-space: 6rem;
    }

    .stack-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dev-console {
        min-height: 34rem;
    }
}

@media (max-width: 991.98px) {
    .custom-navbar {
        background: rgba(3, 7, 18, 0.94);
        border-bottom: 1px solid rgba(30, 41, 59, 0.9);
    }

    .navbar-collapse {
        padding: 1rem 0 0.25rem;
    }

    .navbar-nav {
        align-items: stretch !important;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }

    .nav-link {
        padding: 0.65rem 0.95rem;
    }

    .custom-navbar .btn {
        width: 100%;
        margin: 0.35rem 0 0;
    }

    .hero {
        padding-top: 6.25rem;
    }

    .hero .min-vh-100 {
        min-height: auto !important;
        padding: 4rem 0 5rem;
    }

    .hero-content {
        max-width: 43rem;
    }

    .dev-console {
        min-height: 36rem;
    }

    .console-window {
        left: 0;
        right: auto;
        width: min(100%, 40rem);
    }

    .section-heading.text-start {
        max-width: 45rem;
        margin: 0 auto 3rem;
        text-align: center !important;
    }

    .stack-panel {
        max-width: 44rem;
        margin: 0 auto;
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-space: 5rem;
    }

    body {
        line-height: 1.65;
    }

    .section-heading {
        margin-bottom: 3rem;
    }

    .hero-actions,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

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

    .hero-stats,
    .stack-panel,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dev-console {
        min-height: auto;
        padding-top: 1rem;
    }

    .console-window {
        position: relative;
        top: auto;
        width: 100%;
    }

    .floating-tech {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        display: inline-flex;
        margin: 0.75rem 0.45rem 0 0;
    }

    .service-card,
    .stack-panel div,
    .project-content,
    .contact-info,
    .contact-channel {
        padding: 1.35rem;
    }

    .cta-panel {
        border-radius: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-right: 1.15rem;
        padding-left: 1.15rem;
    }

    .brand-logo {
        font-size: 1.18rem;
    }

    .brand-mark {
        width: 2.2rem;
        height: 2.2rem;
    }

    .eyebrow {
        max-width: 100%;
        font-size: 0.72rem;
    }

    .code-line {
        overflow-x: auto;
        white-space: nowrap;
    }

    .project-image {
        aspect-ratio: 1.25;
    }

    .whatsapp-button {
        right: 1rem;
        bottom: 1rem;
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.45rem;
    }
}

/* ==================================================
   Profile page
================================================== */

@media (max-width: 991.98px) {
    .profile-main {
        padding-top: 6.25rem;
    }

    .profile-hero {
        padding: 3.5rem 0 4rem;
    }

    .profile-avatar {
        width: 10rem;
        height: 10rem;
    }

    .avatar-badge {
        width: 2rem;
        height: 2rem;
        font-size: 1.05rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .profile-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .profile-sidebar .profile-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .profile-avatar {
        width: 9rem;
        height: 9rem;
    }

    .avatar-badge {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 1rem;
    }

    .profile-card {
        padding: 1.35rem;
    }

    .profile-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .profile-service .icon-box {
        width: 2.7rem;
        height: 2.7rem;
        font-size: 1.1rem;
    }
}
