/* ==========================================================================
   D-KODE SERVICES PAGE THEME
   Inspired by Visual Reference 2 (Bold Typography, High Contrast, Warm Ember Accents)
   and Visual Reference 3 (Spacious Frosted Glass Panels & Deliberate Alignment)
   ========================================================================== */

/* --- Services Hero --- */
.dk-services-hero {
    position: relative;
    padding: calc(var(--dk-nav-height) + 70px) 24px 80px;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, rgba(255, 170, 0, 0.08) 0%, rgba(5, 5, 8, 1) 75%);
}

.dk-services-hero-inner {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 170, 0, 0.08);
    border: 1px solid rgba(255, 170, 0, 0.25);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--dk-accent-orange);
    margin-bottom: 24px;
}

.dk-services-hero-title {
    font-family: var(--dk-font-display);
    font-size: clamp(38px, 5.8vw, 68px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin: 0 0 22px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.dk-services-hero-title span {
    background: linear-gradient(135deg, #ffffff 30%, #ffaa00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dk-services-hero-sub {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 820px;
    margin: 0 auto 36px;
    font-weight: 400;
}

.dk-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.dk-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.dk-hero-btn--primary {
    background: var(--dk-accent-gradient);
    color: #050505 !important;
    box-shadow: 0 6px 24px rgba(255, 120, 0, 0.4);
}

.dk-hero-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 120, 0, 0.6);
    filter: brightness(1.08);
}

.dk-hero-btn--secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.dk-hero-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* --- Section 2: Service Category Overview (4 Spacious Cards) --- */
.dk-overview-section {
    padding: 20px 24px 80px;
    max-width: 1320px;
    margin: 0 auto;
}

.dk-overview-header {
    text-align: center;
    margin-bottom: 40px;
}

.dk-section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--dk-accent-orange);
    display: block;
    margin-bottom: 10px;
}

.dk-section-heading {
    font-family: var(--dk-font-display);
    font-size: clamp(28px, 4vw, 42px);
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.2;
}

.dk-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.dk-overview-card {
    background: rgba(14, 14, 20, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                background 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.dk-overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 170, 0, 0.35);
    background: rgba(20, 20, 28, 0.85);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 170, 0, 0.12);
}

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

.dk-overview-num {
    font-family: var(--dk-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--dk-accent-orange);
}

.dk-overview-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.dk-overview-card:hover .dk-overview-icon {
    background: rgba(255, 170, 0, 0.15);
    border-color: rgba(255, 170, 0, 0.35);
    color: var(--dk-accent-orange);
}

.dk-overview-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.3;
}

.dk-overview-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 22px;
}

.dk-overview-link-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dk-accent-orange);
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.dk-overview-card:hover .dk-overview-link-action {
    transform: translateX(4px);
}

/* --- Section 3: Detailed Pillar Sections --- */
.dk-service-pillar-section {
    padding: 70px 24px;
    max-width: 1320px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dk-pillar-lead-card {
    background: linear-gradient(145deg, rgba(255, 170, 0, 0.05) 0%, rgba(12, 12, 16, 0.9) 100%);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.dk-pillar-lead-info {
    max-width: 760px;
}

.dk-pillar-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--dk-accent-orange);
    display: block;
    margin-bottom: 8px;
}

.dk-pillar-title {
    font-family: var(--dk-font-display);
    font-size: clamp(26px, 3.5vw, 36px);
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.dk-pillar-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.dk-pillar-deep-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.dk-pillar-deep-link:hover {
    background: rgba(255, 170, 0, 0.15);
    border-color: rgba(255, 170, 0, 0.4);
    color: var(--dk-accent-orange) !important;
    transform: translateX(3px);
}

/* Pillar Feature Cards Grid */
.dk-service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.dk-spec-card {
    background: rgba(14, 14, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.dk-spec-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.dk-spec-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dk-accent-orange);
    font-size: 18px;
    margin-bottom: 18px;
}

.dk-spec-title {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.35;
}

.dk-spec-desc {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* --- Section 4: Portfolio Connection --- */
.dk-portfolio-connection {
    padding: 80px 24px;
    max-width: 1320px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dk-portfolio-box {
    background: linear-gradient(145deg, rgba(16, 16, 24, 0.8) 0%, rgba(10, 10, 14, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

.dk-portfolio-box::before {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.dk-portfolio-content {
    max-width: 680px;
}

.dk-portfolio-title {
    font-family: var(--dk-font-display);
    font-size: clamp(26px, 3.5vw, 38px);
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.2;
}

.dk-portfolio-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 24px;
}

/* --- Section 5: Closing CTA --- */
.dk-services-closing-cta {
    padding: 100px 24px 120px;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(255, 170, 0, 0.1) 0%, rgba(5, 5, 8, 1) 80%);
    position: relative;
}

.dk-closing-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.dk-closing-title {
    font-family: var(--dk-font-display);
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 18px;
    line-height: 1.15;
}

.dk-closing-sub {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 auto 36px;
    max-width: 640px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .dk-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .dk-pillar-lead-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
    }
    .dk-portfolio-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 24px;
    }
}

@media (max-width: 640px) {
    .dk-overview-grid {
        grid-template-columns: 1fr;
    }
    .dk-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .dk-hero-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    .dk-service-cards-grid {
        grid-template-columns: 1fr;
    }
}
