/* frontend/css/details.css */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #2ecc71;
    --warning: #f39c12;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
    line-height: 1.7;
}
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    background-color: var(--primary);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.page-header .lead {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Service Details Section */
.service-detail-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff 0%, var(--light-gray) 100%);
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.service-content {
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.8;
}

.service-content h2, 
.service-content h3, 
.service-content h4 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-content p {
    margin-bottom: 1.5rem;
}

.service-content ul, 
.service-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.service-content li {
    margin-bottom: 0.5rem;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 2rem 0;
}

.tech-badge {
    background: linear-gradient(135deg, var(--secondary) 0%, #2980b9 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Service Detail Cards */
.service-detail-card {
    border: none;
    border-radius: 20px;
    transition: all 0.4s ease;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    background: white;
    border-top: 5px solid var(--secondary);
}

.service-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-detail-card .card-body {
    padding: 3rem;
}

.service-detail-card .card-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-detail-card .card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background: rgba(52, 152, 219, 0.05);
    padding-left: 10px;
    border-radius: 8px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--success);
    margin-right: 15px;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 40px 25px;
    border-radius: 15px;
    transition: all 0.4s ease;
    height: 100%;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.process-step:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.3);
    color: white;
}

.process-step:hover h4,
.process-step:hover p {
    color: white;
}

.process-step:hover .step-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.process-step h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.3rem;
    transition: all 0.4s ease;
}

.process-step p {
    color: var(--gray);
    line-height: 1.7;
    transition: all 0.4s ease;
}

/* Related Services */
.related-services {
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
}

.related-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(52, 152, 219, 0.3) 50%, transparent 100%);
}

.service-card {
    border: none;
    border-radius: 20px;
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    background: white;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-card .card-body {
    padding: 3rem 2rem;
    text-align: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card .card-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card .card-text {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #2980b9 100%);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, var(--secondary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 0;
}

.cta-section .btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
}

.cta-section .btn-light:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-detail-card .card-body {
        padding: 2rem;
    }
    
    .process-step {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .service-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section .btn-light {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .tech-stack {
        justify-content: center;
    }
    
    .service-detail-card .card-body {
        padding: 1.5rem;
    }
}

/* Loading States */
.img-fluid {
    transition: opacity 0.3s ease;
}

.img-fluid.loading {
    opacity: 0.7;
}

/* Badge Styles */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%) !important;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
}

/* Content Styling Enhancements */
.service-content blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 20px;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray);
}

.service-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.service-content table th,
.service-content table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.service-content table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--primary);
}