/* Services Page Styles */
@import url('style.css');

/* Hero adjustment for Services Page */
.page-header {
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.7)), url('images/service_checkup.png');
    background-size: cover;
    background-position: center 30%;
    /* Focus on the stethoscope */
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 4px solid var(--secondary-color);
}

.page-header::after {
    content: 'Unsere Leistungen';
    color: white;
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Content Section */
.services-content {
    background-color: var(--light-color);
    padding: 80px 0 120px;
    position: relative;
}

/* Services Filter */
.services-filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 70px;
    margin-top: -30px;
    /* Overlap slightly */
}

.services-filter {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 60px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    gap: 15px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(10px);
}

.filter-btn {
    padding: 14px 35px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #1e293b);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.filter-btn.active,
.filter-btn:hover {
    color: #fff;
    /* White text on active/hover */
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.filter-btn.active::before,
.filter-btn:hover::before {
    opacity: 1;
}


/* Services Grid Premium Redesign */
.services-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
}

.service-item {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    /* ensure card takes full height */
}

/* Hover state for the card */
.service-item:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(212, 175, 55, 0.2);
    /* Subtle Gold Border */
}

.service-img-container {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-item:hover .service-img-container img {
    transform: scale(1.12);
}

/* Gradient overlay on image */
.service-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(15, 23, 42, 0.7));
    opacity: 0.8;
}

.service-overlay-icon {
    position: absolute;
    bottom: -20px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-item:hover .service-overlay-icon {
    transform: translateY(-5px) scale(1.05);
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 210, 211, 0.4);
    border-color: transparent;
}

.service-content {
    padding: 45px 35px 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 12px;
}

.service-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.service-desc {
    color: var(--text-color);
    margin-bottom: 25px;
    flex: 1;
    line-height: 1.7;
    font-size: 1rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    align-self: flex-start;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.service-link i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.service-link:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.service-link:hover i {
    transform: translateX(6px);
}

/* Service Detail Modal */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Darker backdrop */
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.service-modal-content {
    background: white;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 30px;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

.service-modal.active .service-modal-content {
    transform: scale(1) translateY(0);
}

/* Hide scrollbar within modal content */
.service-modal-content::-webkit-scrollbar {
    width: 8px;
}

.service-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.service-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.service-modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


.modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.modal-img-col {
    position: relative;
    height: 100%;
    min-height: 350px;
}

.modal-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay on modal image for text contrast if needed */
.modal-img-col::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.modal-text-col {
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-category {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: inline-block;
    background: rgba(0, 210, 211, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    align-self: flex-start;
}

.modal-title {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
}

.modal-description {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 35px;
    line-height: 1.8;
}

.modal-features-list {
    list-style: none;
    margin-bottom: 45px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.modal-features-list li {
    padding-left: 35px;
    position: relative;
    font-weight: 500;
    color: var(--primary-color);
}

.modal-features-list li::before {
    content: '\f058';
    /* Check circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Responsive */
@media screen and (max-width: 960px) {
    .service-modal-content {
        grid-template-columns: 1fr;
        max-width: 650px;
        max-height: 95vh;
        border-radius: 24px;
    }

    .modal-img-col {
        height: 300px;
        min-height: auto;
    }

    .modal-text-col {
        padding: 40px 30px;
    }

    .modal-title {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 600px) {
    .services-grid-premium {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .services-filter {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 30px;
    }
}