/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', Arial, sans-serif;

}

body {
    overflow-x: hidden;
    background-color: #f8fafc;
    direction: rtl;
}

/* Navbar styles */
.navbar {
    background-color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 65px;
    margin-left: 10px;
}

.logo h1 {
    color: #15101E;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-right: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #15101E;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #ED1A37;
    bottom: -5px;
    right: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: #ED1A37;
    font-weight: 700;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #15101E;
}

.mobile-menu .close-icon {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        padding: 20px;
        border-top: 1px solid #eee;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu .hamburger-icon {
        display: block;
    }

    .mobile-menu .close-icon {
        display: none;
    }

    .nav-links.active+.mobile-menu .hamburger-icon {
        display: none;
    }

    .nav-links.active+.mobile-menu .close-icon {
        display: block;
    }
}

.client-hero {
    position: relative;
    min-height: 500px;
    background: #21213B;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.client-hero .container {
    padding: 50px 0;
}

.client-hero h1 {
    font-size: 3rem;
    margin: 1rem 0;
    position: relative;
    z-index: 2;
}

.client-hero h1 span {
    color: #ED1A37;
}

.client-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Hero Section Styles */
.contact-hero {
    position: relative;
    min-height: 500px;
    background: #21213B;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 70px;
    /* Adjust for fixed navbar */
}

.contact-hero .hero-content {
    padding: 50px 20px;
    max-width: 800px;
    width: 100%;
}

.contact-hero .hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-hero .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    text-decoration: none;
}

.contact-hero .btn-primary,
.contact-hero .btn-secondary {
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.contact-hero .btn-primary {
    background-color: #ED1A37;
    color: white;
    border: 2px solid #ED1A37;
}

.contact-hero .btn-primary:hover {
    background-color: #d4152e;
    border-color: #d4152e;
}

.contact-hero .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.contact-hero .btn-secondary:hover {
    background-color: white;
    color: #21213B;
}

@media (max-width: 768px) {
    .contact-hero .hero-title {
        font-size: 2.5rem;
    }

    .contact-hero .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .contact-hero .btn-primary,
    .contact-hero .btn-secondary {
        width: 80%;
        margin: 0 auto;
    }
}

/* Hero section styles */
/* 

.hero {
    background-color: #f8f8f8;
    background-image: url('../image/Hero-01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    padding: 150px 5% 80px;
    margin-top: 70px;
    aspect-ratio: 16/9; 
}

.hero-container {
    position: relative;
    max-width: 1280px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: calc(100vh - 230px);
    z-index: 3;
    width: 100%;
}

.hero-content {
    color: white;
    text-align: right;
    max-width: 500px;
    margin-bottom: 50px;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary {
    background-color: #ED1A37;
    color: white;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.btn-primary:hover {
    background-color: #D01631;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 20px;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.btn-secondary:hover {
    background-color: white;
    color: #15101E;
} */
.hero {

    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    padding-top: 55px;
}

.hero-content {
    padding: 2rem;
    text-align: right;
    color: white;
    max-width: 600px;
    margin-bottom: 5%;
    margin-right: 5%;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-button {
    padding: 12px 24px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #ED1A37;
    color: white;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #D01631;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    font-weight: 700;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #15101E;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 50vh;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
    }

    .hero-content {
        position: relative;
        width: 90%;
        margin: 0 auto;
        padding: 1rem;
        text-align: center;
        margin-bottom: 10%;
    }

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

    .hero-buttons {
        justify-content: center;
        gap: 0.8rem;
    }

    .hero-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-button {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        background: white;
        width: 80%;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        transition: right 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
        margin-right: 0;
    }

    .mobile-menu {
        display: block;
    }


}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Services Section */
.services {
    padding: 80px 5%;
    background-color: #fff;
}

.container {
    max-width: 1280px;
    margin: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #15101E;
    margin-bottom: 15px;
}

.section-title span {
    color: #ED1A37;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f1f1;
    text-align: right;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(237, 26, 55, 0.1);
    border-color: rgba(237, 26, 55, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: #FEE2E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    margin-left: auto;
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    font-size: 1.25rem;
    color: #15101E;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

    .service-card {
        padding: 25px;
    }

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

    .section-subtitle {
        font-size: 1.1rem;
    }
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Clients Section */
.clients {
    padding: 80px 5%;
    background-color: #f9f9f9;
    overflow: hidden;
}

/* Clients Hero Section */
.clients-hero {
    background-color: #21213B;
    position: relative;
    padding: 120px 5% 80px;
    text-align: center;
}

.clients-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.clients-hero .hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.clients-hero .hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .clients-hero .hero-title {
        font-size: 2.2rem;
    }

    .clients-hero .hero-description {
        font-size: 1rem;
    }
}

.clients-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.client-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

.client-logo {
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #f1f1f1;
    opacity: 0;
    transform: translateY(30px);
}

.client-row-1 .client-logo {
    animation: fadeInUp 0.6s forwards;
}

.client-row-2 .client-logo {
    animation: fadeInUp 0.6s forwards 0.2s;
}

.client-row-3 .client-logo {
    animation: fadeInUp 0.6s forwards 0.4s;
}

.client-row-4 .client-logo {
    animation: fadeInUp 0.6s forwards 0.6s;
    -webkit-animation: fadeInUp 0.6s forwards 0.6s;
}

.client-row-5 .client-logo {
    animation: fadeInUp 0.6s forwards 0.6s;
}

.client-row-6 .client-logo {
    animation: fadeInUp 0.6s forwards 0.6s;
}

.client-logo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(237, 26, 55, 0.15);
    border-color: rgba(237, 26, 55, 0.3);
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover animation */
.client-logo {
    transition: all 0.3s ease;
}

.client-logo:hover {
    z-index: 2;
}

/* Responsive */
@media (max-width: 1200px) {
    .client-logo {
        width: 140px;
        height: 90px;
        padding: 15px;
    }
}

@media (max-width: 1017px) {
    .clients-grid {
        gap: 20px;
    }

    .client-row {
        gap: 15px;
    }

    .client-logo {
        width: calc(33.333% - 10px);
        height: 80px;
        padding: 10px;
    }

    .client-logo img {
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .client-logo {
        width: calc(50% - 10px);
    }
}

/* More Services Card Styles */
.more-services-card {
    position: relative;
    background: #21213B;
    color: white;
    overflow: hidden;
}

.more-services-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(237, 26, 55, 0.15) 0%, rgba(237, 26, 55, 0) 70%);
    z-index: 1;
}

.more-services-card .service-icon {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.more-services-card h3 {
    color: white;
}

.more-services-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.more-services-btn {
    display: inline-block;
    background-color: #ED1A37;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #ED1A37;
    margin-top: auto;
}

.more-services-btn:hover {
    background-color: transparent;
    color: #ED1A37;
    transform: translateY(-3px);
}

/* Adjust the grid for the additional card */
.services-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

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

/* Testimonials Section - Improved Responsive Version */
.testimonials {
    background-color: #f9f9f9;
    padding: 4rem 1rem;
    position: relative;
}

.testimonials .container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.2rem;
}

.stars svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    position: relative;
    padding: 0 1rem;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    font-family: serif;
    line-height: 1;
}

.testimonial-text::before {
    top: -0.5rem;
    right: 0;
}

.testimonial-text::after {
    bottom: -2rem;
    left: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1rem;
    border: 2px solid var(--primary);
}

.testimonial-author-info {
    flex: 1;
}

.testimonial-author h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #222;
    font-weight: 700;
}

.testimonial-author p {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    color: #777;
}

/* Responsive Improvements */

/* Join Us Section */
.join-us {
    background-color: #15101E;
    color: white;
    padding: 80px 5%;
    text-align: center;
}

.join-us .container {
    max-width: 800px;
    margin: 0 auto;
}

.join-us h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.join-us p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.join-us .cta-button {
    display: inline-block;
    background-color: #ED1A37;
    color: white;
    padding: 15px 30px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.join-us .cta-button:hover {
    background-color: #D01631;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .join-us h2 {
        font-size: 2rem;
    }

    .join-us p {
        font-size: 1rem;
    }

    .join-us .cta-button {
        padding: 12px 25px;
    }
}

@media (max-width: 1024px) {
    .testimonials-slider {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 3rem 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

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

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

    .testimonial-card {
        max-width: 100%;
    }

    .testimonial-text::before,
    .testimonial-text::after {
        font-size: 2.5rem;
    }

    .testimonial-text::after {
        bottom: -1.5rem;
    }
}


/* Footer Styles */
.footer {
    background-color: #15101E;
    color: #fff;
    padding: 60px 0 0;
    font-family: 'Tajawal', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    margin-bottom: 30px;
}

.footer-about {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 80px;
    margin-left: 10px;
}


.footer-about-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: #ED1A37;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.footer-links a:hover {
    color: #ED1A37;
    padding-right: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
    margin-left: 10px;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal .legal-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-legal .legal-link:hover {
    color: #ED1A37;
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

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

    .footer-col {
        text-align: center;
    }

    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}


.case-studies {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
    font-family: 'Tajawal', sans-serif;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.flip-card {
    background: transparent;
    width: 300px;
    height: 560px;
    perspective: 1000px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    text-align: justify;
}

.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
    padding: 20px;
    box-sizing: border-box;
        text-align: justify;

}

.flip-front img {
    max-width: 100%;
    height: 140px;
    object-fit: contain;
    margin: 0px;
}

.flip-front h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ED1A37;
}

.flip-back h3 {
    text-align: center;
}

.flip-back {
    display: flex;
    justify-content: start;
    flex-direction: column;
    transform: rotateY(180deg);
    color: #333;
    direction: rtl;
}

.flip-back h4 {
    color: #ED1A37;
    margin-bottom: 10px;
}

/*////////////////*/
.features-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to bottom right, #f9f9f9, #f1f1f1);
    font-family: 'Cairo', Tahoma, sans-serif;
    direction: rtl;
}

.features-section h3 {
    color: #2c3e50;
    font-size: 19px;
    margin-bottom: 10px;
}

.features-section .section-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.features-section .section-title span {
    color: #ED1A37;
    font-weight: bold;
}

.features-section .section-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.features-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 25px;
    width: 320px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: right;
}

.feature-icon {
    font-size: 45px;
    color: #ED1A37;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    text-align: center;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
}

.feature-card h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.feature-card p {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.7;
}

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

.feature-card:hover .feature-icon {
    transform: scale(1.3) rotate(10deg);
    -webkit-transform: scale(1.3) rotate(10deg);
    -moz-transform: scale(1.3) rotate(10deg);
    -ms-transform: scale(1.3) rotate(10deg);
    -o-transform: scale(1.3) rotate(10deg);
}

.feature-card:hover h3 {
    color: #ED1A37;
}

@media (max-width: 768px) {
    .features-container {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 90%;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    cursor: pointer;
}

.scroll-indicator svg {
    margin-top: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}


/* Hero Section */
.services-hero {
    position: relative;
    height: 100vh;
    min-height: 400px;
    background: url('../image/steptodown.com712831.jpg') no-repeat center top;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.services-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.services-hero h1 span {
    color: #ED1A37;
}

.services-hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 80%;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    cursor: pointer;
}

.scroll-indicator svg {
    margin-top: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}