@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8A1538;
    /* Qatar Maroon */
    --primary-dark: #6a102c;
    /* Darker Maroon */
    --secondary: #D4AF37;
    /* Qatar Gold */
    --secondary-dark: #b8941f;
    /* Darker Gold */
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --background: #f8f9fa;
    --white: #ffffff;
    --border: #e5e7eb;
    --font-primary: 'Inter', Arial, sans-serif;
    --arbi-font: 'Tajawal', Arial, sans-serif;

    --dark-bg: #0f1419;
    --dark-surface: #1a1f26;
    --dark-surface-light: #232a33;
    --dark-text: #e2e8f0;
    --dark-text-muted: #94a3b8;
    --dark-border: #2d3748;
    --dark-primary: #8A1538;
    /* Qatar Maroon for dark theme */
    --dark-secondary: #D4AF37;
    /* Qatar Gold for dark theme */
}

.theme-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    background: var(--white);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
    color: var(--white);
}

/* Dark theme styles */
body.dark-theme {
    background: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4 {
    color: var(--dark-text);
}

body.dark-theme header {
    background: var(--dark-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-theme header nav ul li a {
    color: var(--dark-text);
}

body.dark-theme header nav ul li a:hover {
    color: var(--dark-secondary);
}

body.dark-theme .nav-inner-links {
    background-color: var(--dark-surface-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .nav-inner-links a {
    color: var(--dark-text);
}

body.dark-theme .nav-inner-links a:hover {
    color: var(--dark-secondary);
}

body.dark-theme .whatsapp-contact p {
    color: var(--dark-text-muted);
}

body.dark-theme .whatsapp-option,
body.dark-theme .options-list {
    background-color: var(--dark-surface-light);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
}

body.dark-theme .options-list li:hover {
    background-color: var(--dark-primary);
}

body.dark-theme .hero {
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-surface) 100%);
}

body.dark-theme .services-categories {
    background: var(--dark-bg);
}

body.dark-theme .service-category-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

body.dark-theme .service-category-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.dark-theme .section-title,
body.dark-theme .service-title {
    color: var(--dark-text);
}

body.dark-theme .section-subtitle {
    color: var(--dark-text-muted);
}

body.dark-theme .service-features li {
    color: var(--dark-text-muted);
}

body.dark-theme .service-meta {
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
}

body.dark-theme .testimonials-section {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-light) 100%);
}

body.dark-theme .testimonial-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

body.dark-theme .testimonial-text {
    color: var(--dark-text-muted);
}

body.dark-theme .quick-contact-section {
    background: var(--dark-surface);
}

body.dark-theme .contact-method {
    background: var(--dark-surface-light);
    border: 1px solid var(--dark-border);
}

body.dark-theme .contact-form-container {
    background: var(--dark-surface-light);
    border: 1px solid var(--dark-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-theme .form-control {
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    color: var(--dark-text);
}

body.dark-theme .form-control:focus {
    border-color: var(--dark-secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

body.dark-theme .form-control::placeholder {
    color: var(--dark-text-muted);
}

body.dark-theme footer {
    background: var(--dark-surface);
}

body.dark-theme .service-detail-container {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-theme .service-description {
    background-color: rgba(138, 21, 56, 0.05);
    border-left: 4px solid var(--dark-secondary);
    color: var(--dark-text-muted);
}

body.dark-theme .service-steps li {
    background-color: var(--dark-surface-light);
    color: var(--dark-text-muted);
}

body.dark-theme .contact-form-section {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

body.dark-theme .whatsapp-option a {
    color: white;
}

body {
    color: var(--text-medium);
    font-family: var(--font-primary);
    background: var(--background);
    overflow-x: hidden;
}

html[lang="ar"] body {
    font-family: var(--arbi-font);
    direction: rtl;
}

h1,
h2,
h3,
h4 {
    color: var(--text-dark);
}

.primary-btn {
    background: var(--primary);
    color: var(--white);
}

.primary-btn:hover {
    background: var(--primary-dark);
}

html,
body {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

/* WHATSAPP BTN */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99;
}




.whatsapp-btn a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    background-color: #25D366;
    padding: .5em 1em;
    border-radius: 10px;
}

/* Header Styles */
header {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    z-index: 1000;
    background: var(--white);
}

.logo {
    width: 120px;
}

.logo img {
    width: 70%;
    height: 70%;
}

header nav ul {
    display: flex;
    gap: 20px;
}

header nav ul li {
    list-style: none;
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
}

header nav ul li a:hover {
    color: var(--primary);
}

.nav-service-link {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-inner-links {
    position: absolute;
    top: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    background-color: var(--white);
    padding: 16px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    width: 500px;
}

.nav-service-link:hover .nav-inner-links {
    display: flex;
}

.nav-inner-links li {
    padding: 8px 0;
}

.nav-inner-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

.nav-inner-links a:hover {
    color: var(--primary);
}

.nav-service-link .fa-arrow-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.header-btn {
    display: flex;
    gap: 10px;
}

.header-btn button {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-contact {
    position: relative;
    display: inline-block;
    width: 230px;
    text-align: center;
}

.whatsapp-contact a {
    text-decoration: none;
    color: var(--text-dark);
}

.whatsapp-contact .fa-phone {
    font-weight: 600;
    transform: rotate(30deg);
}

.whatsapp-contact p {
    font-size: .8rem;
    color: var(--text-medium);
    margin-bottom: 5px;
    font-weight: 700;
}

.whatsapp-option {
    padding: 10px 20px;
    background-color: #f5fbfb;
    border: 1px solid #e7f3f3;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selected-option .fi {
    margin-right: 8px;
}

.selected-option .fa {
    margin-left: 8px;
}

.options-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #f5fbfb;
    border: 1px solid #e7f3f3;
    border-top: none;
}

.options-list.active {
    display: block;
}

.options-list li {
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.options-list li:hover {
    background-color: var(--primary);
    color: white;
}

.options-list li .fi {
    margin-right: 8px;
}

.rotated {
    transform: rotate(-180deg);
    transition: transform 0.3s ease;
}

@media screen and (max-width:760px) {
    header {
        justify-content: space-between;
        padding: 0 20px;
    }

    header nav ul {
        display: none;
    }
}

@media screen and (max-width:480px) {
    .header-btn button {
        display: none;
    }

    .header-btn .whatsapp-no {
        font-size: .8rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: visible;
    z-index: 1;
    margin-bottom: 7%;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Content Styles */
.hero-content {
    padding-right: 2rem;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero h2 {
    margin-top: -0.5em;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--white);
    direction: rtl;
    font-family: var(--arbi-font);
}

.hero-title .highlight {
    color: var(--secondary);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    opacity: 0.3;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
}

.hero-service-card {
    min-height: 80px;
    margin-top: 1em;
    margin-bottom: 2em;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-service-card .service-badge {
    background-color: rgba(212, 175, 55, 0.7);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.8rem;
    flex: 1;
    min-width: 120px;
}

/* Button Styles */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    transform: translateZ(0);
}

.btn-primary {
    background: var(--secondary);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: #e6c34d;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.034);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) translateZ(0);
}

/* Right Image Styles */
.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
}

.hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    aspect-ratio: 16/9;
    background-color: var(--secondary);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary) 0%, transparent 100%);
    opacity: 0.1;
}

.hero,
.services-categories {
    content-visibility: auto;
    contain-intrinsic-size: 600px 800px;
}

.hero-title,
.hero h2,
.section-title {
    text-rendering: optimizeSpeed;
    font-display: swap;
}

/* Service Highlights */
.service-highlights {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.service-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-item i {
    color: var(--primary);
}

/* Services Categories Section */
.services-categories {
    background: var(--background);
    position: relative;
    z-index: 10;
    transform: translateZ(0);
}

.services-categories .page-header{
    margin-bottom: 3em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 11;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(138, 21, 56, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-badge h3 {
    font-size: 2.3rem;
}

.section-badge i {
    font-size: 1.5rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 0 1em;
    transform: translateZ(0);
}

.service-category-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.service-category-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Service Arabic title */
.service-arbi {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 0.3em;
    font-weight: 600;
    direction: rtl;
}

/* Service Image */
.service-img {
    width: 100%;
    height: 320px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Service Content */
.service-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Service Features */
.service-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.service-features i {
    color: var(--secondary);
    font-size: 0.8rem;
}

/* Service Actions */
.service-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.service-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    transform: translateZ(0);
}

.service-btn.primary {
    background: var(--primary);
    color: var(--white);
}

.service-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 5px 15px rgba(138, 21, 56, 0.3);
}

/* Responsive fixes */
@media (max-width: 850px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1em;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-badge h3 {
        font-size: 1.8rem;
    }

    .service-category-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-category-card {
        padding: 1.25rem;
        width: 100%;  
        max-width: 100%;
        margin: 0 auto;
    }
    

    .service-title{
        font-size: 1.1rem;
    }

    .service-features li{
        font-size: .8rem;
    }

   
}

.hero,
.hero-container,
.hero-image,
.image-container,
.hero-img,
.service-grid,
.service-category-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
}

.emergency-card {
    width: 100%;
    height: 250px;
    background: linear-gradient(to right bottom, var(--primary), var(--primary-dark));
    display: flex;
    justify-content: space-around;
    align-content: center;
}

.emergency-card .left {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.emergency-card h3 {
    color: var(--white);
    font-size: 2.2rem;
}

.emergency-card p {
    color: var(--secondary);
}

.emergency-card a {
    margin-top: 1em;
    color: var(--white);
    text-decoration: none;
}

.emergency-btn {
    width: 260px;
    height: 50px;
    font-size: 2rem;
    background-color: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 2px 4px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.emergency-card .right {
    width: 30%;
}

.emergency-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}




/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    margin-bottom: 4rem;
}

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    transition: transform 0.5s ease;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.customer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.customer-info {
    flex: 1;
}

.customer-name {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.customer-service {
    font-size: 0.85rem;
    color: var(--text-medium);
    opacity: 0.8;
}

/* Testimonial Rating */
.testimonial-rating {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.25rem;
}

.testimonial-rating i {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Testimonial Text */
.testimonial-text {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.testimonial-date {
    font-size: 0.8rem;
    color: var(--text-medium);
    opacity: 0.7;
    text-align: right;
    margin-top: auto;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 21, 56, 0.3);
}

.carousel-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}



/* Responsive Design */
@media (max-width: 1024px) {
    .testimonials-track {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 680px) {
    .testimonials-track {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        overflow: hidden;
    }

    .testimonial-card {
        width: 50%;
        padding: 1.5rem;
    }

    .carousel-controls {
        gap: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .testimonials-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Hide extra testimonials on mobile and show carousel */
    .testimonials-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 1rem;
        padding: 0.5rem;
        margin: 0 -0.5rem;
    }

    .testimonials-track::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        scroll-snap-align: start;
        min-width: 85%;
        flex: 0 0 auto;
    }

    .carousel-controls {
        display: none;
        /* Hide controls on mobile since we have swipe */
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonial-card {
        max-width: 50%;
        padding: 1.25rem;
    }

    .customer-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .testimonial-header {
        gap: 0.75rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }
}


/* Service Detail Page Styles */
.service-detail-container {
    max-width: 90%;
    margin: 60px auto;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.service-detail-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Typography */
.service-detail-container h1 {
    font-family: var(--font-primary);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1rem;
}

.service-detail-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.service-detail-container h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.service-detail-container h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: rgba(138, 21, 56, 0.03);
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
}

/* Service Steps List */
.service-steps {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-steps li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-medium);
    padding: 1.5rem;
    background-color: var(--background);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-steps li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-steps i.fa-check {
    color: var(--secondary);
    background-color: #fdf8e7;
    padding: 10px;
    border-radius: 50%;
    margin-top: 2px;
    font-size: 0.9rem;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Contact Form Section */
.contact-form-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 0.5rem;
    border-bottom: none;
}

.form-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* Two-column layout for Name and Phone */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: var(--background);
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(138, 21, 56, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* Response Message */
#responseMessage {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

#responseMessage.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#responseMessage.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Submit button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 21, 56, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover::before {
    left: -100%;
}

/* WhatsApp Section */
.whatsapp-contact-service {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.05), rgba(37, 211, 102, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.whatsapp-btn-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: #25D366;
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.whatsapp-btn-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn-service:hover::before {
    left: 100%;
}

.whatsapp-btn-service i {
    font-size: 1.5rem;
}

/* Arabic title styling */
.service-detail-container h1 {
    line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-detail-container {
        margin: 40px auto;
        padding: 2rem;
    }

    .service-detail-container h1 {
        font-size: 2.25rem;
    }

    .service-detail-container h2 {
        font-size: 1.75rem;
    }

    .service-steps {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-section {
        padding: 2rem;
    }

    .service-steps li {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .service-detail-container {
        margin: 20px auto;
        padding: 1.5rem;
        border-radius: 10px;
    }

    .service-detail-container h1 {
        font-size: 1.8rem;
    }

    .service-detail-container h2 {
        font-size: 1.5rem;
    }

    .service-description {
        padding: 1rem;
        font-size: 1rem;
    }

    .contact-form-section {
        padding: 1.5rem;
    }

    .whatsapp-btn-service {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .form-header p {
        font-size: 1rem;
    }

    .service-steps li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .service-steps i.fa-check {
        align-self: center;
    }
}

/* Dark Mode Support */
body.dark-theme .service-detail-container {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-theme .service-detail-container h1,
body.dark-theme .service-detail-container h2,
body.dark-theme .service-detail-container h3 {
    color: var(--dark-text);
}

body.dark-theme .service-description {
    background-color: rgba(138, 21, 56, 0.05);
    border-left: 4px solid var(--dark-secondary);
    color: var(--dark-text-muted);
}

body.dark-theme .service-steps li {
    background-color: var(--dark-surface-light);
    color: var(--dark-text-muted);
}

body.dark-theme .contact-form-section {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

body.dark-theme .form-control {
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    color: var(--dark-text);
}

body.dark-theme .form-control:focus {
    border-color: var(--dark-primary);
    background: var(--dark-surface);
    box-shadow: 0 0 0 4px rgba(138, 21, 56, 0.1);
}

body.dark-theme .form-control::placeholder {
    color: var(--dark-text-muted);
}

body.dark-theme .whatsapp-contact-service {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.05), rgba(37, 211, 102, 0.1));
    border: 1px solid rgba(37, 211, 102, 0.2);
}

/* Loading animation for submit button */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Focus states for accessibility */
.form-control:focus-visible,
.submit-btn:focus-visible,
.whatsapp-btn-service:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .service-detail-container {
        box-shadow: none;
        border: 1px solid #000;
    }

    .whatsapp-contact-service,
    .contact-form-section {
        display: none;
    }
}

/* Quick Contact Section */
.quick-contact-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Info Styles */
.contact-info .section-header {
    text-align: left;
    margin-bottom: 3rem;
}

.contact-info .section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.contact-info .section-subtitle {
    margin: 0;
    font-size: 1.1rem;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.method-icon.whatsapp {
    background: #25D366;
}

.method-info {
    flex: 1;
}

.method-info h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.method-info p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.method-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.method-link:hover {
    color: var(--primary-dark);
}

.method-text {
    color: var(--text-dark);
    font-weight: 500;
}

/* Contact Form */
.contact-form-container {
    background: var(--background);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-medium);
    font-size: 1rem;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(138, 21, 56, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

.success-book {
    border-color: #10b981;
    background: var(--primary);
    border-radius: 4px;
    margin: 0 auto;
    color: var(--white);
    padding: .5em;
}

.error-book {
    border-color: #ef4444;
    background: var(--primary);
    border-radius: 4px;
    margin: 0 auto;
    color: var(--white);
    padding: .5em;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 21, 56, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Form Note */
.form-note {
    text-align: center;
    padding: 1rem;
    background: rgba(138, 21, 56, 0.05);
    border-radius: 8px;
    margin-top: 1rem;
}

.form-note p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-note i {
    color: var(--primary);
}

footer {
    background: var(--primary);
    color: var(--white);
    padding: 40px 0;
    text-align: left;
    font-size: 0.9rem;
}

footer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.footer-container {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.footer-container h3 {
    margin-bottom: .5em;
    font-size: 1.2rem;
    color: var(--white);
}

footer li {
    list-style: inside;
}

footer ul {
    margin-bottom: 1.5em;
}

/* Rest of the responsive styles and other sections remain the same... */

/* Responsive Design */
@media (max-width: 1140px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero-container {
        gap: 3rem;
    }

    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .service-img {
        height: 350px;
    }
}

@media (max-width: 1060px) {
    .hero {
        padding: 100px 0 60px;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-service-card {
        flex-wrap: wrap;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero h2 {
        font-size: 1.6rem;
        direction: ltr;
    }

    .image-container {
        transform: none;
    }

    .service-highlights {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        justify-content: center;
    }

    .services-categories {
        padding: 80px 0;
        z-index: 10;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-img {
        height: 600px;
    }

    .service-img img {
        object-fit: cover;
    }

    .quick-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .quick-contact-grid {
        max-width: 50%;
    }

    .service-img {
        height: 480px;
    }

    .service-img img {
        object-fit: cover;
    }

    .services-categories {
        padding: 60px 0;
    }

    .service-category-card {
        padding: 1.5rem;

    }

    .quick-contact-grid {
        /* This changes the layout from two columns to a single, stacked column. */
        grid-template-columns: 1fr;

        /* This ensures the container uses the full available width of the screen. */
        width: 100%;

        /* The problematic 'max-width: 50%' rule has been removed. */
        max-width: none;
        /* Explicitly remove any max-width constraint */

        /* Adjust gap for smaller screens */
        gap: 2.5rem;
    }

    .contact-form .form-row {
        /* This ensures the form fields inside stack vertically as well. */
        grid-template-columns: 1fr;
    }


    .contact-form .form-row {
        display: flex;
        flex-direction: column;
    }



    .contact-form-section {
        width: 100%;
    }

    .contact-form-section .container {
        width: 100%;
    }

    .quick-contact-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        width: 100%;

    }


    .quick-contact-section .container {
        padding: 0 1rem;/
    }

    /* These rules are good, they ensure the items are full-width */
    .quick-contact-section .contact-info,
    .contact-form-container {
        width: 100%;
        margin: 0;
    }

    .quick-contact-section input {
        width: 100%;
    }

    .service-actions {
        flex-direction: column;
    }

    .emergency-card {
        text-align: center;
    }

    .emergency-card h3 {
        font-size: 1.4rem;
    }

    .emergency-btn {
        width: 160px;
        font-size: 1rem;
    }

    .emergency-card .right {
        display: none;
    }

    .quick-contact-grid {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 2rem;
    }
}

@media (max-width: 420px) {

    
    .quick-contact-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
       
    }

    .section-header  .section-title{
        font-size: 1.1rem;
    }

     .contact-method {
        padding: 0.75rem;
        gap: 0.75rem;
        align-items: center;
        max-width: 100%;
    }

    .contact-form-container{
        max-width: 100%;
    }

    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* 4. Adjust text sizes inside the card to prevent wrapping */
    .method-info h4 {
        font-size: 1rem;
        /* Slightly smaller heading */
        margin-bottom: 2px;
    }

    .method-info p {
        font-size: 0.8rem;
        /* Smaller descriptive text */
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .method-link {
        font-size: 0.9rem;
        /* Smaller link text */
    }

    /* 5. Adjust the form container as well */
    .contact-form-container {
        padding: 1rem;
        /* 16px */
    }

    .form-header h3 {
        font-size: 1.5rem;
    }


}


/* about us page */
.about-us-page {
    min-height: 100vh;
}

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-header .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 80px 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image {
    width: 100%;
    height: auto;  
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}


.about-image img {
    width: 100%; 
    height: auto;
    object-fit: cover; 
    transition: transform 0.5s ease;
}


.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 60px 0;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(138, 21, 56, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-medium);
}

.our-promise {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.our-promise h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.our-promise p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-section {
    background: linear-gradient(135deg, rgba(138, 21, 56, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(138, 21, 56, 0.1);
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(138, 21, 56, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 21, 56, 0.4);
}

/* Stats Section */
.stats-section {
    background: var(--white);
    padding: 80px 0;
    border-radius: 20px;
    margin: 80px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Values Section */
.values-section {
    margin: 80px 0;
}

.values-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-medium);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-us-page .container{
        margin: 0 1em;
    }
    .about-intro {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-image img {
        max-height: 300px; 
        object-fit: cover; 
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 60px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .content-section {
        padding: 60px 0;
    }

    .about-image img {
        max-height: 250px;  /* Further limit the image size on smaller screens */
        object-fit: cover;  /* Maintain proper aspect ratio and crop */
    }

    .about-text h2,
    .why-choose-us h2,
    .our-promise h2,
    .values-section h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .about-us-page .container{
        margin: 0 1em;
    }
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header .subtitle {
        font-size: 1.1rem;
    }

     .about-image img {
        max-height: 200px;  /* Limit image size on very small screens */
        object-fit: cover;  /* Maintain aspect ratio */
    }

    .about-text{
        text-align: justify;
    }

    .about-text h2,
    .why-choose-us h2,
    .our-promise h2,
    .values-section h2 {
        font-size: 1.8rem;
    }

    .feature-card,
    .value-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}


