/* ============================================================
   ENHANCED MOBILE STYLES (works with the rest of style.css)
   ============================================================ */

/* -------- HAMBURGER ICON ANIMATION -------- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 6px;
    border-radius: 10px;
    transition: background 0.2s;
}
.mobile-menu-btn:hover {
    background: #f0f4f8;
}
.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Transform to X when menu is open */
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* -------- NAVIGATION MOBILE DROPDOWN -------- */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    .brand-text {
        font-size: 1rem;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-radius: 0 0 20px 20px;
        z-index: 999;
        gap: 8px;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links li a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 12px;
        transition: background 0.2s;
    }
    .nav-links li a:hover {
        background: #eef4fb;
    }
    /* Make buttons centered on mobile */
    .btn-register,
    .btn-login-nav,
    .btn-sm {
        text-align: center;
        justify-content: center;
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }

    /* -------- HERO SLIDER MOBILE -------- */
    .hero-section {
        height: 65vh;
        min-height: 400px;
    }
    .hero-content-overlay {
        left: 5%;
        right: 5%;
        text-align: center;
        max-width: 100%;
    }
    .hero-content-overlay h1 {
        font-size: 2rem;
        line-height: 1.25;
    }
    .hero-content-overlay p {
        font-size: 1rem;
    }
    .glass-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }
    .stat-item h3 {
        font-size: 2.2rem;
    }

    /* -------- FORMS & PAYMENT -------- */
    .form-container {
        margin: 30px 15px;
        padding: 25px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .payment-option {
        padding: 14px 8px;
        font-size: 0.8rem;
    }

    /* -------- SERVICES CARDS -------- */
    .services-grid,
    .service-preview-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    .service-category-card,
    .service-preview-card {
        padding: 24px;
    }

    /* -------- ADMIN SIDEBAR -------- */
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        max-height: none;
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 15px 10px;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .admin-sidebar .sidebar-item {
        font-size: 0.8rem;
        padding: 8px 14px;
        border-left: none;
        border-radius: 8px;
    }
    .admin-chart-row {
        grid-template-columns: 1fr;
    }

    /* -------- FOOTER MOBILE -------- */
    .footer .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .footer .footer-info div {
        text-align: center;
    }
}