/**
 * DigitalDuniya - Services CSS
 * Styles for services listing and service detail pages
 */

/* =====================================================
   SERVICES PAGE HEADER
   ===================================================== */
.services-header {
    background: var(--gradient-primary);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

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

.services-header-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin: 24px 0 16px;
    line-height: 1.2;
}

.services-header-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* =====================================================
   SERVICES GRID
   ===================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-2xl);
    border: 2px solid var(--gray-100);
    transition: all var(--transition-base);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-200);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.4);
}

.service-icon i {
    font-size: 36px;
    color: white;
}

.service-featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: var(--gradient-accent);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.service-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 24px;
}

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

.service-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray-700);
}

.service-features-list i {
    color: var(--accent-green);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.service-features-list .feature-more {
    color: var(--primary-600);
    font-weight: 600;
}

.service-features-list .feature-more i {
    color: var(--primary-600);
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gray-900);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.service-btn:hover {
    background: var(--primary-600);
    gap: 12px;
}

/* =====================================================
   NO SERVICES
   ===================================================== */
.no-services {
    text-align: center;
    padding: 80px 20px;
}

.no-services i {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 24px;
}

.no-services h3 {
    font-size: 24px;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.no-services p {
    color: var(--gray-600);
}

/* =====================================================
   WHY CHOOSE SECTION
   ===================================================== */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.why-choose-card {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-100);
    transition: all var(--transition-base);
}

.why-choose-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
}

.why-choose-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.why-choose-icon i {
    font-size: 28px;
    color: white;
}

.why-choose-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.why-choose-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
    margin: 0;
}

/* =====================================================
   PROCESS TIMELINE
   ===================================================== */
.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.process-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 39px;
    top: 80px;
    width: 2px;
    height: calc(100% + 32px);
    background: var(--gradient-primary);
}

.process-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
    position: relative;
    z-index: 2;
}

.process-content {
    flex: 1;
    padding: 12px 0;
}

.process-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.process-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-600);
    margin: 0;
}

/* =====================================================
   SERVICE DETAIL PAGE
   ===================================================== */
.service-detail-header {
    background: var(--gradient-primary);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

.service-detail-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.service-detail-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-detail-icon i {
    font-size: 48px;
    color: white;
}

.service-detail-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin: 24px 0 16px;
    line-height: 1.2;
}

.service-detail-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* =====================================================
   SERVICE DETAIL LAYOUT
   ===================================================== */
.service-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 48px;
    align-items: start;
}

.service-detail-main {
    min-width: 0;
}

.service-detail-image {
    margin-bottom: 48px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.service-detail-image img {
    width: 100%;
    height: auto;
}

.service-detail-content h2,
.service-features-section h2,
.service-benefits-section h2,
.service-tech-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.service-description-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 48px;
}

/* =====================================================
   FEATURES GRID
   ===================================================== */
.service-features-section {
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.feature-item:hover {
    background: white;
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 20px;
    color: var(--accent-green);
}

.feature-text {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.5;
}

/* =====================================================
   BENEFITS SECTION
   ===================================================== */
.service-benefits-section {
    margin-bottom: 48px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.benefit-card {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.benefit-icon i {
    font-size: 28px;
    color: white;
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
    margin: 0;
}

/* =====================================================
   TECH TAGS
   ===================================================== */
.service-tech-section {
    margin-bottom: 48px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    background: var(--primary-50);
    border-color: var(--primary-500);
    color: var(--primary-700);
}

/* =====================================================
   SERVICE SIDEBAR
   ===================================================== */
.service-detail-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-sidebar-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.service-contact-card {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.sidebar-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    backdrop-filter: blur(10px);
}

.sidebar-card-icon i {
    font-size: 28px;
    color: white;
}

.service-contact-card h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-contact-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 24px;
}

.service-sidebar-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

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

.service-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-700);
}

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

.service-highlights i {
    color: var(--primary-600);
    font-size: 16px;
}

.service-help-card {
    background: var(--gray-50);
}

.help-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: var(--radius-lg);
    font-size: 14px;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.help-link:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.help-link i {
    color: var(--primary-600);
}

/* =====================================================
   OTHER SERVICES
   ===================================================== */
.other-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.other-service-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-100);
    text-align: center;
    transition: all var(--transition-base);
}

.other-service-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
}

.other-service-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.other-service-icon i {
    font-size: 28px;
    color: white;
}

.other-service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.other-service-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.other-service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-600);
    font-weight: 600;
    font-size: 14px;
    transition: gap var(--transition-fast);
}

.other-service-link:hover {
    gap: 10px;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .service-detail-sidebar {
        position: static;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        display: grid;
    }
}

@media (max-width: 768px) {
    .services-header,
    .service-detail-header {
        padding: 100px 0 60px;
    }

    .services-header-title,
    .service-detail-title {
        font-size: 36px;
    }

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

    .why-choose-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .process-step {
        flex-direction: column;
        gap: 16px;
    }

    .process-step::after {
        left: 39px;
        top: 80px;
    }

    .benefits-grid,
    .other-services-grid {
        grid-template-columns: 1fr;
    }

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