.service-header {
    font-size: clamp(12px, 1vw, 14px); /* responsive font size */
    color: #0b0b0b;
}

.service-description {
    font-size: clamp(12.5px, 20px - 0.8vw, 16px);
}

/* Floating Buttons Default (LTR) */
.floating-whatsapp-button,
.floating-location-button {
    position: fixed;
    z-index: 9999;
}

.floating-whatsapp-button {
    bottom: 65px;
    right: 15px; /* LTR default */
}

.floating-location-button {
    bottom: 110px;
    right: 15px; /* LTR default */
}

/* Common Icon Styling */
.floating-whatsapp-button .icon,
.floating-location-button .icon {
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    padding: 4px;
}

/* Different padding for location icon */
.floating-location-button .icon {
    padding: 8px;
}

/* RTL Support */
[dir="rtl"] .floating-whatsapp-button {
    right: auto;
    left: 15px;
}

[dir="rtl"] .floating-location-button {
    right: auto;
    left: 15px;
}

.profile-float {
    position: fixed;
    right: 0; /* LTR default on right */
    background-color: var(--primary-color-1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 8px 12px;
    z-index: 999;
    text-decoration: none;
    color: white;
    gap: 8px;
    transition: width 0.3s ease;
    overflow: hidden;
    width: 150px;
    height: 45px;
    white-space: nowrap;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.profile-float {
    bottom: 10px;
}

.profile-float-text {
    color: white;
    flex-shrink: 0;
}

.profile-float-icon {
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}


[dir="rtl"] .profile-float {
    right: auto;
    left: 0; /* Move to left in RTL */
}

[dir="rtl"] .profile-float {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.btn-whatsapp {
    background-color: #25D366; /* WhatsApp green */
    cursor: pointer;
    transition: filter .12s ease, transform .08s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: bold;
    margin-top: 10px; /* add space between description and button */
    width: 120px;
    display: flex; /* enable flexbox */
    align-items: center; /* vertically center text */
    justify-content: center; /* horizontally center text */
    text-align: center; /* ensure text is centered */
    color: black; /* black text color */
    text-decoration: none; /* remove underline */
}

[dir="ltr"] .btn-whatsapp {
    width: 150px;
}

.service-card {
    border-radius: 8px; /* small rounded corners */
    padding: 10px; /* add spacing inside */
    background-color: var(--primary-color-1); /* clean white background */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-4px); /* subtle hover lift */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); /* deeper shadow on hover */
}

.service-card img {
    width: 100%;
    height: 180px;
    border-radius: 6px;
}

.service-card h3 {
    padding-top: 8px;
    font-weight: bold;
}

.service-card .service-description {
    flex-grow: 1;
    text-align: center;
}

.main-responsibilities {
    width: 100%;
    height: 250px;
    padding: 0 20px !important;
    background: rgba(0, 0, 0, .6);
    font-weight: bold;
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center; /* vertical center */
    text-align: center;
    margin-bottom: 10px;
}

.main-responsibilities-title {
    font-size: clamp(12px, 1vw, 16px); /* responsive font size */
}

.follow-us {
    color: var(--primary-color-1);
    font-weight: bold;
    margin-top: 3px;
}

.project-frame {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 250px;
    margin: 10px;
}

.project-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-link:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 1;
    pointer-events: auto;
}

.project-text {
    padding: 15px;
    text-align: center;
    width: 100%;
}

.project-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: block;
    margin-bottom: 6px;
}

.project-desc {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.3;
    display: block;
    max-height: 2.6em; /* roughly two lines */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* keeps single-line ellipsis */
}

#contact_form {
    background: #ffffff; /* white form */
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* soft gray shadow */
    color: #333;
    transition: all 0.3s ease;
}

#contact_form:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

/* Title */
#contact_form h3 {
    color: var(--primary-color-1);
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

/* Inputs */
#contact_form .form-control {
    background-color: #f7f8fa;
    border: 1px solid var(--primary-color-1);
    color: var(--primary-color-1);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

#contact_form .form-control:focus {
    background-color: var(--primary-color-1);
    color: #fff;
    border-color: var(--primary-color-1);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Textarea */
#contact_form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Error */
#contact_form .error {
    display: none;
    color: #d32f2f;
    font-size: 13px;
    margin-bottom: 5px;
}

/* Button */
#contact_form .btn {
    color: #fff !important;
    border: 1px solid #fff;
    padding: 8px 0; /* smaller height */
    width: 100%;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px; /* smaller font */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background-color: var(--primary-color-1) !important;
}

#contact_form .btn:hover,
#contact_form .btn:focus {
    color: #0b0b0b !important;
    background: var(--primary-color-1);

    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ReCAPTCHA */
#contact_form .g-recaptcha {
    margin-top: 15px;
}

/* Sidebar */
#sidebar {
    background: #fafafa;
    border-radius: 12px;
    padding: 25px;
    color: var(--primary-color-1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#sidebar h3 {
    color: var(--primary-color-1);
    font-weight: 700;
    margin-bottom: 20px;
}

#sidebar address span {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
}

#sidebar a {
    color: var(--primary-color-1);
    text-decoration: none;
    transition: color 0.3s ease;
}

#sidebar a:hover {
    color: var(--primary-color-1);
}

/* Responsive */
@media (max-width: 768px) {
    #contact_form {
        padding: 20px;
    }
}

.bloglist {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Gray shadow */
    border-radius: 8px; /* Rounded corners for the card */
    transition: box-shadow 0.3s ease; /* Smooth transition for shadow */
    padding: 5px;
}

.bloglist:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Darker shadow on hover */
}

.why-us-rtl {
    direction: rtl;
}

.why-us {
    direction: ltr;
}

.why-us .text span {
    font-weight: bold;
}

.profile-float-whatsapp {
    position: fixed;
    right: 0; /* LTR default on right */
    background-color: green;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 8px 12px;
    z-index: 999;
    text-decoration: none;
    color: white;
    gap: 8px;
    transition: width 0.3s ease;
    overflow: hidden;
    width: 150px;
    height: 45px;
    white-space: nowrap;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.profile-float-whatsapp {
    bottom: 60px;
}

.profile-float-whatsapp-text {
    color: white;
    flex-shrink: 0;
}

.profile-float-whatsapp-icon {
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

[dir="rtl"] .profile-float-whatsapp {
    right: auto;
    left: 0; /* Move to left in RTL */
}

[dir="rtl"] .profile-float-whatsapp {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

#section-intro img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* change for more/less transparency */
    pointer-events: none;
}