:root {
    --bg: #070913;
    --panel: #111532;
    --panel2: #171b4f;
    --txt: #f7f8ff;
    --muted: #b8c0d9;
    --line: rgba(255, 255, 255, .14);
    --brand: #2920b8;
    --brand2: #5b7cff;
    --white: #fff;
    --shadow: 0 25px 70px rgba(0, 0, 0, .35)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--txt)
}

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

img {
    max-width: 100%;
    display: block
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(18px, 5vw, 72px);
    background: rgba(7, 9, 19, .72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line)
}

.brand {
    display: flex;
    align-items: center;
    width: 120px;
}

.brand span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 2px solid #fff;
    border-radius: 50%;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand2))
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted)
}

.nav a:hover {
    color: #fff
}

.btn-nav, .btn {
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 800
}

.btn-nav, .primary {
    background: #fff;
    color: #090b18
}

.ghost {
    border: 1px solid var(--line);
    color: #fff
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 30px
}

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    min-height: 100vh;
    width: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 46px;
    align-items: center;
    padding: 130px clamp(22px, 6vw, 90px) 70px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    z-index: -1;
}

@media(max-width:920px) {
    .hero-slider {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
        grid-template-columns: 1fr;
        min-height: 100vh;
        padding: 120px 22px 80px;
    }

    .hero-slide.active {
        display: grid;
    }

    .hero-media {
        display: none;
    }

    .hero-copy p {
        padding-right: 0;
        font-size: 1rem;
    }
}

@media(max-width:560px) {
    .hero-slide {
        padding: 110px 18px 75px;
    }

    .hero h1 {
        font-size: 2.35rem;
        line-height: 1;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero-dots {
        left: 18px;
        bottom: 24px;
    }
}

.section {
    padding: 95px clamp(22px, 6vw, 90px)
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px
}

.stats article, .card, .quote, .timeline article {
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 28px
}

.stats b {
    font-size: 2.2rem
}

.stats span {
    display: block;
    color: var(--muted);
    margin-top: 8px
}

.head {
    max-width: 880px;
    margin-bottom: 34px
}

.grid {
    display: grid;
    gap: 22px
}

.cards {
    grid-template-columns: repeat(3, 1fr)
}

.card span {
    color: #8da0ff;
    font-weight: 900
}

.card h3 {
    font-size: 1.35rem
}

.dark {
    background: linear-gradient(180deg, #090b18, #0f1230)
}

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

.project {
    background: #fff;
    color: #111;
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
    box-shadow: var(--shadow)
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.project div {
    padding: 25px
}

.project p {
    color: #4c5366
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.timeline time {
    color: #8da0ff;
    font-weight: 900
}

.contact {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 38px;
    align-items: start
}

.quote {
    display: grid;
    gap: 14px
}

.quote input, .quote textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-radius: 18px;
    padding: 16px;
    font: inherit
}

.quote textarea {
    min-height: 150px
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 35px clamp(22px, 6vw, 90px);
    border-top: 1px solid var(--line);
    color: var(--muted)
}

.whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #25d366;
    color: #07120a;
    border-radius: 999px;
    padding: 14px 20px;
    font-weight: 900;
    box-shadow: var(--shadow);
    z-index: 60
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: .7s ease
}

.reveal.show {
    opacity: 1;
    transform: none
}

@media(max-width:920px) {
    .menu-btn {
        display: block
    }

    .nav {
        position: absolute;
        top: 82px;
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        padding: 22px;
        background: #10142d;
        border: 1px solid var(--line);
        border-radius: 22px
    }

    .nav.open {
        display: flex
    }

    .hero, .split, .contact {
        grid-template-columns: 1fr
    }

    .cards, .projects, .timeline {
        grid-template-columns: 1fr
    }

    .project {
        grid-template-columns: 1fr
    }

    .project img {
        height: 260px
    }

    .hero {
        padding-top: 115px
    }

    .stats {
        grid-template-columns: 1fr
    }
}

@media(max-width:560px) {
    .topbar {
        padding: 14px 16px
    }

    .brand strong {
        display: none
    }

    .hero h1, .section h2 {
        font-size: 2.25rem
    }

    .section {
        padding: 70px 18px
    }

    .hero {
        padding-left: 18px;
        padding-right: 18px
    }

    .footer {
        flex-direction: column
    }
}

/* Hero slider */
.hero-slider {
    display: block;
    padding: 0;
    min-height: 100vh;
}

.hero-slide {
    position: contents;
    inset: 0;
    display: flex;
    grid-template-columns: 1.08fr .92fr;
    gap: 46px;
    align-items: center;
    padding: 130px clamp(22px, 6vw, 90px) 70px;
    opacity: 0;
    visibility: hidden;
    /* transition: opacity .1s ease, visibility .1s ease; */
    /* transition: opacity 0.5s ease-in-out; */
    transition: opacity 0.5s ease-in-out infinite alternate;
}

.hero-slide.active {
    position: absolute;
    opacity: 1;
    visibility: visible;
}

@media(max-width:920px) {
    .hero-slide.active {
        position: relative;
        opacity: 1;
        visibility: visible;
    }
}

.hero-slider .hero-bg {
    background-position: center;
    background-size: cover;
}

.hero-dots {
    position: absolute;
    left: clamp(22px, 6vw, 90px);
    bottom: 38px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .8);
    background: transparent;
    cursor: pointer;
}

.hero-dot.active {
    background: #fff;
}

@media(max-width:920px) {
    .hero-slide {
        grid-template-columns: 1fr;
        padding-top: 115px;
    }

    .hero-dots {
        bottom: 22px;
    }

    .hero-slider {
        min-height: 100vh;
    }
}

@media(max-width:560px) {
    .hero-slide {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Projects carousel */
.projects-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
}

.projects-track {
    display: flex;
    transition: transform .65s ease;
    will-change: transform;
}

.project-slide {
    min-width: 100%;
    background: #fff;
    color: #111;
    border-radius: 34px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    box-shadow: var(--shadow);
}

.project-slide img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 62px);
}

.project-info span {
    color: #2920b8;
    font-weight: 900;
    letter-spacing: .14em;
}

.project-info h3 {
    font-size: clamp(1.7rem, 3vw, 3.2rem);
    line-height: 1.05;
    margin: 14px 0;
}

.project-info p {
    color: #4c5366;
    font-size: 1.05rem;
}

.project-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(7, 9, 19, .72);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.project-arrow:hover {
    background: #fff;
    color: #090b18;
}

.project-arrow.prev {
    left: 18px;
}

.project-arrow.next {
    right: 18px;
}

.project-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(7, 9, 19, .52);
    backdrop-filter: blur(10px);
}

.project-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .85);
    background: transparent;
    cursor: pointer;
}

.project-dot.active {
    background: #fff;
}

@media(max-width:920px) {
    .project-slide {
        grid-template-columns: 1fr;
    }

    .project-slide img {
        height: 340px;
    }

    .project-info {
        padding: 28px 24px 62px;
    }

    .project-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.7rem;
    }

    .project-arrow.prev {
        left: 12px;
    }

    .project-arrow.next {
        right: 12px;
    }
}

@media(max-width:560px) {
    .projects-carousel {
        border-radius: 24px;
    }

    .project-slide {
        border-radius: 24px;
    }

    .project-slide img {
        height: 260px;
    }

    .project-info h3 {
        font-size: 1.7rem;
    }
}