/* Service Pages - Shared Styles */

/* Hero Section with Background Image */
.service-hero {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 92, 178, 0.9) 0%, rgba(13, 59, 102, 0.92) 50%, rgba(26, 26, 46, 0.95) 100%);
    z-index: 1;
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

.service-hero h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 2.5rem;
}

.service-hero .lead {
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.service-hero .hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-hero .hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.service-hero .hero-feature i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.service-hero .btn-hero {
    background: white;
    color: #005cb2;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.service-hero .btn-hero:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Project Notice Banner */
.project-notice {
    background: linear-gradient(135deg, #005cb2, #0077cc);
    padding: 1.25rem 0;
    color: white;
}

.project-notice .notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.project-notice i {
    font-size: 1.5rem;
}

.project-notice h5 {
    margin: 0;
    font-weight: 600;
}

.project-notice p {
    margin: 0;
    opacity: 0.95;
}

.project-notice a {
    color: white;
    text-decoration: underline;
}

/* Section Headers */
.service-section {
    padding: 4rem 0;
}

.service-section.bg-light {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .badge-label {
    display: inline-block;
    background: rgba(0, 92, 178, 0.1);
    color: #005cb2;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: #6c757d;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 92, 178, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 92, 178, 0.12);
    border-color: rgba(0, 92, 178, 0.2);
}

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 92, 178, 0.1), rgba(0, 119, 204, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-card-icon i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #005cb2, #0077cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card:hover .service-card-icon {
    background: linear-gradient(135deg, #005cb2, #0077cc);
}

.service-card:hover .service-card-icon i {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.service-card .feature-list li {
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: #495057;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.service-card .feature-list li i {
    color: #28a745;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.service-card .tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.service-card .tech-badge {
    background: rgba(0, 92, 178, 0.08);
    color: #005cb2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Feature Grid Cards */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #005cb2, #0077cc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-card-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Benefits Section */
.benefits-section {
    background: linear-gradient(135deg, #005cb2 0%, #0d3b66 100%);
    padding: 4rem 0;
    color: white;
}

.benefits-section h2 {
    color: white;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.25rem;
    color: white;
}

.benefit-content h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.benefit-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* CTA Section */
.service-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #0d3b66 50%, #005cb2 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.service-cta .container {
    position: relative;
    z-index: 1;
}

.service-cta h2 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary-cta {
    background: white;
    color: #005cb2;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-buttons .btn-primary-cta:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.cta-buttons .btn-outline-cta {
    background: transparent;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-buttons .btn-outline-cta:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 991px) {
    .service-hero {
        min-height: 400px;
        padding: 4rem 0;
    }
    
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .service-hero .lead {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .service-hero {
        min-height: 350px;
        padding: 3rem 0;
    }
    
    .service-hero h1 {
        font-size: 1.75rem;
    }
    
    .service-hero .hero-features {
        gap: 1rem;
    }
    
    .service-section {
        padding: 3rem 0;
    }
    
    .project-notice .notice-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary-cta,
    .cta-buttons .btn-outline-cta {
        width: 100%;
        max-width: 280px;
    }
}

/* Dark Mode */
[data-bs-theme="dark"] .service-card,
[data-bs-theme="dark"] .feature-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .service-card h4,
[data-bs-theme="dark"] .feature-card h5,
[data-bs-theme="dark"] .section-header h2 {
    color: var(--bs-gray-100);
}

[data-bs-theme="dark"] .service-card p,
[data-bs-theme="dark"] .feature-card p,
[data-bs-theme="dark"] .section-header p,
[data-bs-theme="dark"] .service-card .feature-list li {
    color: var(--bs-gray-400);
}

[data-bs-theme="dark"] .service-section.bg-light {
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--bs-body-bg) 100%);
}

/* ============================================
   IMAGE-BACKED CARDS WITH TEXT OVERLAY
   ============================================ */

/* Service Card with Background Image */
.service-card-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-card-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 92, 178, 0.2);
}

.service-card-image .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.4s ease;
}

.service-card-image:hover .card-bg {
    transform: scale(1.05);
}

.service-card-image .card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.service-card-image .card-content h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card-image .card-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.service-card-image .card-content .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.service-card-image .card-content .feature-list li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card-image .card-content .feature-list li i {
    color: #28a745;
    flex-shrink: 0;
}

.service-card-image .card-content .tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.service-card-image .card-content .tech-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Feature Card with Background Image */
.feature-card-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.feature-card-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card-image .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.3s ease;
}

.feature-card-image:hover .card-bg {
    transform: scale(1.08);
}

.feature-card-image .card-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
}

.feature-card-image .card-content h5 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.feature-card-image .card-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.feature-card-image .card-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 92, 178, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.feature-card-image .card-icon i {
    color: white;
    font-size: 1rem;
}

/* Service Overview Cards (Larger) */
.overview-card-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.overview-card-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 92, 178, 0.2);
}

.overview-card-image .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.5s ease;
}

.overview-card-image:hover .card-bg {
    transform: scale(1.05);
}

.overview-card-image .card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.overview-card-image .card-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.overview-card-image .card-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.overview-card-image .card-content .btn-card {
    display: inline-block;
    background: white;
    color: #005cb2;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.overview-card-image .card-content .btn-card:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.overview-card-image .card-content .service-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.overview-card-image .card-content .service-links li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    transition: color 0.2s ease;
}

.overview-card-image .card-content .service-links li a:hover {
    color: white;
}

.overview-card-image .card-content .service-links li a i {
    color: #28a745;
}

/* Why Choose Cards with Image */
.why-card-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 180px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.why-card-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.why-card-image .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.3s ease;
}

.why-card-image:hover .card-bg {
    transform: scale(1.05);
}

.why-card-image .card-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
}

.why-card-image .card-content h5 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.why-card-image .card-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Responsive Adjustments for Image Cards */
@media (max-width: 991px) {
    .service-card-image {
        min-height: 280px;
    }
    
    .overview-card-image {
        min-height: 350px;
    }
    
    .overview-card-image .card-content .service-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .service-card-image {
        min-height: 250px;
    }
    
    .feature-card-image {
        min-height: 180px;
    }
    
    .overview-card-image {
        min-height: 300px;
    }
    
    .overview-card-image .card-content h3 {
        font-size: 1.25rem;
    }
}
