/*
  ==========================================================================
  ==  SECTION: SERVICES (Vertical Alternating Rows)
  ==========================================================================
*/

.lg-services-section {
    width: 100%;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 1.5rem;
    box-sizing: border-box;
    background-color: #000000;
    color: var(--color-light, #fff);
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow: hidden;
    --lg-font-body: 'Inter', sans-serif;
    --lg-font-heading: 'Space Grotesk', sans-serif;
    font-family: var(--lg-font-body);
}

@media (max-width: 991.98px) {
    .lg-services-section {
        padding: 4rem 1rem !important;
        min-height: auto;
    }
}

/* --- HEADER --- */
.lg-services-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
    z-index: 30;
}

.lg-services-header__title {
    font-family: var(--lg-font-heading) !important;
    font-size: clamp(3rem, 7vw, 5.5rem) !important;
    font-weight: 400 !important;
    letter-spacing: -0.04em !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
    margin: 0 !important;
}

.lg-services-row-title,
.lg-services-card__badge-text,
.lg-services-cta-btn {
    font-family: var(--lg-font-heading);
}

.lg-services-header__title-highlight {
    background: linear-gradient(to right, #ffffff, var(--color-primary, #c0ff00));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;                /* 'SERVICES' — bold */
}

.lg-services-header__description {
    max-width: 700px;
    margin-top: 1.25rem;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-weight: 300;
}

/* --- MAIN CONTAINER --- */
.lg-services-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

.lg-services-rows-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    width: 100%;
}

/* --- THE ROW SYSTEM --- */
.lg-services-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

@media (min-width: 992px) {
    .lg-services-row {
        flex-direction: row;
        justify-content: space-between;
        gap: 5rem;
    }
    
    .lg-services-row:nth-child(even) {
        flex-direction: row-reverse;
    }
}

/* --- SLIDER OUTER WRAPPER --- */
.lg-services-slider-outer {
    position: relative;
    width: 100%;
}

@media (min-width: 992px) {
    .lg-services-slider-outer {
        width: 50%;
        max-width: 550px;
    }
}

/* --- TWENTYTWENTY SLIDER WRAPPER --- */
.lg-services-slider-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    aspect-ratio: 1 / 1;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.lg-services-slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- TWENTYTWENTY HANDLE MASK & STYLING --- */
.twentytwenty-handle { 
    border-color: var(--color-primary, #c0ff00) !important; 
    background-color: rgba(0, 0, 0, 0.4) !important; 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(192, 255, 0, 0.3) !important; 
    z-index: 40 !important; /* Manerul e cel mai sus */
}
.twentytwenty-left-arrow { border-right-color: var(--color-primary, #c0ff00) !important; }
.twentytwenty-right-arrow { border-left-color: var(--color-primary, #c0ff00) !important; }

/* --- TEXT CONTENT WRAPPER --- */
.lg-services-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

@media (min-width: 992px) {
    .lg-services-content-wrapper {
        width: 45%;
    }
}

.lg-services-card__badge {
    position: relative;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(192, 255, 0, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(192, 255, 0, 0.14);
}

.lg-services-card__badge-indicator {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background-color: var(--color-primary, #c0ff00);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  50% { opacity: .5; }
}

.lg-services-card__badge-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-light, #fff);
    text-transform: uppercase;
}

.lg-services-row-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #fff;
}

.lg-services-row-desc {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* --- CTA BUTTON --- */
.lg-services-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: #000;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.lg-services-section .lg-services-cta-btn:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

/* --- EFFECTS & MODIFIERS --- */
.lg-services-img--blurred { filter: blur(12px) brightness(0.4); } 
.lg-services-img--glow { filter: drop-shadow(0 0 20px rgba(192, 255, 0, 0.2)); }
.lg-services-img--enhanced { filter: contrast(1.25) saturate(1.1); }
.lg-services-img--faded { opacity: 0.8; }
.lg-services-img--faded-slight { opacity: 0.9; }
.lg-services-img--vectorized { filter: saturate(1.8) posterize(4) contrast(1.1); }

/* --- GLASSMORPHISM --- */
.lg-services-glass-panel {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- ANIMATIONS --- */
.lg-services-gs-reveal, .lg-services-gs-card { opacity: 0; }

/* --- OVERLAY PROMPT FOR LOGO GEN --- */
.lg-services-slider-prompt-wrapper {
    position: absolute;
    inset: 0px; 
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 2rem;
    z-index: 30; /* Peste imaginea din spate (20), sub maner (40) */
    pointer-events: none; 
    will-change: clip;
    transform: translateZ(0); /* Forțează GPU-ul */
}

.lg-services-card__prompt-text {
    position: relative;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    letter-spacing: -0.01em;
    max-width: 80%; 
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lg-services-card__prompt-highlight {
    color: var(--color-primary, #c0ff00);
    font-weight: 700;
}

/* Custom Before/After Badges */
.lg-custom-badge {
    position: absolute;
    top: 20px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 50; /* Above twentytwenty layers */
    pointer-events: none; /* Important to keep slider dragging smooth */
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.twentytwenty-container:hover .lg-custom-badge {
    opacity: 1 !important;
}

.lg-custom-badge--before { left: 20px; }
.lg-custom-badge--after { right: 20px; }

/* ====================================================
   PERFECT MOBILE RESPONSIVENESS FOR SERVICES BLOCK
   ==================================================== */

@media (max-width: 991.98px) {
    .lg-services-row {
        align-items: flex-start;
    }

    .lg-services-content-wrapper {
        align-items: flex-start;
    }

    .lg-services-cta-btn {
        width: auto;
        max-width: min(100%, 280px);
        align-self: flex-start;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .lg-services-section {
        padding: 2.5rem 1rem !important; /* Mai puțin padding sus/jos */
    }
    
    .lg-services-rows-container {
        gap: 2rem; /* Spațiu mult mai mic între carduri (înainte era 4rem) */
    }
    
    .lg-services-row {
        gap: 1.2rem; /* Spațiu redus între imaginea slider și text */
    }
    
    /* Ascundem descrierea pentru a salva spațiu vizual */
    .lg-services-row-desc {
        display: none !important; 
    }
    
    .lg-services-row-title {
        font-size: 1.5rem; /* Titlu ușor mai mic */
        margin-bottom: 1rem;
    }
    
    .lg-services-header__title {
        font-size: 2.8rem !important;
    }
    
    .lg-services-header__description {
        font-size: 0.9rem;
        margin-top: 0.8rem;
    }
    
    .lg-services-card__badge {
        padding: 0.3rem 0.6rem;
        margin-bottom: 0.5rem; /* Mai aproape de titlu */
    }
    
    .lg-services-card__badge-text {
        font-size: 10px;
    }
    
    .lg-services-cta-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        width: auto;
        max-width: min(100%, 220px);
        justify-content: flex-start;
        align-self: flex-start;
    }
}
