/* =========================
   RESET BÁSICO
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    /* imagem sempre responsiva */
    max-width: 100%;
    display: block;
}

html {
    /* rolagem suave ao clicar no menu */
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #0b0f14;
    /* fundo escuro neutro (tema tech) */
    color: #e7edf5;
    line-height: 1.6;
}

/* =========================
   VARIÁVEIS (facilita alterar cores)
   ========================= */
:root {
    --bg: #0b0f14;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-2: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.12);

    --text: #e7edf5;
    --muted: rgba(231, 237, 245, 0.75);

    --accent: #6ee7ff;
    /* azul/ciano tecnológico */
    --accent-2: #a78bfa;
    /* roxo leve */
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.45);

    --radius: 18px;
    --container: 1100px;

    --header-h: 72px;
}

/* =========================
   CONTAINER PADRÃO
   ========================= */
.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

/* =========================
   HEADER / NAV FIXO
   ========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    display: flex;
    align-items: center;
    z-index: 999;

    /* fundo "vidro" */
    background: rgba(11, 15, 20, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 18px rgba(110, 231, 255, 0.35);
}

.brand__text {
    font-weight: 800;
    letter-spacing: 0.3px;
}

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

/* Links */
.nav__links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav__link {
    text-decoration: none;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 10px;
    transition: 0.2s ease;
    font-weight: 600;
}

.nav__link:hover {
    background: var(--surface);
    color: var(--text);
}

.nav__link.active {
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
}

/* Botão hambúrguer (só aparece no mobile) */
.nav__toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
}

.nav__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    opacity: 0.85;
}

/* =========================
   HERO (início)
   ========================= */
.hero {
  min-height: 100vh;
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden; /* importante pro vídeo não vazar */
}

.hero__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


/* overlay para legibilidade do texto */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1; /* <-- adiciona isso */
  background: radial-gradient(
      circle at 20% 10%,
      rgba(110, 231, 255, 0.25),
      transparent 40%
    ),
    linear-gradient(180deg, rgba(11, 15, 20, 0.55), rgba(11, 15, 20, 0.88));
}


.hero__content {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - var(--header-h));
    display: grid;
    place-content: center;
    text-align: center;
    padding: 56px 0;
}

.hero__kicker {
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero__title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin-top: 12px;
    margin-bottom: 12px;
}

.hero__subtitle {
    color: var(--muted);
    max-width: 62ch;
    margin: 0 auto 22px auto;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #061017;
    box-shadow: 0 18px 45px rgba(110, 231, 255, 0.12);
    cursor: pointer;
}

.btn--primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

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

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* bolinha "scroll" */
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: 34px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    text-decoration: none;
}

.hero__scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    animation: bounce 1.2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.8;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

/* =========================
   SEÇÕES
   ========================= */
.section {
    padding: 72px 0;
}

.section__header {
    margin-bottom: 26px;
}

.section__title {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    margin-bottom: 10px;
}

.section__text {
    color: var(--muted);
    max-width: 75ch;
}

/* Para evitar que o menu fixo "tampe" o título ao navegar por âncoras */
section {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

/* =========================
   SOBRE
   ========================= */
.section--about {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 22px;
    align-items: center;
}

.about__media img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.about__list {
    margin-top: 14px;
    padding-left: 18px;
    color: var(--muted);
}

.about__actions {
    margin-top: 18px;
}

/* =========================
   PROJETOS (GRID)
   ========================= */
.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.project {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease;
}

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

.project__thumb img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    filter: saturate(1.05);
}

.project__body {
    padding: 14px;
}

.project__title {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.project__desc {
    color: var(--muted);
    margin-bottom: 10px;
}

.project__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

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

/* Links padrão */
.link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.link:hover {
    text-decoration: underline;
}

/* =========================
   CONTATO
   ========================= */
.section--contact {
    padding-bottom: 44px;
}

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

.contact__card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.contact__title {
    margin-bottom: 10px;
}

.contact__list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.contact__text {
    color: var(--muted);
    margin-bottom: 10px;
}

.footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

/* ===== Form contato ===== */
.contact__form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.form__row {
    display: grid;
    gap: 6px;
}

.form__label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    outline: none;
}

.form__input:focus,
.form__textarea:focus {
    border-color: rgba(255, 255, 255, 0.35);
}

.form__msg {
    margin: 6px 0 0;
    min-height: 1.2em;
    font-size: 0.95rem;
}

.form__msg[data-type="ok"] {
    opacity: 0.95;
}

.form__msg[data-type="err"] {
    opacity: 0.95;
}

.hp {
    display: none !important;
}


/* =========================
   RESPONSIVO
   ========================= */
@media (max-width: 920px) {
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about__media img {
        aspect-ratio: 9 / 16;
    }
}

@media (max-width: 720px) {

    /* Mostra botão hambúrguer e transforma o menu em dropdown */
    .nav__toggle {
        display: inline-block;
    }

    .nav__links {
        position: absolute;
        top: calc(var(--header-h) - 10px);
        right: 16px;
        left: 16px;

        display: none;
        /* fechado por padrão */
        flex-direction: column;
        gap: 6px;

        padding: 12px;
        border-radius: 16px;
        border: 1px solid var(--border);
        background: rgba(11, 15, 20, 0.92);
        backdrop-filter: blur(10px);
    }

    /* quando o JS adicionar .open, o menu aparece */
    .nav__links.open {
        display: flex;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .hero__content {
        text-align: left;
    }

    .hero__actions {
        justify-content: flex-start;
    }  


}