@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #d32f2f;
    --text-light: #666;
    --bg-light: #fafafa;
    --border-color: #e0e0e0;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Override any conflicting styles */
.services-page * {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Page Header */
.page-header {
    background-color: var(--bg-light);
    padding: 80px 0 50px;
    text-align: center;
    margin-top: 30px;
    position: relative;
}

.page-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.page-title {
    font-size: 56px;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: -2px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-family: 'Tajawal', sans-serif;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--primary-color);
}

.breadcrumb {
    margin-top: 35px;
    font-size: 16px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

/* Services Section */
.services-page {
    padding: 60px 0;
    background: var(--secondary-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: -2px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
}

.section-desc {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 300;
    max-width: 700px;
    margin: 35px auto 0;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bg-light);
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.service-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.service-desc {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Process Section */
.repair-process {
    background: var(--bg-light);
    padding: 80px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
}

.process-step {
    background: var(--secondary-color);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.step-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step-desc {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* FAQ Section */
.service-faq {
    padding: 80px 0;
    background: var(--secondary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
    padding-right: 20px;
}

.faq-icon {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    padding: 0 30px 25px;
    display: none;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--secondary-color);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: 'Tajawal', sans-serif;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    transition: left 0.3s ease;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }
.process-step:nth-child(5) { animation-delay: 0.5s; }

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: var(--secondary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
    font-size: 30px;
    z-index: 1000;
}

.chat-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .section-desc {
        font-size: 16px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .chat-widget {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 28px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-desc {
        font-size: 14px;
    }
}

/* Ensure proper font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}