/* Custom styles and overrides */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    max-width: 100vw;
}

body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* RTL Specific Adjustments that Tailwind might miss or for specific plugins */
/* [dir="rtl"] .aos-animate { } - Placeholder removed */

/* Custom shadow for cards to match UrbanCompany feel */
.card-shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.card-shadow:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

/* Hero Background Gradient */
.hero-gradient {
    /* background: linear-gradient(135deg, #1F2937 0%, #111827 100%); */
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

[dir="rtl"] .hero-gradient {
    background: linear-gradient(to left, #f8f9fa, #e9ecef);
}

/* Button Pulse Animation */
@keyframes pulse-subtle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .9;
    }
}

.animate-pulse-subtle {
    animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hero Collage Animations */
@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes float-medium {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-fast {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 5s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 4s ease-in-out infinite;
}

.hero-collage-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    height: 350px;
    /* Default for mobile */
    gap: 0.5rem;
    /* Smaller gap for mobile */
}

@media (min-width: 1024px) {
    .hero-collage-grid {
        height: 600px;
        /* Original height for desktop */
        gap: 1rem;
    }
}

.hero-image-1 {
    grid-column: 1 / 7;
    grid-row: 2 / 8;
    z-index: 2;
}

.hero-image-2 {
    grid-column: 6 / 13;
    grid-row: 1 / 7;
    z-index: 1;
}

.hero-image-3 {
    grid-column: 4 / 11;
    grid-row: 7 / 13;
    z-index: 3;
}

/* Service Icon Hover */
.service-icon-btn:hover .icon-wrapper {
    transform: scale(1.1);
    background-color: #eef2ff;
}

/* Preloader Animation */
@keyframes loader {
    0% {
        width: 0%;
        left: 0;
    }

    50% {
        width: 60%;
        left: 20%;
    }

    100% {
        width: 0%;
        left: 100%;
    }
}

.animate-loader {
    animation: loader 1.5s ease-in-out infinite;
    position: relative;
}

html.loaded body {
    overflow: auto;
}

html body {
    overflow-x: hidden;
    overflow-y: hidden;
    /* Prevent vertical scrolling while loading */
}