/* 
    WE ALIENS - Premium Mobile Enhancements 
    Author: We Aliens
    Description: Custom luxury enhancements specifically targeted for mobile viewports (max-width: 768px).
*/

@media (max-width: 768px) {
    /* ==========================================================================
       1. Base Adjustments & Typography
       ========================================================================== */
    body {
        font-size: 15px; /* Slightly larger base font for readability */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    h1, .hero__title, .main-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem;
        letter-spacing: -0.5px;
    }

    h2, .second-title {
        font-size: clamp(1.5rem, 6vw, 2.25rem) !important;
        line-height: 1.3 !important;
        letter-spacing: -0.25px;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    /* ==========================================================================
       2. Navigation (Top Bar & Main Navbar)
       ========================================================================== */
    
    /* Top Bar Styling */
    .nav-top {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 5px 0;
    }

    .nav-top .nav-item {
        margin: 0;
    }

    .nav-top > li > a {
        font-size: 12px !important; /* Slightly larger on mobile */
        padding: 4px 8px !important;
    }

    .language-selector {
        font-size: 12px;
        padding: 2px 6px;
        margin-top: 0;
    }

    /* Main Navbar (Glassmorphism & Structure) */
    .nav-menu {
        padding: 10px 15px !important;
        background: rgba(10, 10, 10, 0.8) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    /* Hamburger Menu Button */
    .navbar-toggler {
        border: none !important;
        padding: 8px !important;
        outline: none !important;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        transition: background 0.2s ease;
    }
    
    .navbar-toggler:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.95);
    }

    /* Expanded Menu Panel */
    .navbar-collapse {
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 12px;
        margin-top: 15px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link.menu-item {
        padding: 12px 15px !important;
        margin: 5px 0 !important;
        border-radius: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    /* Active/Hover states in mobile menu */
    .nav-link.menu-item:active,
    .nav-link.menu-item.active {
        background: rgba(0, 201, 211, 0.1);
        color: #00c9d3 !important;
        transform: translateX(5px);
        border-left: 3px solid #00c9d3;
    }

    /* Dropdown Menus in Mobile */
    .dropdown-menu {
        background: rgba(0, 0, 0, 0.3) !important;
        border: none !important;
        padding: 5px 0 5px 15px !important;
        margin-top: 0 !important;
        box-shadow: none !important;
    }

    .dropdown-item {
        padding: 10px 15px !important;
        font-size: 11px !important;
        border-left: 1px dashed rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .dropdown-item:active {
        background: rgba(255, 255, 255, 0.05) !important;
        color: #fff !important;
    }

    /* ==========================================================================
       3. Buttons & Interactive Elements
       ========================================================================== */
    .btn, button, input[type="submit"] {
        min-height: 48px; /* Better touch target */
        padding: 12px 24px;
        border-radius: 8px;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
    }

    /* Tactile press effect */
    .btn:active, a:active, .social-icons-link:active {
        transform: scale(0.96) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }

    /* ==========================================================================
       4. Layout & Spacing
       ========================================================================== */
    .container, .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    section {
        padding-top: 3rem !important; /* Reduce massive vertical padding on mobile */
        padding-bottom: 3rem !important;
    }

    /* Cards & Containers */
    .card, .service-box, .product-box {
        border-radius: 12px;
        margin-bottom: 20px;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Footer Adjustments */
    .we-footer {
        padding-top: 2rem !important;
        text-align: center;
    }

    .we-footer-nav-row {
        gap: 1.5rem;
    }
    
    .we-footer-nav-row .col-6 {
        width: 100%; /* Make footer columns take full width on very small screens, or keep at 50% for standard mobile */
        text-align: left;
        margin-bottom: 1rem;
    }

    .footer-heading {
        font-size: 1.25rem;
        margin-bottom: 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.5rem;
        display: inline-block;
    }

    /* Social Icons Centering */
    .social-icons {
        justify-content: center;
        margin-top: 20px;
    }
    
    /* Copyright Section */
    .copyright-links {
        text-align: center;
        margin-top: 15px;
    }
}
