/* Services Page Styles */
:root {
    --primary-color: #1dc3d2;
    --primary-dark: #18a8b5;
    --secondary-color: #f8a978;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s ease;
}

/* Hero Section */
.services-hero {
    padding: 70px 0 80px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: url('../images/view-desk-items-frame-with-copy-space.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--text-color);
}



.hero-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 90%;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(29, 195, 210, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(29, 195, 210, 0.3);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 400px;
    padding-top: 10px;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(29, 195, 210, 0.3);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    text-align: center;
    max-width: 80%;
}

/* Services Grid Section */
.services-grid-section {
    padding: 100px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 15px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* For service cards in the grid */
.service-card .service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* For service detail sections */
.service-content .service-image {
    flex: 1;
    position: relative;
    max-height: 600px;
    overflow: hidden;
}

.service-content .service-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 70%;
    height: 95%;
    border: 2px dashed rgba(29, 195, 210, 0.2);
    border-radius: var(--border-radius);
    z-index: -1;
}

.service-content .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: var(--text-color);
    font-weight: 600;
}

.service-card p {
    font-size: 1rem;
    color: #555;
    padding: 0 25px;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Service Detail Sections */
.service-detail-section {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.service-detail-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(29, 195, 210, 0.05);
    z-index: 0;
}

.service-detail-section.bg-light {
    background-color: var(--light-bg);
}

.service-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.service-content.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
    position: relative;
}

.service-text::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(var(--primary-color) 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.3;
    z-index: -1;
}

.service-badge {
    display: inline-block;
    background-color: rgba(29, 195, 210, 0.1);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(29, 195, 210, 0.1);
    transition: var(--transition);
}

.service-text:hover .service-badge {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 195, 210, 0.15);
}

.service-text h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
}

.service-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.service-text:hover h2::after {
    width: 120px;
}

.service-text > p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* RTL Text Alignment */
.service-text h2, 
.service-text p,
.service-features h3,
.service-features p,
.hero-text h1,
.hero-text p,
.section-header h2,
.section-header p,
.service-card h3,
.service-card p,
.working-text h2,
.working-text p {
    text-align: center;
    direction: rtl;
}

.service-features li {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: none;
    border-bottom: 3px solid var(--primary-color);
    text-align: center;
}

.service-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 0;
    margin-left: 15px;
    background-color: rgba(29, 195, 210, 0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.service-features .feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-text h2::after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

/* Responsive Styles Enhancement */
@media (max-width: 992px) {
    .service-features li {
        flex-direction: column;
        text-align: center;
    }
    
    .service-features i {
        margin: 0 0 15px 0;
    }
    
    .service-features h3,
    .service-features p {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .service-features li {
        padding: 15px;
    }
    
    .service-card h3,
    .service-card p {
        padding: 0 10px;
    }
}

.service-features li:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* Removed duplicate .service-features i style and merged with the one above */

.service-features li:hover i {
    background-color: var(--primary-color);
    color: #fff;
}

.service-features h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.service-features p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.service-image {
    flex: 1;
    position: relative;
    max-height: 600px;
    overflow: hidden;
}

.service-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 70%;
    height: 95%;
    border: 2px dashed rgba(29, 195, 210, 0.2);
    border-radius: var(--border-radius);
    z-index: -1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-content:hover .service-image img {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-detail-section .btn-primary {
    position: relative;
    overflow: hidden;
}

.service-detail-section .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-30deg);
    transition: 0.5s;
}

.service-detail-section .btn-primary:hover::before {
    left: 100%;
}

/* Working Together Section */
.working-together {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.working-together::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: var(--light-bg);
    z-index: 0;
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
}

.working-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.book-image {
    flex: 0 0 40%;
    position: relative;
}

.book-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.working-content:hover .book-image img {
    transform: perspective(1000px) rotateY(0deg);
}

.working-text {
    flex: 1;
}

.working-text h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.working-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .service-text h2, 
    .working-text h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero-content,
    .service-content,
    .working-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .service-content.reverse {
        flex-direction: column;
    }
    
    .hero-text,
    .service-text,
    .working-text {
        text-align: center;
    }
    
    .hero-text p,
    .service-text > p {
        max-width: 100%;
    }
    
    .service-features li {
        text-align: left;
    }
    
    .experience-badge {
        bottom: 20px;
        right: 20px;
    }
    
    .working-together::before {
        width: 100%;
        border-radius: 0;
        height: 50%;
        bottom: 0;
        top: auto;
    }
    
    /* Footer responsive fixes */
    footer .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    footer .footer-links,
    footer .footer-contact,
    footer .footer-social {
        width: 100%;
        margin-bottom: 30px;
    }
    
    footer .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 100px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2,
    .service-text h2,
    .working-text h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
    }
    
    .experience-badge .number {
        font-size: 2rem;
    }
    
    /* Footer responsive fixes */
    footer {
        padding: 60px 0 30px;
    }
    
    footer .footer-logo img {
        max-width: 120px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .section-header h2,
    .service-text h2,
    .working-text h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-features li {
        flex-direction: column;
    }
    
    .service-features i {
        margin-bottom: 10px;
    }
    
    /* Footer responsive fixes */
    footer .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }
    
    footer .footer-social a {
        margin: 0 8px;
    }
}

/* Footer Integration Fix */
footer {
    margin-top: 0;
    position: relative;
    z-index: 10;
}

/* For the service-link buttons - updated to match gradient button style */
.service-link {
    background: linear-gradient(to right, #031f2a, #28194c);
    color: white;
    border: 2px solid transparent;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(3, 31, 42, 0.2);
    display: inline-block;
    text-decoration: none;
}

.service-link::after {
   
    font-family: 'Font Awesome 6 Brands';
    margin-left: 10px;
}

.service-link:hover {
    background: linear-gradient(to right, #28194c, #031f2a);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 25, 76, 0.3);
}

.service-link:hover::after {
    width: auto;
}