/* ==========================================================================
   Lucprosoft - Premium Microsoft Fluent UI Services Hub with Advanced Motion
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL ARCHITECTURE, RESETS & MICROSOFT CORE COLORS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif; 
    font-size: 13px; 
    background: #f3f2f1; /* Fluent light gray canvas template */
    color: #242424;    /* Microsoft standard dark text */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. WINDOWS 11 ADVANCED FLUID MOTION ENGINES (ANIMATIONS)
   ========================================================================== */
@keyframes fluentLogoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(0.5deg); }
}

@keyframes fluentFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fluentScaleIn {
    from {
        opacity: 0;
        transform: scale(0.965);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes plasmaGlowRotation {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(20px, -20px) scale(1.08) rotate(90deg); }
}

/* ==========================================================================
   3. SERVICES HERO SECTION (Enterprise Canvas Layer)
   ========================================================================== */
.services-hero {
    width: 100%;
    padding: 85px 6% 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    /* Soft vector engineering canvas lines background grid */
    background-image: 
        linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.95)), 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 0h1v1H0zm20 20h1v1h-1z' fill='%230067b8' fill-opacity='0.025'/%3E%3C/svg%3E");
}

/* Premium smooth ambient background glows with interactive slow motions */
.services-hero::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: rgba(0, 103, 184, 0.14); /* Microsoft corporate blue signature glow */
    border-radius: 50%;
    top: -200px;
    right: -100px;
    filter: blur(110px);
    opacity: 0.8;
    z-index: 1;
    animation: plasmaGlowRotation 12s ease-in-out infinite alternate;
}

.services-hero::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    background: rgba(0, 164, 239, 0.08); /* Microsoft cyan highlight spot */
    border-radius: 50%;
    bottom: -140px;
    left: -80px;
    filter: blur(95px);
    opacity: 0.7;
    z-index: 1;
    animation: plasmaGlowRotation 10s ease-in-out infinite alternate-reverse;
}

.hero-logo {
    width: 110px;
    height: auto;
    margin-bottom: 24px;
    animation: fluentLogoFloat 5s ease-in-out infinite;
    position: relative;
    z-index: 2;
    transition: filter 0.3s ease;
}

.hero-logo:hover {
    filter: drop-shadow(0 8px 16px rgba(0, 103, 184, 0.15));
}

.services-hero h1 {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif !important;
    font-size: 36px;
    font-weight: 700; /* Strict Microsoft Corporate Bold Weight Hierarchy */
    color: #0067b8;  /* Core Microsoft Blue */
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    animation: fluentScaleIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.services-hero p {
    max-width: 760px;
    margin: auto;
    color: #605e5c; /* Muted gray text standard */
    line-height: 1.65;
    font-size: 14.5px;
    position: relative;
    z-index: 2;
    animation: fluentFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.1s;
}

/* ==========================================================================
   4. SERVICES CORE SECTION LAYOUT
   ========================================================================== */
.services-section {
    width: 100%;
    padding: 65px 6%;
    background: #ffffff;
}

.services-section + .services-section {
    padding-top: 20px;
    border-top: 1px solid #f3f2f1;
}

/* ==========================================================================
   5. MICROSOFT TYPOGRAPHY GRID TITLE
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title span {
    color: #0067b8;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
    animation: fluentFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section-title h2 {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif !important;
    font-size: 28px;
    font-weight: 700; /* Microsoft Pure Bold standard alignment */
    color: #242424;
    letter-spacing: -0.5px;
    animation: fluentFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section-title p {
    color: #605e5c;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    animation: fluentFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ==========================================================================
   6. GRID MATRIX SYSTEM
   ========================================================================== */
.services-grid {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px; /* High-density clean layout spacing metrics */
}

/* ==========================================================================
   7. SERVICE CARD COMPONENT (Windows 11 Fluent Curvature Frame)
   ========================================================================== */
.service-card {
    position: relative;
    background: #faf9f8; /* Balanced neutral grey panel canvas surface */
    border-radius: 6px; /* Flat modern rectangular curvature standard */
    padding: 28px 24px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1.6px 3.6px rgba(0,0,0,0.06), 0 0.3px 0.9px rgba(0,0,0,0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fluentFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Micro-stagger index mappings for item processing flow entries */
.service-card:nth-child(1) { animation-delay: 0.04s; }
.service-card:nth-child(2) { animation-delay: 0.12s; }
.service-card:nth-child(3) { animation-delay: 0.20s; }
.service-card:nth-child(4) { animation-delay: 0.28s; }

.service-card:hover {
    transform: translateY(-5px);
    border-color: #0067b8;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
}

/* Base interactive dynamic anchor lines underneath panels */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0067b8;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Clean micro background circular detail element */
.service-card::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0,103,184,0.08), rgba(0,164,239,0.04));
    border-radius: 50%;
    top: -50px;
    right: -50px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
    transform: scale(1.15) translate(-5px, 5px);
}

/* ==========================================================================
   8. COMPONENT INTERNAL ELEMENTS (Icon, Image, Content)
   ========================================================================== */
.service-icon {
    width: 46px;
    height: 46px;
    background: #0067b8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 103, 184, 0.15);
}

.service-icon i {
    color: #ffffff;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    background: #005a9e;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 90, 158, 0.25);
}

.service-card:hover .service-icon i {
    transform: rotate(6deg) scale(1.04);
}

.service-image {
    width: 100%;
    height: 165px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-image {
    border-color: #0067b8;
    transform: scale(1.015);
}

.service-card h3 {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif !important;
    font-size: 15px;
    font-weight: 700; /* Bold heading override inside grid cards */
    color: #242424;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
    transition: color 0.2s ease;
}

.service-card:hover h3 {
    color: #0067b8;
}

.service-card p {
    color: #605e5c;
    line-height: 1.6;
    font-size: 13px;
}

/* ==========================================================================
   9. ACTION HOVER MODULE / FOOTER CONTAINER
   ========================================================================== */
.contact-box {
    width: 100%;
    max-width: 1400px;
    margin: 60px auto 10px;
    background: #faf9f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 55px 40px;
    text-align: center;
    color: #242424;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1.6px 3.6px rgba(0,0,0,0.04);
    animation: fluentScaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-box::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(0, 103, 184, 0.04);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    transition: transform 0.5s ease;
}

.contact-box:hover::before {
    transform: scale(1.1) translate(-10px, 10px);
}

.contact-box h2 {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif !important;
    font-size: 26px;
    font-weight: 700; /* Fluent Call To Action Primary Heading Bolded */
    color: #242424;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}

.contact-box p {
    color: #605e5c;
    max-width: 660px;
    margin: auto;
    font-size: 14px;
    line-height: 1.65;
    position: relative;
    z-index: 2;
}

.contact-btn {
    display: inline-block;
    margin-top: 26px;
    padding: 11px 32px;
    background: #0067b8;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px; /* Standard metric command box curve profile */
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.contact-btn:hover {
    background: #005a9e;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 103, 184, 0.22);
}

.contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   10. RESPONSIVE SCREEN STEPPING ENGINE
   ========================================================================== */
@media(max-width: 1300px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media(max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .services-hero h1 { font-size: 30px; }
    .section-title h2 { font-size: 24px; }
}

@media(max-width: 768px) {
    .services-hero {
        padding: 60px 4% 45px;
    }

    .services-hero h1 {
        font-size: 26px;
    }

    .services-hero p {
        font-size: 13.5px;
    }

    .services-section {
        padding: 45px 4%;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 24px 20px;
    }

    .service-image {
        height: 155px;
    }

    .contact-box {
        padding: 40px 20px;
        margin-top: 40px;
    }

    .contact-box h2 {
        font-size: 22px;
    }
}