/* Mobile Responsive Fixes & Enhancements */

/* Preloader Styles */
#preloader {
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Header Scroll Shadow & enhancements */
.header-scroll-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: rgba(15, 31, 77, 0.95) !important;
    /* Dark blue background on scroll */
    backdrop-filter: blur(10px);
}

/* Mobile Typography Fixes */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem !important;
        line-height: 2.5rem !important;
    }

    h2 {
        font-size: 1.875rem !important;
        line-height: 2.25rem !important;
    }

    p {
        font-size: 0.95rem !important;
    }

    /* Improve spacing on mobile */
    section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Service Card Image Fixes */
.service-card-img {
    height: 200px !important;
    object-fit: cover !important;
    width: 100% !important;
}

/* Testimonial Quote Icon Fix */
.testimonial-icon {
    width: 2rem !important;
    height: 2rem !important;
}

/* Client Logo Grid Fix */
.client-logo {
    max-height: 3rem !important;
    width: auto !important;
    opacity: 0.8;
}

/* Performance Optimizations */
.fixed,
.sticky,
header {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-overflow-scrolling: touch;
}

/* Prevent all containers from overflowing */
* {
    max-width: 100%;
}

/* Allow specific elements to be wider if needed within their containers */
img, svg, video {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll on mobile */
.overflow-x-hidden {
    overflow-x: hidden;
}

/* Animation Utilities */
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Appended Header Styles */

/* Enhanced header glass effect */
.header-glass {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e33c12, #db1189);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.logo-glow {
    filter: drop-shadow(0 4px 12px rgba(34, 65, 148, 0.2));
    transition: all 0.3s ease;
}

.logo-glow:hover {
    filter: drop-shadow(0 8px 20px rgba(34, 65, 148, 0.35));
    transform: scale(1.02);
}