/*
Theme Name: MoDip
Theme URI: https://modip.tech
Author: MoDip
Description: MoDip brand homepage theme - web dev, app dev & automation services.
Version: 1.6.0
Text Domain: modip
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --md-blue: #0066FF;
    --md-blue-hover: #0052CC;
    --md-navy: #1A1A2E;
    --md-navy-2: #23233F;
    --md-light-blue: #E3F2FD;
    --md-white: #FFFFFF;
    --md-light-gray: #F5F5F5;
    --md-dark-gray: #4A4A6A;
    --md-text-3: #7A7F99;
    --md-success: #10B981;
    --md-alert: #EF4444;
    --md-border: #E5E7F0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.65;
    color: var(--md-dark-gray);
    background: var(--md-white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.md-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,102,255,.08);
    border: 1px solid rgba(0,102,255,.25);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--md-blue);
    margin-bottom: 20px;
}

.md-eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--md-success);
}

/* ── Header / Nav ───────────────────────────────────────── */
.md-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--md-border);
}

.md-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    position: relative;
}

.md-logo img { height: 34px; width: auto; }

.md-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.md-nav-links a { white-space: nowrap; }

.md-nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--md-navy);
    transition: color .2s;
}

.md-nav-links a:hover { color: var(--md-blue); }

.md-nav-cta {
    background: var(--md-blue);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700 !important;
    box-shadow: 0 6px 16px rgba(0,102,255,.25);
    transition: background .2s, transform .2s;
}

.md-nav-cta:hover { background: var(--md-blue-hover); transform: translateY(-1px); }

.md-lang-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--md-blue);
    background: var(--md-light-blue);
    border: 1px solid rgba(0,102,255,.25);
    border-radius: 100px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}
.md-lang-btn:hover { background: #d8e9ff; transform: translateY(-1px); }

.md-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--md-navy);
    cursor: pointer;
}

/* ── Hero ───────────────────────────────────────────────── */
.md-hero {
    background: linear-gradient(150deg, #10101F 0%, #1A1A2E 45%, #0044BB 100%);
    color: #fff;
    padding: 100px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* ── Hero 3D scene (wireframe cube + orbiting rings + floating orbs) ── */
.md-hero-3d {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    perspective: 1100px;
    transition: transform .3s ease-out;
}

.md-3d-cube-wrap {
    --cube-size: 120px;
    --cube-half: 60px;
    position: absolute;
    top: 14%; right: 9%;
    width: var(--cube-size); height: var(--cube-size);
    transform-style: preserve-3d;
    animation: mdCubeSpin 17s linear infinite;
    opacity: .8;
}
.md-cube-face {
    position: absolute;
    width: var(--cube-size); height: var(--cube-size);
    border: 1.5px solid rgba(96,178,255,.55);
    background: linear-gradient(135deg, rgba(0,102,255,.16), rgba(79,168,255,.03));
    box-shadow: inset 0 0 30px rgba(79,168,255,.12);
}
.md-cube-front  { transform: translateZ(var(--cube-half)); }
.md-cube-back   { transform: rotateY(180deg) translateZ(var(--cube-half)); }
.md-cube-right  { transform: rotateY(90deg) translateZ(var(--cube-half)); }
.md-cube-left   { transform: rotateY(-90deg) translateZ(var(--cube-half)); }
.md-cube-top    { transform: rotateX(90deg) translateZ(var(--cube-half)); }
.md-cube-bottom { transform: rotateX(-90deg) translateZ(var(--cube-half)); }
@keyframes mdCubeSpin {
    from { transform: rotateX(0deg) rotateY(0deg) rotateZ(8deg); }
    to   { transform: rotateX(360deg) rotateY(360deg) rotateZ(8deg); }
}

.md-3d-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(79,168,255,.3);
    transform-style: preserve-3d;
}
.md-3d-ring-1 {
    width: 280px; height: 280px;
    top: 6%; right: 4%;
    border-color: rgba(79,168,255,.22);
    animation: mdRingSpin1 24s linear infinite;
}
.md-3d-ring-2 {
    width: 190px; height: 190px;
    bottom: 12%; right: 16%;
    border-color: rgba(245,158,11,.3);
    animation: mdRingSpin2 30s linear infinite;
}
@keyframes mdRingSpin1 {
    from { transform: rotateX(62deg) rotateZ(0deg); }
    to   { transform: rotateX(62deg) rotateZ(360deg); }
}
@keyframes mdRingSpin2 {
    from { transform: rotateX(70deg) rotateY(12deg) rotateZ(360deg); }
    to   { transform: rotateX(70deg) rotateY(12deg) rotateZ(0deg); }
}

.md-3d-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: mdOrbFloat 13s ease-in-out infinite;
}
.md-3d-orb-3 {
    width: 30px; height: 30px;
    bottom: 8%; left: 46%;
    background: radial-gradient(circle at 32% 30%, rgba(245,158,11,.55), rgba(245,158,11,.02) 70%);
    animation-duration: 9s;
    animation-delay: -2s;
}
@keyframes mdOrbFloat {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50%      { transform: translate3d(18px,-26px,30px) scale(1.18); }
}

/* Service chips — icon-carrying glass panels, gently wobble in 3D (stay legible, unlike a full spin) */
.md-3d-chip {
    position: absolute;
    width: 58px; height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    line-height: 1;
    border: 1.5px solid rgba(79,168,255,.45);
    background: linear-gradient(135deg, rgba(20,50,110,.55), rgba(0,102,255,.28));
    box-shadow: 0 10px 26px rgba(0,10,40,.35), inset 0 0 18px rgba(79,168,255,.12);
    animation: mdChipFloat 8s ease-in-out infinite;
    z-index: 2;
}
.md-3d-chip-web {
    top: 58%; left: 9%;
    animation-duration: 9s;
}
.md-3d-chip-app {
    top: 20%; left: 15%;
    width: 50px; height: 50px;
    font-size: 21px;
    animation-duration: 11s;
    animation-delay: -3s;
}
.md-3d-chip-auto {
    top: 42%; left: 2%;
    width: 46px; height: 46px;
    font-size: 19px;
    border-color: rgba(245,158,11,.5);
    background: linear-gradient(135deg, rgba(245,158,11,.22), rgba(255,255,255,.05));
    box-shadow: 0 10px 26px rgba(0,10,40,.35), inset 0 0 18px rgba(245,158,11,.14);
    animation-duration: 10s;
    animation-delay: -6s;
}
@keyframes mdChipFloat {
    0%, 100% { transform: translate3d(0,0,0) rotate3d(1,1,0,0deg); }
    50%      { transform: translate3d(10px,-18px,26px) rotate3d(1,1,0,10deg); }
}

@media (max-width: 900px) {
    .md-hero-3d { opacity: .5; }
    .md-3d-cube-wrap { --cube-size: 84px; --cube-half: 42px; top: 8%; right: 4%; }
    .md-3d-chip { width: 42px !important; height: 42px !important; font-size: 17px !important; }
}

.md-hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(0,102,255,.35) 0%, transparent 70%);
    pointer-events: none;
}

.md-hero::after {
    content: '';
    position: absolute;
    bottom: -160px; left: -140px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(16,185,129,.12) 0%, transparent 70%);
    pointer-events: none;
}

.md-hero > .container { position: relative; z-index: 1; }

@keyframes mdFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.md-hero > .container > * ,
.md-svc-hero-grid > div > * {
    opacity: 0;
    animation: mdFadeUp .8s cubic-bezier(.16,.8,.3,1) forwards;
}
.md-hero > .container > *:nth-child(1), .md-svc-hero-grid > div > *:nth-child(1) { animation-delay: .05s; }
.md-hero > .container > *:nth-child(2), .md-svc-hero-grid > div > *:nth-child(2) { animation-delay: .15s; }
.md-hero > .container > *:nth-child(3), .md-svc-hero-grid > div > *:nth-child(3) { animation-delay: .25s; }
.md-hero > .container > *:nth-child(4), .md-svc-hero-grid > div > *:nth-child(4) { animation-delay: .35s; }
.md-hero > .container > *:nth-child(5) { animation-delay: .45s; }
.md-svc-hero-grid > .md-svc-icon-big {
    opacity: 0;
    animation: mdFadeUp .8s cubic-bezier(.16,.8,.3,1) forwards;
    animation-delay: .3s;
}

.md-hero .md-eyebrow {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.2);
    color: #DCE7FF;
}

.md-hero-logo { margin-bottom: 30px; }
.md-hero-logo img { height: 46px; width: auto; margin: 0 auto; }

.md-hero h1 {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.md-hero h1 .accent {
    background: linear-gradient(135deg, #4FA8FF, #0066FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.md-hero p {
    font-size: 18px;
    color: #C7CEE8;
    max-width: 600px;
    margin: 0 auto 36px;
}

.md-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
    display: inline-block;
    padding: 15px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    transition: all .2s;
}

.btn-primary { background: var(--md-blue); color: #fff; box-shadow: 0 10px 26px rgba(0,102,255,.4); }
.btn-primary:hover { background: var(--md-blue-hover); transform: translateY(-2px); }

.btn-secondary { background: rgba(255,255,255,.06); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-secondary:hover { background: rgba(255,255,255,.14); }

.md-hero-trust {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.md-trust-num { font-size: 30px; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.md-trust-label { font-size: 13px; color: #9AA6CC; margin-top: 2px; }

/* ── Scroll-reveal (JS-driven, see main.js) ────────────────── */
.md-reveal {
    opacity: 0;
    transform: translateY(36px) scale(.96);
    filter: blur(6px);
    transition: opacity .8s cubic-bezier(.16,.8,.3,1), transform .8s cubic-bezier(.16,.8,.3,1), filter .8s cubic-bezier(.16,.8,.3,1);
}
.md-reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* 3D tilt + cursor-spotlight (JS sets --mx/--my/--rx/--ry/--ty per element) */
.md-tilt.md-tilt {
    transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--ty, 0px)) translateZ(0);
}
.md-tilt {
    position: relative;
}
.md-tilt::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(0,102,255,.16), transparent 62%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: 1;
}
.md-tilt:hover::after { opacity: 1; }
.md-tilt > * { position: relative; z-index: 2; }

/* Scroll progress bar */
#md-scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--md-blue), #4FA8FF, var(--md-success));
    z-index: 10000;
    transition: width .08s linear;
}

/* Header hide/shrink on scroll */
.md-header { transition: transform .35s cubic-bezier(.16,.8,.3,1), box-shadow .3s ease, padding .3s ease; }
.md-header.md-header-hide { transform: translateY(-100%); }
.md-header.md-header-scrolled { box-shadow: 0 8px 24px rgba(15,20,50,.08); }
.md-header.md-header-scrolled .md-nav { padding: 8px 0; }

/* Nav link underline sweep */
.md-nav-links > a:not(.md-nav-cta),
.md-has-dropdown > a {
    position: relative;
}
.md-nav-links > a:not(.md-nav-cta)::after,
.md-has-dropdown > a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -6px;
    width: 0; height: 2px;
    background: var(--md-blue);
    transform: translateX(-50%);
    transition: width .25s cubic-bezier(.16,.8,.3,1);
}
.md-nav-links > a:not(.md-nav-cta):hover::after,
.md-has-dropdown:hover > a::after {
    width: 60%;
}

/* Button ripple + magnetic pull */
.btn { position: relative; overflow: hidden; will-change: transform; }
.md-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    transform: scale(0);
    animation: mdRipple .6s ease-out forwards;
    pointer-events: none;
}
@keyframes mdRipple {
    to { transform: scale(2.6); opacity: 0; }
}

/* Animated hero background drift */
.md-hero::before { animation: mdBlobDrift1 14s ease-in-out infinite; }
.md-hero::after  { animation: mdBlobDrift2 18s ease-in-out infinite; }
@keyframes mdBlobDrift1 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(34px,-24px) scale(1.1); }
}
@keyframes mdBlobDrift2 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(-28px,22px) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .md-reveal,
    .md-hero > .container > *,
    .md-svc-hero-grid > div > *,
    .md-svc-hero-grid > .md-svc-icon-big,
    .md-faq-item p,
    .md-faq-item summary::after,
    .md-dropdown,
    * {
        animation-duration: .001s !important;
        transition-duration: .001s !important;
    }
    .md-reveal,
    .md-hero > .container > *,
    .md-svc-hero-grid > div > *,
    .md-svc-hero-grid > .md-svc-icon-big {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .md-hero::before, .md-hero::after { animation: none !important; }
    .md-3d-cube-wrap, .md-3d-ring, .md-3d-orb, .md-3d-chip { animation: none !important; }
    .md-hero-3d { opacity: .25 !important; }
    .md-tilt { transform: none !important; }
    .md-tilt::after { display: none !important; }
    #md-scroll-progress { display: none !important; }
}

/* ── Section base ───────────────────────────────────────── */
.md-section { padding: 96px 0; }
.md-section-alt { background: var(--md-light-gray); }
.md-section-tight { padding: 64px 0; }

.md-section-head { text-align: center; margin-bottom: 56px; }
.md-section-head.left { text-align: left; margin-bottom: 40px; }

.md-section-head h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--md-navy);
    margin-bottom: 14px;
}

.md-section-head p {
    font-size: 17px;
    color: var(--md-dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

.md-section-head.left p { margin: 0; }

/* ── Services ───────────────────────────────────────────── */
.md-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.md-services-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .md-services-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }

.md-card {
    display: block;
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: 14px;
    padding: 36px 32px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
}

.md-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15,20,50,.09);
    border-color: rgba(0,102,255,.3);
}

.md-card-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--md-light-blue), #fff);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.md-card h3 {
    font-size: 21px;
    font-weight: 800;
    color: var(--md-navy);
    margin-bottom: 10px;
}

.md-card p { font-size: 15px; color: var(--md-dark-gray); margin-bottom: 18px; }

.md-card-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--md-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.md-card:hover .md-card-link { text-decoration: underline; }

/* ── Process ────────────────────────────────────────────── */
.md-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.md-process-item { text-align: center; padding: 0 8px; }

.md-process-num {
    width: 48px; height: 48px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--md-navy);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 17px;
}

.md-process-item h3 { font-size: 17px; font-weight: 700; color: var(--md-navy); margin-bottom: 8px; }
.md-process-item p { font-size: 14px; color: var(--md-dark-gray); }

/* ── Portfolio / Work ───────────────────────────────────── */
.md-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.md-work-card {
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.md-work-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(15,20,50,.08); }

.md-work-top {
    height: 90px;
    background: linear-gradient(135deg, var(--md-navy), var(--md-blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
}

.md-work-body { padding: 24px; }

.md-work-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--md-blue);
    background: rgba(0,102,255,.08);
    padding: 4px 10px;
    border-radius: 5px;
    margin-bottom: 12px;
}

.md-work-body h3 { font-size: 17px; font-weight: 800; color: var(--md-navy); margin-bottom: 8px; }
.md-work-body p { font-size: 14px; color: var(--md-dark-gray); }

/* ── About ──────────────────────────────────────────────── */
.md-about {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 64px;
    align-items: center;
}

.md-about h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--md-navy);
    margin-bottom: 18px;
}

.md-about p { margin-bottom: 16px; }

.md-about-list { margin: 20px 0; }
.md-about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--md-navy);
    font-weight: 600;
    margin-bottom: 12px;
}
.md-about-list li::before {
    content: '✓';
    color: var(--md-success);
    font-weight: 900;
    flex-shrink: 0;
}

.md-about-stats {
    display: flex;
    gap: 40px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.md-stat-num {
    font-size: 34px;
    font-weight: 900;
    color: var(--md-blue);
    letter-spacing: -.02em;
}

.md-stat-label { font-size: 13px; color: var(--md-dark-gray); margin-top: 2px; }

.md-about-visual {
    background: linear-gradient(160deg, var(--md-light-blue), #fff);
    border: 1px solid var(--md-border);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
}

.md-about-visual img { height: 60px; width: auto; margin: 0 auto; }

/* ── FAQ ────────────────────────────────────────────────── */
.md-faq-wrap { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.md-faq-item {
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: 10px;
    padding: 4px 22px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.md-faq-item:hover { border-color: rgba(0,102,255,.3); }
.md-faq-item[open] { box-shadow: 0 12px 28px rgba(15,20,50,.06); }

.md-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--md-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.md-faq-item summary::-webkit-details-marker { display: none; }
.md-faq-item summary::after { content: '+'; font-size: 22px; color: var(--md-blue); font-weight: 400; display: inline-block; transition: transform .25s cubic-bezier(.16,.8,.3,1); }
.md-faq-item[open] summary::after { transform: rotate(135deg); }
.md-faq-item p {
    font-size: 14.5px;
    color: var(--md-dark-gray);
    padding-bottom: 20px;
    animation: mdFaqIn .3s cubic-bezier(.16,.8,.3,1);
}
@keyframes mdFaqIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── CTA banner ─────────────────────────────────────────── */
.md-cta-banner {
    text-align: center;
    background: linear-gradient(150deg, var(--md-navy) 0%, #0044BB 120%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.md-cta-banner h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.02em; }
.md-cta-banner p { color: #C7CEE8; margin-bottom: 30px; font-size: 16px; }

/* ── Service detail hero ───────────────────────────────── */
.md-svc-hero {
    background: linear-gradient(150deg, #10101F 0%, #1A1A2E 45%, #0044BB 100%);
    color: #fff;
    padding: 76px 0;
}

.md-svc-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.md-svc-hero h1 { font-size: 42px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 16px; line-height: 1.2; }
.md-svc-hero p { font-size: 17px; color: #C7CEE8; margin-bottom: 28px; }
.md-svc-icon-big {
    width: 110px; height: 110px;
    border-radius: 24px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 52px;
    margin: 0 auto;
}

.md-feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.md-feat-item {
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: 12px;
    padding: 24px 26px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.md-feat-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,20,50,.07); border-color: rgba(0,102,255,.25); }

.md-feat-item h3 { font-size: 16px; font-weight: 700; color: var(--md-navy); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.md-feat-item h3::before { content: '✓'; width: 22px; height: 22px; background: rgba(16,185,129,.12); color: var(--md-success); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; transition: transform .25s ease; }
.md-feat-item:hover h3::before { transform: scale(1.15); }
.md-feat-item p { font-size: 14px; color: var(--md-dark-gray); margin-left: 32px; }

.md-breadcrumb { font-size: 13px; color: #9AA6CC; margin-bottom: 18px; }
.md-breadcrumb a { color: #C7CEE8; }
.md-breadcrumb a:hover { color: #fff; }

/* ── Contact ────────────────────────────────────────────── */
.md-contact-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: 14px;
    padding: 44px;
    box-shadow: 0 20px 50px rgba(15,20,50,.06);
}

.md-input-group { margin-bottom: 20px; }

.md-input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--md-navy);
    margin-bottom: 6px;
}

.md-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--md-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.md-input:focus {
    outline: none;
    border-color: var(--md-blue);
    box-shadow: 0 0 0 3px rgba(0,102,255,.1);
}

textarea.md-input { resize: vertical; min-height: 120px; }

.md-contact-info {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--md-dark-gray);
}

.md-contact-info a { color: var(--md-blue); font-weight: 600; }

.md-contact-side {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 780px;
    margin: 0 auto 40px;
}

.md-contact-chip {
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: 12px;
    padding: 22px;
    text-align: center;
}

.md-contact-chip .ic { font-size: 24px; margin-bottom: 8px; }
.md-contact-chip h4 { font-size: 14px; font-weight: 700; color: var(--md-navy); margin-bottom: 4px; }
.md-contact-chip p { font-size: 13px; color: var(--md-dark-gray); }

/* ── Footer ─────────────────────────────────────────────── */
.md-footer {
    background: var(--md-navy);
    color: #B8BCD0;
    padding: 56px 0 26px;
}

.md-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 24px;
}

.md-footer-desc { max-width: 280px; font-size: 14px; color: #9AA6CC; margin-top: 14px; }

.md-footer-logo img { height: 32px; width: auto; }

.md-footer-links { display: flex; gap: 56px; flex-wrap: wrap; }

.md-footer-col h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.md-footer-col a {
    display: block;
    font-size: 14px;
    color: #B8BCD0;
    margin-bottom: 11px;
    transition: color .2s;
}

.md-footer-col a:hover { color: #fff; }

.md-footer-bottom {
    text-align: center;
    font-size: 13px;
    color: var(--md-text-3);
}

/* ── Nav dropdown ───────────────────────────────────────── */
.md-has-dropdown { position: relative; }
.md-dropdown {
    position: absolute;
    top: 100%;
    left: -20px;
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: 12px;
    box-shadow: 0 20px 44px rgba(15,20,50,.12);
    padding: 10px;
    min-width: 220px;
    z-index: 50;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .22s cubic-bezier(.16,.8,.3,1), transform .22s cubic-bezier(.16,.8,.3,1);
}
.md-has-dropdown:hover .md-dropdown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.md-caret { display: inline-block; font-size: 10px; margin-left: 4px; opacity: .6; transition: transform .2s ease; }
.md-has-dropdown:hover .md-caret { transform: rotate(180deg); }
.md-dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--md-navy);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.md-dropdown a:hover { background: var(--md-light-gray); color: var(--md-blue); transform: translateX(3px); }

/* ── Pricing ────────────────────────────────────────────── */
.md-pricing-cat { margin-bottom: 64px; }
.md-pricing-cat:last-child { margin-bottom: 0; }
.md-pricing-cat-head { text-align: center; margin-bottom: 32px; }
.md-pricing-cat-head h3 { font-size: 24px; font-weight: 800; color: var(--md-navy); }

.md-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.md-price-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.md-price-card {
    background: #fff;
    border: 1.5px solid var(--md-border);
    border-radius: 16px;
    padding: 30px 26px;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}
.md-price-card:not(.popular):hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(15,20,50,.08); }
.md-price-card.popular {
    border-color: var(--md-blue);
    box-shadow: 0 0 0 1px var(--md-blue), 0 20px 44px rgba(0,102,255,.14);
    transform: translateY(-6px);
}
.md-price-card.popular:hover { transform: translateY(-9px); box-shadow: 0 0 0 1px var(--md-blue), 0 26px 52px rgba(0,102,255,.2); }
.md-price-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--md-blue); color: #fff; font-size: 11px; font-weight: 800;
    letter-spacing: .05em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px;
    white-space: nowrap;
}
.md-price-tier { font-size: 17px; font-weight: 800; color: var(--md-navy); margin-bottom: 6px; }
.md-price-amount { font-size: 30px; font-weight: 900; color: var(--md-blue); letter-spacing: -.02em; margin-bottom: 2px; }
.md-price-amount .cur { font-size: 16px; font-weight: 700; margin-right: 2px; }
.md-price-period { font-size: 13px; color: var(--md-dark-gray); margin-bottom: 18px; }
.md-price-feats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.md-price-feats li { font-size: 13.5px; color: var(--md-dark-gray); display: flex; gap: 8px; align-items: flex-start; }
.md-price-feats li::before { content: '✓'; color: var(--md-success); font-weight: 900; flex-shrink: 0; }
.md-price-card .btn { width: 100%; text-align: center; padding: 12px; font-size: 14px; }
.md-price-card:not(.popular) .btn-primary { background: var(--md-navy); box-shadow: none; }

/* ── Testimonials ───────────────────────────────────────── */
.md-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.md-testi-card { background: #fff; border: 1px solid var(--md-border); border-radius: 14px; padding: 28px; transition: transform .25s ease, box-shadow .25s ease; }
.md-testi-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,20,50,.07); }
.md-testi-stars { color: #F59E0B; letter-spacing: 2px; margin-bottom: 14px; font-size: 15px; }
.md-testi-card blockquote { font-size: 14.5px; color: var(--md-dark-gray); line-height: 1.75; font-style: italic; margin-bottom: 20px; }
.md-testi-author { display: flex; align-items: center; gap: 12px; }
.md-testi-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--md-light-blue); color: var(--md-blue);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.md-testi-name { font-size: 14px; font-weight: 700; color: var(--md-navy); }
.md-testi-meta { font-size: 12.5px; color: var(--md-dark-gray); }

/* ── Blog ───────────────────────────────────────────────── */
.md-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.md-blog-card { display: block; background: #fff; border: 1px solid var(--md-border); border-radius: 14px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.md-blog-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(15,20,50,.08); }
.md-blog-top { height: 100px; background: linear-gradient(135deg, var(--md-navy), var(--md-blue)); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.md-blog-body { padding: 22px; }
.md-blog-meta { font-size: 12px; color: var(--md-text-3); margin-bottom: 10px; }
.md-blog-body h3 { font-size: 16.5px; font-weight: 800; color: var(--md-navy); margin-bottom: 8px; line-height: 1.4; }
.md-blog-body p { font-size: 13.5px; color: var(--md-dark-gray); }
.md-blog-article { max-width: 760px; margin: 0 auto; }
.md-blog-article h2 { font-size: 24px; font-weight: 800; color: var(--md-navy); margin: 36px 0 14px; }
.md-blog-article h3 { font-size: 19px; font-weight: 700; color: var(--md-navy); margin: 26px 0 10px; }
.md-blog-article p { font-size: 16px; color: var(--md-dark-gray); margin-bottom: 16px; line-height: 1.8; }
.md-blog-article ul, .md-blog-article ol { margin: 0 0 16px 22px; }
.md-blog-article ul { list-style: disc; }
.md-blog-article ol { list-style: decimal; }
.md-blog-article li { font-size: 15.5px; color: var(--md-dark-gray); margin-bottom: 8px; line-height: 1.7; }
.md-blog-hero-img { height: 220px; border-radius: 14px; background: linear-gradient(135deg, var(--md-navy), var(--md-blue)); display: flex; align-items: center; justify-content: center; font-size: 56px; margin-bottom: 32px; }
.md-blog-byline { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--md-text-3); margin-bottom: 8px; }

/* ── Case study ─────────────────────────────────────────── */
.md-cs-meta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.md-cs-meta-chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 8px 16px; font-size: 13px; color: #DCE7FF; }
.md-cs-meta-chip b { color: #fff; }
.md-cs-block { margin-bottom: 44px; }
.md-cs-block h2 { font-size: 26px; font-weight: 800; color: var(--md-navy); margin-bottom: 14px; }
.md-cs-block h2 .tag { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--md-blue); background: rgba(0,102,255,.08); padding: 4px 10px; border-radius: 5px; vertical-align: middle; margin-right: 10px; }
.md-cs-block p { font-size: 15.5px; color: var(--md-dark-gray); line-height: 1.8; }
.md-cs-stack { display: flex; gap: 10px; flex-wrap: wrap; }
.md-cs-stack span { background: var(--md-light-gray); border: 1px solid var(--md-border); border-radius: 100px; padding: 6px 16px; font-size: 13px; font-weight: 600; color: var(--md-navy); }
.md-cs-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.md-cs-shot { aspect-ratio: 16/10; border-radius: 10px; background: var(--md-light-blue); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--md-blue); }

/* ── Portfolio ──────────────────────────────────────────── */
.md-pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.md-pf-card {
    display: block;
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    position: relative;
}
.md-pf-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,20,50,.09); }
.md-pf-top {
    height: 110px;
    background: linear-gradient(135deg, var(--md-navy), var(--md-blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 38px;
    position: relative;
}
.md-pf-cat {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
    color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
    padding: 4px 10px; border-radius: 100px; text-transform: uppercase;
}
.md-pf-body { padding: 22px; }
.md-pf-body h3 { font-size: 17px; font-weight: 800; color: var(--md-navy); margin-bottom: 8px; }
.md-pf-body p { font-size: 13.5px; color: var(--md-dark-gray); margin-bottom: 14px; }
.md-pf-tech-row { display: flex; gap: 6px; flex-wrap: wrap; }
.md-pf-tech-row span { font-size: 11px; font-weight: 600; color: var(--md-navy); background: var(--md-light-gray); border-radius: 5px; padding: 3px 8px; }

.md-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .03em;
    padding: 5px 12px; border-radius: 100px;
}
.md-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.md-status.live { background: rgba(16,185,129,.12); color: #0A9463; }
.md-status.live::before { background: #10B981; }
.md-status.dev { background: rgba(245,158,11,.12); color: #B45309; }
.md-status.dev::before { background: #F59E0B; }
.md-status.advanced { background: rgba(0,102,255,.1); color: var(--md-blue); }
.md-status.advanced::before { background: var(--md-blue); }
.md-status.complete { background: rgba(139,92,246,.12); color: #7C3AED; }
.md-status.complete::before { background: #8B5CF6; }

.md-pf-hero { background: linear-gradient(150deg, #10101F 0%, #1A1A2E 45%, #0044BB 100%); color: #fff; padding: 70px 0; }
.md-pf-hero-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.md-pf-hero-icon { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0; }
.md-pf-hero h1 { font-size: 34px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 6px; }
.md-pf-hero .cat { font-size: 13px; color: #9AA6CC; }
.md-pf-hero p.tagline { font-size: 17px; color: #C7CEE8; max-width: 640px; margin-bottom: 24px; }
.md-pf-links { display: flex; gap: 12px; flex-wrap: wrap; }
.md-pf-link-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 700; transition: background .2s; }
.md-pf-link-btn:hover { background: rgba(255,255,255,.16); }

.md-pf-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.md-pf-meta-item { background: var(--md-light-gray); border-radius: 10px; padding: 16px 18px; }
.md-pf-meta-item .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--md-text-3); margin-bottom: 6px; }
.md-pf-meta-item .val { font-size: 14.5px; font-weight: 700; color: var(--md-navy); }

.md-pf-story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.md-pf-story-card { background: #fff; border: 1px solid var(--md-border); border-radius: 14px; padding: 26px 24px; position: relative; overflow: hidden; }
.md-pf-story-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.md-pf-story-card.challenge::before { background: #F59E0B; }
.md-pf-story-card.approach::before { background: var(--md-blue); }
.md-pf-story-card.outcome::before { background: var(--md-success); }
.md-pf-story-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; }
.md-pf-story-card.challenge .md-pf-story-icon { background: rgba(245,158,11,.12); }
.md-pf-story-card.approach .md-pf-story-icon { background: rgba(0,102,255,.1); }
.md-pf-story-card.outcome .md-pf-story-icon { background: rgba(16,185,129,.12); }
.md-pf-story-lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--md-text-3); margin-bottom: 8px; }
.md-pf-story-card p { font-size: 14px; color: var(--md-dark-gray); line-height: 1.7; }

.md-pf-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 8px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
    .md-services-grid { grid-template-columns: 1fr; }
    .md-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .md-price-grid, .md-price-grid.cols-4 { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .md-price-card.popular { transform: none; }
    .md-testi-grid { grid-template-columns: 1fr; }
    .md-blog-grid { grid-template-columns: 1fr; }
    .md-pf-grid { grid-template-columns: 1fr; }
    .md-cs-gallery { grid-template-columns: repeat(2, 1fr); }
    .md-pf-grid { grid-template-columns: repeat(2, 1fr); }
    .md-pf-meta-grid { grid-template-columns: 1fr; }
    .md-pf-story-grid { grid-template-columns: 1fr; }
    .md-pf-highlights { grid-template-columns: 1fr; }
    .md-pf-hero-top { gap: 12px; }
    .md-pf-hero h1 { font-size: 26px; }
    .md-dropdown { position: static; box-shadow: none; border: none; padding: 4px 0 4px 14px; display: none; opacity: 1; transform: none; }
    .md-has-dropdown:hover .md-dropdown { display: none; opacity: 1; }
    .md-has-dropdown.open .md-dropdown { display: block; opacity: 1; pointer-events: auto; }
    .md-has-dropdown:hover .md-caret { transform: none; }
    .md-has-dropdown.open .md-caret { transform: rotate(180deg); }
    .md-process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .md-about { grid-template-columns: 1fr; }
    .md-svc-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .md-svc-hero-grid .md-btns { justify-content: center; }
    .md-feat-grid { grid-template-columns: 1fr; }
    .md-contact-side { grid-template-columns: 1fr; }
    .md-hero h1 { font-size: 34px; }
    .md-svc-hero h1 { font-size: 30px; }
    .md-section { padding: 64px 0; }
    .md-nav-links { display: none; }
    .md-menu-toggle { display: block; }
    .md-nav-links.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 18px;
        border-bottom: 1px solid var(--md-border);
        box-shadow: 0 12px 24px rgba(0,0,0,.08);
    }
}

@media (max-width: 640px) {
    .md-portfolio-grid { grid-template-columns: 1fr; }
    .md-process-grid { grid-template-columns: 1fr; }
    .md-hero-trust { gap: 28px; }
}
