/* ==========================================
   PÁGINA INICIAL (index.html)
   Os estilos compartilhados ficam em css/global.css.
   ========================================== */

/* ==========================================
   HERO
   ========================================== */

.hero {
    position: relative;
    padding: 95px 0 100px;
    overflow: hidden;
}

/* Brilho verde no canto superior direito */
.hero::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    top: -220px;
    right: -280px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        var(--accent-glow) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 65px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--accent);
    margin-bottom: 28px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-strong);
    flex-shrink: 0;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(48px, 6.2vw, 78px);
    line-height: 0.99;
    letter-spacing: -5px;
    font-weight: 600;
}

.highlight {
    color: var(--accent);
}

.hero-description {
    max-width: 425px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 35px;
}

/* Card do projeto em destaque, com vídeo em loop */

.hero-art {
    position: relative;
    display: block;
    min-height: 440px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    isolation: isolate;
}

.hero-loop-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

.hero-art-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(12, 14, 11, 0.55) 0%,
        transparent 30%,
        rgba(12, 14, 11, 0.12) 48%,
        rgba(12, 14, 11, 0.92) 100%
    );
    pointer-events: none;
}

.hero-art-top {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
}

.hero-art-bottom {
    position: absolute;
    left: 27px;
    right: 27px;
    bottom: 27px;
}

.hero-art-bottom > .mono {
    color: var(--accent);
}

.hero-art-title {
    display: block;
    margin-top: 7px;
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 700;
    letter-spacing: -5px;
    line-height: 1;
}

.hero-art-title span {
    color: var(--accent);
}

.hero-art-caption {
    display: block;
    margin-top: 12px;
    color: rgba(241, 240, 233, 0.78);
    font-size: 12px;
}

.hero-art-cta {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .hero-art {
        min-height: 380px;
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 65px 0 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero h1 {
        font-size: clamp(45px, 11vw, 66px);
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-art {
        min-height: 390px;
    }

    .hero-art-title {
        font-size: 65px;
    }
}

@media (max-width: 380px) {
    .hero-art {
        min-height: 320px;
    }

    .hero-art-top {
        left: 13px;
        right: 13px;
        font-size: 8px;
    }

    .hero-art-bottom {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .hero-art-title {
        font-size: 54px;
    }
}

/* ==========================================
   FAIXA TÉCNICA
   ========================================== */

.tech-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tech-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

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

.tech-item {
    color: var(--text);
    font-size: 12px;
}

.tech-item span {
    color: var(--accent);
    margin-right: 8px;
}

@media (max-width: 700px) {
    .tech-inner {
        justify-content: flex-start;
        padding: 20px 0;
        gap: 15px 24px;
    }

    .tech-label {
        width: 100%;
    }
}

/* ==========================================
   PROJETOS
   ========================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.tile-wrap {
    position: relative;
    min-width: 0;
}

.tile-wrap .project-tile {
    height: 100%;
}

/* Botão Jogar, no canto inferior direito do card */
.tile-play {
    position: absolute;
    right: 24px;
    bottom: 24px;
    gap: 12px;
    padding: 9px 13px;
    background: var(--surface);
    font-size: 12px;
}

/* No celular, o botão fica abaixo das tags */
@media (max-width: 800px) {
    .tile-wrap .tile-content {
        padding-bottom: 76px;
    }

    .tile-play {
        right: auto;
        bottom: 20px;
        left: 24px;
    }
}

.project-tile {
    display: block;
    min-width: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.project-tile:hover {
    border-color: var(--accent-strong);
    transform: translateY(-5px);
}

.tile-image {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background: #171a16;
    isolation: isolate;
}

/* Imagem única do card (os slideshows usam o componente do global.css) */
.tile-image > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No hover, o card se aproxima — a imagem única ou o slideshow inteiro */
.tile-image > img,
.tile-image .slideshow {
    transition: transform 0.5s ease;
}

.project-tile:hover .tile-image > img,
.project-tile:hover .tile-image .slideshow {
    transform: scale(1.045);
}

.tile-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 11, 10, 0.35),
        transparent 30%,
        rgba(10, 11, 10, 0.85)
    );
    pointer-events: none;
}

.tile-number,
.tile-arrow,
.tile-title {
    position: absolute;
    z-index: 1;
}

.tile-number {
    top: 18px;
    left: 18px;
    color: var(--text);
}

.tile-arrow {
    top: 15px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(241, 240, 233, 0.45);
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}

.project-tile:hover .tile-arrow {
    background: var(--accent);
    color: var(--bg);
}

.tile-title {
    left: 23px;
    bottom: 22px;
    font-size: clamp(42px, 5vw, 65px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -3px;
}

.tile-title span {
    color: var(--accent);
}

.tile-content {
    padding: 24px;
}

.tile-content h3 {
    font-size: 26px;
    letter-spacing: -1px;
}

.tile-content p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.tile-open {
    display: inline-block;
    margin-top: 22px;
    color: var(--accent);
    font-size: 10px;
}

.tile-content .tags {
    margin-top: 16px;
}

/* Próximo projeto: sem link, por isso não reage ao mouse */
.project-tile-soon:hover {
    border-color: var(--border);
    transform: none;
}

/* Fundo de planta técnica, com uma faixa de obra na base */
.project-tile-soon .tile-image {
    background:
        linear-gradient(var(--accent-glow) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, var(--accent-glow) 1px, transparent 1px) 0 0 / 28px 28px,
        #171a16;
}

.project-tile-soon .tile-image::after {
    top: auto;
    height: 6px;
    background: repeating-linear-gradient(
        -45deg,
        var(--accent) 0 12px,
        transparent 12px 24px
    );
    opacity: 0.7;
}

.tile-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: var(--accent);
    font-size: 10px;
}

.tile-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: tile-status-pulse 1.8s ease-in-out infinite;
}

@keyframes tile-status-pulse {
    50% {
        opacity: 0.3;
    }
}

@media (max-width: 800px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .tile-image {
        min-height: 340px;
    }
}

@media (max-width: 600px) {
    .tile-image {
        min-height: 270px;
    }

    .tile-content {
        padding: 20px;
    }
}

/* ==========================================
   SOBRE
   ========================================== */

.about {
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 80px;
}

.about h2 {
    font-size: 43px;
    line-height: 1.1;
    letter-spacing: -2px;
}

/* Coluna da esquerda acompanha a rolagem no desktop */
.about-intro {
    position: sticky;
    top: 40px;
    align-self: start;
}

/* FOTO */

.about-photo {
    position: relative;
    max-width: 320px;
    margin-top: 40px;
}

/* Cantos verdes em volta da foto */
.about-photo::before,
.about-photo::after {
    content: "";
    position: absolute;
    width: 46px;
    height: 46px;
    border: 0 solid var(--accent);
    pointer-events: none;
}

.about-photo::before {
    top: -10px;
    left: -10px;
    border-top-width: 1px;
    border-left-width: 1px;
}

/* Canto de baixo, na altura da foto (sem a legenda) */
.about-photo::after {
    right: -10px;
    bottom: 20px;
    border-right-width: 1px;
    border-bottom-width: 1px;
}

.about-photo img {
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--border);
}

.about-photo figcaption {
    margin-top: 16px;
    color: var(--muted);
    font-size: 9px;
}

/* TEXTO */

.about-copy p {
    max-width: 670px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.about-copy p + p {
    margin-top: 17px;
}

/* BLOCOS: TRAJETÓRIA E COMPETÊNCIAS */

.about-block {
    margin-top: 46px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.about-copy .about-block-title {
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 10px;
}

/* Linha do tempo */

.timeline {
    list-style: none;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    padding: 0 0 24px 22px;
}

/* Linha vertical */
.timeline-item::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: -4px;
    left: 3px;
    width: 1px;
    background: var(--border);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:last-child::before {
    display: none;
}

/* Ponto de cada marco */
.timeline-item::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 7px;
    height: 7px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
}

/* O marco mais recente fica preenchido */
.timeline-item:first-child::after {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-strong);
}

.timeline-year {
    padding-top: 1px;
    color: var(--text-soft);
    font-size: 11px;
}

.timeline-item div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.timeline-item strong {
    font-size: 14px;
    font-weight: 600;
}

.timeline-item div span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

/* Grupos de competências */

.skill-group {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    align-items: center;
}

.skill-group + .skill-group {
    margin-top: 14px;
}

.skill-group-name {
    color: var(--muted);
    font-size: 10px;
}

.skill-group .tags {
    margin-top: 0;
}

/* CONTATO */

.about-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 26px;
    margin-top: 46px;
}

/* Botão com contorno, ao lado do principal (GitHub) */
.button-outline {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 13px 17px;
    border: 1px solid var(--accent-strong);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.button-outline:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: var(--accent-glow);
}

.button-outline:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

@media (max-width: 900px) {
    .about-grid {
        gap: 45px;
    }
}

@media (max-width: 700px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-intro {
        position: static;
    }

    .about h2 {
        font-size: 39px;
    }

    .about-photo {
        max-width: 260px;
        margin-top: 30px;
    }

    .timeline-item,
    .skill-group {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .skill-group + .skill-group {
        margin-top: 18px;
    }
}

/* ==========================================
   OUTROS TRABALHOS
   ========================================== */

.other-work,
.contact {
    border-top: 1px solid var(--border);
}

/* Contato: título à esquerda, links à direita */
.contact-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 34px 60px;
}

.contact .section-intro {
    margin-top: 14px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 26px;
}

.other-project-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.other-project-card:hover {
    border-color: var(--accent-strong);
    transform: translateY(-3px);
}

.other-project-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    min-height: 340px;
    padding: 35px;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 50% 30%,
            var(--accent-glow),
            transparent 65%
        ),
        #151814;
}

.other-project-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(28px, 4vw, 45px);
    min-width: 0;
}

.project-type {
    color: var(--accent);
    margin-bottom: 16px;
}

.other-project-content h3 {
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.other-project-content > p:not(.project-type) {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.project-link {
    margin-top: 27px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.project-link span {
    transition: transform 0.2s ease;
}

.project-link:hover span {
    transform: translate(3px, -3px);
}

/* Ícone do Lotus App em destaque */
.lotus-icon {
    width: min(100%, 270px);
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    transform: rotate(-1.5deg);
    transition: transform 0.35s ease;
}

/* Fica reto ao passar o mouse ou tocar no card */
.other-project-card:hover .lotus-icon,
.other-project-card:active .lotus-icon {
    transform: rotate(0) translateY(-4px);
}

@media (max-width: 900px) {
    .other-project-content {
        padding: 28px;
    }
}

@media (max-width: 700px) {
    .other-project-card {
        grid-template-columns: 1fr;
    }

    .other-project-visual {
        min-height: 300px;
        padding: 25px;
    }

    .other-project-content {
        padding: 27px;
    }

    .other-project-content h3 {
        font-size: 32px;
    }
}

@media (max-width: 380px) {
    .other-project-content {
        padding: 21px;
    }
}
