/* --- Global Styles & Variables --- */
:root {
    --primary-color: #D32F2F;
    /* Bold Red */
    --secondary-color: #f44336; /* Lighter red for accents */
    --neutral-light: #F5F5F5;
    /* Light Gray */
    --neutral-white: #FFFFFF;
    --text-dark: #333333;
    /* Dark Gray */
    --text-medium: #666666;
    /* Medium Gray for subtext */
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    --navbar-height: 70px;
    /* Define navbar height */
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    direction: rtl;
    /* Right-to-left layout */
    background-color: var(--neutral-white);
    padding-top: var(--navbar-height);
    /* Add padding to body to offset fixed navbar */
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    /* Red headings by default */
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.3;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
    color: var(--primary-color);
    display: block;
    width: 100%;
    font-weight: 700;
    font-family: var(--font-heading);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 60px 0;
}

/* --- Navigation Bar --- */
.navbar {
    background-color: var(--neutral-white);
    height: var(--navbar-height);
    position: fixed;
    /* Fixed position */
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    text-decoration: none;
}

.nav-logo img {
    height: 50px;
    /* Adjust height to fit navbar */
    width: auto;
    display: block;
}

.nav-logo:hover {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    /* Spacing between links */
}

.nav-link {
    font-family: var(--font-body);
    color: var(--text-dark);
    font-weight: 700;
    /* Slightly bolder */
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    /* Underline effect on hover */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    inset-inline-start: 0;
    /* Using logical properties for RTL support */
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform-origin: right;
}

.nav-link:hover,
.nav-link.active {
    /* Style for active link */
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    transform: scaleX(1);
}

.hamburger {
    display: none;
    /* Hidden on desktop */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: all 0.3s ease-in-out;
}


/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--neutral-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #a02424;
    /* Darker red */
    border-color: #a02424;
    color: var(--neutral-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--neutral-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--neutral-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Hero Section --- */
.hero-section {
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider img:first-child {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 1000px;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.hero-headline {
    color: var(--neutral-white);
    margin-bottom: 1.5rem;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtext {
    font-size: 1.3rem;
    color: var(--neutral-light);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-badges span {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-badges span:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-badges i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-cta .btn {
    margin: 0 10px;
    padding: 12px 30px;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- About Us Section --- */
.about-section {
    background-color: var(--neutral-white);
    padding: 80px 0;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23f5f5f5" fill-opacity="0.4" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,224C672,213,768,171,864,149.3C960,128,1056,128,1152,149.3C1248,171,1344,213,1392,234.7L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100%;
    opacity: 0.3;
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-section .section-title {
    margin-bottom: 3rem;
    position: relative;
}

.about-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    background-color: var(--neutral-white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.about-image {
    flex-basis: 40%;
    text-align: center;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    z-index: -1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* --- Services Section --- */
.services-section {
    background-color: var(--neutral-light);
    padding: 80px 0;
    position: relative;
}

.services-section .section-title {
    margin-bottom: 3rem;
    position: relative;
}

.services-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Stats Counter Row */
.stats-counter {
    display: flex;
    justify-content: space-around;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.counter-item {
    text-align: center;
    padding: 20px;
    background-color: var(--neutral-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.counter-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.counter-title {
    font-size: 1.1rem;
    color: var(--text-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: var(--neutral-white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(211, 47, 47, 0.1), transparent);
    transition: height 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.services-cta {
    text-align: center;
    margin-top: 50px;
}

/* --- Why Choose Us Section --- */
.why-us-section {
    background-color: var(--neutral-light);
    /* Use light gray as requested */
    padding: 80px 0;
    position: relative;
}

.why-us-section .section-title {
    margin-bottom: 3rem;
    position: relative;
}

.why-us-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on desktop */
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 25px 15px;
    background-color: var(--neutral-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    background-color: rgba(211, 47, 47, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

/* --- Gallery Section --- */
.gallery-section {
    background-color: var(--neutral-white);
    padding: 80px 0;
    position: relative;
}

.gallery-section .section-title {
    margin-bottom: 3rem;
    position: relative;
}

.gallery-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay h3 {
    color: var(--neutral-white);
    margin-bottom: 10px;
    font-size: 1.3rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-overlay p {
    color: var(--neutral-light);
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
    opacity: 0.8;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-more {
    text-align: center;
    margin-top: 40px;
}

.gallery-more .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.gallery-more .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Video play button */
.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--neutral-white);
    font-size: 3rem;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover .video-indicator {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Hide gallery items beyond the first 12 by default */
.gallery-item:nth-child(n+13) {
    display: none;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--neutral-white);
    /* Changed to white for contrast with Why Us */
}

/* Style for the testimonials title (moved from inline) */
.testimonials-section .section-title {
    color: var(--text-dark);
    /* Use dark text color instead of red */
}

.logos-placeholder {
    /* Add styles for logo carousel later */
    padding: 20px 0;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--neutral-white);
    padding: 80px 0;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23f5f5f5" fill-opacity="0.4" d="M0,160L48,170.7C96,181,192,203,288,202.7C384,203,480,181,576,165.3C672,149,768,139,864,154.7C960,171,1056,213,1152,218.7C1248,224,1344,192,1392,176L1440,160L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"%3E%3C/path%3E%3C/svg%3E');
    background-position: top;
    background-repeat: no-repeat;
    background-size: 100%;
    opacity: 0.3;
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-section .section-title {
    margin-bottom: 3rem;
    position: relative;
}

.contact-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.contact-details {
    text-align: center;
    font-size: 1.1rem;
    background-color: var(--neutral-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.contact-details p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-details i {
    color: var(--primary-color);
    margin-inline-end: 15px;
    font-size: 1.3rem;
    background-color: rgba(211, 47, 47, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: 10px;
}

.contact-details a {
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 5px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.contact-details a:hover {
    color: var(--primary-color);
    background-color: rgba(211, 47, 47, 0.05);
    text-decoration: none;
}

.contact-details .phone-number {
    direction: ltr;
    display: inline-block;
    unicode-bidi: bidi-override;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.map-container {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--primary-color);
    z-index: 1;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    inset-inline-end: 25px;
    /* Using logical properties for RTL support */
    background-color: #25D366; /* WhatsApp green color */
    color: var(--neutral-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.6;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    color: var(--neutral-white);
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* --- Footer --- */
.footer {
    background-color: var(--text-dark);
    color: var(--neutral-light);
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 1.5rem;
        max-width: 90%;
    }

    /* Navbar Responsive */
    .nav-menu {
        position: fixed;
        inset-inline-end: -100%;
        /* Start off-screen */
        top: var(--navbar-height);
        flex-direction: column;
        background-color: var(--neutral-white);
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        /* Full height minus navbar */
        text-align: center;
        transition: inset-inline-end 0.3s ease;
        /* Slide in from end */
        gap: 0;
        padding-top: 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .nav-menu.active {
        inset-inline-end: 0;
        /* Slide in */
    }

    .nav-link {
        display: block;
        /* Make links take full width */
        padding: 1.5rem 0;
        /* More vertical space */
        font-size: 1.2rem;
    }

    .nav-link::after {
        /* Remove hover underline on mobile */
        display: none;
    }

    .hamburger {
        display: block;
        /* Show hamburger */
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        /* Hide middle bar */
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        /* Rotate first bar */
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        /* Rotate third bar */
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .about-image {
        margin-top: 30px;
        /* Space between text and image on mobile */
        flex-basis: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-image::before {
        right: -10px;
        top: -10px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
    }

    .stats-counter {
        flex-wrap: wrap;
        justify-content: center;
    }

    .counter-item {
        flex: 0 0 calc(50% - 20px);
        margin: 10px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2, .section-title {
        font-size: 1.8rem;
    }

    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 60px 0;
    }

    .hero-content {
        width: 90%;
        max-width: 100%;
        padding: 1.5rem;
    }

    section {
        padding: 50px 0;
    }

    .hero-badges {
        gap: 10px;
        justify-content: center;
    }

    .hero-badges span {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .hero-cta .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 5px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }

    .features-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .contact-details {
        font-size: 1rem;
        padding: 20px;
    }

    .contact-details p {
        flex-direction: column;
        align-items: center;
    }

    .contact-details i {
        margin-bottom: 10px;
        margin-inline-start: 0;
    }

    .contact-details a {
        margin: 5px 0;
        display: block;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 15px;
        inset-inline-end: 15px;
    }

    .counter-item {
        flex: 0 0 100%;
        margin: 10px 0;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    h2, .section-title {
        font-size: 1.6rem;
        width: 100%;
        text-align: center;
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .hero-content {
        width: 95%;
        padding: 1rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .hero-badges span {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 250px;
        margin: 5px 0;
    }

    .service-card {
        padding: 20px;
    }

    .gallery-item {
        height: 200px;
    }

    .map-container iframe {
        height: 300px;
    }

    .about-content {
        padding: 15px;
    }

    .about-image::before {
        display: none; /* Hide decorative elements on small screens */
    }

    .counter-item {
        padding: 15px 10px;
    }

    .counter-value {
        font-size: 2rem;
    }

    .counter-title {
        font-size: 0.9rem;
    }

    .contact-details {
        padding: 15px;
    }

    section {
        padding: 40px 0;
    }
}