/* Service Detail Page Styles */
.service-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)), url('servicess.jpg');
    background-size: cover;
    background-position: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    color: white;
    position: relative;
    overflow: hidden;
    animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCI+CjxyZWN0IHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgZmlsbD0idHJhbnNwYXJlbnQiPjwvcmVjdD4KPGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGwtb3BhY2l0eT0iMC4xIiBmaWxsPSIjZjhiNDAwIj48L2NpcmNsZT4KPC9zdmc+');
    opacity: 0.3;
    z-index: 0;
}

.service-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #f8b400, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    animation: slideInUp 0.8s ease-out;
    animation: pulse 3s infinite ease-in-out; /* Added pulse animation */
}

@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.service-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.8s ease-out forwards 0.4s;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.service-content {
    padding: 80px 0;
    background-color: #0a0a0a;
    min-height: 50vh;
    position: relative;
}

.service-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #f8b400, transparent);
}

.service-card {
    background: rgba(25, 25, 30, 0.7);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.6s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.4s; }
.service-card:nth-child(4) { animation-delay: 0.6s; }
.service-card:nth-child(5) { animation-delay: 0.8s; }

@keyframes cardFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, #f8b400, transparent);
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(248, 180, 0, 0.3);
    background: rgba(30, 30, 40, 0.8);
}

.service-card h3 {
    color: #f8b400;
    font-size: 2rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(248, 180, 0, 0.3);
    position: relative;
    display: inline-block;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f8b400;
    transition: width 0.6s ease;
}

.service-card:hover h3::after {
    width: 100%;
}

.service-card p {
    color: #e5e5e5;
    margin-bottom: 18px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.service-card ul {
    padding-left: 5px;
    color: #e5e5e5;
    margin-bottom: 25px;
    list-style-type: none;
}

.service-card li {
    margin-bottom: 14px;
    position: relative;
    padding-left: 30px;
    transition: transform 0.3s ease;
}

.service-card li:hover {
    transform: translateX(5px);
    color: #fff;
}

.service-card li:before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #f8b400;
    position: absolute;
    left: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.service-card li:hover:before {
    opacity: 1;
    transform: scale(1.1);
}

.service-card img {
    width: 100%;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

.service-card img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.service-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 35px 0;
}

.service-image-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.4s ease;
    filter: brightness(0.9);
}

.service-image-grid img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
}

/* Process Steps */
.service-process {
    margin: 50px 0;
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: stepFadeIn 0.5s ease-out forwards;
    transition: all 0.3s ease; /* Added transition for hover effect */
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.3s; }
.process-step:nth-child(3) { animation-delay: 0.5s; }
.process-step:nth-child(4) { animation-delay: 0.7s; }
.process-step:nth-child(5) { animation-delay: 0.9s; }
.process-step:nth-child(6) { animation-delay: 1.1s; }

@keyframes stepFadeIn {
    to { opacity: 1; transform: translateX(0); }
}

.process-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8b400, #e67e22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
    transition: all 0.3s ease;
    color: #fff;
    position: relative;
    z-index: 2;
}

.process-step:hover .process-number {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(230, 126, 34, 0.4);
}

.process-content {
    padding-top: 8px;
    position: relative;
    z-index: 1;
}

.process-content h4 {
    font-size: 1.5rem;
    color: #f8b400;
    margin-bottom: 12px;
    font-weight: 600;
}

.process-step:not(:last-child):after {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    height: calc(100% - 20px);
    width: 3px;
    background: linear-gradient(to bottom, rgba(248, 180, 0, 0.4), rgba(248, 180, 0, 0.1));
    z-index: 0;
}

.process-step:hover {
    background: rgba(30, 30, 40, 0.3);
    border-radius: 10px;
    padding: 10px;
}


/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9), rgba(20, 20, 25, 0.9));
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 70px;
    border: 1px solid rgba(248, 180, 0, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: ctaFadeIn 0.8s ease-out;
}

@keyframes ctaFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCI+CjxyZWN0IHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgZmlsbD0idHJhbnNwYXJlbnQiPjwvcmVjdD4KPGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGwtb3BhY2l0eT0iMC4xIiBmaWxsPSIjZjhiNDAwIj48L2NpcmNsZT4KPC9zdmc+');
    opacity: 0.08;
    z-index: 0;
}

.contact-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(248, 180, 0, 0.2), transparent 70%);
    z-index: 0;
}

.contact-cta h3 {
    color: #f8b400;
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-cta p {
    color: #e5e5e5;
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.8;
}

.cta-button {
    background: linear-gradient(to right, #f8b400, #e67e22);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4);
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(230, 126, 34, 0.5);
    background: linear-gradient(to right, #e67e22, #f8b400);
}

.cta-button:hover::before {
    left: 100%;
}

/* Feature boxes in service cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-box {
    background: rgba(30, 30, 40, 0.6);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #f8b400, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: rgba(35, 35, 45, 0.8);
    border-color: rgba(248, 180, 0, 0.2);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    color: #f8b400;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    color: #ffd700;
}

.feature-box h4 {
    color: #f8b400;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-box p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Interactive accordion style for mobile */
.service-accordion {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-title {
        font-size: 2.2rem;
    }

    .service-hero {
        min-height: 40vh;
        padding: 100px 15px 40px;
    }

    .service-card {
        padding: 25px;
    }

    .service-card h3 {
        font-size: 1.7rem;
    }

    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .process-step:not(:last-child):after {
        left: 25px;
        top: 50px;
    }

    .contact-cta {
        padding: 35px 25px;
    }

    .contact-cta h3 {
        font-size: 1.7rem;
    }

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

    /* Accordion for mobile */
    .service-accordion {
        display: block;
        margin: 30px 0;
    }

    .accordion-item {
        margin-bottom: 15px;
        border-radius: 10px;
        overflow: hidden;
        background: rgba(25, 25, 30, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .accordion-header {
        padding: 15px 20px;
        background: rgba(30, 30, 40, 0.8);
        color: #f8b400;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0 20px;
    }

    .accordion-content.active {
        max-height: 1000px;
        padding: 20px;
    }

    .accordion-icon {
        transition: transform 0.3s ease;
    }

    .accordion-header.active .accordion-icon {
        transform: rotate(180deg);
    }
}

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}