:root {
    --bg-main: #07111f;
    --bg-soft: #0b1628;
    --bg-card: rgba(13, 25, 45, 0.72);
    --bg-card-strong: rgba(16, 32, 58, 0.95);
    --text-main: #f5f7fb;
    --text-soft: #b9c5d6;
    --text-muted: #7f8ca3;
    --primary: #38bdf8;
    --primary-strong: #0ea5e9;
    --secondary: #8b5cf6;
    --green: #22c55e;
    --border: rgba(148, 163, 184, 0.18);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 34%),
        radial-gradient(circle at 80% 15%, rgba(139, 92, 246, 0.18), transparent 30%),
        var(--bg-main);
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.page-glow {
    position: fixed;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
}

.page-glow-one {
    top: 8%;
    left: -120px;
    background: var(--primary);
}

.page-glow-two {
    right: -120px;
    bottom: 15%;
    background: var(--secondary);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(7, 17, 31, 0.72);
    border-bottom: 1px solid var(--border);
}

.navbar {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 900;
    letter-spacing: -0.04em;
    font-size: 1.22rem;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.nav-links .nav-cta {
    padding: 10px 16px;
    border-radius: 999px;
    color: #03111f;
    background: linear-gradient(135deg, var(--primary), #7dd3fc);
    box-shadow: 0 12px 36px rgba(56, 189, 248, 0.24);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text-main);
    border-radius: 999px;
}

.hero {
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 78px);
    margin: 0 auto;
    padding: 86px 0 70px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.hero h1 {
    max-width: 780px;
    color: var(--text-main);
    font-size: clamp(2.8rem, 7vw, 6.4rem);
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.hero h1 span {
    display: block;
    margin-top: 22px;
    color: var(--text-soft);
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    line-height: 1.25;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero p {
    max-width: 760px;
    margin-top: 26px;
    color: var(--text-soft);
    font-size: 1.04rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 850;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #04111f;
    background: linear-gradient(135deg, var(--primary), #93c5fd);
    box-shadow: 0 16px 42px rgba(56, 189, 248, 0.25);
}

.btn-secondary {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: rgba(56, 189, 248, 0.45);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 42px;
}

.hero-stats div,
.info-card,
.skills-panel,
.education-card,
.contact-card,
.terminal-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-stats div {
    padding: 18px;
    border-radius: 18px;
}

.hero-stats strong {
    display: block;
    color: var(--text-main);
    font-size: 1rem;
}

.hero-stats span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.hero-card {
    display: flex;
    justify-content: center;
}

.terminal-card {
    width: min(100%, 460px);
    overflow: hidden;
    border-radius: var(--radius);
    transform: rotate(2deg);
}

.terminal-header {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border);
}

.terminal-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-header span:nth-child(1) {
    background: #ef4444;
}

.terminal-header span:nth-child(2) {
    background: #f59e0b;
}

.terminal-header span:nth-child(3) {
    background: #22c55e;
}

.terminal-body {
    padding: 26px;
    min-height: 320px;
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.07), transparent),
        rgba(3, 10, 22, 0.86);
    font-family: "Courier New", monospace;
}

.terminal-body p {
    margin: 0 0 16px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.terminal-body span {
    color: var(--primary);
}

.terminal-body .terminal-muted {
    color: var(--green);
}

.typing-line::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 16px;
    margin-left: 4px;
    background: var(--primary);
    vertical-align: middle;
    animation: blink 0.8s infinite;
}

.section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 86px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.section-heading h2,
.contact-card h2 {
    color: var(--text-main);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.section-heading p,
.contact-card p {
    margin-top: 16px;
    color: var(--text-soft);
    font-size: 1.02rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-card {
    position: relative;
    padding: 26px;
    border-radius: var(--radius);
    overflow: hidden;
}

.info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 35%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.info-card:hover::before {
    opacity: 1;
}

.card-icon {
    display: inline-flex;
    margin-bottom: 30px;
    color: var(--primary);
    font-weight: 900;
}

.info-card h3,
.skills-panel h3,
.education-card h3 {
    position: relative;
    color: var(--text-main);
    font-size: 1.2rem;
    line-height: 1.2;
}

.info-card p {
    position: relative;
    margin-top: 14px;
    color: var(--text-soft);
}

.timeline {
    position: relative;
    display: grid;
    gap: 22px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 140px;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
}

.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: start;
}

.timeline-date {
    color: var(--primary);
    font-weight: 900;
    font-size: 0.9rem;
}

.timeline-content {
    position: relative;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.timeline-content::before {
    content: "";
    position: absolute;
    top: 28px;
    left: -36px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.12);
}

.timeline-content h3 {
    color: var(--text-main);
    font-size: 1.28rem;
}

.timeline-content span {
    display: block;
    margin-top: 4px;
    color: var(--primary);
    font-weight: 850;
}

.timeline-content p {
    margin-top: 12px;
    color: var(--text-soft);
}

.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.skills-panel {
    padding: 26px;
    border-radius: var(--radius);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skills-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 0.88rem;
    font-weight: 750;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.skills-tags span:hover {
    color: var(--primary);
    border-color: rgba(56, 189, 248, 0.42);
    transform: translateY(-2px);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.education-card {
    padding: 24px;
    border-radius: var(--radius);
}

.education-card p {
    margin-top: 10px;
    color: var(--primary);
    font-weight: 850;
}

.education-card span {
    display: block;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-section {
    padding-bottom: 50px;
}

.contact-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 36px;
    padding: 38px;
    border-radius: 32px;
}

.contact-list {
    display: grid;
    gap: 12px;
}

.contact-list a,
.contact-list div {
    display: block;
    padding: 16px 18px;
    border-radius: 18px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.contact-list a:hover {
    transform: translateX(4px);
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.08);
}

.contact-list span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-list strong {
    display: block;
    margin-top: 4px;
    color: var(--text-main);
    word-break: break-word;
}

.site-footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 46px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.site-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 850;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes blink {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 64px;
    }

    .hero-card {
        justify-content: flex-start;
    }

    .about-grid,
    .skills-layout,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .navbar {
        width: min(100% - 28px, 1180px);
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 78px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 18px;
        background: rgba(9, 20, 36, 0.97);
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 13px 12px;
    }

    .nav-links .nav-cta {
        text-align: center;
        margin-top: 8px;
    }

    .hero,
    .section,
    .site-footer {
        width: min(100% - 28px, 1180px);
    }

    .hero {
        min-height: auto;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .terminal-card {
        transform: none;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-left: 28px;
    }

    .timeline-content::before {
        left: -27px;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 24px;
        border-radius: 24px;
    }

    .site-footer {
        flex-direction: column;
    }
}

/* =========================================================
   FOTO NA SEÇÃO SOBRE
   ========================================================= */

.about-profile-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: center;
    margin-bottom: 38px;
}

.about-profile-layout .section-heading {
    margin-bottom: 0;
}

.about-photo-card {
    position: relative;
    max-width: 380px;
    justify-self: end;
    padding: 14px;
    border-radius: 30px;
    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, 0.16),
            rgba(139, 92, 246, 0.10)
        ),
        var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.about-photo-glow {
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(
            circle at top right,
            rgba(56, 189, 248, 0.26),
            transparent 42%
        );
    pointer-events: none;
}

.about-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 28%;
    display: block;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    filter: saturate(1.05) contrast(1.04);
}

.about-photo-info {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(3, 10, 22, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.about-photo-info strong {
    color: var(--text-main);
    font-size: 1rem;
}

.about-photo-info span {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
}

@media (max-width: 980px) {
    .about-profile-layout {
        grid-template-columns: 1fr;
    }

    .about-photo-card {
        justify-self: start;
        max-width: 420px;
    }
}

@media (max-width: 760px) {
    .about-photo-card {
        max-width: 100%;
    }

    .about-photo-info {
        flex-direction: column;
        align-items: flex-start;
    }
}