/* ==========================================
   SERVICES SECTION - ULTRA PRO VISUAL CARDS UI (COMPACT & GLASSY)
   ========================================== */

:root {
    --bg-dark-services: #0B121C; /* Blends perfectly with hero section */
    --tech-blue: #2C96EA; 
    --text-white: #F4F5F7;
    --text-muted: #9BA3AE;
    --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    
    /* New Glass Tokens */
    --glass-bg: rgba(14, 22, 35, 0.85); /* Semi-transparent navy */
    --glass-border: rgba(255, 255, 255, 0.06);
}

.services-premium-visual {
    background-color: var(--bg-dark-services);
    padding: 120px 0; /* Slightly tightened from 140px */
    position: relative;
    z-index: 1;
}

/* --- Section Header Architecture --- */
.services-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 70px;
    gap: 50px;
}

.header-left { flex: 1.2; max-width: 650px; }
.header-right { flex: 1; max-width: 500px; padding-bottom: 10px; }

.section-eyebrow {
    display: flex; align-items: center; gap: 15px; margin-bottom: 20px;
}

.eyebrow-line {
    width: 40px; height: 2px;
    background-color: var(--tech-blue); 
    box-shadow: 0 0 10px rgba(44, 150, 234, 0.5);
}

.eyebrow-text {
    font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2.5px;
    color: var(--tech-blue);
}

.section-headline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem); 
    font-weight: 800; line-height: 1.15;
    color: var(--text-white);
    letter-spacing: -1px; margin: 0;
}

.text-accent-blue { color: var(--tech-blue); }

.services-intro {
    font-family: 'Inter', sans-serif; font-size: 1.1rem; color: var(--text-muted);
    line-height: 1.8; margin: 0;
    border-left: 2px solid rgba(44, 150, 234, 0.3);
    padding-left: 25px;
}

/* ==========================================
   AWARD-WINNING CARD GRID (COMPACT & OVERLAPPING)
   ========================================== */
.services-grid-pro {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; /* Reduced gap for a tighter layout */
}

.service-card-pro {
    position: relative;
    border-radius: 12px; 
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    isolation: isolate; 
}

/* Hover Physics - Magnetic Lift */
.service-card-pro:hover {
    transform: translateY(-8px); /* Slightly less dramatic lift for elegance */
    z-index: 10;
}

/* --- Card Image Section --- */
.card-image-wrapper {
    position: relative;
    width: 100%;
    /* Reduced height for a more compact card */
    height: 220px; 
    overflow: hidden;
    background-color: #05080d; 
    border-radius: 12px; /* Ensure image itself has rounded corners */
}

.card-image-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(70%) contrast(110%) brightness(60%);
    transition: filter 0.6s ease, transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}

.service-card-pro:hover .card-image-wrapper img {
    filter: grayscale(0%) contrast(105%) brightness(85%);
    transform: scale(1.05);
}

/* Floating Precision Icon - Adjusted Position */
.card-icon-overlay {
    position: absolute;
    /* Pushed up slightly so it sits firmly on the image */
    bottom: 20px; 
    right: 20px;
    width: 40px; height: 40px; /* Slightly smaller */
    background: rgba(14, 22, 35, 0.8); /* Glassy dark background */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--tech-blue); /* Icon is blue */
    border: 1px solid rgba(44, 150, 234, 0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); 
    z-index: 5;
    transition: var(--transition-smooth);
}

.service-card-pro:hover .card-icon-overlay {
    background: var(--tech-blue);
    color: #fff;
    box-shadow: 0 10px 20px rgba(44, 150, 234, 0.4);
    transform: rotate(15deg);
}

/* --- Card Content Area (SEMI-TRANSPARENT GLASS) --- */
.card-content-glass {
    /* The magic: Overlapping the image negatively */
    margin-top: -30px; 
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px; /* Adds space at bottom */
    
    padding: 30px 25px; /* Tighter padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    
    /* Ultra-Pro Glass Effect */
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.service-card-pro:hover .card-content-glass {
    border-color: rgba(44, 150, 234, 0.25);
    background: rgba(14, 22, 35, 0.95); /* Darkens slightly on hover for readability */
}

.card-meta {
    margin-bottom: 10px;
}

.service-number-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(44, 150, 234, 0.7); /* Softer blue */
    letter-spacing: 1px;
}

.service-title-pro {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem; /* Slightly smaller, more refined */
    color: var(--text-white);
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-card-pro:hover .service-title-pro {
    color: var(--tech-blue);
}

.service-desc-pro {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 25px 0;
    flex-grow: 1; 
}

/* Action Link */
.service-action-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-action-link i {
    font-size: 0.8rem;
    color: var(--tech-blue);
    transition: transform 0.3s ease;
}

.service-card-pro:hover .service-action-link {
    color: var(--tech-blue);
}

.service-card-pro:hover .service-action-link i {
    transform: translateX(5px);
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================== */
@media (max-width: 1200px) {
    .services-grid-pro {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 992px) {
    .services-header-split {
        flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 50px;
    }
    .header-left, .header-right { max-width: 100%; }
    .services-intro { padding-left: 20px; font-size: 1rem; }
}

@media (max-width: 768px) {
    .services-premium-visual { padding: 80px 0; }
    
    .services-grid-pro {
        grid-template-columns: 1fr; 
        gap: 25px;
    }
    
    .card-image-wrapper { height: 200px; } 
    
    /* Less negative margin on mobile so it doesn't cover too much image */
    .card-content-glass { 
        margin-top: -20px; 
        padding: 25px 20px; 
    } 
    
    .service-title-pro { font-size: 1.2rem; }
}
/* ==========================================
   WHY US - EDGE SECTION
   ========================================== */
.edge-dark-engineered {
    background-color: #101A27;
    padding: 120px 0;
}
.edge-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }

.edge-lead { font-size: 1.15rem; color: #9BA3AE; margin-bottom: 30px; font-weight: 500; }

.edge-features { display: flex; flex-direction: column; gap: 25px; }

/* Premium Glass Boxes replacing simple cards */
.edge-glass-box {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.edge-glass-box:hover {
    background: rgba(44, 150, 234, 0.05);
    border-color: rgba(44, 150, 234, 0.3);
    transform: translateX(10px);
}

.edge-icon {
    font-size: 2rem;
    color: #2C96EA;
    flex-shrink: 0;
}

.edge-text h4 { font-size: 1.2rem; color: #F4F5F7; font-weight: 700; margin-bottom: 8px; }
.edge-text p { font-size: 0.95rem; line-height: 1.6; color: #9BA3AE; margin: 0; }
.mt-4 { margin-top: 2rem; }

@media (max-width: 992px) {
    .edge-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    .services-dark-engineered, .edge-dark-engineered { padding: 60px 0; }
    .service-row-sleek { grid-template-columns: 50px 1fr; padding: 25px 0; }
    .service-icon-box { display: none; }
    .edge-glass-box { flex-direction: column; gap: 15px; padding: 20px; }
}