/* ========================================
   MOBILE PREMIUM DESIGN
   Modern, Elegant, and User-Friendly Mobile Experience
   ======================================== */

/* ========================================
   BREADCRUMB MOBILE ENHANCEMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Ensure breadcrumb is always visible and properly sized */
    .modern-breadcrumb {
        min-height: 320px !important;
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }

    .breadcrumb-content-box {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 200px;
    }

    .breadcrumb-title {
        font-size: 32px !important;
        line-height: 1.3 !important;
        font-weight: 800 !important;
        text-align: center;
        padding: 0 20px;
        margin-bottom: 25px !important;
        word-break: break-word;
        hyphens: auto;
    }

    .breadcrumb-badge {
        margin-bottom: 15px !important;
    }

    .breadcrumb-nav {
        width: 100%;
        padding: 0 15px;
    }

    .breadcrumb-list {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .modern-breadcrumb {
        min-height: 300px !important;
        padding-top: 90px !important;
        padding-bottom: 50px !important;
    }

    .breadcrumb-title {
        font-size: 26px !important;
        line-height: 1.4 !important;
        padding: 0 15px;
    }
}

/* ========================================
   FLOATING ACTION BUTTONS (FAB)
   ======================================== */

.fab-container {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fabSlideIn 0.6s ease-out;
}

@keyframes fabSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fab-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.fab-button::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;
}

.fab-button:active::before {
    width: 100px;
    height: 100px;
}

.fab-button i {
    font-size: 24px;
    color: #fff;
    z-index: 1;
    transition: transform 0.3s ease;
}

.fab-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.fab-button:active {
    transform: translateY(-2px) scale(0.98);
}

/* FAB Colors */
.fab-phone {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.fab-email {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.fab-chat {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

/* FAB Tooltip */
.fab-button::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
}

.fab-button:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   MOBILE HERO BANNER ENHANCEMENTS
   ======================================== */

@media (max-width: 768px) {
    .hero-section-slider {
        min-height: 100vh;
        position: relative;
    }

    .hero-slide {
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }

    /* Light Overlay for 90% Image Visibility */
    .hero-overlay {
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: none;
    }

    /* Hero Content */
    .hero-content-wrapper {
        padding: 20px;
        text-align: center;
    }

    .hero-headline {
        font-size: 32px;
        font-weight: 800;
        line-height: 1.3;
        margin-bottom: 20px;
        color: #fff !important;
        text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 0, 0, 0.8), 0 4px 10px rgba(0, 0, 0, 0.6);
        animation: heroTextSlide 1s ease-out;
    }

    @keyframes heroTextSlide {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 30px;
        color: #fff !important;
        text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5);
        animation: heroTextSlide 1s ease-out 0.2s backwards;
    }

    .hero-cta {
        animation: heroTextSlide 1s ease-out 0.4s backwards;
    }

    /* Modern Button Styles */
    .btn-hero-main {
        padding: 16px 40px;
        font-size: 16px;
        font-weight: 700;
        border-radius: 50px;
        background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
        color: #007bff;
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.5);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .btn-hero-main::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(0, 123, 255, 0.1);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-hero-main:active::before {
        width: 300px;
        height: 300px;
    }

    .btn-hero-main:hover,
    .btn-hero-main:active {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
        color: #007bff;
    }

    /* Hero Navigation Dots */
    .hero-nav-dots {
        bottom: 40px;
    }

    .hero-nav-dots .dot {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.5);
        border: none;
    }

    .hero-nav-dots .dot.active {
        width: 30px;
        border-radius: 5px;
        background: #fff;
    }

    /* Hide arrows on mobile */
    .hero-arrow {
        display: none;
    }
}

/* ========================================
   STICKY SEMI-TRANSPARENT NAVIGATION
   ======================================== */

@media (max-width: 768px) {
    .header-sticky {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

    .header-area {
        padding: 12px 0;
        transition: all 0.3s ease;
    }

    .header-sticky .header-area {
        padding: 8px 0;
    }

    /* Logo scaling on scroll */
    .header-sticky .logo img {
        max-height: 40px;
        transition: all 0.3s ease;
    }
}

/* ========================================
   MODERN SECTION STYLING
   ======================================== */

@media (max-width: 768px) {
    /* Section Padding */
    .section-padding {
        padding: 60px 0;
    }

    /* Section Headers */
    .section-title,
    .section-header h2 {
        font-size: 28px;
        font-weight: 800;
        line-height: 1.3;
        margin-bottom: 15px;
        color: #1a1d20;
    }

    .section-description {
        font-size: 15px;
        line-height: 1.7;
        color: #666;
        margin-bottom: 30px;
    }

    /* White Space and Spacing */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ========================================
   MODERN CARD DESIGN
   ======================================== */

@media (max-width: 768px) {
    .help-card,
    .single-service-item,
    .single-blog-item {
        margin-bottom: 25px;
        border-radius: 20px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .help-card:active,
    .single-service-item:active,
    .single-blog-item:active {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .help-card-inner {
        padding: 30px 20px;
        border-radius: 20px;
    }

    /* Service Cards */
    .single-service-item {
        padding: 25px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        border-radius: 50%;
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    }

    .service-icon i {
        font-size: 32px;
        color: #fff;
    }

    /* Blog Cards */
    .single-blog-item {
        padding: 0;
    }

    .blog-img {
        border-radius: 20px 20px 0 0;
        overflow: hidden;
        height: 200px;
    }

    .blog-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .blog-content {
        padding: 20px;
    }
}

/* ========================================
   MODERN BUTTON STYLES
   ======================================== */

@media (max-width: 768px) {
    .theme-btn,
    .help-btn,
    .help-cta-btn {
        padding: 14px 32px;
        font-size: 15px;
        font-weight: 700;
        border-radius: 50px;
        background: #fff;
        color: #007bff;
        border: 2px solid #007bff;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        display: inline-block;
        text-decoration: none;
    }

    .theme-btn::before,
    .help-btn::before,
    .help-cta-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .theme-btn:active::before,
    .help-btn:active::before,
    .help-cta-btn:active::before {
        width: 300px;
        height: 300px;
    }

    .theme-btn:active,
    .help-btn:active,
    .help-cta-btn:active {
        transform: translateY(-3px) scale(0.98);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
        background: #007bff;
        color: #fff;
    }
}

/* ========================================
   SMOOTH SCROLL ANIMATIONS
   ======================================== */

/* Fade In Up Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Left */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right */
.animate-slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   ENHANCED TYPOGRAPHY
   ======================================== */

@media (max-width: 768px) {
    /* Clean Bold Titles */
    h1, h2, h3, h4 {
        font-weight: 800;
        letter-spacing: -0.5px;
        color: #1a1d20;
    }

    h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    h3 {
        font-size: 24px;
        line-height: 1.3;
    }

    h4 {
        font-size: 20px;
        line-height: 1.4;
    }

    /* Smooth Legible Text */
    p, li, span {
        font-size: 15px;
        line-height: 1.7;
        color: #666;
        font-weight: 400;
    }

    /* Text Rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

/* ========================================
   CONTACT SECTION ENHANCEMENTS
   ======================================== */

@media (max-width: 768px) {
    .contact-section {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 30px 30px 0 0;
        margin-top: 40px;
        padding: 50px 20px;
    }

    .contact-form input,
    .contact-form textarea {
        border-radius: 15px;
        border: 2px solid #e9ecef;
        padding: 15px 20px;
        font-size: 15px;
        transition: all 0.3s ease;
        background: #fff;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
        outline: none;
    }
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

@media (max-width: 768px) {
    .testimonial-item {
        background: #fff;
        border-radius: 20px;
        padding: 30px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        margin-bottom: 20px;
    }

    .testimonial-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin: 0 auto 15px;
        border: 3px solid #007bff;
        overflow: hidden;
    }

    .testimonial-text {
        font-size: 15px;
        line-height: 1.7;
        color: #666;
        font-style: italic;
        margin-bottom: 15px;
    }

    .testimonial-author {
        font-size: 16px;
        font-weight: 700;
        color: #1a1d20;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU Acceleration */
.fab-button,
.help-card,
.single-service-item,
.single-blog-item,
.theme-btn {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading-skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 15px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   MICRO INTERACTIONS
   ======================================== */

/* Tap Feedback */
@media (max-width: 768px) {
    .btn-hero-main:active,
    .theme-btn:active,
    .help-card:active,
    .single-service-item:active {
        transform: scale(0.97);
    }

    /* Link Tap Feedback */
    a:active {
        opacity: 0.7;
    }

    /* Input Focus Glow */
    input:focus,
    textarea:focus,
    select:focus {
        animation: inputGlow 0.3s ease;
    }

    @keyframes inputGlow {
        0% {
            box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
        }
        100% {
            box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
        }
    }
}
