/* AstroFix Page Styles */

/* Services Overview Carousel */
.services-overview {
    padding: 80px 0 40px;
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(26, 26, 26, 0.95) 100%);
    position: relative;
}

.services-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.services-carousel-wrapper {
    position: relative;
    margin: 60px 0 0;
    padding: 0 20px 30px;
    overflow: hidden;
}

.services-carousel {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    overflow: visible;
    padding-bottom: 20px;
}

.service-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.9));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 0 0 calc(33.333% - 20px);
    min-width: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.service-icon i {
    font-size: 36px;
    color: white;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.service-list i {
    color: var(--success);
    font-size: 12px;
}

.service-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    padding-bottom: 5px;
}

.service-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.service-dot.active::before {
    transform: scale(1);
}

.service-dot:hover::before {
    transform: scale(1);
}

.service-dot.active {
    transform: scale(1.2);
}

/* Repair Showcase */
.repair-showcase {
    padding: 100px 0;
    background: var(--dark-bg);
    position: relative;
}

.repair-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.filter-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 50px 0;
}

.filter-tab {
    padding: 12px 24px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.repair-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.repair-case {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.9));
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.repair-case:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.repair-case-header {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.before-after-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.before-after-split {
    display: flex;
    width: 100%;
    height: 100%;
}

.before-side, .after-side {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.before-side::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: var(--gradient);
    z-index: 5;
}

.before-image, .after-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-label {
    position: absolute;
    top: 15px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.label-before {
    left: 15px;
    color: #ef4444;
}

.label-after {
    right: 15px;
    color: #10b981;
}

.repair-case-body {
    padding: 25px;
}

.case-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 15px;
}

.case-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.case-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.case-duration, .case-difficulty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.case-duration i, .case-difficulty i {
    color: var(--primary);
}

/* Repair Modal */
.repair-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.repair-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(10, 10, 10, 0.98));
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: rotate(90deg);
}

.modal-close i {
    color: white;
    font-size: 20px;
}

.modal-body {
    padding: 50px;
}

.modal-header-section {
    margin-bottom: 40px;
}

.modal-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-images-section {
    margin-bottom: 50px;
}

.modal-before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.modal-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border);
    aspect-ratio: 4/3;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image-label {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label-before-modal {
    color: #ef4444;
}

.label-after-modal {
    color: #10b981;
}

.modal-details-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.problem-description, .repair-info {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary);
}

.problem-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.info-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 15px;
}

.repair-steps-section {
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.step-item {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.step-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.step-number-badge {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}



/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(192, 132, 252, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: pulse 2s ease-in-out infinite;
}

.cta-icon i {
    font-size: 48px;
    color: white;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cta-content > p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
    text-decoration: none;
}

.cta-features {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
}

.cta-feature i {
    color: var(--primary);
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modal-details-section {
        grid-template-columns: 1fr;
    }
    
    .modal-before-after {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .services-carousel-wrapper {
        padding: 0 10px 30px;
        margin: 40px 0 0;
    }
    
    .services-carousel {
        gap: 20px;
    }
    
    .service-card {
        flex: 0 0 calc(100% - 20px);
        min-width: calc(100% - 20px);
    }
    
    .repair-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 32px;
    }
    
    .modal-subtitle {
        font-size: 16px;
    }
    
    .cta-content h2 {
        font-size: 36px;
    }
    
    .cta-content > p {
        font-size: 18px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
}


