:root {
    --bg: #06080f;
    --card: rgba(255, 255, 255, 0.04);
    --primary: #6c8bff;
    --primary-2: #7df2c2;
    --text: #f7f8fb;
    --muted: #a8b0c2;
    --grid: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
    --glass: rgba(255, 255, 255, 0.06);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 10% 20%, rgba(124, 130, 255, 0.12), transparent 25%),
        radial-gradient(circle at 90% 10%, rgba(120, 255, 202, 0.12), transparent 25%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.08), transparent 30%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--primary-2);
}

.hero {
    position: relative;
    padding: 32px min(8vw, 120px) 32px;
    overflow: hidden;
}

.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 16px;
    z-index: 10;
    padding: 12px 20px;
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo {
    width: 182px;
    height: 90px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links a {
    padding: 10px 12px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #0a0c14;
    box-shadow: 0 10px 30px rgba(109, 140, 255, 0.35);
}

.btn.ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn.full {
    width: 100%;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 40px;
    align-items: center;
    padding-top: 40px;
}

.hero-content {
    margin-top: 80px;
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(38px, 4vw, 64px);
    line-height: 1.1;
    margin-bottom: 16px;
}

.subtitle {
    color: var(--muted);
}

.hero-actions {
    margin: 28px 0;
    display: flex;
    gap: 14px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
}

.metric-label {
    color: var(--muted);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at 40% 20%, rgba(0, 0, 0, 0.7), transparent 65%),
        radial-gradient(circle at 80% 40%, rgba(0, 0, 0, 0.6), transparent 70%);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.hero-visual {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 18px 18px 14px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    max-width: 700px;
    margin-left: 0;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(125, 242, 194, 0.18), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(109, 140, 255, 0.2), transparent 30%);
    pointer-events: none;
}

.hero-visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.visual-note {
    color: var(--muted);
    font-size: 14px;
}

.slideshow {
    position: relative;
    width: min(800px, 100%);
    height: clamp(660px, 60vh, 1000px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    isolation: isolate;
    margin: 0;
    perspective: 1400px;
}

.slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.0);
    transform-origin: center center;
    backface-visibility: hidden;
    isolation: isolate;
    z-index: 0;
}

.slideshow img.active {
    opacity: 1;
    z-index: 2;
}

/* Ken Burns pan/zoom animations */
.slideshow img.pan-horizontal {
    animation: kenBurnsPanHorizontal 19s linear forwards;
}

.slideshow img.pan-vertical {
    animation: kenBurnsPanVertical 19s linear forwards;
}

.slideshow img.slow-zoom {
    animation: kenBurnsZoom 19s linear forwards;
}

@keyframes kenBurnsPanHorizontal {
    0% {
        object-position: 100% 50%;
        transform: scale(1.0);
    }

    100% {
        object-position: 0% 50%;
        transform: scale(1.0);
    }
}

@keyframes kenBurnsPanVertical {
    0% {
        object-position: 50% 0%;
        transform: scale(1.0);
    }

    100% {
        object-position: 50% 100%;
        transform: scale(1.0);
    }
}

@keyframes kenBurnsZoom {
    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.15);
    }
}

.slideshow img.on-deck {
    opacity: 0;
    z-index: 1;
}

.glass-blur {
    position: absolute;
    width: 380px;
    height: 380px;
    right: -120px;
    top: -60px;
    background: radial-gradient(circle, rgba(111, 198, 255, 0.35), transparent 50%);
    filter: blur(80px);
    z-index: 0;
}

@keyframes diagonalFlip {
    0% {
        transform: rotate3d(-1, 1, 0, 0deg) translateZ(0);
        box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
    }

    35% {
        transform: rotate3d(-1, 1, 0, 82deg) translateZ(10px);
        box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
    }

    55% {
        transform: rotate3d(-1, 1, 0, 110deg) translateZ(10px);
        box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
    }

    100% {
        transform: rotate3d(-1, 1, 0, 180deg) translateZ(0);
        box-shadow: none;
    }
}

.tile-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    grid-template-rows: repeat(var(--rows), 1fr);
    pointer-events: none;
    z-index: 4;
    perspective: 1400px;
    opacity: 0;
    background: #1a1d2e;
}

.tile-grid .tile {
    position: relative;
    transform-style: preserve-3d;
    transform-origin: center;
    background: #1a1d2e;
}

.tile-grid.animate .tile {
    animation: diagonalFlip var(--tile-duration) ease-in-out forwards;
    animation-delay: var(--delay);
}

.tile-grid.animate {
    animation: tileGridFade var(--grid-duration) ease-out forwards;
}

.tile-grid .face {
    position: absolute;
    inset: -1px;
    background-image: var(--from-image);
    background-size: var(--from-size);
    background-position: var(--from-x) var(--from-y);
    background-repeat: no-repeat;
    backface-visibility: hidden;
    overflow: hidden;
    will-change: transform;
}

.tile-grid .face.back {
    background-image: var(--to-image);
    background-size: var(--to-size);
    background-position: var(--to-x) var(--to-y);
    transform: rotate3d(-1, 1, 0, 180deg) translateZ(0.5px);
}

@keyframes tileGridFade {
    0% {
        opacity: 1;
    }

    78% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.section {
    padding: 110px min(8vw, 120px);
    position: relative;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 64px auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary-2);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 700;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    padding: 26px;
    border-radius: 18px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(109, 140, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    font-weight: 700;
    color: var(--primary-2);
}

.gradient {
    background: linear-gradient(135deg, rgba(109, 140, 255, 0.12), rgba(125, 242, 194, 0.08));
}

.projects {
    display: grid;
    gap: 18px;
}

.project {
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    align-items: start;
}

.timeline-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-index {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(109, 140, 255, 0.25), rgba(125, 242, 194, 0.2));
    font-weight: 700;
}

.highlight {
    padding: 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(109, 140, 255, 0.2), rgba(125, 242, 194, 0.12));
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.highlight p {
    color: var(--muted);
}

.stats {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.contact {
    background: radial-gradient(circle at 10% 10%, rgba(109, 140, 255, 0.15), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(125, 242, 194, 0.18), transparent 30%),
        var(--bg);
}

.contact-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-address {
    color: var(--muted);
    margin-top: 4px;
}

.footer {
    padding: 52px min(8vw, 120px) 32px;
    background: rgba(0, 0, 0, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

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

.footer-cta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    gap: 16px;
    flex-wrap: wrap;
}

.socials {
    display: flex;
    gap: 12px;
}

.socials a {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    text-transform: uppercase;
    font-weight: 700;
}

@media (max-width: 768px) {
    .navbar {
        grid-template-columns: 1fr;
        gap: 12px;
        top: 0;
    }

    .nav-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero-content {
        margin-top: 48px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        margin-top: 12px;
    }

    .footer-cta {
        align-items: flex-start;
        text-align: left;
    }
}