/* ==========================================
   SERVICE DETAIL PAGE STYLES
   Enhanced animations and layouts
   ========================================== */

/* ========== HERO SECTION ========== */
.service-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding: 100px 20px 60px;
    margin-top: 80px;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) blur(2px);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.service-hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 40px;
    animation: slideUp 0.6s ease-out;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.service-header {
    color: white;
    margin-bottom: 50px;
}

.service-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.service-header p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

/* ========== SERVICE SEARCH ========== */
.service-search {
    margin-bottom: 40px;
}

.search-wrapper {
    display: flex;
    gap: 10px;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 5px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: white;
    margin-left: 10px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 12px;
}

.search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 15px;
    padding: 12px 0;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E72 100%);
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    margin-left: 2px;
    color: white;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

/* ========== FEATURES SHOWCASE ========== */
.service-features-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    position: relative;
}

.features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.feature-showcase-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    backdrop-filter: blur(20px);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.feature-showcase-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 107, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.15);
}

.feature-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E72 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin: 0 auto 15px;
    font-size: 18px;
}

.feature-showcase-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.4;
}

.feature-line {
    height: 3px;
    width: 30px;
    background: linear-gradient(90deg, #FF6B6B 0%, #4ECDC4 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
    padding: 80px 20px;
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 40px 25px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    position: relative;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(78, 205, 196, 0.4);
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(78, 205, 196, 0.2);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #4ECDC4 0%, #45B7D1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.step-icon {
    font-size: 48px;
    margin: 15px 0;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

.step-card:nth-child(2) .step-icon {
    animation-delay: 0.3s;
}

.step-card:nth-child(3) .step-icon {
    animation-delay: 0.6s;
}

.step-card:nth-child(4) .step-icon {
    animation-delay: 0.9s;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 10px 0;
}

.step-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ========== LISTINGS SECTION ========== */
.service-listings {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    position: relative;
}

.listings-header {
    margin-bottom: 40px;
}

.listings-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 30px;
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E72 100%);
    border-color: transparent;
    transform: translateY(-2px);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.business-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.business-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 107, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(255, 107, 107, 0.2);
}

.business-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.business-card:hover .business-image img {
    transform: scale(1.05);
}

.rating-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFB84D 0%, #FF9C42 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.business-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.business-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.category {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    flex: 1;
}

.business-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.business-btn {
    background: linear-gradient(135deg, #4ECDC4 0%, #45B7D1 100%);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.business-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
}

/* ========== BENEFITS SECTION ========== */
.benefits-section {
    padding: 80px 20px;
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(45, 183, 209, 0.4);
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 20px 40px rgba(45, 183, 209, 0.15);
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

.benefit-card:nth-child(2) .benefit-icon {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(3) .benefit-icon {
    animation-delay: 0.4s;
}

.benefit-card:nth-child(4) .benefit-icon {
    animation-delay: 0.6s;
}

.benefit-card:nth-child(5) .benefit-icon {
    animation-delay: 0.8s;
}

.benefit-card:nth-child(6) .benefit-icon {
    animation-delay: 1s;
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ========== FAQ SECTION ========== */
.faq-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    position: relative;
}

.faq-grid {
    max-width: 800px;
    margin: 50px auto 0;
    display: grid;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.faq-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(20px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 107, 0.4);
}

.faq-item[open] {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.4);
}

.faq-item summary {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    user-select: none;
}

.faq-item summary::marker {
    color: rgba(255, 107, 107, 0.8);
}

.faq-item summary::-webkit-details-marker {
    color: rgba(255, 107, 107, 0.8);
}

.faq-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
    animation: slideUp 0.3s ease-out;
}

/* ========== CTA SECTION ========== */
.service-cta {
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.cta-content {
    animation: fadeInUp 0.8s ease-out;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

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

.cta-btn {
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E72 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* ========== SCROLL TO TOP ========== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E72 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .service-hero {
        min-height: 500px;
        padding: 80px 15px 40px;
    }

    .service-header h1 {
        font-size: 32px;
    }

    .service-header p {
        font-size: 16px;
    }

    .search-wrapper {
        padding: 6px 10px;
        gap: 6px;
    }

    .search-icon {
        margin-left: 6px;
        padding-right: 8px;
    }

    .search-input {
        padding: 8px 0;
        font-size: 14px;
        min-width: 0;
    }

    .search-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .features-showcase,
    .steps-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }

    .step-card h3,
    .benefit-card h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .service-hero {
        min-height: 400px;
        padding: 70px 15px 30px;
    }

    .service-header h1 {
        font-size: 24px;
    }

    .features-showcase,
    .steps-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .filter-options {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}
