/* ======== Reset & Base ======== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue: #2AABE2;
    --teal: #2CBCB1;
    --grad: linear-gradient(135deg, #2AABE2 0%, #2CBCB1 100%);
    --grad-soft: linear-gradient(135deg, rgba(42,171,226,.18) 0%, rgba(44,188,177,.18) 100%);
    --bg: #05070d;
    --bg-2: #0a0e18;
    --surface: rgba(255,255,255,.03);
    --surface-hover: rgba(255,255,255,.06);
    --border: rgba(255,255,255,.08);
    --border-hover: rgba(42,171,226,.4);
    --text: #ffffff;
    --text-dim: rgba(255,255,255,.65);
    --text-faint: rgba(255,255,255,.4);
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-glow: 0 0 80px rgba(42,171,226,.25);
    --ease: cubic-bezier(.22,1,.36,1);
    --ease-out: cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}
@media (max-width: 900px) { body { cursor: auto; } }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
ul { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ======== Custom Cursor ======== */
.cursor, .cursor-follower {
    position: fixed; pointer-events: none; z-index: 9999;
    top: 0; left: 0; transform: translate(-50%, -50%);
    transition: opacity .3s, width .3s, height .3s, background .3s;
}
.cursor {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--teal);
    mix-blend-mode: difference;
}
.cursor-follower {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(42,171,226,.5);
    transition: transform .2s var(--ease-out), width .3s, height .3s, border-color .3s;
}
.cursor-follower.hover { width: 60px; height: 60px; border-color: var(--teal); background: rgba(44,188,177,.08); }
@media (max-width: 900px) { .cursor, .cursor-follower { display: none; } }

/* ======== Animated Background ======== */
.bg-gradient {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(42,171,226,.22), transparent 50%),
        radial-gradient(ellipse 60% 50% at 90% 30%, rgba(44,188,177,.18), transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(42,171,226,.15), transparent 50%),
        var(--bg);
    animation: bgShift 20s ease-in-out infinite alternate;
}
@keyframes bgShift {
    0% { background-position: 0% 0%, 100% 30%, 50% 100%; }
    100% { background-position: 30% 10%, 70% 0%, 60% 80%; }
}

.bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 80%);
}

#particles { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* ======== Navigation ======== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 0;
    transition: all .4s var(--ease);
}
.nav.scrolled {
    padding: 12px 0;
    background: rgba(5,7,13,.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1240px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo { display: flex; align-items: center; }
.logo-svg { height: 44px; width: auto; transition: transform .4s var(--ease); }
.nav-logo:hover .logo-svg { transform: scale(1.05) rotate(-1deg); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
    position: relative; padding: 8px 16px;
    font-size: 14px; font-weight: 500; color: var(--text-dim);
    transition: color .3s var(--ease);
}
.nav-link::before {
    content: ''; position: absolute;
    left: 50%; bottom: 4px; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--grad);
    border-radius: 2px; transition: width .3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::before { width: 20px; }
.nav-link.active { color: var(--text); }
.nav-link.active::before { width: 20px; }

.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 100px;
    background: var(--grad);
    font-size: 14px; font-weight: 600;
    position: relative; overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-cta::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, #2CBCB1, #2AABE2);
    opacity: 0; transition: opacity .3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(42,171,226,.4); }
.nav-cta:hover::before { opacity: 1; }
.nav-cta > * { position: relative; z-index: 1; }
.nav-cta svg { transition: transform .3s var(--ease); }
.nav-cta:hover svg { transform: translateX(4px); }

.nav-toggle { display: none; width: 32px; height: 32px; position: relative; }
.nav-toggle span {
    position: absolute; left: 6px; right: 6px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: all .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

@media (max-width: 960px) {
    .nav-links {
        position: fixed; top: 0; right: 0;
        width: 100%; height: 100vh;
        background: rgba(5,7,13,.96);
        backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 24px;
        transform: translateX(100%);
        transition: transform .5s var(--ease);
        z-index: 50;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-link { font-size: 22px; padding: 12px 24px; }
    .nav-cta { display: none; }
    .nav-toggle { display: block; z-index: 60; }
}

/* ======== Hero ======== */
.hero {
    min-height: 100vh;
    padding: 140px 0 80px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.hero-container { text-align: center; max-width: 980px; }

.hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: .5;
    pointer-events: none; z-index: 0;
    animation: orb 14s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; background: var(--blue); top: 10%; left: -10%; }
.orb-2 { width: 400px; height: 400px; background: var(--teal); top: 40%; right: -10%; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: #7e5cff; bottom: 10%; left: 40%; opacity: .35; animation-delay: -7s; }
@keyframes orb {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(40px,-30px) scale(1.1); }
    100% { transform: translate(-30px,20px) scale(.95); }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px; margin-bottom: 36px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(255,255,255,.03);
    backdrop-filter: blur(10px);
    font-size: 13px; color: var(--text-dim);
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--teal); position: relative;
}
.pulse-dot::after {
    content: ''; position: absolute; inset: -2px; border-radius: 50%;
    background: var(--teal); opacity: .4;
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    0%   { transform: scale(1); opacity: .6; }
    100% { transform: scale(2.8); opacity: 0; }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(44px, 7.5vw, 96px);
    font-weight: 600; line-height: .98;
    letter-spacing: -.03em;
    margin-bottom: 32px;
}
.title-line {
    display: block; overflow: hidden;
    padding: 0 4px;
}
.title-line > span {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1s var(--ease-out), opacity 1s;
}
.title-line.revealed > span { transform: translateY(0); opacity: 1; }
.title-line:nth-child(2) > span { transition-delay: .12s; }
.title-line:nth-child(3) > span { transition-delay: .24s; }

.gradient-text {
    background: var(--grad);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradShift 4s ease-in-out infinite alternate;
}
@keyframes gradShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-sub {
    max-width: 640px; margin: 0 auto 48px;
    font-size: clamp(15px, 1.3vw, 18px);
    color: var(--text-dim);
}

.hero-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 80px;
}

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 100px;
    font-size: 15px; font-weight: 600;
    position: relative; overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
    background: var(--grad);
    box-shadow: 0 10px 30px rgba(42,171,226,.3);
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, #6fc9ed, #5edcc8);
    opacity: 0; transition: opacity .3s;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(42,171,226,.45); }
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); border-color: var(--border-hover); }
.play-icon {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--grad);
    display: inline-flex; align-items: center; justify-content: center;
    color: white;
}

.hero-stats {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 32px; max-width: 820px; margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: rgba(255,255,255,.02);
    backdrop-filter: blur(10px);
}
.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700; line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
@media (max-width: 640px) {
    .hero-stats { grid-template-columns: repeat(2,1fr); padding: 24px; }
}

.scroll-indicator {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    font-size: 11px; color: var(--text-faint);
    text-transform: uppercase; letter-spacing: 2px;
}
.scroll-line {
    width: 1px; height: 48px;
    background: linear-gradient(to bottom, var(--teal), transparent);
    position: relative; overflow: hidden;
}
.scroll-line::before {
    content: ''; position: absolute;
    top: 0; left: 0; width: 100%; height: 30%;
    background: var(--teal);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { top: -30%; }
    100% { top: 100%; }
}

/* ======== Marquee ======== */
.marquee-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.015);
    overflow: hidden;
}
.marquee { overflow: hidden; }
.marquee-track {
    display: flex; align-items: center; gap: 48px;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
}
.marquee-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 54px);
    font-weight: 600;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: .85;
}
.marquee-item:nth-child(4n+1) {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(42,171,226,.4);
    background: none;
}
.dot {
    font-size: 24px;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ======== Section heading ======== */
section { padding: 120px 0; position: relative; }
@media (max-width: 640px) { section { padding: 80px 0; } }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 20px;
    font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
    color: var(--teal); font-weight: 600;
}
.eyebrow-line {
    width: 28px; height: 1px; background: var(--grad);
}
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(34px, 4.5vw, 60px);
    font-weight: 600; line-height: 1.05;
    letter-spacing: -.025em;
    margin-bottom: 20px;
}
.section-sub {
    color: var(--text-dim);
    font-size: clamp(15px, 1.2vw, 17px);
    max-width: 580px; margin: 0 auto;
}

/* ======== Services ======== */
.services-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
    position: relative;
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.service-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mx,50%) var(--my,0%), rgba(42,171,226,.25), transparent 60%);
    opacity: 0; transition: opacity .4s;
    pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-hover); background: var(--surface-hover); }
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--grad-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal);
    margin-bottom: 24px;
    transition: transform .4s var(--ease);
}
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.08); color: var(--blue); }

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px; font-weight: 600;
    margin-bottom: 12px; letter-spacing: -.01em;
}
.service-card p { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }

.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags li {
    padding: 4px 10px;
    border: 1px solid var(--border); border-radius: 100px;
    font-size: 11px; color: var(--text-dim);
    background: rgba(255,255,255,.02);
    transition: all .3s;
}
.service-card:hover .service-tags li { border-color: rgba(42,171,226,.3); color: var(--text); }

.service-arrow {
    position: absolute; top: 28px; right: 28px;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim);
    opacity: 0; transform: translate(-4px,4px);
    transition: all .4s var(--ease);
}
.service-card:hover .service-arrow {
    opacity: 1; transform: translate(0,0);
    background: var(--grad); color: #fff; border-color: transparent;
}

/* ======== Work ======== */
.work-grid {
    display: grid; grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}
.work-card {
    grid-column: span 6;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--surface); overflow: hidden;
    transition: transform .5s var(--ease), border-color .4s;
    cursor: pointer;
}
.work-card.wc-1, .work-card.wc-4 { grid-column: span 7; }
.work-card.wc-2, .work-card.wc-3 { grid-column: span 5; }
@media (max-width: 900px) { .work-card, .work-card.wc-1, .work-card.wc-4, .work-card.wc-2, .work-card.wc-3 { grid-column: span 12; } }

.work-card:hover { transform: translateY(-8px); border-color: var(--border-hover); }

.work-visual {
    position: relative; aspect-ratio: 16/10;
    overflow: hidden; background: #000;
}
.work-mock {
    position: absolute; inset: 0;
    transition: transform 1s var(--ease);
    display: flex; align-items: center; justify-content: center;
}
.work-card:hover .work-mock { transform: scale(1.06); }

.mock-fintech {
    background:
        radial-gradient(circle at 30% 40%, rgba(42,171,226,.5), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(44,188,177,.5), transparent 50%),
        linear-gradient(135deg, #0a1628, #0f2847);
}
.mock-fintech::before {
    content: '$'; font-family: 'Space Grotesk'; font-weight: 700;
    font-size: 160px;
    color: rgba(255,255,255,.08);
    letter-spacing: 20px;
}
.mock-fintech::after {
    content: ''; position: absolute; inset: 10%;
    border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
    background: linear-gradient(to bottom, rgba(255,255,255,.04), transparent);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.mock-health {
    background:
        radial-gradient(circle at 70% 30%, rgba(129,236,168,.4), transparent 50%),
        linear-gradient(135deg, #1a0f2e, #2b1654);
}
.mock-health::before {
    content: '♥'; font-size: 140px;
    color: rgba(255,100,120,.4);
    animation: beat 1.4s ease-in-out infinite;
}
@keyframes beat {
    0%,100% { transform: scale(1); }
    20%     { transform: scale(1.15); }
    40%     { transform: scale(.95); }
    60%     { transform: scale(1.08); }
}

.mock-ecom {
    background:
        radial-gradient(circle at 30% 70%, rgba(255,156,56,.4), transparent 50%),
        linear-gradient(135deg, #2b1409, #3e200f);
}
.mock-ecom::before {
    content: '◨◧◨'; font-size: 80px; letter-spacing: 20px;
    color: rgba(255,156,56,.5);
}

.mock-saas {
    background:
        radial-gradient(circle at 50% 50%, rgba(42,171,226,.4), transparent 60%),
        linear-gradient(135deg, #0a1a2a, #14304d);
}
.mock-saas::before {
    content: '◆'; font-size: 200px;
    color: rgba(42,171,226,.3);
    animation: spin 20s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.work-meta { padding: 24px 28px; }
.work-tag {
    display: inline-block; padding: 4px 12px;
    border-radius: 100px; font-size: 11px;
    background: var(--grad-soft); color: var(--teal);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
    margin-bottom: 12px;
}
.work-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px; font-weight: 600;
    margin-bottom: 8px;
}
.work-card p { color: var(--text-dim); font-size: 14px; }

/* ======== About ======== */
.about-container {
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 80px; align-items: center;
}
@media (max-width: 900px) {
    .about-container { grid-template-columns: 1fr; gap: 60px; }
}
.about-text .section-title { text-align: left; margin-bottom: 24px; }
.about-text .eyebrow { justify-content: flex-start; }
.about-text > p { color: var(--text-dim); margin-bottom: 16px; }
.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.feature { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.feature-check {
    width: 24px; height: 24px; flex-shrink: 0;
    border-radius: 50%; background: var(--grad);
    color: white; display: flex; align-items: center; justify-content: center;
}

.about-visual { position: relative; height: 460px; }

.float-card {
    position: absolute; inset: 40px 0 40px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(10,14,24,.8);
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: var(--shadow-glow), 0 30px 80px rgba(0,0,0,.5);
    animation: floatCard 6s ease-in-out infinite alternate;
}
@keyframes floatCard {
    0% { transform: translateY(0) rotate(-1deg); }
    100% { transform: translateY(-12px) rotate(1deg); }
}

.float-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 16px;
    font-size: 12px; color: var(--text-faint);
    font-family: 'Space Grotesk', monospace;
}
.dots { display: flex; gap: 6px; }
.dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.15);
}
.dots span:first-child { background: #ff5f57; }
.dots span:nth-child(2) { background: #febc2e; }
.dots span:last-child { background: #28c840; }

.float-card-body {
    padding: 24px; font-family: 'Space Grotesk', 'Courier New', monospace;
    font-size: 15px; line-height: 1.9; color: var(--text);
}
.code-line { opacity: .9; }
.k { color: #ff7ad0; }
.v { color: #82e1ff; }
.n { color: #c5f7a5; }
.s { color: #ffe48a; }
.f { color: #82e1ff; }
.c { color: var(--text-faint); font-style: italic; }

.floating-badge {
    position: absolute;
    padding: 10px 18px;
    background: rgba(10,14,24,.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    font-size: 12px; font-weight: 600;
    color: var(--text);
    box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.fb-1 { top: -10px; right: 0; animation: bob 4s ease-in-out infinite alternate; }
.fb-2 { bottom: 20px; left: -20px; animation: bob 5s ease-in-out infinite alternate -1s; }
.fb-3 { top: 45%; right: -30px; animation: bob 6s ease-in-out infinite alternate -2s; }
@keyframes bob {
    0% { transform: translateY(0); }
    100% { transform: translateY(-14px); }
}

/* ======== Process / Timeline ======== */
.timeline {
    position: relative; max-width: 860px; margin: 0 auto;
    padding-left: 80px;
}
@media (max-width: 640px) { .timeline { padding-left: 56px; } }

.timeline-line {
    position: absolute; left: 36px; top: 20px; bottom: 20px;
    width: 2px; background: linear-gradient(to bottom, var(--blue), var(--teal), transparent);
    border-radius: 2px;
}
@media (max-width: 640px) { .timeline-line { left: 24px; } }

.timeline-step {
    position: relative; padding-bottom: 40px;
}
.timeline-step:last-child { padding-bottom: 0; }
.step-num {
    position: absolute; left: -80px; top: 0;
    width: 72px; height: 72px; border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(10,14,24,.8);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk'; font-weight: 700;
    font-size: 20px;
    background: var(--grad);
    color: white;
    box-shadow: var(--shadow-glow);
    transition: transform .4s var(--ease);
}
@media (max-width: 640px) {
    .step-num { left: -56px; width: 48px; height: 48px; font-size: 14px; }
}
.timeline-step:hover .step-num { transform: scale(1.12) rotate(-8deg); }
.step-content {
    padding: 24px 28px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--surface); backdrop-filter: blur(10px);
    transition: all .4s;
}
.timeline-step:hover .step-content { border-color: var(--border-hover); transform: translateX(6px); }
.step-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px; font-weight: 600; margin-bottom: 8px;
}
.step-content p { color: var(--text-dim); }

/* ======== Stack ======== */
.stack-grid {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
    max-width: 900px; margin: 0 auto;
}
.stack-chip {
    padding: 12px 22px;
    border: 1px solid var(--border); border-radius: 100px;
    background: var(--surface); backdrop-filter: blur(10px);
    font-size: 14px; font-weight: 500;
    color: var(--text-dim);
    transition: all .4s var(--ease);
    cursor: default;
}
.stack-chip:hover {
    transform: translateY(-4px) rotate(-2deg);
    background: var(--grad);
    color: white; border-color: transparent;
    box-shadow: 0 10px 30px rgba(42,171,226,.3);
}

/* ======== Testimonials ======== */
.testimonial-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial {
    padding: 32px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--surface); backdrop-filter: blur(10px);
    transition: all .4s var(--ease);
    position: relative;
}
.testimonial::before {
    content: '"'; position: absolute; top: -20px; left: 24px;
    font-size: 120px;
    font-family: 'Space Grotesk';
    color: var(--teal); opacity: .25; line-height: 1;
}
.testimonial:hover { transform: translateY(-6px); border-color: var(--border-hover); }
.testimonial p {
    font-size: 15px; line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px; position: relative;
}
.testimonial footer {
    display: flex; align-items: center; gap: 14px;
    padding-top: 20px; border-top: 1px solid var(--border);
}
.author-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    flex-shrink: 0;
}
.testimonial footer strong { display: block; font-size: 14px; font-weight: 600; }
.testimonial footer span { font-size: 12px; color: var(--text-dim); }

/* ======== Contact ======== */
.contact { position: relative; }
.contact-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(42,171,226,.25), transparent 70%);
    filter: blur(80px); pointer-events: none;
}
.contact-wrap {
    max-width: 780px; margin: 0 auto;
    padding: 56px 48px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: rgba(10,14,24,.7);
    backdrop-filter: blur(20px);
    text-align: center;
    box-shadow: var(--shadow-glow);
}
@media (max-width: 640px) { .contact-wrap { padding: 40px 24px; } }

.contact-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 600; line-height: 1.05;
    letter-spacing: -.025em;
    margin-bottom: 16px;
}
.contact-wrap > p { color: var(--text-dim); margin-bottom: 40px; }
.contact-wrap .eyebrow { justify-content: center; }

.contact-form { text-align: left; display: flex; flex-direction: column; gap: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.field { position: relative; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 20px 0 8px;
    font: inherit; color: var(--text);
    background: transparent;
    border: none; border-bottom: 1px solid var(--border);
    outline: none;
    resize: none;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .3s;
    cursor: none;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: #0a0e18; color: var(--text); }

.field label {
    position: absolute; left: 0; top: 20px;
    font-size: 15px; color: var(--text-faint);
    pointer-events: none;
    transition: all .3s var(--ease);
}
.field input:focus + label,
.field input:valid + label,
.field select:focus + label,
.field select:valid + label,
.field textarea:focus + label,
.field textarea:valid + label {
    top: 0; font-size: 11px;
    color: var(--teal); letter-spacing: 1px; text-transform: uppercase;
}

.field-line {
    position: absolute; left: 0; bottom: 0; height: 1px;
    width: 0; background: var(--grad);
    transition: width .4s var(--ease);
}
.field input:focus ~ .field-line,
.field select:focus ~ .field-line,
.field textarea:focus ~ .field-line { width: 100%; }

.btn-submit { align-self: flex-start; margin-top: 12px; }

/* ======== Footer ======== */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--border);
    background: rgba(5,7,13,.6);
    position: relative; z-index: 2;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo-svg { height: 40px; margin-bottom: 20px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; max-width: 320px; }

.footer-col h4 {
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 18px;
}
.footer-col a {
    display: block; color: var(--text-dim);
    font-size: 14px; margin-bottom: 10px;
    transition: color .3s, transform .3s;
}
.footer-col a:hover { color: var(--teal); transform: translateX(4px); }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 0;
    transition: all .3s var(--ease);
}
.socials a:hover {
    background: var(--grad); border-color: transparent;
    color: white; transform: translateY(-3px) rotate(-6deg);
}

.footer-bottom {
    padding-top: 28px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
    font-size: 13px; color: var(--text-faint);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { transition: color .3s; }
.footer-legal a:hover { color: var(--teal); }

/* ======== Reveal Animations ======== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* stagger children of service grid */
.services-grid [data-reveal]:nth-child(1) { transition-delay: 0s; }
.services-grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.services-grid [data-reveal]:nth-child(3) { transition-delay: .16s; }
.services-grid [data-reveal]:nth-child(4) { transition-delay: .24s; }
.services-grid [data-reveal]:nth-child(5) { transition-delay: .08s; }
.services-grid [data-reveal]:nth-child(6) { transition-delay: .16s; }
.services-grid [data-reveal]:nth-child(7) { transition-delay: .24s; }
.services-grid [data-reveal]:nth-child(8) { transition-delay: .32s; }

.work-grid [data-reveal]:nth-child(2) { transition-delay: .1s; }
.work-grid [data-reveal]:nth-child(3) { transition-delay: .15s; }
.work-grid [data-reveal]:nth-child(4) { transition-delay: .2s; }

.timeline-step[data-reveal]:nth-child(2) { transition-delay: 0s; }
.timeline-step[data-reveal]:nth-child(3) { transition-delay: .1s; }
.timeline-step[data-reveal]:nth-child(4) { transition-delay: .2s; }
.timeline-step[data-reveal]:nth-child(5) { transition-delay: .3s; }

.testimonial[data-reveal]:nth-child(2) { transition-delay: .1s; }
.testimonial[data-reveal]:nth-child(3) { transition-delay: .2s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
