/* Services Page Specific CSS */

/* Services Hero Section */
.services-hero {
    background: var(--gradient);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-dots.svg');
    opacity: 0.1;
}

.services-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.services-hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.services-hero h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--white);
    margin: 20px auto 0;
}

.services-hero p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.services-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 30px;
}

/* Service Categories */
.service-categories {
    padding: 60px 0 50px; /* Увеличено долно padding */
    background-color: var(--dark);
    border-top: 1px solid var(--dark-border);
}

.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 15px 30px;
    margin: 0 10px 10px;
    background-color: var(--dark-card);
    color: var(--text-secondary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.category-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.category-tab.active {
    background-color: var(--dark-card);
    color: var(--white);
    border-color: var(--primary);
}

.category-tab i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Service Cards Grid */
.service-categories-container {
    position: relative;
    margin-top: 50px;
    min-height: 650px; /* Коригирана височина на контейнера */
    margin-bottom: 20px; /* Добавяме малко разстояние в края на контейнера */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.4s ease;
    pointer-events: none;
    justify-content: center;
}

.service-grid.active {
    opacity: 1;
    position: relative;
    pointer-events: all;
    z-index: 1;
}

.service-item {
    background-color: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid var(--dark-border);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Добавяме закъснение за елементите, за да се появяват последователно */
.service-item:nth-child(1) { transition-delay: 0.1s; }
.service-item:nth-child(2) { transition-delay: 0.2s; }
.service-item:nth-child(3) { transition-delay: 0.3s; }
.service-item:nth-child(4) { transition-delay: 0.4s; }

.service-grid.active .service-item {
    opacity: 1;
    transform: translateY(0);
}

.service-item-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-item-image img {
    transform: scale(1.1);
}

.service-item-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.service-item-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-item-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

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

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

.service-features-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--dark-border);
    color: var(--text-secondary);
}

.service-features-list li:last-child {
    border-bottom: none;
}

.service-features-list li i {
    color: var(--primary);
    margin-right: 10px;
}

.service-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--dark-border);
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
}

.service-price {
    font-weight: 700;
    color: var(--white);
    font-size: 1.2rem;
}

.service-price span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.service-order-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background-color: var(--primary);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.service-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(79, 109, 245, 0.3);
}

.service-btn-phone {
    background-color: var(--primary);
}

.service-btn-online {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.service-btn-online:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.service-order-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-order-note i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Service Detail Sections */
.service-detail {
    padding: 80px 0;
    background-color: var(--dark);
    margin-top: 30px; /* Увеличаваме разстоянието между секциите */
}

.section-divider {
    /* height: 1px; */
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    margin: 20px auto;
    max-width: 80%;
    opacity: 0.5;
}

.service-detail:nth-child(even) {
    background-color: var(--dark-surface);
}

.service-detail-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.service-detail-container.reverse {
    flex-direction: row-reverse;
}

.service-detail-image {
    flex: 1;
    position: relative;
}

.service-detail-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-detail-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 12px;
    top: 20px;
    left: 20px;
    z-index: -1;
}

.service-detail-content {
    flex: 1;
}

.service-detail-badge {
    display: inline-block;
    background-color: rgba(79, 109, 245, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-detail-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.service-detail-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.service-detail-features {
    margin: 40px 0;
}

.service-detail-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-detail-feature.animated {
    opacity: 1;
    transform: translateX(0);
}

.service-detail-feature:nth-child(1) { transition-delay: 0.1s; }
.service-detail-feature:nth-child(2) { transition-delay: 0.2s; }
.service-detail-feature:nth-child(3) { transition-delay: 0.3s; }
.service-detail-feature:nth-child(4) { transition-delay: 0.4s; }

.service-detail-feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(79, 109, 245, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.service-detail-feature-icon i {
    color: var(--primary);
    font-size: 1.3rem;
}

.service-detail-feature-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--white);
}

.service-detail-feature-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 1rem;
}

.service-detail-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-service-primary {
    background-color: var(--white);
    color: var(--dark);
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
    vertical-align: middle;
    gap: 8px;
}

.btn-service-primary i {
    margin-right: 0;
}

.btn-service-primary:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--dark);
}

.btn-service-outline {
    background-color: transparent;
    color: var(--white);
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    line-height: 1.5;
    vertical-align: middle;
    gap: 8px;
}

.btn-service-outline i {
    margin-right: 0;
}

.btn-service-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--white);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--dark);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--dark-card);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid var(--dark-border);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--white);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact CTA Section */
.contact-cta {
    padding: 100px 0;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-dots.svg');
    opacity: 0.1;
}

.contact-cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-cta p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

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

/* Section Headers */
.text-center h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.text-center h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

.text-center .lead {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .service-detail-container {
        flex-direction: column;
    }
    
    .service-detail-container.reverse {
        flex-direction: column;
    }
    
    .services-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .services-hero h1 {
        font-size: 2.2rem;
    }
    
    .service-detail-image::before {
        display: none;
    }
    
    .service-detail {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .category-tab {
        padding: 10px 20px;
        margin: 0 5px 10px;
    }
    
    .service-detail-buttons {
        flex-direction: column;
    }
    
    .services-hero {
        padding: 80px 0 50px;
    }
}