:root {
    --bg-main: #050713;
    --bg-elevated: #0b0f1f;
    --bg-elevated-soft: #101426;
    --accent: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.15);
    --accent-strong: #6366f1;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --danger: #f97373;

    --radius-lg: 18px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 18px 35px rgba(0, 0, 0, 0.5);

    --container-width: min(1120px, 100% - 2.5rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #1f2937 0, transparent 45%),
        radial-gradient(circle at bottom right, #111827 0, transparent 55%),
        var(--bg-main);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* UTILITÁRIOS */

.container {
    width: var(--container-width);
    margin-inline: auto;
}

.section {
    padding: 4.5rem 0;
}

.section--highlight {
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent 55%),
        linear-gradient(135deg, #020617 0%, #020617 40%, #020617 80%, #020617 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section__title {
    font-size: clamp(1.8rem, 2.3vw, 2.2rem);
    font-weight: 600;
    margin: 0 0 0.7rem 0;
}

.section__subtitle {
    margin: 0;
    color: var(--text-muted);
    max-width: 580px;
    margin-inline: auto;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(5, 7, 19, 0.9), rgba(5, 7, 19, 0.7), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.logo__symbol {
    font-size: 0.78rem;
    padding: 0.16rem 0.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--accent-strong);
    background: radial-gradient(circle at top left, var(--accent-soft), transparent 55%);
}

.logo__text {
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.98rem;
}

/* NAV */

.nav {
    display: flex;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.93rem;
    position: relative;
    padding-bottom: 0.15rem;
    transition: color 0.2s ease;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.18rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width 0.25s ease;
}

.nav__link:hover {
    color: var(--text-main);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--primary {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.35), transparent 55%);
    border: 1px solid rgba(129, 140, 248, 0.7);
    color: var(--text-main);
    font-weight: 500;
}

.nav__link--primary::after {
    display: none;
}

/* NAV TOGGLE (MOBILE) */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle__line {
    display: block;
    width: 22px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__line+.nav-toggle__line {
    margin-top: 5px;
}

/* HERO */

.hero {
    padding: 3.4rem 0 3.6rem 0;
}

.hero__container {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2.8rem;
    align-items: center;
}

.hero__info {
    max-width: 620px;
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--accent-strong);
    padding: 0.15rem 0.75rem;
    border-radius: var(--radius-pill);
    background: rgba(30, 64, 175, 0.2);
    border: 1px solid rgba(79, 70, 229, 0.5);
}

.hero__title {
    margin: 1rem 0 0.6rem 0;
    font-size: clamp(2.1rem, 3.3vw, 2.9rem);
    font-weight: 600;
}

.hero__title span {
    background: linear-gradient(120deg, #a5b4fc 0%, #6366f1 40%, #22d3ee 100%);
    -webkit-background-clip: text;
    color: transparent;
}

.hero__subtitle {
    margin: 0 0 1.6rem 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.98rem;
}

.hero__actions {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

/* BOTÕES */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    font-size: 0.92rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.btn--primary {
    background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.6), rgba(59, 130, 246, 0.95));
    border-color: rgba(129, 140, 248, 0.9);
    color: var(--text-main);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.7);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.65);
    color: var(--text-main);
}

.btn--ghost:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-1px);
}

.btn--full {
    width: 100%;
}

/* HERO META */

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero__meta-item {
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.9));
}

.hero__meta-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.16rem;
}

.hero__meta-value {
    font-size: 0.9rem;
}

/* HERO SOCIAL */

.hero__social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero__social a {
    color: var(--accent-strong);
    text-decoration: none;
}

.hero__social a:hover {
    text-decoration: underline;
}

/* HERO FOTO */

.hero__photo-wrapper {
    display: flex;
    justify-content: flex-end;
}

.hero__photo-card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.3), transparent 55%),
        linear-gradient(145deg, #020617, #020617, #020617);
    border-radius: var(--radius-xl);
    padding: 1.1rem;
    position: relative;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(148, 163, 184, 0.35);
    max-width: 320px;
    width: 100%;
}

.hero__status-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.72rem;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.7);
    color: #bbf7d0;
}

.hero__photo {
    width: 100%;
    display: block;
    border-radius: calc(var(--radius-xl) - 6px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    object-fit: cover;
    aspect-ratio: 4 / 5;
    background: #020617;
}

.hero__badge {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(79, 70, 229, 0.7);
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hero__badge-title {
    font-size: 0.8rem;
    font-weight: 600;
}

.hero__badge-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* SKILLS */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.skills-card {
    background: var(--bg-elevated-soft);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.2rem 1.1rem 1.2rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.7);
}

.skills-card h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1rem;
}

.skills-card p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.skills-card ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.86rem;
    color: #e5e7eb;
}

/* PORTFÓLIO */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
}

.portfolio-card {
    background: var(--bg-elevated);
    border-radius: 22px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 1);
    border-color: rgba(79, 70, 229, 0.6);
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent 60%),
        var(--bg-elevated);
}

.portfolio-card__image-wrapper {
    position: relative;
    overflow: hidden;
}

.portfolio-card__image {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card__image {
    transform: scale(1.06);
}

.portfolio-card__content {
    padding: 1.2rem 1.25rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portfolio-card__title {
    margin: 0;
    font-size: 1.02rem;
}

.portfolio-card__description {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.portfolio-card__tags {
    list-style: none;
    margin: 0.4rem 0 0.3rem 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.portfolio-card__tags li {
    font-size: 0.78rem;
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: #e5e7eb;
}

.portfolio-card__footer {
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.btn-link {
    font-size: 0.85rem;
    color: var(--accent-strong);
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.portfolio-card__status {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* CONTATO */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.2rem;
    align-items: flex-start;
}

.contact__info .section__title {
    text-align: left;
}

.contact__info .section__subtitle {
    text-align: left;
    margin-left: 0;
}

.contact__list {
    list-style: none;
    margin: 1.5rem 0 0 0;
    padding: 0;
    font-size: 0.92rem;
}

.contact__list li {
    margin-bottom: 0.4rem;
}

.contact__list a {
    color: var(--accent-strong);
    text-decoration: none;
}

.contact__list a:hover {
    text-decoration: underline;
}

.contact__form {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 20px;
    padding: 1.4rem 1.4rem 1.2rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
}

.form__group {
    margin-bottom: 0.9rem;
}

.form__group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    color: #e5e7eb;
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    background: #020617;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.7);
    background: #020617;
}

.form__note {
    margin-top: 0.4rem;
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* FOOTER */

.footer {
    padding: 1.8rem 0 1.5rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.85), #020617);
}

.footer__container {
    text-align: center;
}

.footer__copy {
    margin: 0 0 0.25rem 0;
    font-size: 0.84rem;
    color: #e5e7eb;
}

.footer__small {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ANIMAÇÕES BÁSICAS */

.fade-in {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVO */

@media (max-width: 960px) {
    .hero__container {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .hero__photo-wrapper {
        justify-content: center;
    }

    .hero__photo-card {
        max-width: 280px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact__info .section__title,
    .contact__info .section__subtitle {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .header__container {
        padding-block: 0.7rem;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 0;
    }

    .nav {
        position: absolute;
        top: 58px;
        right: 0.7rem;
        left: 0.7rem;
        background: rgba(15, 23, 42, 0.97);
        border-radius: 16px;
        border: 1px solid rgba(148, 163, 184, 0.4);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .nav--open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.6rem 0.7rem;
    }

    .nav__link {
        width: 100%;
        padding: 0.45rem 0.6rem;
        border-radius: 10px;
    }

    .nav__link--primary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero {
        padding-top: 2.4rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__actions {
        flex-wrap: wrap;
    }

    .skills-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Pequeno ajuste para telas muito pequenas */

@media (max-width: 480px) {
    .container {
        width: min(100% - 1.6rem, 100%);
    }

    .hero__meta {
        gap: 0.6rem;
    }

    .hero__meta-item {
        width: 100%;
    }
}