/* =====================================================
   Services Page — Full Responsive Breakpoints
   ===================================================== */

/* ===== BURGER BUTTON ===== */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
    z-index: 1100;
    flex-shrink: 0;
}

.burger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #f8fafc;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.burger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.burger-btn:hover {
    background: rgba(255, 59, 92, 0.12);
    border-color: rgba(255, 59, 92, 0.3);
}

/* ===== NAV OVERLAY ===== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s;
}

/* ===== 1200px — Large Laptop ===== */
@media (max-width: 1200px) {
    header {
        padding: 0 4%;
    }
    header ul {
        gap: 20px;
    }
}

/* ===== 992px — Tablet Landscape ===== */
@media (max-width: 992px) {
    header {
        padding: 0 4%;
    }
    .hero {
        padding: 120px 20px 60px 20px;
    }
    .hero-content h1 {
        font-size: 2.3rem;
    }
    .cards {
        padding: 0 4% 40px 4%;
        grid-template-columns: repeat(2, 1fr);
    }
    .bots {
        grid-template-columns: 1fr;
        padding: 28px;
    }
}

/* ===== 768px — Tablet / Mobile ===== */
@media (max-width: 768px) {
    /* Header */
    header {
        height: 65px;
        padding: 0 16px;
        position: fixed;
    }

    /* Show burger button */
    .burger-btn {
        display: flex;
    }

    /* Mobile full-screen dropdown nav */
    header ul#navMenu {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #090616;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 20px 20px max(20px, env(safe-area-inset-bottom));
    }

    header ul#navMenu.open {
        transform: translateX(0);
    }

    header ul#navMenu li {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    header ul#navMenu li a {
        display: block;
        padding: 14px 20px;
        font-size: 1.05rem;
        font-weight: 600;
        color: #94a3b8;
        border-radius: 10px;
        border: 1px solid transparent;
        transition: all 0.2s;
    }

    header ul#navMenu li a:hover {
        background: rgba(255, 59, 92, 0.08);
        border-color: rgba(255, 59, 92, 0.2);
        color: #f8fafc;
    }

    header ul#navMenu li .btn-header {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Show overlay when menu open */
    .nav-overlay.visible {
        display: block;
        opacity: 1;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .hero-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    .hero-content > div {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    /* Cards */
    .cards {
        grid-template-columns: 1fr;
        padding: 0 16px 40px 16px;
    }

    /* Bots */
    .bots-section {
        padding: 40px 16px;
    }
    .bots {
        padding: 20px;
    }

    /* Modal */
    .modal-card {
        padding: 24px 18px;
        max-height: 90vh;
        overflow-y: auto;
        margin: 0 12px;
    }

    /* Section headings */
    .first_part h2 {
        font-size: 1.5rem;
    }
}

/* ===== 480px — Small Mobile ===== */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.45rem;
        line-height: 1.3;
    }
    .hero {
        padding: 100px 16px 50px 16px;
    }
    .card {
        padding: 20px;
    }
    .first_part h2 {
        font-size: 1.2rem;
    }
    .btn-header {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    .modal-card {
        padding: 20px 14px;
    }
    .modal-card h2 {
        font-size: 1.2rem;
    }
    /* Wizard steps compact */
    .wizard-step-header {
        flex-direction: column;
        gap: 8px;
    }
    .portfolio-success-modal {
        padding: 24px 16px;
    }
}

/* ===== 360px — Very Small Mobile ===== */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.3rem;
    }
    header .logo img {
        height: 34px;
    }
}
