/* Root variables for consistency */
:root {
    --primary-dark: #1a365d;
    --primary-blue: #2563eb;
    --accent-green: #10b981;
    --light-gray: #f8fafc;
    --dark-gray: #64748b;
    --white: #ffffff;
}

/* General body styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-gray);
    color: #334155;
    padding-top: 80px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    margin-top: -80px;
    padding-top: 180px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--white), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

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

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-green);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--accent-green);
    transform: scale(1.1) rotateY(360deg);
}

.service-card h5 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 80px 0;
    margin-top: 40px;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, var(--accent-green), #059669);
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: var(--white);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* RTL Specific Adjustments */
body.rtl .service-card {
    text-align: center;
}

body.rtl .cta-button i {
    margin-left: 0;
    margin-right: 0.5rem;
    transform: rotate(180deg);
}

body.rtl .cta-button:hover i {
    transform: translateX(-5px) rotate(180deg);
}

/* Responsive Design */
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }

    .page-header {
        margin-top: -70px;
        padding-top: 150px;
    }
}

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

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

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

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

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

    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-card h5 {
        font-size: 1.2rem;
    }

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

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.service-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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