/* ===== BRUTAL AUDIT FIXES v1.0 ===== */
/* Global performance and alignment optimizations */

/* 1. SECTION PADDING (MOBILE) */
@media (max-width: 768px) {

    .section,
    section {
        padding: 4rem 1.5rem !important;
    }

    .header-container {
        padding: 0 1rem !important;
    }

    .footer-content {
        padding: 0 1.5rem !important;
    }
}

/* 2. FORM INPUT LUXURY */
.compact-form .input-group {
    margin-bottom: 1.5rem !important;
}

.compact-form label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    margin-bottom: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.compact-form input,
.compact-form select,
.compact-form textarea {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
    color: white !important;
    font-size: 0.95rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.compact-form input:focus {
    border-color: var(--primary) !important;
    background: rgba(45, 212, 191, 0.05) !important;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.1) !important;
    outline: none !important;
}

/* 3. TESTIMONIAL HOVER ENHANCEMENT */
.testimonial-grid .glass-form-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.testimonial-grid .glass-form-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: var(--primary) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    z-index: 10;
}

/* 4. HORIZONTAL OVERFLOW PREVENTION */
body,
html {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
}

/* 5. SMOOTH SCROLL MARGIN FOR ANCHORS */
[id] {
    scroll-margin-top: 100px !important;
}

/* 6. BUTTON TOUCH TARGETS */
@media (max-width: 768px) {

    .btn,
    button,
    a.btn-hero-green,
    a.btn-hero-white {
        min-height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* 7. GLASS CARD GLOW SPEED CONSOLIDATION */
.card-glow {
    animation: glowMove 8s infinite alternate !important;
}

@keyframes glowMove {
    0% {
        transform: translate(-20%, -20%) scale(1);
        opacity: 0.3;
    }

    100% {
        transform: translate(20%, 20%) scale(1.2);
        opacity: 0.5;
    }
}

/* 8. ELITE MOBILE OVERLAP ELIMINATION (MOBILE ONLY) */
@media (max-width: 991px) {

    /* HIDE ALL FLOATING TRASH ON MOBILE */
    .whatsapp-float,
    .whatsapp-fab,
    .whatsapp-fab-elite,
    #whatsapp-fab,
    .back-to-top,
    #backToTop,
    .scroll-up-btn,
    .notification-bell-btn,
    .float-btn,
    .hiring-popup,
    #hiringPopup,
    .live-activity,
    #liveActivity {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Redesigned Mobile Header - Branding at START */
    .header-left .logo {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        text-decoration: none !important;
    }

    .header-left .logo-img {
        display: block !important;
        height: 32px !important;
        width: auto !important;
    }

    .header-left .logo-text-slim {
        display: block !important;
        font-size: 1.1rem !important;
        font-weight: 950 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        background: linear-gradient(135deg, #fff 0%, #2dd4bf 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.3)) !important;
    }

    .header-center-branding {
        display: none !important;
        /* Remove centered branding to eliminate overlaps */
    }

    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 1rem !important;
        height: 100% !important;
    }

    .header-left,
    .header-actions {
        z-index: 5 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    .header-actions {
        gap: 0.5rem !important;
    }

    /* Hide branding only on extremely small screens */
    @media (max-width: 360px) {
        .header-center-branding {
            display: none !important;
        }
    }

    /* Bottom Nav Precision */
    .bottom-nav {
        z-index: 10000 !important;
    }

    /* Remove weird spotlight artifacts on mobile */
    .cursor-spotlight,
    #cursorSpotlight {
        display: none !important;
    }

    /* Remove weird boxes/outlines */
    .header * {
        outline: none !important;
        box-shadow: none !important;
    }
}