/* HEADER & GENERAL */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.service-detail {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
    animation: fadeIn 0.8s ease-out;
}

.service-detail h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

/* SERVICES FILTER */
.services-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
}

.filter-btn svg {
    color: #94a3b8;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.filter-btn:hover {
    color: var(--primary-color);
}

.filter-btn:hover svg {
    color: var(--primary-color);
}

.filter-btn span {
    display: inline-block;
}

.filter-btn.active {
    background: transparent;
    border-bottom-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: none;
    transform: none;
}

.filter-btn.active svg {
    color: var(--secondary-color);
}

.filter-btn.active::after {
    display: none;
}

.filter-count {
    background: rgba(44, 82, 130, 0.1);
    color: #64748b;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.filter-btn.active .filter-count {
    background: var(--secondary-color);
    color: #fff;
}

/* INTRO SECTION */
.intro-section {
    max-width: 1200px;
    margin: -2rem auto 3rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.8s ease-out;
}

.intro-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 252, 0.95) 100%);
    padding: 2.5rem 3rem;
    border-radius: 16px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.intro-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.intro-content p {
    color: #4a5568;
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

.intro-content p strong {
    color: var(--primary-color);
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SERVICES GRID & CARDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    opacity: 1;
    transform: scale(1);
}

.service-card.hidden {
    display: none !important;
}

.service-card.filtering {
    opacity: 0;
    transform: scale(0.95);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

/* SERVICE CARD HEADER */
.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.service-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--border-color);
    line-height: 1;
    font-family: inherit;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 0;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.1) 0%, rgba(255, 140, 66, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.service-icon svg {
    color: var(--primary-color);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.service-card:hover .service-icon svg {
    color: #fff;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.card-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 20px;
}

.stat-item svg {
    color: var(--secondary-color);
    opacity: 0.8;
    width: 14px;
    height: 14px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.card-link::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.service-card:hover .card-link {
    color: var(--primary-color);
}

.service-card:hover .card-link::after {
    transform: translateX(4px);
}

/* CTA */
.service-detail .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.service-detail .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .page-header {
        padding: 4rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .services-filter {
        padding: 1rem;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

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

    .service-card {
        padding: 1.5rem;
    }

    .service-number {
        font-size: 2.5rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .service-detail h2 {
        font-size: 1.5rem;
    }

    .intro-content {
        padding: 1.5rem;
    }
}
