/* ============================================================
   DevWerk Services Core Section
   Mirrors hero-core.css design language
   ============================================================ */

.services-core-section {
    position: relative;
    overflow: hidden;
    background-color: #0b0b0d;
    padding: 120px 0 100px;
}

/* --- Background --- */
.services-core-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.services-core-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

.services-core-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.45;
    pointer-events: none;
}

.services-core-orb-1 {
    top: 0;
    left: 5%;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(241, 85, 3, 0.32) 0%, transparent 70%);
}

.services-core-orb-2 {
    bottom: -10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 104, 197, 0.22) 0%, transparent 70%);
}

/* --- Container --- */
.services-core-container {
    position: relative;
    z-index: 2;
}

/* --- Header --- */
.services-core-header {
    max-width: 760px;
    margin: 0 auto 64px;
}

.services-core-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(241, 85, 3, 0.1);
    border: 1px solid rgba(241, 85, 3, 0.2);
    color: #f15503;
    padding: 6px 16px;
    border-radius: 30px;
    font-family: 'Rubik', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.services-core-eyebrow .eyebrow-dot {
    width: 6px;
    height: 6px;
    background: #f15503;
    border-radius: 50%;
    box-shadow: 0 0 10px #f15503;
}

.services-core-headline {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.services-core-highlight {
    background: linear-gradient(90deg, #f15503, #ff9a5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-core-sub {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(15px, 1.6vw, 18px);
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}

/* --- Cards Grid --- */
.services-core-grid-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 56px;
}

/* --- Card --- */
.service-core-card {
    position: relative;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px 30px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease,
                background 0.3s ease;
    isolation: isolate;
}

.service-core-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg,
        var(--scc-accent-strong, rgba(241, 85, 3, 0.4)) 0%,
        rgba(255, 255, 255, 0) 60%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.service-core-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
}

.service-core-card:hover::before {
    opacity: 1;
}

/* Glow inside card */
.scc-card-glow {
    position: absolute;
    top: -40%;
    right: -30%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(circle, var(--scc-accent, rgba(241, 85, 3, 0.3)) 0%, transparent 70%);
}

.service-core-card:hover .scc-card-glow {
    opacity: 0.8;
}

/* Accent palette */
.service-core-card[data-accent="orange"] {
    --scc-accent: rgba(241, 85, 3, 0.32);
    --scc-accent-strong: rgba(241, 85, 3, 0.55);
    --scc-accent-text: #f15503;
}

.service-core-card[data-accent="blue"] {
    --scc-accent: rgba(0, 104, 197, 0.28);
    --scc-accent-strong: rgba(0, 104, 197, 0.5);
    --scc-accent-text: #4ea0e8;
}

.service-core-card[data-accent="purple"] {
    --scc-accent: rgba(139, 92, 246, 0.26);
    --scc-accent-strong: rgba(139, 92, 246, 0.5);
    --scc-accent-text: #b48cff;
}

.service-core-card[data-accent="green"] {
    --scc-accent: rgba(16, 185, 129, 0.26);
    --scc-accent-strong: rgba(16, 185, 129, 0.5);
    --scc-accent-text: #34d399;
}

/* Card content above glow */
.scc-card-top,
.scc-title,
.scc-desc,
.scc-tags,
.scc-link {
    position: relative;
    z-index: 2;
}

.scc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.scc-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--scc-accent-text, #f15503);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s ease;
}

.service-core-card:hover .scc-icon {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--scc-accent-strong, rgba(241, 85, 3, 0.4));
    transform: scale(1.05);
}

.scc-icon i {
    font-size: 26px;
    line-height: 1;
}

.scc-num {
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.scc-title {
    font-family: 'Rubik', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.scc-desc {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #a8a8a8;
    margin: 0 0 22px 0;
}

.scc-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scc-tags li {
    font-family: 'Rubik', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #cccccc;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.scc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--scc-accent-text, #f15503);
    text-decoration: none;
    transition: gap 0.3s ease, color 0.25s ease;
}

.scc-link:hover {
    gap: 12px;
    color: #ffffff;
}

.scc-link i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.service-core-card:hover .scc-link i {
    transform: translateX(2px);
}

/* --- Bottom CTA --- */
.services-core-cta {
    margin-top: 12px;
}

.services-core-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, gap 0.3s ease;
}

.services-core-cta-link:hover {
    background: rgba(241, 85, 3, 0.12);
    border-color: rgba(241, 85, 3, 0.4);
    color: #ffffff;
    gap: 14px;
    transform: translateY(-2px);
}

.services-core-cta-link i {
    transition: transform 0.3s ease;
}

.services-core-cta-link:hover i {
    transform: translateX(2px);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .services-core-section {
        padding: 80px 0 70px;
    }

    .services-core-header {
        margin-bottom: 48px;
    }

    .services-core-grid-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 40px;
    }

    .services-core-orb-1 { width: 380px; height: 380px; }
    .services-core-orb-2 { width: 420px; height: 420px; }
}

@media (max-width: 575px) {
    .services-core-section {
        padding: 64px 0 56px;
    }

    .service-core-card {
        padding: 26px 22px;
        border-radius: 16px;
    }

    .scc-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .scc-icon i { font-size: 22px; }

    .scc-title { font-size: 19px; }
    .scc-desc { font-size: 14px; }

    .services-core-cta-link {
        padding: 13px 22px;
        font-size: 14px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .service-core-card,
    .scc-icon,
    .scc-link,
    .scc-link i,
    .services-core-cta-link {
        transition: none;
    }
    .service-core-card:hover {
        transform: none;
    }
}
