/*
 * Mobile Bottom Navigation - Clean Design
 * Label shows ONLY on active item
 */

@media (max-width: 768px) {

    /* Main Container */
    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 58px !important;
        background: #0a0a12 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
        z-index: 999999 !important;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5) !important;
    }

    /* Each Nav Item */
    .mobile-bottom-nav .mobile-nav-item {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: rgba(255, 255, 255, 0.35) !important;
        height: 100% !important;
        padding: 6px 0 !important;
        gap: 2px !important;
        transition: all 0.25s ease !important;
        position: relative !important;
    }

    /* Icon Wrapper */
    .mobile-bottom-nav .nav-icon-wrapper {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-bottom-nav .mobile-nav-item i {
        font-size: 1.3rem !important;
    }

    /* Hide Label by Default */
    .mobile-bottom-nav .nav-label {
        display: none !important;
    }

    /* ===== CENTER ITEM (Shop) ===== */
    .mobile-bottom-nav .mobile-nav-item.center-item .nav-icon-wrapper {
        width: 44px !important;
        height: 44px !important;
        background: linear-gradient(135deg, #7c3aed, #06b6d4) !important;
        border-radius: 50% !important;
        margin-top: -18px !important;
        box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4) !important;
    }

    .mobile-bottom-nav .mobile-nav-item.center-item i {
        color: #fff !important;
        font-size: 1.2rem !important;
    }

    /* Center always shows label */
    .mobile-bottom-nav .mobile-nav-item.center-item .nav-label {
        display: block !important;
        font-size: 0.5rem !important;
        color: #a78bfa !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-top: 3px !important;
    }

    /* ===== ACTIVE STATE ===== */
    .mobile-bottom-nav .mobile-nav-item.active:not(.center-item) {
        color: #fff !important;
    }

    .mobile-bottom-nav .mobile-nav-item.active:not(.center-item) i {
        color: #a78bfa !important;
    }

    /* Show Label on Active */
    .mobile-bottom-nav .mobile-nav-item.active:not(.center-item) .nav-label {
        display: block !important;
        font-size: 0.5rem !important;
        color: #a78bfa !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    /* Cart Badge */
    .mobile-bottom-nav .cart-badge {
        position: absolute !important;
        top: -3px !important;
        right: -3px !important;
        background: #ef4444 !important;
        color: #fff !important;
        font-size: 0.45rem !important;
        font-weight: 700 !important;
        min-width: 14px !important;
        height: 14px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 2px solid #0a0a12 !important;
    }

    /* Body Padding */
    body {
        padding-bottom: 65px !important;
    }
}

/* Hide on Desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* ==========================================
   HERO SECTION - MOBILE FIX
   Must be in this file as it loads LAST
   ========================================== */
@media (max-width: 768px) {

    /* Hero Section - more top space */
    .hero-section {
        padding-top: 100px !important;
        margin-top: 0 !important;
        min-height: auto !important;
    }

    /* Container - Full Width like other sections */
    .hero-container,
    .hero-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
        text-align: left !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Greeting - BIGGER */
    .hero-greeting {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }

    /* Title - MUST fit mobile */
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
        line-height: 1.1 !important;
        word-break: break-word !important;
        margin-bottom: 10px !important;
    }

    /* Subtitle */
    .hero-subtitle {
        font-size: 1.6rem !important;
        margin-bottom: 15px !important;
    }

    /* Description */
    .hero-desc,
    .hero-description,
    .hero-content p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        word-break: break-word !important;
    }

    /* Hide decorative orbit elements */
    .orbit-container,
    .orbit-ring {
        display: none !important;
    }

    /* Avatar - MUCH BIGGER - Container and Border */
    .central-image-wrapper,
    .avatar-wrapper,
    .central-image-wrapper.avatar-wrapper {
        display: block !important;
        width: 220px !important;
        height: 220px !important;
        min-width: 220px !important;
        min-height: 220px !important;
        margin: 0 auto 20px !important;
        position: relative !important;
        overflow: visible !important;
    }

    /* The glowing border around avatar */
    .avatar-border {
        width: 230px !important;
        height: 230px !important;
        top: -5px !important;
        left: -5px !important;
        position: absolute !important;
    }

    /* The image itself - NO min-width to allow shrinking */
    .central-image-wrapper img,
    .avatar-wrapper img,
    img.central-img {
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        object-fit: cover !important;
        position: relative !important;
        z-index: 2 !important;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .hero-buttons .button,
    .hero-buttons a {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Tech Stack Icons - SHOW THEM with more space */
    .tech-stack-container,
    .tech-icons,
    .hero-tech-stack {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
        margin-top: 60px !important;
        padding: 0 10px !important;
    }

    .tech-stack-container i,
    .tech-icons i,
    .hero-tech-stack i {
        font-size: 1.8rem !important;
        opacity: 0.8 !important;
    }

    /* Skills Grid - 2 items per row on mobile */
    .skills-grid-6,
    .skills-stats-section .skills-grid-6 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .skills-grid-6 .stat-item {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Service Cards - Icon + Title in row, description below */
    .service-card {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .service-card .service-icon {
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
    }

    .service-card h3 {
        margin: 0 !important;
        flex: 1 !important;
    }

    /* Description goes to new line */
    .service-card p,
    .service-card div:not(.service-icon) {
        width: 100% !important;
        flex-basis: 100% !important;
        margin-top: 10px !important;
    }

    /* WhatsApp & Telegram Widgets - Same level on mobile */

    /* Both widgets at same level above bottom nav */
    .dp-whatsapp-widget,
    .dp-whatsapp-right,
    .dp-whatsapp-left,
    .floating-widget.telegram-widget,
    .telegram-widget,
    .telegram-right,
    .telegram-left {
        bottom: 100px !important;
        z-index: 99998 !important;
    }

    /* Both on RIGHT - same horizontal position */
    .dp-whatsapp-right,
    .telegram-right {
        right: 15px !important;
        left: auto !important;
    }

    /* Both on LEFT - same horizontal position */
    .dp-whatsapp-left,
    .telegram-left {
        left: 15px !important;
        right: auto !important;
    }
}