:root {
    --bg: #0b0b0f;
    --bg-soft: #12121a;
    --card: rgba(255, 255, 255, 0.06);
    --card-strong: rgba(255, 255, 255, 0.1);
    --text: #f5f7fb;
    --muted: #a7adbb;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #8f1402;
    --accent-2: #22c55e;
    --max-width: 1180px;
    --radius: 22px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(246, 92, 92, 0.18), transparent 30%),
        radial-gradient(circle at right center, rgba(197, 40, 34, 0.12), transparent 25%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(100% - 32px, 1400px);
    margin-inline: auto;
}

.section {
    padding: 100px 0;
}

.section-dark {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 48px;
    /* centraliza horizontalmente */
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: #000000;
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.logo {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo span {
    color: var(--accent);
}

.menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.menu a {
    color: var(--muted);
    transition: 0.3s ease;
}

.menu a:hover {
    color: var(--text);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.3s ease;
}

/* BOTOES */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary,
.btn-outline {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* HERO */

.hero {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    padding: 64px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(1.8rem, 6vw, 4.3rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
}

.hero h1 span {
    color: var(--accent);
}

.hero-description {
    font-size: 1.08rem;
    color: #fff;
    max-width: 650px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-numbers {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    list-style: none;
}

.hero-numbers li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-numbers strong {
    font-size: 1.5rem;
}

.hero-numbers span {
    color: var(--muted);
    font-size: 0.95rem;
}


.hero-card {
    display: flex;
    align-items: center;
    text-align: center;
}

/* PROFILE CARD */

.profile-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 8px);
    padding: 32px;
    box-shadow: var(--shadow);
}

.profile-badge {
    display: inline-block;
    text-align: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #8ff0b2;
    border: 1px solid rgba(34, 197, 94, 0.2);
    font-size: 0.9rem;
    margin-bottom: 22px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    text-align: center;
}

.profile-avatar {
    width: 158px;
    height: 158px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.profile-card h2 {
    font-size: 2rem;
}

.profile-card p {
    color: var(--muted);
    margin: 6px 0 22px;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.profile-tags span,
.soft-skills span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 0.9rem;
}

.profile-panel {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.profile-panel p {
    margin-bottom: 8px;
    color: var(--muted);
}

.design-more {
    display: none;
    justify-content: center;
    margin-top: 34px;
}

.profile-socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.profile-socials a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--text);
    transition: 0.25s ease;
}

.profile-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.profile-socials svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* FILTERS */

.filters {
    display: inline-flex;
    /* 👈 ESSA É A CHAVE */
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin: 0 auto 36px;
    /* centraliza */
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.filters-wrapper {
    display: flex;
    justify-content: center;
}

/* efeito de scroll dentro do card */

.scroll-preview img {
    width: 100%;
    display: block;
    transform: translateY(0);
    transition: transform 5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .scroll-preview img {
    transform: translateY(-55%);
}

.filter-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--muted);
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    padding: 14px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: none;
}

.filter-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.filter-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(75, 30, 30, 0.082);
}

.filter-btn:focus,
.filter-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22);
}

/* PROJETOS */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

.project-card,
.service-card,
.skills-card,
.cta-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.project-card {
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}



.project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.03);
}

.project-content {
    padding: 16px;
}

.project-category {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.project-content h3 {
    margin: 8px 0 10px;
    font-size: 1.05rem;
    line-height: 1.2;
}

.project-content p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 14px;
}


.design-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.design-item {
    width: 100%;
}

.design-grid .project-open {
    display: block;
    width: 100%;
}

.design-grid .project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.design-grid .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* GRADIENTS PLACEHOLDER */

.gradient-1 {
    background: linear-gradient(135deg, #8b5cf6, #1f2937);
}

.gradient-2 {
    background: linear-gradient(135deg, #22c55e, #0f172a);
}

.gradient-3 {
    background: linear-gradient(135deg, #f59e0b, #111827);
}

.gradient-4 {
    background: linear-gradient(135deg, #ec4899, #1f2937);
}

.gradient-5 {
    background: linear-gradient(135deg, #06b6d4, #0f172a);
}

.gradient-6 {
    background: linear-gradient(135deg, #f59e0b, #111827);
}

/* SERVICOS */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 28px;
}

.service-number {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 18px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--muted);
}

/* SOBRE */

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 18px;
}

.about-text>p {
    color: var(--muted);
    margin-bottom: 32px;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.timeline-item span {
    color: var(--accent);
    font-weight: 800;
}

.timeline-item h3 {
    margin-bottom: 6px;
}

.timeline-item p {
    color: var(--muted);
}

/* SKILLS */

.skills-card {
    padding: 28px;
}

.skills-card h3 {
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.skill-list {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.skill span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.skill-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
}

.soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* CTA */

.cta-section {
    padding-top: 40px;
}

.cta-box {
    text-align: center;
    padding: 56px 28px;
}

.cta-box h2 {
    max-width: 860px;
    margin: 0 auto 16px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.cta-box p {
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* FOOTER */

.footer {
    padding: 28px 0 40px;
    border-top: 1px solid var(--line);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer p,
.socials a {
    color: var(--muted);
}

.socials {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* ANIMATIONS */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.12s;
}

.delay-2 {
    transition-delay: 0.24s;
}

.delay-3 {
    transition-delay: 0.36s;
}


.project-link {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    border: 2px solid var(--line);
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.25s ease;
}

.project-link:hover {
    background: white;
    color: black;
    border-color: white;
}


.sites-carousel {
    position: relative;
    display: block;
    margin-bottom: 40px;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 20px;
    max-width: 980px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 12px;
}

.carousel-slide {
    min-width: 50%;
    flex: 0 0 50%;
    padding: 0 12px;
}

.carousel-slide .project-card {
    max-width: 100%;
}

.carousel-slide .project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.carousel-slide .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    z-index: 5;
    transition: 0.25s ease;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.08);
}

.carousel-arrow.prev {
    left: 24px;
}

.carousel-arrow.next {
    right: 24px;
}

.carousel-track {
    display: flex;
    gap: 12px;
    transition: transform 0.5s ease;
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.carousel-track.dragging {
    cursor: grabbing;
    transition: none;
}

.carousel-slide {
    min-width: calc(50% - 6px);
    flex: 0 0 calc(50% - 6px);
    padding: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 0;
    cursor: pointer;
    transition: 0.25s ease;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.15);
}

/* CLICKABLE PROJECT */

.project-open {
    all: unset;
    display: block;
    width: 100%;
    cursor: pointer;
}

.project-open .project-image {
    overflow: hidden;
    border-radius: 16px;
}

.project-open img {
    transition: transform 0.4s ease;
}

.project-open:hover img {
    transform: scale(1.05);
}

/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.lightbox.active {
    display: block;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.lightbox-content {
    position: relative;
    width: min(100% - 32px, 900px);
    max-height: 90vh;
    margin: 40px auto;
    overflow-y: auto;
    z-index: 2;
}

/* IMAGENS */

.lightbox-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.lightbox-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    /* ou 1 / 1 se quiser quadrado */
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-gallery img:hover {
    transform: scale(1.03);
}

/* BOTAO FECHAR */

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.lightbox-open {
    overflow: hidden;
}

/* IMAGE VIEWER (zoom) */

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.image-viewer.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(6px);
}

.image-viewer img {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    z-index: 2;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.3s ease;
}

/* Banners*/

.lightbox-banners .lightbox-gallery {
    display: block;
    columns: 3 240px;
    column-gap: 16px;
}

.lightbox-banners .lightbox-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
    break-inside: avoid;
    margin-bottom: 16px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Layouts*/

.lightbox-layouts .lightbox-content {
    width: min(100% - 32px, 900px);
}

.lightbox-layouts .lightbox-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.lightbox-layouts .lightbox-gallery img {
    width: 100%;
    max-height: 260px;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: contain;
    display: block;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        min-width: 100%;
        flex: 0 0 100%;
    }
}


/* RESPONSIVO */



@media (max-width: 900px) {
    .lightbox-banners .lightbox-gallery {
        columns: 2 220px;
    }
}

@media (max-width: 600px) {
    .lightbox-banners .lightbox-gallery {
        columns: 1;
    }
}

.lightbox-layouts .lightbox-content {
    width: min(100% - 24px, 100%);
}

.lightbox-layouts .lightbox-gallery {
    gap: 16px;
}

.lightbox-layouts .lightbox-gallery img {
    aspect-ratio: auto;
}


@media (max-width: 900px) {
    .lightbox-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lightbox-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {

    .hero-grid,
    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 40px;
    }
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        min-width: 100%;
        flex: 0 0 100%;
    }

    .menu-toggle {
        display: block;
    }

    .menu {
        position: absolute;
        top: 78px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(11, 11, 15, 0.96);
    }

    .menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 76px 0;
    }

    .filters {
        flex-wrap: wrap;
        border-radius: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        aspect-ratio: 16 / 10;
    }

    .profile-card {
        padding: 24px;
    }

    .profile-card h2 {
        font-size: 1.6rem;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-secondary,
    .btn-outline {
        width: 100%;
    }
}