﻿/* Modern Service Detail Page - KodLegal Design System */

/* Page Header - Enhanced */
.page-header {
    background: linear-gradient(135deg, var(--kodlegal-primary) 0%, var(--kodlegal-secondary) 100%);
    padding: 1rem 0 0.5rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="service-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23service-dots)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.service-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.service-icon-large:hover,
.service-icon-large:active {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-header h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.page-header p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Service Container - Modern Background */
.service-container {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--kodlegal-bg-lighter) 0%, var(--kodlegal-bg-medium) 100%);
    min-height: 70vh;
    position: relative;
}

.service-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="service-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="0.5" fill="%23000" opacity="0.02"/><circle cx="80" cy="80" r="0.5" fill="%23000" opacity="0.02"/><circle cx="60" cy="30" r="0.5" fill="%23000" opacity="0.02"/><circle cx="30" cy="70" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23service-grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Service Card - Glassmorphism Design */
.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    z-index: 2;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 25px 25px 0 0;
}

/* Service Content */
.service-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--kodlegal-dark);
    margin-bottom: 3rem;
}

.service-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.service-content h1,
.service-content h2,
.service-content h3,
.service-content h4,
.service-content h5,
.service-content h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: var(--kodlegal-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.service-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--kodlegal-primary);
}

/* Features Section - Enhanced */
.features-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 20px 20px 0 0;
}

.features-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--kodlegal-dark);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--kodlegal-primary);
    transition: all 0.4s ease;
    border-radius: 2px;
}

.features-title:hover::after {
    width: 100px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary), var(--kodlegal-accent));
    height: 3px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    color: var(--kodlegal-dark);
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.05), rgba(46, 16, 101, 0.1));
    transition: width 0.3s ease;
    z-index: -1;
}

.feature-item:hover::before {
    width: 100%;
}

.feature-item:hover,
.feature-item:active {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(46, 16, 101, 0.1);
}

.feature-item i {
    color: var(--kodlegal-primary);
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover i,
.feature-item:active i {
    transform: scale(1.1);
}

/* CTA Section - Enhanced */
.cta-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 20px 20px 0 0;
}

.cta-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1rem;
}

.cta-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--kodlegal-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-btn {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border: none;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(46, 16, 101, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--kodlegal-primary);
    border: 2px solid var(--kodlegal-primary);
    box-shadow: none;
}

.cta-btn::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.6s ease;
}

.cta-btn.secondary::before {
    background: linear-gradient(90deg, transparent, rgba(46, 16, 101, 0.1), transparent);
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover,
.cta-btn:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 16, 101, 0.4);
    text-decoration: none;
    color: white;
}

.cta-btn.secondary:hover,
.cta-btn.secondary:active {
    background: var(--kodlegal-primary);
    color: white;
    border-color: var(--kodlegal-primary);
}

/* Related Services Section */
.related-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

.related-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 2.2rem;
    color: var(--kodlegal-dark);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 2px;
    transition: all 0.4s ease;
}

.related-title:hover::after {
    width: 100px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary), var(--kodlegal-accent));
    height: 4px;
}

/* Related Service Cards */
.related-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.related-card:hover::before {
    transform: scaleX(1);
}

.related-card:hover,
.related-card:active {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 16, 101, 0.12);
    border-color: rgba(46, 16, 101, 0.2);
}

.related-card:hover .related-image img,
.related-card:active .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 50%;
    font-size: 2rem;
    color: var(--kodlegal-primary);
    transition: all 0.3s ease;
}

.related-card:hover .related-icon,
.related-card:active .related-icon {
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    color: white;
    transform: scale(1.1);
}

.related-card h5 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.related-card:hover h5,
.related-card:active h5 {
    color: var(--kodlegal-primary);
}

.related-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--kodlegal-gray);
    line-height: 1.5;
    margin-bottom: auto;
    opacity: 0.9;
    flex-grow: 1;
}

.related-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--kodlegal-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--kodlegal-primary);
    border-radius: 20px;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--kodlegal-primary);
    border-radius: 20px;
    transition: width 0.3s ease;
    z-index: -1;
}

.related-link:hover::before {
    width: 100%;
}

.related-link:hover,
.related-link:active {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 0.8rem 0 0.5rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .service-container {
        padding: 3rem 0;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .features-section {
        padding: 2rem 1.5rem;
    }
    
    .feature-item {
        padding: 0.8rem 1rem;
        margin-bottom: 1rem;
    }
    
    .cta-section {
        padding: 2rem 1.5rem;
    }
    
    .cta-btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        justify-content: center;
    }
    
    .related-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .service-content {
        font-size: 1rem;
    }
    
    .service-icon-large {
        width: 100px;
        height: 100px;
    }
    
    .features-title {
        font-size: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.6rem;
    }
    
    .related-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

