/* --- SERVICES SECTION (Alternating Overlap Layout) --- */
.section-services {
    background-color: var(--bg-main);
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-services .section-header {
    margin-bottom: 5rem;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 8rem; /* Large gap between rows for breathing room */
    max-width: var(--container-max);
    margin: 0 auto;
}

.service-showcase {
    display: grid;
    /* 12-column grid system for precise overlapping */
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
}

/* Image styling */
.s-visual {
    /* Image takes up 7 columns on the left */
    grid-column: 1 / 8;
    grid-row: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.s-visual img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.service-showcase:hover .s-visual img {
    transform: scale(1.03);
}

/* Glassmorphism Content Card styling */
.s-content.glass-card {
    /* Card overlaps the image by 1 column, stretches to the right */
    grid-column: 7 / 13;
    grid-row: 1;
    z-index: 2;
    
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.8);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.s-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.s-content h3 {
    color: var(--bg-dark);
    margin-bottom: 1rem;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.s-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.s-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.5rem;
}

.s-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bg-dark);
}

.s-features li svg {
    color: var(--accent);
}

/* Reversing the layout for alternating rows */
.service-showcase.reverse .s-visual {
    /* Image takes up 7 columns on the right */
    grid-column: 6 / 13;
}

.service-showcase.reverse .s-content.glass-card {
    /* Card overlaps the image by 1 column, stretches to the left */
    grid-column: 1 / 7;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .services-container {
        gap: 5rem;
    }
    
    .s-content.glass-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .service-showcase,
    .service-showcase.reverse {
        display: flex;
        flex-direction: column;
    }
    
    .s-visual,
    .service-showcase.reverse .s-visual {
        width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .s-visual img {
        height: 300px;
    }
    
    .s-content.glass-card,
    .service-showcase.reverse .s-content.glass-card {
        width: 90%;
        margin: -4rem auto 0; /* Pulls the card up over the image slightly on mobile */
        padding: 2rem;
        border-radius: var(--radius-md);
    }
}