/* ============================================
   MOBILE UI/UX ENHANCEMENTS
   Professional polish and smooth interactions
   ============================================ */

/* ============================================
   MOBILE MENU ENHANCEMENTS
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Enhanced Mobile Menu Animation */
    .left-nav {
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        transform: translateX(-100%);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.8) !important;
    }

    .left-nav.mobile-open {
        transform: translateX(0) !important;
    }

    /* Enhanced Overlay with smooth fade */
    .mobile-menu-overlay {
        transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        backdrop-filter: blur(8px) !important;
    }

    /* Enhanced Menu Toggle Button */
    .mobile-menu-toggle {
        background: linear-gradient(135deg, rgba(78, 205, 196, 0.2) 0%, rgba(149, 225, 211, 0.2) 100%) !important;
        border: 2px solid rgba(78, 205, 196, 0.4) !important;
        box-shadow: 0 4px 20px rgba(78, 205, 196, 0.3),
                    0 0 0 0 rgba(78, 205, 196, 0.4) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95) !important;
        box-shadow: 0 2px 10px rgba(78, 205, 196, 0.2),
                    0 0 0 4px rgba(78, 205, 196, 0.1) !important;
    }

    .mobile-menu-toggle.active {
        background: linear-gradient(135deg, rgba(78, 205, 196, 0.3) 0%, rgba(149, 225, 211, 0.3) 100%) !important;
        border-color: rgba(78, 205, 196, 0.6) !important;
    }

    /* Enhanced Navigation Links */
    .nav-link {
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-radius: 8px;
        margin: 4px 0;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%) scaleY(0);
        width: 3px;
        height: 0;
        background: linear-gradient(135deg, #4ecdc4 0%, #95e1d3 100%);
        border-radius: 0 3px 3px 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-link:active {
        background: rgba(78, 205, 196, 0.1) !important;
        transform: translateX(4px) !important;
    }

    .nav-menu li.active > .nav-link::before {
        transform: translateY(-50%) scaleY(1);
        height: 60%;
    }

    .nav-menu li.active > .nav-link {
        background: rgba(78, 205, 196, 0.08) !important;
        color: #4ecdc4 !important;
        font-weight: 700 !important;
    }

    /* Submenu Enhancements */
    .nav-menu .submenu {
        border-left: 2px solid rgba(78, 205, 196, 0.2);
        margin-left: 12px;
        padding-left: 16px;
    }

    .nav-menu .submenu li {
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu li.has-children.open .submenu li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu .submenu li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu .submenu li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu .submenu li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu .submenu li:nth-child(4) { transition-delay: 0.2s; }
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Professional Button Styles */
    button,
    .btn,
    .careers-apply-btn,
    .btn-submit,
    .btn-cancel {
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
    }

    /* Ripple effect on touch */
    button::before,
    .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    button:active::before,
    .btn:active::before {
        width: 300px;
        height: 300px;
    }

    /* Apply Button Enhancement */
    .careers-apply-btn {
        background: linear-gradient(135deg, #4ecdc4 0%, #95e1d3 100%) !important;
        box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4),
                    0 0 0 0 rgba(78, 205, 196, 0.4) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .careers-apply-btn:active {
        transform: translateY(2px) scale(0.98) !important;
        box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3),
                    0 0 0 4px rgba(78, 205, 196, 0.2) !important;
    }

    /* Department & Job Tabs */
    .careers-department-tab,
    .careers-job-tab {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-radius: 10px !important;
        position: relative;
        overflow: hidden;
    }

    .careers-department-tab::before,
    .careers-job-tab::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, rgba(78, 205, 196, 0.1) 0%, transparent 100%);
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .careers-department-tab:active::before,
    .careers-job-tab:active::before {
        width: 100%;
    }

    .careers-department-tab.active,
    .careers-job-tab.active {
        background: linear-gradient(135deg, rgba(78, 205, 196, 0.15) 0%, rgba(149, 225, 211, 0.15) 100%) !important;
        border-color: #4ecdc4 !important;
        box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3) !important;
        transform: translateY(-2px) !important;
    }
}

/* ============================================
   SCROLL ARROWS ENHANCEMENTS
   ============================================ */
@media screen and (max-width: 1024px) {
    .scroll-arrow {
        background: linear-gradient(135deg, rgba(78, 205, 196, 0.95) 0%, rgba(149, 225, 211, 0.95) 100%) !important;
        box-shadow: 0 6px 20px rgba(78, 205, 196, 0.5),
                    0 0 0 0 rgba(78, 205, 196, 0.4) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .scroll-arrow:active {
        transform: translateX(-50%) scale(0.9) !important;
        box-shadow: 0 3px 10px rgba(78, 205, 196, 0.3),
                    0 0 0 6px rgba(78, 205, 196, 0.2) !important;
    }

    /* Pulse animation when visible */
    .scroll-arrow-up:not([style*="display: none"]),
    .scroll-arrow-down:not([style*="display: none"]) {
        animation: pulse-glow 2s ease-in-out infinite;
    }

    @keyframes pulse-glow {
        0%, 100% {
            box-shadow: 0 6px 20px rgba(78, 205, 196, 0.5),
                        0 0 0 0 rgba(78, 205, 196, 0.4);
        }
        50% {
            box-shadow: 0 6px 20px rgba(78, 205, 196, 0.7),
                        0 0 0 8px rgba(78, 205, 196, 0.1);
        }
    }
}

/* ============================================
   CARD & IMAGE ENHANCEMENTS
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Project Cards */
    .project-masonry-item {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .project-masonry-item:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    /* Client Logo Cards */
    .client-logo-item {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 10px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .client-logo-item:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(78, 205, 196, 0.3);
    }

    /* Team Member Cards */
    .team-member {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .team-member:active {
        transform: scale(0.97);
    }
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Input Fields */
    .form-group input,
    .form-group textarea,
    .file-input-label {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-radius: 10px !important;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3),
                    0 0 0 3px rgba(78, 205, 196, 0.1) !important;
    }

    /* File Input Enhancement */
    .file-input-label:active {
        transform: scale(0.98);
        background: rgba(78, 205, 196, 0.1) !important;
    }
}

/* ============================================
   LOADING STATES & FEEDBACK
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Smooth Image Loading */
    img[loading="lazy"] {
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    img[loading="lazy"].loaded {
        opacity: 1;
    }

    /* Loading Spinner Enhancement */
    .loading-spinner {
        border-width: 3px;
        border-top-color: #4ecdc4;
        animation: spin 0.8s linear infinite;
    }

    /* No skeleton loading - clean design */
    .skeleton-card {
        background: transparent !important;
        animation: none !important;
    }
}

/* ============================================
   SMOOTH SCROLLING INDICATORS
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Custom Scrollbar */
    .projects-gallery-container::-webkit-scrollbar,
    .clients-logos-grid::-webkit-scrollbar,
    .careers-jobs-list::-webkit-scrollbar,
    .scope-content::-webkit-scrollbar,
    .careers-departments-only::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .projects-gallery-container::-webkit-scrollbar-track,
    .clients-logos-grid::-webkit-scrollbar-track,
    .careers-jobs-list::-webkit-scrollbar-track,
    .scope-content::-webkit-scrollbar-track,
    .careers-departments-only::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .projects-gallery-container::-webkit-scrollbar-thumb,
    .clients-logos-grid::-webkit-scrollbar-thumb,
    .careers-jobs-list::-webkit-scrollbar-thumb,
    .scope-content::-webkit-scrollbar-thumb,
    .careers-departments-only::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #4ecdc4 0%, #95e1d3 100%);
        border-radius: 3px;
        transition: background 0.3s ease;
    }

    .projects-gallery-container::-webkit-scrollbar-thumb:hover,
    .clients-logos-grid::-webkit-scrollbar-thumb:hover,
    .careers-jobs-list::-webkit-scrollbar-thumb:hover,
    .scope-content::-webkit-scrollbar-thumb:hover,
    .careers-departments-only::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #5eddd4 0%, #a5f1e3 100%);
    }
}

/* ============================================
   VISUAL HIERARCHY & SPACING
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Better Section Spacing */
    .projects-carousel-container,
    .clients-container,
    .contact-container,
    .careers-carousel-container {
        padding: 40px 20px !important;
    }

    /* Title Spacing */
    .projects-main-title,
    .clients-main-title,
    .careers-main-title {
        margin-bottom: 30px !important;
        letter-spacing: -1px;
    }

    /* Card Spacing */
    .project-masonry-item,
    .client-logo-item {
        margin-bottom: 16px;
    }

    /* Consistent Border Radius */
    .project-masonry-item,
    .client-logo-item,
    .careers-department-tab,
    .careers-job-tab,
    button,
    .btn {
        border-radius: 12px;
    }
}

/* ============================================
   POPUP ENHANCEMENTS
   ============================================ */
@media screen and (max-width: 1024px) {
    .apply-popup-overlay {
        backdrop-filter: blur(10px) !important;
    }

    .apply-popup-container {
        animation: popup-enter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    @keyframes popup-enter {
        from {
            opacity: 0;
            transform: scale(0.9) translateY(20px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    .apply-popup-close:active {
        transform: rotate(90deg) scale(0.9);
    }
}

/* ============================================
   SWIPE INDICATORS
   ============================================ */
@media screen and (max-width: 1024px) {
    .projects-swipe-indicator,
    .clients-swipe-indicator,
    .careers-swipe-indicator {
        animation: swipe-hint 2s ease-in-out infinite;
    }

    @keyframes swipe-hint {
        0%, 100% {
            opacity: 0.6;
            transform: translateX(0);
        }
        50% {
            opacity: 1;
            transform: translateX(10px);
        }
    }
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Smooth page transitions */
    .swiper-slide {
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Smooth content reveals */
    .projects-gallery-container,
    .clients-logos-grid,
    .careers-jobs-list {
        animation: fade-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes fade-in-up {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ============================================
   PROFESSIONAL POLISH
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Enhanced Shadows */
    .careers-department-tab.active,
    .careers-job-tab.active,
    .careers-apply-btn {
        box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4),
                    0 0 0 1px rgba(78, 205, 196, 0.2) !important;
    }

    /* Subtle Gradients */
    .mobile-menu-toggle,
    .scroll-arrow,
    .careers-apply-btn {
        background: linear-gradient(135deg, rgba(78, 205, 196, 0.9) 0%, rgba(149, 225, 211, 0.9) 100%);
    }

    /* Professional Borders */
    .careers-department-tab,
    .careers-job-tab,
    .client-logo-item {
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: border-color 0.3s ease;
    }

    .careers-department-tab.active,
    .careers-job-tab.active {
        border-color: rgba(78, 205, 196, 0.5);
    }
}

/* ============================================
   VERY SMALL MOBILE (≤ 480px)
   ============================================ */
@media screen and (max-width: 480px) {
    /* Reduced animations for very small screens */
    .scroll-arrow-up:not([style*="display: none"]),
    .scroll-arrow-down:not([style*="display: none"]) {
        animation: none;
    }

    /* Simpler transitions */
    * {
        transition-duration: 0.2s !important;
    }
}

