/* Custom styles for LT Building Maintenance */

:root {
    --primary: #FFD700;
    --secondary: #1A1A1A;
}

body {
    scroll-behavior: smooth;
}

/* Global Font Fix */
body.font-cairo {
    font-family: 'Cairo', sans-serif !important;
}

body.font-montserrat {
    font-family: 'Montserrat', sans-serif !important;
}

/* Tiny UI for Mobile */
@media (max-width: 640px) {
    html {
        font-size: 14px; /* Smaller base font size */
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    .btn, button, a.block {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Compact Header */
    header {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    /* Smaller Project Cards */
    .h-\[400px\] {
        height: 250px !important;
    }

    .p-8 {
        padding: 1rem !important;
    }
}

/* RTL Support for non-tailwind elements if any */
[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

/* Header animation */
header.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(26, 26, 26, 0.95);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6c200;
}

/* Service Card Hover Effect */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation for hero elements */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

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

/* Language transition effect */
.lang-fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-fade-in {
    opacity: 1;
    transition: opacity 0.3s ease;
}
