/* Arabic Font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #CA4D4B;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ffffff;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-dark: #2c3e50;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Navigation */
.navbar {
    background: rgba(202, 77, 75, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Add padding to account for fixed navbar */
    padding-bottom: 50px;
}

.hero-section::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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.15); */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #cd5654;
}

.hero-content p {
    color: #cd5654;
    font-weight: bold;
}

.hero-features {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cd5654;
}

.hero-buttons .btn {
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-buttons .btn.btn-outline-light {
    background: #cd5654bf;
    color: #ffffff;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* About Section */
.about-content {
    padding: 2rem 0;
}

#about {
    background: #ffffff;
}

.about-stats {
    margin-top: 2rem;
}

.stat-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.stat-item p {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1rem;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Services Section */
.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.service-card.featured::before {
    background: linear-gradient(90deg, var(--accent-color), var(--warning-color));
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card.featured .service-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.service-features li i {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.testimonials-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
    width: 100%;
    direction: rtl;
}

.testimonial-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    width: calc(33.333% - 1.33rem);
    min-width: calc(33.333% - 1.33rem);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.stars {
    color: var(--warning-color);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info h5 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Testimonials Navigation */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.testimonial-nav:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav.prev {
    left: 0; /* Swapped for RTL */
}

.testimonial-nav.next {
    right: 0; /* Swapped for RTL */
}

.testimonial-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.testimonial-nav:disabled:hover {
    transform: translateY(-50%);
    background: var(--primary-color);
}

/* Contact Section */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

footer h5 {
    color: var(--accent-color);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    border-width: 2px;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        padding: 0 15px;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .about-stats .col-4 {
        margin-bottom: 1rem;
    }
    
    .navbar-nav .btn {
        margin-top: 1rem;
    }
    
    /* Testimonials responsive */
    .testimonials-slider {
        padding: 0 30px;
    }
    
    .testimonial-card {
        min-width: calc(100% - 1rem);
    }
    
    .testimonials-container {
        gap: 1rem;
    }
    
    /* Show only 1 testimonial on mobile */
    .testimonials-container .testimonial-card {
        min-width: calc(100% - 1rem);
    }
    
    /* Footer responsive */
    footer .row {
        text-align: center;
    }
    
    footer .col-md-6:last-child {
        margin-top: 1rem;
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding-top: 50px;
    }
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .hero-buttons {
        padding: 0 10px;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
    
    /* Testimonials responsive */
    .testimonials-slider {
        padding: 0 20px;
    }
    
    .testimonial-card {
        min-width: calc(100% - 1rem);
        padding: 1.5rem;
    }
    
    .testimonials-container {
        gap: 1rem;
    }
    
    .testimonial-nav {
        width: 35px;
        height: 35px;
    }
    
    /* Footer responsive for small screens */
    footer {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    footer .col-md-6:last-child {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}



/* FAQ Section */
.faq-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

section:not(.hero-section) {
    background: #ffffff;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Floating Call Button */
.floating-call-button {
    position: fixed;
    bottom: 80px;
    left: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.floating-call-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.floating-call-button:active {
    transform: scale(0.95);
}

.call-icon {
    color: white;
    font-size: 28px;
    z-index: 2;
    position: relative;
}

.call-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.call-tooltip {
    position: absolute;
    right: 85px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.call-tooltip::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid rgba(0, 0, 0, 0.8);
}

.floating-call-button:hover .call-tooltip {
    opacity: 1;
    visibility: visible;
    right: 95px;
}

/* Mobile Responsive for Floating Button */
@media (max-width: 768px) {

    .hero-image {
        justify-content: center;
        display: flex;
        margin-top: 37px;
    }
    .hero-image img {
        height: 429px;    
    }

    .floating-call-button {
        bottom: 80px;
        left: 20px;
        width: 60px;
        height: 60px;
    }
    
    .call-icon {
        font-size: 24px;
    }
    
    .call-tooltip {
        display: none;
    }
    
    /* Reverse column order for mobile */
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .about-section .row {
        flex-direction: column-reverse;
    }
}

@media (max-width: 576px) {
    .floating-call-button {
        bottom: 80px;
        left: 15px;
        width: 55px;
        height: 55px;
    }
    
    .call-icon {
        font-size: 22px;
    }
    
    /* Reverse column order for small mobile */
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .about-section .row {
        flex-direction: column-reverse;
    }
} 