:root {
    --primary-blue: #0052cc;
    --dark-blue: #003d99;
    --light-blue: #e6f0ff;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
}
.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    margin: 0.5rem;
}
.btn-primary:hover {
    background-color: var(--dark-blue);
}
.section {
    padding: 4rem 1rem;
}
.card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.nav-link {
    position: relative;
    padding: 0.5rem;
    margin: 0 0.25rem;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s;
}
.nav-link:hover::after {
    width: 100%;
}
.service-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
}
.review-card {
    background-color: var(--light-blue);
    border-left: 4px solid var(--primary-blue);
    height: 100%;
}
.footer {
    background-color: var(--primary-blue);
    color: white;
}
.review-btn {
    background-color: #ff9900;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 2rem;
    box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
}
.review-btn:hover {
    background-color: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 153, 0, 0.4);
}
.lang-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex; /* Initially shown if no lang is set */
    opacity: 1; /* Initially visible */
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
.lang-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 90%;
    width: 500px;
    text-align: center;
}
.lang-btn {
    padding: 1rem 2rem;
    margin: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 200px;
    display: inline-block;
}
.rtl {
    direction: rtl;
    text-align: right;
}
.rtl .nav-link::after {
    right: 0;
    left: auto;
}
.rtl .review-card {
    border-right: 4px solid var(--primary-blue);
    border-left: 0;
}
.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}
.contact-button:hover {
    transform: translateY(-3px);
}
.whatsapp-btn {
    background-color: #25D366;
    color: white;
}
.call-btn {
    background-color: #007bff;
    color: white;
}
.email-btn {
    background-color: #6c757d;
    color: white;
}
.visit-btn {
    background-color: #fd7e14;
    color: white;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 2rem 1rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none; /* Initially hidden */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Add transition for overlay */
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-links {
    margin-top: 2rem;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

/* Improved Responsiveness */
@media (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .card {
        margin-bottom: 1rem;
    }
    /* Adjust button font size slightly on mobile */
    .btn-primary, .lang-btn, .review-btn, .contact-button {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
     .lang-btn {
         width: 160px; /* Adjust lang button width */
     }
}

/* Fix for content squishing */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.grid {
    display: grid;
    grid-gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-cols-md-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Restore button sizes on larger screens */
    .btn-primary, .lang-btn, .review-btn, .contact-button {
        font-size: 1rem; /* Or whatever the original base size was */
        padding: 0.75rem 1.5rem; /* Restore original padding */
    }
    .review-btn, .lang-btn {
        padding: 1rem 2rem; /* Restore specific padding */
    }
     .lang-btn {
         width: 200px; /* Restore original width */
     }
}

@media (min-width: 992px) {
    .grid-cols-lg-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fix for RTL alignment */
.rtl .flex-row {
    flex-direction: row-reverse;
}

.rtl .items-start,
.rtl .items-center {
    text-align: right;
}

/* Adjust margins for RTL */
.rtl [class*=" mr-"], .rtl [class*=" ml-"] {
    margin-right: initial;
    margin-left: initial;
}
.rtl .mr-2 { margin-left: 0.5rem; }
.rtl .mr-3 { margin-left: 0.75rem; }
.rtl .mr-4 { margin-left: 1rem; }
.rtl .ml-2 { margin-right: 0.5rem; }
.rtl .ml-3 { margin-right: 0.75rem; }
.rtl .ml-4 { margin-right: 1rem; }

/* Specific RTL adjustments */
.rtl .mobile-menu {
    left: -100%;
    right: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.rtl .mobile-menu.active {
    left: 0;
    right: auto;
}
.rtl .mobile-menu-close {
    left: 1rem;
    right: auto;
}
.rtl #navContainer > div:first-child span { /* Company name */
    margin-right: 0.75rem;
    margin-left: 0;
}
 .rtl #footerLinks .grid > div { /* Ensure footer columns align right */
     text-align: right;
 }
 .rtl #footerLinks .space-y-2 li a {
     display: inline-block; /* Fix alignment issue in some browsers */
 }
  .rtl #footerLinks .space-y-2 li {
     padding-right: 0; /* Reset padding if any */
 }
 .rtl .footer .space-x-4 > * + * { /* Social icons margin */
    margin-right: 1rem;
    margin-left: 0;
 }
 .rtl .review-card .ml-3 { /* Review name margin */
     margin-right: 0.75rem;
     margin-left: 0;
 }
 .rtl .review-card .ml-2 { /* Review stars margin */
    margin-right: 0.5rem;
    margin-left: 0;
 }

/* --- Revised Hero Section Styles --- */

#home {
    padding-top: 6rem; /* pt-24 Tailwind equivalent */
    padding-bottom: 5rem; /* Increased bottom padding for cleaner cutoff */
    background-color: #2563eb; /* Tailwind bg-blue-600 */
    /* Optional: Add a subtle gradient for more depth */
    /* background: linear-gradient(135deg, #2563eb, #1d4ed8); */ /* Blue-600 to Blue-700 */
    color: white;
    position: relative; /* Needed if you want to add absolute positioned elements later */
    overflow: hidden; /* Prevent potential overflows */
}

/* Remove the wave divider */
#home > div.w-full.overflow-hidden {
    display: none;
}

/* Adjust content container padding */
#home .container {
    padding-top: 1rem; /* Add a bit more space below navbar */
    padding-bottom: 1rem;
}

/* Refine text alignment and spacing */
#heroContent .md\:w-1\/2:first-child { /* Text Column */
    z-index: 1; /* Ensure text is above any potential background elements */
}

#heroContent h1 {
    /* font-size: 3rem; md:font-size: 3.75rem; */ /* Tailwind text-4xl md:text-5xl */
    line-height: 1.2;
}

#heroContent p {
    /* font-size: 1.125rem; md:font-size: 1.25rem; */ /* Tailwind text-lg md:text-xl */
    opacity: 0.9; /* Slightly less prominent than the heading */
    max-width: 600px; /* Constrain line length for readability */
    /* In RTL mode, Tailwind's md:text-left becomes md:text-right */
}
.rtl #heroContent p {
    margin-left: auto; /* Pushes text block right in RTL */
    margin-right: 0;
}
.ltr #heroContent p {
    margin-right: auto; /* Default LTR behavior */
    margin-left: 0;
}
@media (max-width: 767px) { /* md breakpoint */
    #heroContent p {
         margin-left: auto;
         margin-right: auto; /* Center paragraph on mobile */
    }
}


/* Clean up image presentation */
#heroContent .md\:w-1\/2:last-child .bg-white { /* The div with bg-white p-2 shadow-lg */
    background-color: transparent; /* Remove the white background */
    padding: 0;                   /* Remove the padding */
    box-shadow: none;             /* Remove the box-shadow */
}

#heroContent .md\:w-1\/2:last-child img {
    border-radius: 0.5rem; /* Match card radius (Tailwind rounded-lg) */
    /* Add a more modern shadow directly to the image */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
    display: block; /* Ensure image behaves predictably */
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Ensure aspect ratio container still works */
#heroContent .aspect-w-16.aspect-h-9 {
     border-radius: 0.5rem; /* Apply rounding to the container too */
     overflow: hidden; /* Clip the image to the rounded corners */
}


/* Adjust Button Styles */
#heroButtons {
    margin-top: 2.5rem; /* Increased space above buttons (Tailwind mt-10) */
}

#heroButtons a { /* Target both buttons */
    padding: 0.8rem 1.8rem; /* Slightly larger padding */
    border-radius: 0.375rem; /* Tailwind rounded-md */
    font-weight: 600;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-color 0.2s, border-color 0.2s;
    display: inline-block; /* Ensure proper spacing and alignment */
    margin: 0.5rem; /* Keep original margin */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Add subtle shadow to buttons */
}

#heroButtons a:hover {
    transform: translateY(-3px); /* Lift effect on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

/* Primary Button Specifics */
#heroButtons a.bg-white { /* Get a Free Quote button */
    background-color: white;
    color: var(--primary-blue); /* Use defined primary blue */
}
#heroButtons a.bg-white:hover {
    background-color: #f3f4f6; /* Tailwind gray-100 */
    color: var(--dark-blue); /* Use defined dark blue */
}

/* Secondary Button Specifics */
#heroButtons a.border-2 { /* View Our Projects button */
    background-color: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: none; /* Remove initial shadow for border buttons if preferred */
}
#heroButtons a.border-2:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background on hover */
    border-color: white;
    color: white;
    transform: translateY(-3px); /* Ensure hover lift */
    /* Keep shadow on hover if desired */
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); */
}

/* --- End Revised Hero Section Styles --- */
