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

:root {
    --bg-deepest: #09060F;
    --bg-dark: #0d0a14;
    --bg-card: #120e1a;
    --bg-card-hover: #1a1425;
    --purple-bright: #C084FC;
    --purple-mid: #A855F7;
    --purple-deep: #7C3AED;
    --pink: #EC4899;
    --pink-light: #F472B6;
    --text-primary: #EEEAF4;
    --text-secondary: rgba(192, 132, 252, 0.55);
    --text-muted: rgba(238, 234, 244, 0.35);
    --border: rgba(192, 132, 252, 0.1);
    --border-hover: rgba(192, 132, 252, 0.25);
    --glow-purple: rgba(168, 85, 247, 0.15);
    --glow-pink: rgba(236, 72, 153, 0.1);
    --gradient: linear-gradient(135deg, #C084FC, #EC4899);
    --gradient-subtle: linear-gradient(135deg, rgba(192, 132, 252, 0.12), rgba(236, 72, 153, 0.08));
    --font: 'Manrope', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-deepest);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9, 6, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.7rem 3rem;
    background: rgba(9, 6, 15, 0.92);
}

.nav-logo {
    height: 52px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--purple-bright);
}

.nav-cta {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.nav-cta::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-cta:hover::after {
    opacity: 1;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--glow-purple) 0%, transparent 65%);
    pointer-events: none;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-pink) 0%, transparent 65%);
    pointer-events: none;
    z-index: -1;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-eyebrow::before {
    content: '';
    width: 2rem;
    height: 2px;
    background: var(--gradient);
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
    max-width: 900px;
    margin-bottom: 2rem;
}

.hero h1 .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 3rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient);
    color: #09060F;
    padding: 1rem 2.25rem;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(168, 85, 247, 0.35), 0 0 80px rgba(192, 132, 252, 0.1);
}

.hero-cta svg,
.hero-cta img {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.hero-cta:hover svg,
.hero-cta:hover img {
    transform: translateX(4px);
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.35rem;
    font-weight: 600;
}

section {
    padding: 7rem 3rem;
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before {
    content: '';
    width: 1.5rem;
    height: 2px;
    background: var(--gradient);
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    max-width: 650px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: 4rem;
}

#clients {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-dark);
    overflow: hidden;
}

#clients .section-label {
    text-align: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.client-marquee {
    overflow: hidden;
    position: relative;
}

.client-marquee::before,
.client-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.client-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-dark), transparent);
}

.client-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-dark), transparent);
}

.client-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    width: max-content;
    padding: 0.5rem 0;
}

.client-logo {
    height: 32px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.45;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.client-logo:hover {
    opacity: 0.9;
}

#services {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.service-card {
    background: var(--bg-card);
    padding: 2.75rem 2.25rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    background: var(--bg-card-hover);
}

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

.service-number {
    font-size: 4rem;
    font-weight: 800;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.06), rgba(236, 72, 153, 0.03));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1.5rem;
    color: var(--purple-bright);
    display: block;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

#opensource {
    background: var(--bg-deepest);
    border-top: 1px solid var(--border);
}

.oss-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.oss-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.75rem 2.5rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.oss-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
}

.oss-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 80px rgba(168, 85, 247, 0.06);
    transform: translateY(-4px);
}

.oss-role-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    background: var(--gradient);
    color: #09060F;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.oss-headline {
    margin-bottom: 1.5rem;
}

.oss-big-stat {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
}

.oss-big-stat span {
    font-size: 0.65em;
}

.oss-big-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.oss-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.oss-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.oss-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#work {
    background: var(--bg-deepest);
    border-top: 1px solid var(--border);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: default;
}

.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 80px rgba(168, 85, 247, 0.05);
    transform: translateY(-4px);
}


.project-visual {
    height: 320px;
    overflow: hidden;
    position: relative;
    background: var(--bg-deepest);
}


.project-visual-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-mockup {
    position: relative;
    width: 85%;
    max-width: 700px;
    padding: 0.5rem;
}


.browser-frame {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(192, 132, 252, 0.08);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #1a1520;
}

.browser-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.browser-dot:nth-child(1) {
    background: #EC4899;
}

.browser-dot:nth-child(2) {
    background: #A855F7;
}

.browser-dot:nth-child(3) {
    background: #C084FC;
}

.browser-url {
    margin-left: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(192, 132, 252, 0.06);
    padding: 4px 12px;
    border-radius: 4px;
    flex: 1;
    max-width: 300px;
    border: 1px solid rgba(192, 132, 252, 0.08);
}

.browser-content {
    aspect-ratio: 16/9;
    background: #0c0810;
    overflow: hidden;
}

.browser-content svg,
.browser-content img {
    width: 100%;
    height: 100%;
    display: block;
}

.phone-frame {
    background: #1a1520;
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.06);
    width: 200px;
    border: 1px solid rgba(192, 132, 252, 0.1);
}

.phone-screen {
    background: #0c0810;
    border-radius: 18px;
    aspect-ratio: 9/19;
    overflow: hidden;
}

.phone-screen svg,
.phone-screen img {
    width: 100%;
    height: 100%;
    display: block;
}

.project-info {
    padding: 2rem 2.5rem 2.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    background: var(--gradient-subtle);
    color: var(--purple-bright);
    border-radius: 4px;
    border: 1px solid rgba(192, 132, 252, 0.12);
}

.project-tag img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

#approach {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.approach-step {
    padding: 2.5rem 2rem;
    border-left: 1px solid var(--border);
    position: relative;
    transition: background 0.4s;
}

.approach-step:first-child {
    border-left: none;
}

.approach-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 2px;
    height: 0;
    background: var(--gradient);
    transition: height 0.6s ease;
}

.approach-step:hover {
    background: var(--bg-card);
}

.approach-step:hover::before {
    height: 100%;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.08), rgba(236, 72, 153, 0.04));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.approach-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.approach-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

#stack {
    background: var(--bg-deepest);
    text-align: center;
    border-top: 1px solid var(--border);
}

#stack .section-label {
    justify-content: center;
}

#stack .section-title, #stack .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.tech-marquee {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.tech-marquee::before, .tech-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tech-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-deepest), transparent);
}

.tech-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-deepest), transparent);
}

.tech-track {
    display: flex;
    gap: 1.25rem;
    animation: marquee 45s linear infinite;
    width: max-content;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 0.55rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.3s;
}

.tech-item:hover {
    color: var(--purple-bright);
    border-color: var(--border-hover);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.08);
}

.tech-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gradient);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

#references {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.reference-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
}

.reference-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 80px rgba(168, 85, 247, 0.06);
    transform: translateY(-4px);
}

.reference-quote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.reference-author strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.reference-author span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

#contact {
    background: var(--bg-dark);
    text-align: center;
    padding: 8rem 3rem;
    border-top: 1px solid var(--border);
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

#contact .section-label {
    justify-content: center;
}

#contact .section-title {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

#contact .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-email:hover::after {
    opacity: 1;
}

.contact-location {
    margin-top: 2rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

footer {
    background: var(--bg-deepest);
    border-top: 1px solid var(--border);
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--purple-bright);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(9, 6, 15, 0.75);
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s, background 0.25s, border-color 0.25s;
}

.carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(168, 85, 247, 0.35);
    border-color: var(--purple-mid);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(238, 234, 244, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--purple-bright);
    width: 20px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.open {
    display: flex;
}

.lightbox-inner {
    position: relative;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 60px rgba(168, 85, 247, 0.1);
}

.lightbox-counter {
    margin-top: 0.85rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lightbox-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(9, 6, 15, 0.8);
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: background 0.2s, border-color 0.2s;
    z-index: 1001;
}

.lightbox-btn:hover {
    background: rgba(168, 85, 247, 0.4);
    border-color: var(--purple-mid);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* Non-carousel project visuals */
.project-iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.project-visual:has(.project-iframe) {
    height: 480px;
}

.project-svg-mockup {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2.5rem;
    display: block;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

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

    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .approach-step {
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    nav.scrolled {
        padding: 0.7rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 5rem 1.5rem;
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .services-grid, .projects-grid, .approach-grid, .oss-grid, .references-grid {
        grid-template-columns: 1fr;
    }

    .approach-step {
        border-left: none;
        border-bottom: 1px solid var(--border);
    }

    .project-visual {
        height: 240px !important;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}