/* Global Styles */
:root {
    --primary-color: #6a3093;
    --secondary-color: #0d2b42;
    --accent-color: #e6a743;
    --dark-color: #2c3e50;
    --light-color: #f9f9f9;
    --grey-color: #eef2f7;
    --text-color: #333333;
    --white-color: #ffffff;
    --purple-gradient: linear-gradient(135deg, #6a3093 0%, #a044ff 100%);
    --orange-accent: #f6821f;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
/* add scrol behavior smooth */
* {
    scroll-behavior: smooth;
}

/* Wave Generator Utility Classes */
.wave-top {
    position: relative;
    padding-top: 100px;
}

.wave-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: inherit;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.wave-bottom {
    position: relative;
    padding-bottom: 100px;
}

.wave-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: inherit;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    direction: ltr;
}

html[lang="ar"] body {
    font-family: 'Tajawal', 'Roboto', sans-serif;
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--dark-color);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--white-color);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Language Selector Styling */
.language-selector {
    position: relative;
    margin-left: 25px;
    z-index: 100;
}

html[lang="ar"] .language-selector {
    margin-left: 0;
    margin-right: 25px;
}

.language-selector select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    color: var(--dark-color);
    padding: 8px 35px 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.language-selector::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    pointer-events: none;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

html[lang="ar"] .language-selector::after {
    right: auto;
    left: 12px;
}

.language-selector select:hover,
.language-selector select:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    outline: none;
}

.language-selector:hover::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Footer language selector */
.language-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.language-footer select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    color: var(--white-color);
    padding: 6px 30px 6px 15px;
    font-size: 0.85rem;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-footer::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    color: var(--accent-color);
    pointer-events: none;
    font-size: 0.7rem;
}

html[lang="ar"] .language-footer::after {
    right: auto;
    left: 10px;
}

.language-footer select:hover,
.language-footer select:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

@media (max-width: 768px) {
    .language-selector {
        margin-right: 50px;
    }
    
    html[lang="ar"] .language-selector {
        margin-right: 0;
        margin-left: 50px;
    }
}

/* Global Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes wave {
    0% {
        background-position-x: 0%;
    }
    100% {
        background-position-x: 100%;
    }
}

/* Hero Section with Wave Background */
#hero {
    background: linear-gradient(135deg, rgba(13, 43, 66, 0.9) 0%, rgba(106, 48, 147, 0.8) 100%), url('https://images.unsplash.com/photo-1564501049412-61c2a3083791?auto=format&fit=crop&w=1350&q=80') no-repeat center/cover;
    position: relative;
    overflow: hidden;
    color: var(--white-color);
    padding: 150px 0 100px;
    text-align: center;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background-size: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto 50px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Button Styles */
.cta-button, .btn-primary, .submit-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: block;
    margin-inline: auto;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-button:hover, .btn-primary:hover, .submit-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--white-color);
}

.cta-button::after, .btn-primary::after, .submit-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.8s ease;
    z-index: -1;
}

.cta-button:hover::after, .btn-primary:hover::after, .submit-button:hover::after {
    left: 100%;
}

/* Remove duplicate button styles */
.statistics-cta .btn-primary {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.statistics-cta .btn-primary:hover {
    background-color: var(--white-color);
    color: var(--secondary-color);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1.1rem;
}

/* About Section */
#about {
    position: relative;
    overflow: hidden;
    background-color: var(--light-color);
}

#about::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white-color);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.about-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Services Section */
#services {
    background-color: var(--white-color);
    position: relative;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--light-color);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

#services::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white-color);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-box {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-box::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: translateY(50px);
    transition: all 0.4s ease;
    opacity: 0;
    z-index: -1;
}

.service-box:hover::before {
    transform: translateY(0);
    opacity: 0.1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-box p {
    color: #666;
}

/* Case Studies Section */
.case-studies-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.case-study {
    display: flex;
    flex-direction: row;
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

html[lang="ar"] .case-study {
    flex-direction: row-reverse;
}

.case-study-content {
    flex: 1;
    padding: 40px;
}

.case-study-image {
    flex: 1;
    min-height: 300px;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.case-study p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Contact Section */
#contact {
    background-color: var(--white-color);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--secondary-color);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

#contact .container {
    position: relative;
    z-index: 2;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--grey-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 167, 67, 0.2);
}

/* Footer */
footer {
    position: relative;
    overflow: hidden;
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white-color);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white-color);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.language-footer select {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    header {
        padding: 15px 0;
    }
    
    .hero-content h2 {
        font-size: 2.8rem;
    }
    
    .hero-content h3 {
        font-size: 1.6rem;
    }
    
    .case-study {
        flex-direction: column;
    }
    
    html[lang="ar"] .case-study {
        flex-direction: column;
    }
    
    .case-study-image {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content h3 {
        font-size: 1.4rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Animation classes */
.service-box, .about-item, .case-study {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Additional Animations */
.fade-in {
    animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content h2, 
.hero-content h3, 
.hero-content p {
    opacity: 0;
    animation: slideUp 0.8s forwards;
}

.hero-content h2 {
    animation-delay: 0.2s;
}

.hero-content h3 {
    animation-delay: 0.5s;
}

.hero-content p {
    animation-delay: 0.8s;
}

.hero-content .cta-button {
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 1.1s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Card Styling */
.service-box, .about-item {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-box:hover, .about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
}

.mobile-menu-toggle.active {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    header nav {
        display: none;
    }
}

/* Testimonials Section */
#testimonials {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

#testimonials::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white-color);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

#testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.testimonial-item.active {
    display: block;
}

.testimonial-content {
    background-color: var(--white-color);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50px;
    width: 30px;
    height: 30px;
    background-color: var(--white-color);
    transform: rotate(45deg);
    box-shadow: 5px 5px 5px rgba(0,0,0,0.05);
    z-index: -1;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--dark-color);
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 30px;
    margin-left: 30px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 3px solid var(--accent-color);
}

html[lang="ar"] .testimonial-author img {
    margin-right: 0;
    margin-left: 15px;
}

.author-info h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.author-info p {
    margin: 5px 0 0;
    color: #777;
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.testimonial-dots {
    display: flex;
    margin: 0 15px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

.prev-testimonial, .next-testimonial {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 1px solid var(--grey-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-testimonial:hover, .next-testimonial:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Case study stats */
.case-study-stats {
    display: flex;
    margin-top: 20px;
    gap: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Contact info */
.contact-flex {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
}

.contact-form-container {
    flex: 2;
    max-width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

html[lang="ar"] .contact-item i {
    margin-right: 0;
    margin-left: 15px;
}

.contact-item h4 {
    margin: 0 0 5px;
    color: var(--primary-color);
}

.contact-item p {
    margin: 0;
    color: #666;
}

/* Improved footer */
.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

/* Responsive styles for mobile */
@media (max-width: 992px) {
    .contact-flex {
        flex-direction: column;
    }
    
    .testimonial-content {
        padding: 30px;
    }
    
    .case-study-stats {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        padding: 20px 0;
    }
    
    header nav.active {
        display: block;
    }
    
    header nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    header nav ul li {
        margin: 10px 0;
    }
    
    .case-study-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content h3 {
        font-size: 1.2rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin: 0 0 10px 0;
    }
}

/* About Section Styles */
.about-vision-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.vision-mission-item {
    background-color: var(--white-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.vision-mission-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.item-number {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.2;
}

html[lang="ar"] .item-number {
    right: auto;
    left: 20px;
}

.item-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.item-content p {
    color: var(--dark-color);
    line-height: 1.7;
}

.about-intro {
    margin: 50px 0;
    text-align: center;
}

.highlighted-text {
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--dark-color);
    font-style: italic;
    position: relative;
    padding: 0 30px;
    max-width: 900px;
    margin: 0 auto;
}

.highlighted-text:before,
.highlighted-text:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 3px;
    background: var(--purple-gradient);
    transform: translateY(-50%);
}

.highlighted-text:before {
    left: -50px;
}

.highlighted-text:after {
    right: -50px;
}

html[lang="ar"] .highlighted-text:before {
    left: auto;
    right: -50px;
}

html[lang="ar"] .highlighted-text:after {
    right: auto;
    left: -50px;
}

@media (max-width: 768px) {
    .about-vision-mission {
        grid-template-columns: 1fr;
    }
    
    .highlighted-text {
        font-size: 1.3rem;
        padding: 0 15px;
    }
    
    .highlighted-text:before,
    .highlighted-text:after {
        width: 50px;
    }
    
    .highlighted-text:before {
        left: -25px;
    }
    
    .highlighted-text:after {
        right: -25px;
    }
    
    html[lang="ar"] .highlighted-text:before {
        right: -25px;
    }
    
    html[lang="ar"] .highlighted-text:after {
        left: -25px;
    }
}

/* Contact Social Section */
.contact-social {
    margin-top: 20px;
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-social h4 {
    margin: 0 0 15px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--purple-gradient);
    border-radius: 50%;
    color: var(--white-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Statistics Section */
.statistics-section {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white-color);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.statistics-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white-color);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.statistics-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    position: relative;
    z-index: 2;
}

.statistics-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 50px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 25px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.stat-card p {
    font-size: 1rem;
    margin: 0 0 25px;
    color: rgba(255, 255, 255, 0.8);
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white-color);
    margin-top: auto;
    line-height: 1;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.stat-value::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.monthly-stats {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: inline-block;
}

.monthly-stats p {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin: 0;
}

.statistics-cta {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
}

.statistics-cta p {
    margin-bottom: 25px;
}

.statistics-cta .btn-primary {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.statistics-cta .btn-primary:hover {
    background-color: var(--white-color);
    color: var(--secondary-color);
}

/* RTL Support for Statistics Section */
html[lang="ar"] .statistics-section {
    direction: rtl;
}

html[lang="ar"] .stat-card {
    text-align: center;
}

@media (max-width: 768px) {
    .statistics-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .statistics-section h2 {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 3rem;
    }
    
    .monthly-stats p {
        font-size: 1.1rem;
    }
    
    .stat-card {
        height: auto;
        padding: 30px 20px;
    }
}

/* Captcha container styling */
.captcha-container {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

/* Responsive captcha */
@media (max-width: 340px) {
    .cf-turnstile {
        transform: scale(0.85);
        transform-origin: left center;
    }
    
    html[lang="ar"] .cf-turnstile {
        transform-origin: right center;
    }
}

/* Fix for mobile menu - ensure it displays properly when active */
header nav.active {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 20px 0;
}

header nav.active ul {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header nav.active ul li {
    margin: 10px 0;
} 