﻿/* Modern Services Page - KodLegal Design System */

/* Page Header - Enhanced */
.page-header {
    background: linear-gradient(135deg, var(--kodlegal-bg-light) 0%, var(--kodlegal-bg-gray) 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.02) 0%, rgba(46, 16, 101, 0.05) 100%);
    pointer-events: none;
}

.page-header h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 3.5rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-header h1:hover::after {
    width: 120px;
}

/* Service Card Enhancement */
.service-card:hover .service-image img,
.service-card:active .service-image img {
    transform: scale(1.05);
}

.service-card:hover .service-icon,
.service-card:active .service-icon {
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    color: white;
    transform: scale(1.1);
}

/* Services Container - Modern Background */
.services-container {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--kodlegal-bg-lighter) 0%, var(--kodlegal-bg-medium) 100%);
    min-height: 70vh;
    position: relative;
}

.services-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="services-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(%23services-grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Services Introduction - Enhanced */
.services-intro {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.services-intro h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.services-intro h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--kodlegal-primary);
    opacity: 0.7;
}

.services-intro p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: var(--kodlegal-gray);
    max-width: 700px;
    margin: 2rem auto 0;
    line-height: 1.6;
    opacity: 0.9;
}

/* Services Grid - Modern Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Service Cards - Glassmorphism Design */
.service-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;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    max-width: 450px; /* Kartların maksimum genişliği */
    display: flex;
    flex-direction: column;
}

.service-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;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(46, 16, 101, 0.02) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Card hover efektinde background değişmemeli - sadece subtle gradient overlay */
.service-card:hover::after {
    opacity: 0; /* Mavi/mor background yerine opacity 0 yapıldı */
}

.service-card:hover,
.service-card:active {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 16, 101, 0.12);
    border-color: rgba(46, 16, 101, 0.2);
}

.service-card h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover h3,
.service-card:active h3 {
    color: var(--kodlegal-primary);
}

.service-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--kodlegal-gray);
    line-height: 1.6;
    margin-bottom: auto;
    opacity: 0.9;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.service-card:hover p,
.service-card:active p {
    opacity: 1;
}

.service-card .service-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--kodlegal-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    padding: 0.5rem 1rem;
    border: 1px solid var(--kodlegal-primary);
    border-radius: 25px;
    background: transparent;
}

.service-card .service-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--kodlegal-primary);
    border-radius: 25px;
    transition: width 0.3s ease;
    z-index: -1;
}

.service-card .service-link::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.service-card .service-link:hover::before {
    width: 100%;
}

.service-card .service-link:hover::after {
    transform: translateX(3px);
}

.service-card .service-link:hover,
.service-card .service-link:active {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* CTA Section - Modern Design */
.cta-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(15px);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(46, 16, 101, 0.03) 50%, transparent 100%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.cta-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--kodlegal-primary);
    opacity: 0.7;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-section h2:hover::after {
    width: 100px;
}

.cta-section p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: var(--kodlegal-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(46, 16, 101, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover::after {
    transform: translateX(3px);
}

.cta-button:hover,
.cta-button:active {
    color: white;
    text-decoration: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 35px rgba(46, 16, 101, 0.3);
}

/* Pagination - Modern Style */
.pagination {
    margin-top: 3rem;
}

.page-link {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--kodlegal-primary);
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link:active {
    background: var(--kodlegal-primary);
    color: white;
    border-color: var(--kodlegal-primary);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-color: var(--kodlegal-primary);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2.8rem;
    }
    
    .services-container {
        padding: 3rem 0;
    }
    
    .services-intro h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .services-intro h2 {
        font-size: 1.8rem;
    }
    
    .services-intro p {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

