/* Service Hero Section - Fixed Button Issue */
.service-hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    height: 80vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
    color: #fff;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.3);
}

.service-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.service-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-buttons {
    position: relative;
    margin-top: 2rem;
    z-index: 4; 
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
    pointer-events: none;
}

.btn-white {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

@media (max-width: 991px) {
    .service-hero {
        height: 70vh;
        min-height: 600px;
    }
}

@media (max-width: 767px) {
    .service-hero {
        height: 60vh;
        min-height: 500px;
    }
    
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
}

/* Quick Info Section */
.quick-info {
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.info-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.info-card:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-light);
    transition: var(--transition);
    z-index: -1;
}

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

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 2rem;
    border-radius: 22px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.info-card:hover .info-icon {
    background-color: #fff;
    transform: rotateY(360deg);
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.info-card p {
    margin-bottom: 0;
    opacity: 0.8;
}

/* Service Overview */

.service-badge-floating {
    position: absolute;
    bottom: 30px;
    right: -15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 86, 179, 0.3);
}

.key-features h4 {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.key-features h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.feature-list {
    padding-left: 1.5rem;
}

.feature-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 8px;
    list-style-type: none
}

.feature-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -1.5rem;
    top: 4px;
    color: var(--primary-color);
}

/* Benefits Cards */
.benefit-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 35px 30px;
    height: 100%;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.benefit-card:after {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.benefit-card:hover:after {
    bottom: 0;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 1.5rem;
    border-radius: 18px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotate(10deg);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.benefit-card p {
    margin-bottom: 0;
    opacity: 0.8;
}

/* Implementation Process */
.implementation-process {
    position: relative;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 4px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: var(--transition);
    
    box-shadow: 0 0 0 5px var(--primary-light);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.2);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 25px;
    background-color: #fff;
    border-radius: var(--border-radius-md);
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.timeline-item:nth-child(odd) .timeline-content {
    border-radius: 15px 15px 0 15px;
}

.timeline-item:nth-child(even) .timeline-content {
    border-radius: 15px 15px 15px 0;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.timeline-item:hover .timeline-icon {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotate(10deg);
}

.timeline-item:nth-child(odd) .timeline-icon {
    margin-left: auto;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-content p {
    margin-bottom: 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

@media (max-width: 991px) {
    .timeline-container::after {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-icon {
        margin-left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        border-radius: 15px;
    }
}

/* Industries Section */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.industry-card {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
    color: #fff;
}

.industry-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 1.5rem;
    border-radius: 18px;
    margin: 0 auto 15px;
    transition: var(--transition);
}

.industry-card:hover .industry-icon {
    background-color: #fff;
}

.industry-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.industry-card:hover h4 {
    color: #fff;
}

@media (max-width: 767px) {
    .industry-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .industry-card {
        padding: 20px 15px;
    }
    
    .industry-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.3rem;
    }
    
    .industry-card h4 {
        font-size: 0.95rem;
    }
}

/* FAQ Section */
.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-md) !important;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    background-color: #fff;
    box-shadow: none;
    border-radius: var(--border-radius-md) !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #fff;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 86, 179, 0.1);
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230056b3'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: var(--transition);
}

.faq-accordion .accordion-body {
    padding: 0 25px 20px;
}

.faq-accordion .accordion-body p {
    margin-bottom: 0;
}

/* Previous Work Section */
.previous-work {
    background-color: #fff;
}

.project-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.project-meta span {
    margin-right: 20px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.project-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.project-content p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.project-results {
    display: flex;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.result-item {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.result-item:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.result-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 767px) {
    .project-meta {
        flex-direction: column;
    }
    
    .project-meta span {
        margin-right: 0;
    }
    
    .project-results {
        flex-direction: column;
    }
    
    .result-item {
        padding: 10px 0;
    }
    
    .result-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

/* CTA Section */
.cta-section {
    background-color: #f8f9fa;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 50px;
    border-radius: var(--border-radius-lg);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.2);
}

.cta-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/pattern-light.png');
    opacity: 0.05;
    z-index: 0;
}

.cta-box * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    color: #fff;
    font-size: 2rem;
}

.cta-box p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Related Services */
.related-service-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.related-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-img {
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.related-service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
    text-align: center;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-content p {
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .cta-box {
        padding: 30px;
    }
    
    .cta-box h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-badge-floating {
        position: static;
        display: inline-block;
        margin-bottom: 20px;
    }
    
    .case-study-results {
        flex-direction: column;
    }
    
    .result-item {
        padding: 10px 0;
    }
    
    .result-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

.dropdown-item.active {
    border-radius: var(--border-radius-md);
    background-color: var(--primary-color);
    color: #fff;
}