@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');
:root {
  --bs-primary: #C8102E;           /* Your red color */
  --bs-primary-rgb: 200, 16, 46;   /* RGB equivalent of #C8102E */
   --bs-navbar-brand-padding-y: 0; 
  /* Background colors */
  --bs-btn-active-bg: #C8102E;        /* Active background */
  --bs-btn-bg: #C8102E;               /* Default background */
  --bs-btn-hover-bg: #a50e26;         /* Hover background */
  
  /* Border colors */
  --bs-btn-active-border-color: #C8102E;  /* Active border */
      /* Default border */
  --bs-btn-hover-border-color: #a50e26;   /* Hover border */
  
  /* Text color (optional) */
  --bs-btn-active-color: #fff;            /* Text color when active */
  
}/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn {
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    --bs-btn-active-bg: #C8102E;          /* Default background */
  --bs-btn-hover-bg: #a50e26;         /* Hover background */
  --bs-btn-hover-color: #fff;  
  /* Border colors */
  --bs-btn-active-border-color: #C8102E;  /* Active border */       /* Default border */
  --bs-btn-hover-border-color: #a50e26;   /* Hover border */
  
  /* Text color (optional) */
  --bs-btn-active-color: #fff;  
}

.btn-primary {
    background-color: #C8102E;
    border-color: #C8102E;
}

.btn-primary:hover {
    background-color: #a50e26;
    border-color: #a50e26;
}

.btn-outline-primary {
    color: #C8102E;
    border-color: #C8102E;
}

.btn-outline-primary:hover {
    background-color: #C8102E;
    color: #FFFFFF;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1A1A1A;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #C8102E;
}

.section-header p {
    color: #3A3A3A;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Top Info Bar */
.top-info-bar {
    background-color: #1A1A1A;
    color: #FFFFFF;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-info-bar .container {
    padding: 0 15px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: bold;
}

.contact-link {
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #C8102E;
}

.contact-link i {
    font-size: 12px;
    color: #C8102E;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    color: #FFFFFF;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 12px;
}

.social-link:hover {
    background-color: #C8102E;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-info-bar {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .contact-info {
        gap: 12px;
    }
    
    .contact-link span {
        display: none;
    }
    
    .contact-link i {
        font-size: 14px;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .social-link {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .top-info-bar .container {
        padding: 0 10px;
    }
    
    .contact-info {
        gap: 8px;
    }
}

/* Navigation */
.navbar {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: #1A1A1A;
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 15px;
    bottom: 5px;
    width: 0;
    height: 2px;
    background-color: #C8102E;
    transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: calc(100% - 30px);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #C8102E;
}

.navbar-toggler {
    border: none;
    padding: 0;
    font-size: 1.5rem;
    color: #1A1A1A;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C8102E' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* For dark backgrounds - makes the border more visible */
.navbar-dark .navbar-toggler {
    border-color: rgba(200, 16, 46, 0.3);
}

/* Hero Slider */
.hero-slider {
    position: relative;
}

.hero-slider .carousel-item {
    height: 100vh; /* Changed from 80vh */
    min-height: 500px;
    /* background-size: cover; */ /* Removed as img will handle */
    /* background-position: center; */ /* Removed as img will handle */
}

.hero-slider .carousel-item img { /* Added img specific styles */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slider .carousel-caption {
    bottom: 30%;
    left: 10%; /* Added */
    right: 10%; /* Added */
    text-align: left;
    padding: 30px;
    background-color: rgba(26, 26, 26, 0.85); /* Changed opacity */
    border-left: 5px solid var(--bs-primary); /* Changed to variable */
    border-radius: 4px; /* Added */
    animation: fadeInUp 0.5s ease; /* Added animation */
}

.hero-slider .carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff; /* Added color */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* Added text-shadow */
    /* animation: fadeInDown 0.5s ease; */ /* Removed as fadeInUp is on caption */
}

.hero-slider .carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 25px; /* Changed margin-bottom */
    /* animation: fadeInUp 0.5s ease; */ /* Removed as fadeInUp is on caption */
}

.hero-slider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
}

.hero-slider .carousel-indicators button.active {
    background-color: var(--bs-primary); /* Changed to variable */
}

.hero-slider .carousel-control-prev, /* Added navigation button styles */
.hero-slider .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-slider:hover .carousel-control-prev, /* Added navigation button hover styles */
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.hero-slider .btn-outline-danger { /* Added for new btn style */
    color: #fff;
    border-color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-slider .btn-outline-danger:hover { /* Added for new btn hover style */
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.microcopy { /* Added new microcopy style */
    color: #F59E0B;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    margin-top: 15px;
}

.microcopy span { /* Added new microcopy span style */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #F59E0B;
    border-radius: 50%;
}


/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: #F5F5F5;
}

.service-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.9) 0%, rgba(0, 86, 179, 0.9) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(200, 16, 46, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #C8102E;
    font-size: 1.8rem;
}


.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1A1A1A;
}

.service-card p {
    color: #3A3A3A;
}

.service-content {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.service-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: all 0.4s 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 {
    opacity: 1;
}

.service-card:hover .service-hover-img {
    opacity: 0.2;
}

.service-card:hover .service-icon {
    color: #fff;
    transform: scale(1.1);
}

.service-card:hover .service-content h3,
.service-card:hover .service-content p {
    color: #fff;
}

/* About Section */
.about-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-content {
    padding-right: 30px;
}

.about-content p {
    margin-bottom: 20px;
    color: #3A3A3A;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.about-image:hover img {
    transform: scale(1.05);
}

/* Clients Section */
.clients-section {
    padding: 80px 0;
    background-color: #F5F5F5;
}

.clients-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.client-logo {
    flex: 0 0 calc(16.666% - 30px);
    max-width: calc(16.666% - 30px);
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-form .form-control {
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: #C8102E;
}

/* Consolidated .contact-info for consistency */
.contact-info { /* Original contact-info in top-info-bar is narrower in scope */
    border-radius: 8px;
    height: 100%;
    display: grid; /* Added for contact-section layout */
    grid-template-columns: 1fr; /* Added for contact-section layout */
  
}


.contact-item {
    /* margin-bottom: 30px; */ /* Removed duplicate */
    display: flex; /* Added for improved alignment */
    align-items: flex-start; /* Added for improved alignment */
    gap: 15px; /* Added for improved alignment */
    padding: 20px; /* Added for styling */
    background: #f8f9fa; /* Added for styling */
    border-radius: 8px; /* Added for styling */
}

.contact-item i {
    font-size: 1.5rem;
    color: #C8102E; /* Changed to primary color */
    margin-top: 3px; /* Adjusted margin */
    /* margin-bottom: 15px; */ /* Removed duplicate */
}

.contact-item h4 {
    font-size: 1.2rem;
    /* margin-bottom: 10px; */ /* Removed duplicate */
    margin: 0 0 5px 0; /* Adjusted margin */
    color: #1A1A1A;
}

.contact-item p {
    color: #3A3A3A;
    margin: 0; /* Adjusted margin */
}

.contact-map { /* Added map styles */
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-map iframe { /* Added map iframe styles */
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive layout for contact */
@media (min-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-map {
        grid-row: span 2;
        height: 100%;
    }
}


/* Footer */
.footer {
    background-color: #1A1A1A;
    color: #FFFFFF;
    padding: 80px 0 0;
}

.footer-logo-wrapper {
  padding: 10px 0;
  margin: -10px 0; /* Neutralize padding */
}

.footer-logo {
  width: auto;
  margin-top: -50px;
  margin-bottom: -15px;
}

.footer-logo img { /* Added specific footer logo image style */
    width: auto;
    max-height: 200px;
    margin-bottom: 20px;
}


.footer h4 {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #C8102E;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #bbb;
    transition: all 0.3s ease;
    text-decoration: none; /* Added */
}

.footer ul li a:hover {
    color: #C8102E;
    padding-left: 5px;
}

.footer ul li i {
    margin-right: 10px;
    color: #C8102E;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: #C8102E;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1A1A1A;
    color: #FFFFFF;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Arabic Text Styles */
.arabic-text {
    direction: rtl;
    font-family: 'Tahoma', sans-serif;
    font-size: 1.5rem;
    color: #fff;
}


/* Responsive Styles */
@media (max-width: 1199.98px) {
    .hero-slider .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .client-logo {
        flex: 0 0 calc(25% - 30px);
        max-width: calc(25% - 30px);
    }
}

@media (max-width: 991.98px) {
    .hero-slider .carousel-item {
        height: 70vh; /* Adjusted for smaller screens */
    }
    
    .hero-slider .carousel-caption {
        bottom: 20%;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .client-logo {
        flex: 0 0 calc(33.333% - 30px);
        max-width: calc(33.333% - 30px);
    }

    .footer { /* Added footer responsiveness */
        padding: 60px 0 0;
    }
    
    .footer-logo { /* Added footer logo responsiveness */
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-logo img { /* Added footer logo img responsiveness */
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .hero-slider .carousel-item {
        height: 70vh; /* Changed from 60vh */
        min-height: 400px;
    }
    
    .hero-slider .carousel-caption {
        bottom: 10%;
        padding: 20px;
        text-align: center; /* Added for smaller screens */
    }
    
    .hero-slider .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .client-logo {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
    .arabic-text { /* Added for Arabic text responsiveness */
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .hero-slider .carousel-item {
        height: 60vh; /* Changed from 50vh */
        min-height: 350px; /* Added */
    }
    
    .hero-slider .carousel-caption {
        /* text-align: center; */ /* Removed duplicate */
        /* background-color: rgba(26, 26, 26, 0.9); */ /* Removed duplicate, using 0.85 now */
        left: 5%; /* Added */
        right: 5%; /* Added */
        width: 90%; /* Added */
        padding: 15px; /* Added */
    }

    .hero-slider .carousel-caption h1 { /* Added responsiveness for h1 */
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .hero-slider .carousel-caption .btn { /* Added responsiveness for button */
        width: 100%;
    }
    
    .client-logo {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    display: inline-block;
    margin-right: 12px;
    color: #fff;
    background: #333;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px; /* Added font-size */
}

.social-icons a:hover {
    background: #C8102E; /* Changed color */
    transform: translateY(-3px);
}

/* Removed duplicate social-icons i */
/* .social-icons i {
    font-size: 16px;
} */

.services-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.service-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: #fff;
}

.service-icon {
    font-size: 2.5rem;
    color: #C8102E;
    margin-bottom: 15px;
}

.service-item h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

/* For responsive adjustments */
@media (max-width: 768px) {
    .services-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .services-highlights {
        grid-template-columns: 1fr;
    }
}

/* Dropdown Menu Styling */
/* Desktop Styles (unchanged from your original) */
.dropdown-menu {
    padding: 0;
    border: none;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 450px;
    overflow: hidden;
    margin-top: 8px;
    --bs-dropdown-link-active-color: #C8102E;
}

/* Custom CSS to fix dropdown stickiness */
.navbar-nav .dropdown-menu.show {
    margin-top: -5px !important;
}
.dropdown-container {
    display: flex;
}

.dropdown-column {
    flex: 1;
    padding: 15px;
}

.dropdown-header {
    color: #C8102E;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 10px 0 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(200, 16, 46, 0.1);
}

.dropdown-item {
    padding: 8px 15px;
    border-radius: 4px;
    color: #333;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: rgba(200, 16, 46, 0.1);
    transform: translateX(3px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Hover functionality */
.nav-item.dropdown:hover .dropdown-menu {
    display: flex !important;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 100% !important;
        width: 100% !important;
        box-shadow: none !important;
        margin-top: 0 !important;
        position: static !important;
    }

    .dropdown-container {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .dropdown-column {
        padding: 0 !important;
        width: 100% !important;
    }

    .dropdown-header {
        margin: 0 !important;
        padding: 12px 15px !important;
        background-color: #f8f9fa;
        border-bottom: 1px solid #eee;
    }

    .dropdown-item {
        padding: 12px 25px !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #eee;
    }

    .dropdown-item:hover {
        transform: none !important;
        background-color: rgba(200, 16, 46, 0.05) !important;
    }

    /* Disable hover effects on mobile */
    .nav-item.dropdown:hover .dropdown-menu {
        display: none !important;
    }
    
    /* Show when clicked */
    .nav-item.dropdown.show .dropdown-menu {
        display: block !important;
    }
}


/* Hover Effects for .service-item - These are the more detailed ones, so keeping them. */
.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.service-item:hover::before {
    opacity: 1;
}

.service-item:hover .service-hover-img {
    opacity: 0.15;
}

.service-item:hover .service-icon {
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.service-item:hover .service-content h4,
.service-item:hover .service-content p {

    transform: translateX(5px);
}

.clients-hero.bg-primary {
    background-color: #C8102E !important;
    background-image: linear-gradient(to right, #C8102E, #A00C2A) !important;
}
  
/* CTA Section Styling */
.cta-section.bg-primary {
    background-color: #C8102E !important;
    background-image: 
        linear-gradient(
            135deg, 
            #C8102E 0%, 
            #A00C2A 50%, 
            #8C0923 100%
        ) !important;
}

/* Optional: Add subtle pattern overlay */
.cta-section.bg-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23000000' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.cta-section {
    background: linear-gradient(135deg, #C8102E 0%, #A00C2A 100%) !important;
    position: relative;
    z-index: 1;
}

/* Button Fixes */
.cta-btn {
    background-color: white !important;
    color: #C8102E !important;
    border: 2px solid white !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-btn:hover {
    background-color: transparent !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Content Positioning */
.cta-content {
    position: relative;
    z-index: 3;
}

/* Optional: Subtle pattern overlay */
.cta-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 15px 15px;
    z-index: 2;
    opacity: 0.5;
}

/* Hero Section Styling */
.hero-content {
    padding: 2rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    max-width: 600px;
}

.btn-light {
    background-color: white;
    color: #C8102E;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-light:hover {
    background-color: transparent !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-content {
        margin-top: 2rem;
        text-align: center;
    }
}

/* Image highlight effect */
.image-highlight-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: all 0.4s ease;
}

.image-highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0,0,0,0.4) 0%, 
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.4) 100%
    );
    mix-blend-mode: multiply;
    border-radius: 0.5rem;
    z-index: 1;
}

/* Hover effect */
.image-highlight-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.image-highlight-wrapper:hover .image-highlight-overlay {
    background: linear-gradient(
        135deg, 
        rgba(200,16,46,0.3) 0%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.4) 100%
    );
}

/* Ensure image stays behind overlay */
.image-highlight-wrapper img {
    display: block;
    transition: transform 0.4s ease;
    z-index: 0;
}

.image-highlight-wrapper:hover img {
    transform: scale(1.03);
}

/* Hero Section */
.services-hero {
    overflow: hidden;
    background: linear-gradient(135deg, #C8102E 0%, #A00C2A 100%);
}

/* Removed duplicate hero-content */
/* .hero-content {
    position: relative;
    z-index: 2;
} */

/* Removed duplicate image-highlight-wrapper */
/* .image-highlight-wrapper {
    position: relative;
    border-radius: 0.5rem;
    transition: all 0.4s ease;
} */

/* Removed duplicate image-highlight-overlay */
/* .image-highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg, 
        rgba(200,16,46,0.3) 0%, 
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.4) 100%
    );
    border-radius: 0.5rem;
} */

/* Background Pattern */
.bg-pattern-overlay {
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 20%);
    z-index: 1;
}

/* Button Enhancements */
/* Removed duplicate cta-btn */
/* .cta-btn {
    background-color: white !important;
    color: #C8102E !important;
    transition: all 0.3s ease;
} */

/* Removed duplicate cta-btn:hover */
/* .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
} */

/* Trust Badge Styling */
.trust-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: linear-gradient(135deg, 
                #C8102E 0%, 
                rgba(160, 12, 42, 0.95) 100%);
    border: 2px solid #FFFFFF;
}

.trust-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent 0deg 30deg,
        rgba(255, 255, 255, 0.15) 30deg 90deg,
        transparent 90deg 180deg,
        rgba(255, 255, 255, 0.1) 180deg 270deg,
        transparent 270deg 360deg
    );
    animation: rotateBadge 12s linear infinite;
    z-index: -1;
}

.badge-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    max-width: 80%;
    line-height: 1.3;
    color: #FFFFFF;
    padding: 0 10px;
}

/* Hover Effects */
.trust-badge:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Animation */
@keyframes rotateBadge {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .trust-badge {
        width: 100px;
        height: 100px;
        bottom: 15px;
        right: 15px;
    }
    .badge-number {
        font-size: 1.7rem;
    }
    .badge-text {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
}

/* Override styles for the service card */
.service-card:hover {
    color: white !important;
    background-color: #C8102E;
    transition: all 0.3s ease;
}

/* Change checkmark color to primary on card hover */
.service-card:hover .text-primary {
    color: white !important;
}

/* Change the button style on hover */
.service-card:hover .btn-outline-primary {
    color: white !important;
    border-color: white !important;
}

/* Original checkmark color (when not hovering) */
.service-card .text-primary {
    color: #C8102E !important;
}

/* Optional: Add hover effect for the icon */
.service-card:hover .service-icon i {
    color: white !important;
}

/* Optional: Make the entire card clickable if desired */
.service-card {
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

/* Style the service features list */
.service-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.service-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

/* Checkmark icon styling */
.service-features .fa-check-circle {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    color: #C8102E;
}

/* Hover effects when card is hovered */
.service-card:hover .service-features li {
    color: white !important;
}

.service-card:hover .service-features .fa-check-circle {
    color: white !important;
}

/* If you want individual list item hover effects (optional) */
.service-features li:hover {
    transform: translateX(5px);
    transition: transform 0.2s ease;
}
.sticky-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 1030; /* Matches Bootstrap's navbar z-index */
  transition: all 0.3s ease;
  will-change: transform;
}

/* Shrink effect for larger screens */
@media (min-width: 992px) {
  .sticky-nav-wrapper.scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    
    .navbar {
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }
    
    .navbar-brand img {
      height: 50px;
      transition: height 0.3s ease;
    }
  }
}

/* About Page Specific Styles */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/about-hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bs-body-bg));
}

/* Team Member Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .about-hero {
        min-height: 50vh;
        text-align: center;
    }
    
    .about-hero .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Performance Optimizations */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}


/* Team Slider Styles */
.team-slider-container {
    height: 500px; /* Adjust based on your needs */
}

.team-slider {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

.team-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.team-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-caption {
    transition: transform 0.3s ease;
    transform: translateY(100%);
}

.team-slide.active .slide-caption {
    transform: translateY(0);
}

/* Navigation Buttons */
.slider-prev,
.slider-next {
    z-index: 10;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    opacity: 1;
    background-color: rgba(200, 16, 46, 0.8) !important; /* Your primary color */
}

/* Pagination Dots */
.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background-color: #C8102E; /* Your primary color */
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-slider-container {
        height: 400px;
    }
    
    .slider-prev,
    .slider-next {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .team-slider-container {
        height: 300px;
    }
    
    .slide-caption p {
        font-size: 0.9rem;
    }
}

.cta-microcopy {
  font-size: 0.875rem; /* 14px */
  color: #FFD700; /* Subdued gray */
  margin-top: 4px;
}

  .guarantee-badge {
    display: inline-block;
    animation: pulse 2s infinite;
    margin-right: 6px;
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }

/* New: Test Content Section */
.test-content {
    background-color: #f8f9fa;
}

.test-content h2 {
    color: var(--bs-primary);
    margin-bottom: 10px;
}



/* --- Lightbox Styles --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1050; /* Sit on top, higher than navbars */
    padding-top: 60px; /* Location of the box (top) */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    cursor: zoom-out; /* Indicate it's clickable to close */
    animation: fadeIn 0.3s forwards; /* Added for smooth appearance */
}

/* Lightbox Content (image) */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Ensure the image fits within the bounds */
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.7);
    animation: zoomIn 0.3s forwards; /* Added for smooth appearance */
}

/* Caption of Lightbox Image */
.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px; /* Adjust if needed */
    font-size: 1rem;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes zoomIn {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}

/* Hover effect for the certification items */
.certification-item {
    transition: all 0.3s ease-in-out;
    cursor: pointer; /* Indicate it's clickable */
}

.certification-item:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2) !important; /* Stronger shadow on hover */
    transform: translateY(-5px) scale(1.02); /* Slight lift and scale */
}

.certification-item img {
    transition: transform 0.3s ease-in-out;
}

.certification-item:hover img {
    transform: scale(1.03); /* Slight scale on image inside the container */
}


/* Watermark Styles */
.about-image {
  position: relative;
  display: inline-block; /* Ensures proper sizing */
}

 /* Watermark Styles */
    .watermark-overlay {
        position: absolute;
        bottom: 20px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 0 30px;
        box-sizing: border-box;
    }

.watermark-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  width: 40%;
  max-width: 300px;
  height: auto;
}

.watermark-bottom {
  position: absolute;
  bottom: 5%;
  width: 100%;
  text-align: center;
}

.watermark-arabic {
        font-family: 'Tajawal', Arial, sans-serif;
        font-size: 2rem;
        color: #C8102E;
        opacity: 0.7;
        font-weight: 800;
    }
    
    .watermark-latin {
        font-family: Arial, sans-serif;
        font-size: 2rem;
        color: #C8102E;
        opacity: 0.7;
         font-weight: 900; 
    }

/* Responsive adjustments */
@media (min-width: 768px) {
  .watermark-arabic {
    font-size: 36px; /* Fixed size on larger screens */
  }
  .watermark-latin {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .watermark-arabic {
    font-size: 24px;
    bottom: 3%;
  }
  .watermark-latin {
    font-size: 16px;
    bottom: 3%;
  }
}
/* Responsive Adjustments */
    @media (max-width: 992px) {
        .col-lg-6 {
            padding-right: 15px !important;
            padding-left: 15px !important;
        }
        
        .watermark-arabic,
        .watermark-latin {
            font-size: 1.5rem;
        }
    }
    
.video-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 320px;
  height: 180px;
  z-index: 9999;
  border: 2px solid #C8102E;
  border-radius: 12px;
  overflow: visible; /* Changed from hidden to visible */
  background: #000;
}

.video-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px; /* Slightly less than parent to account for border */
}

.close-preview-btn {
  position: absolute;
  top: -12px; /* Half outside the container */
  right: -12px; /* Half outside the container */
  background-color: #C8102E;
  border: 2px solid white;
  color: white;
  font-size: 16px;
  font-weight: bold;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.close-preview-btn:hover {
  background-color: #a00d26;
  transform: scale(1.1);
  transition: all 0.2s ease;
}
  /* Paragraph styling */
.why-us p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #333;
}

/* Bullet points */
.why-us li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230055a5"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
  .why-us p { font-size: 1rem; }
}

@media (max-width: 768px) {
  .video-popup {
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100% - 20px);
  }
  
  /* Custom styles (can be minimal or extensive) */
.testimonial-card {
    border: 1px solid #e0e0e0;
}
.client-info img {
    object-fit: cover;
    border: 1px solid #ddd;
}
/* Ensure equal height for cards */
.testimonial-card {
    display: flex;
    flex-direction: column;
}
.testimonial-card p {
    flex-grow: 1; /* Allows the paragraph to take available space */
}

/* --- Swiper Specific Overrides/Adjustments --- */

/* Parent section needs relative positioning for arrow absolute positioning */
.testimonials-section {
    position: relative;
}

/* Style and position Swiper navigation buttons */
.swiper-button-prev,
.swiper-button-next {
    color: #007bff; /* Bootstrap primary color */
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    border-radius: 50%; /* Make them circular */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for perfect vertical centering */
    z-index: 10; /* Ensure they are above slides */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 1); /* Opaque white on hover */
}

/* Adjust arrow icon size */
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
}

.swiper-button-prev {
    left: 10px; /* Position from left edge */
}

.swiper-button-next {
    right: 10px; /* Position from right edge */
}

/* In your css/style.css */
/* Ensure this rule comes AFTER any other Swiper-related rules in your file if you have them */
.swiper-pagination {
    position: static !important; /* FORCES it into normal document flow */
    margin-top: 30px !important; /* Adjust this value as needed for spacing below the slider */

    /* Explicitly clear other absolute positioning properties for robustness */
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
}


.swiper-pagination-bullet {
    background: #ccc; /* Default dot color */
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #007bff; /* Active dot color (Bootstrap primary) */
}
