
/* =========================================
   PALETA E CONFIGURAÇÕES GERAIS
========================================= */

:root {
    --bg: #080f19;
    --bg-secondary: #0c1522;
    --surface: #101b29;
    --surface-hover: #142333;
    --border: #223244;
    --green: #55ed91;
    --green-light: #80ffae;
    --green-dark: #20b968;
    --text: #f2f6fc;
    --text-secondary: #a7b8d0;
    --text-muted: #778aa5;
    --radius: 12px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: radial-gradient( ellipse at 75% 12%, rgba(32, 185, 104, 0.06), transparent 32% ), var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

::selection {
    color: #06120b;
    background: var(--green);
}

/* =========================================
   MENU SUPERIOR
========================================= */

.portfolio-navbar {
    min-height: 64px;
    background: rgba(10, 17, 27, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(14px);
    z-index: 1000;
}

    .portfolio-navbar .navbar-brand {
        color: var(--text);
        font-size: 20px;
        font-weight: 750;
        letter-spacing: -0.5px;
    }

.brand-icon {
    color: var(--green);
    font-size: 31px;
}

.portfolio-navbar .nav-link {
    position: relative;
    padding: 20px 8px !important;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition);
}

    .portfolio-navbar .nav-link:hover,
    .portfolio-navbar .nav-link.active {
        color: var(--green);
    }

        .portfolio-navbar .nav-link.active::after {
            position: absolute;
            right: 8px;
            bottom: 9px;
            left: 8px;
            height: 2px;
            background: var(--green);
            content: "";
        }

.navbar-toggler {
    border-color: var(--border);
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(85, 237, 145, 0.15);
    }

/* =========================================
   APRESENTAÇÃO PRINCIPAL
========================================= */

.hero-section {
    padding: 25px 0 48px;
    overflow: hidden;
}

.code-intro {
    margin-bottom: 8px;
    color: var(--green);
    font-family: Consolas, monospace;
    font-size: 17px;
    font-weight: 600;
}

    .code-intro span {
        color: var(--green-light);
    }

.hero-title {
    margin: 0 0 8px;
    font-size: clamp(42px, 5.2vw, 70px);
    font-weight: 800;
    line-height: 1.08;
    /*letter-spacing: -2.8px;*/
}

    .hero-title span {
        color: var(--green);
    }

.hero-subtitle {
    margin-bottom: 20px;
    color: #e1e9f5;
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 600;
    line-height: 1.4;
}

.hero-description,
.hero-education {
    /*max-width: 620px;*/
    max-width: 720px;
    margin-bottom: 13px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 23px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 21px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 650;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-accent {
    border: 1px solid var(--green);
    background: var(--green);
    color: #06150c;
    box-shadow: 0 5px 20px rgba(85, 237, 145, 0.12);
}

    .btn-accent:hover {
        border-color: var(--green-light);
        background: var(--green-light);
        color: #06150c;
        box-shadow: 0 7px 24px rgba(85, 237, 145, 0.2);
    }

.btn-outline-light-custom {
    border: 1px solid #586b83;
    background: transparent;
    color: var(--text);
}

    .btn-outline-light-custom:hover {
        border-color: var(--green);
        background: rgba(85, 237, 145, 0.06);
        color: var(--green);
    }

/* AVATAR */

.hero-avatar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    isolation: isolate;
}

.avatar-glow {
    position: absolute;
    z-index: -1;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: rgba(48, 226, 124, 0.12);
    filter: blur(55px);
}

.hero-avatar {
    width: min(270px, 72%);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    border: 4px solid rgba(85, 237, 145, 0.65);
    border-radius: 48% 48% 46% 46%;
    background: var(--surface);
    box-shadow: 0 0 0 8px rgba(85, 237, 145, 0.045), 0 20px 55px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease;
}

    .hero-avatar:hover {
        transform: translateY(-4px) rotate(1deg);
    }

.avatar-signature {
    display: flex;
    flex-direction: column;
    margin-left: 25px;
    color: var(--green);
    font-family: "Segoe Print", cursive;
    font-size: 17px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.55;
    transform: rotate(-7deg);
}

    .avatar-signature small {
        margin-top: 9px;
        font-size: 15px;
    }

/* =========================================
   SEÇÕES E CARTÕES
========================================= */

.section-spacing {
    padding: 17px 0;
}

.section-top {
    padding-top: 1px;
}

.glass-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient( 145deg, rgba(19, 31, 46, 0.96), rgba(12, 21, 33, 0.96) );
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

    .glass-card:hover {
        border-color: rgba(85, 237, 145, 0.28);
    }

.skills-card {
    padding: 25px;
}

.section-heading,
.card-heading {
    display: flex;
    align-items: center;
    gap: 17px;
}

.section-icon {
    flex-shrink: 0;
    color: var(--green);
    font-size: 29px;
}

.section-heading h2,
.card-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.3px;
}

.section-heading p {
    margin: 2px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    border: 1px solid #293b4c;
    border-radius: 50px;
    background: rgba(22, 36, 51, 0.72);
    color: #dce6f4;
    font-size: 13px;
    font-weight: 550;
    transition: all var(--transition);
}

    .skill-tag i {
        color: var(--green);
        font-size: 16px;
    }

    .skill-tag:hover {
        transform: translateY(-2px);
        border-color: rgba(85, 237, 145, 0.5);
        background: rgba(85, 237, 145, 0.08);
        color: var(--green-light);
    }

/* =========================================
   CARDS DE INFORMAÇÕES
========================================= */

.info-card {
    display: flex;
    flex-direction: column;
    padding: 23px;
}

.card-heading {
    gap: 13px;
    margin-bottom: 24px;
}

    .card-heading .section-icon {
        font-size: 27px;
    }

    .card-heading h3 {
        font-size: 18px;
    }

.experience-number {
    margin-top: -4px;
    color: var(--green);
    font-size: 37px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.25;
}

.experience-label {
    margin: 3px 0 10px;
    color: var(--text-secondary);
}

.experience-line {
    width: 68%;
    height: 2px;
    margin-bottom: 20px;
    background: linear-gradient( to right, var(--green) 0%, var(--green-dark) 70%, var(--border) 70% );
}

.card-description {
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.mini-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
}

    .mini-features > div {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 0;
        padding: 5px 7px;
        border-right: 1px solid var(--border);
    }

        .mini-features > div:last-child {
            border-right: 0;
        }

    .mini-features i {
        color: var(--green);
        font-size: 23px;
    }

    .mini-features span {
        color: var(--text-secondary);
        font-size: 12px;
        line-height: 1.55;
    }

/* FORMAÇÃO */

.education-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 19px;
}

.education-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(85, 237, 145, 0.12);
    border-radius: 50%;
    background: rgba(85, 237, 145, 0.08);
    color: var(--green);
    font-size: 21px;
}

.education-item h4 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}

.education-item p,
.education-item span {
    display: block;
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.education-item span {
    color: var(--text-muted);
}

.card-divider {
    margin: 0 0 16px;
    border-color: #304154;
    opacity: 1;
}

.highlights-title {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

    .highlights-title i {
        color: var(--green);
    }

.check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .check-list li {
        position: relative;
        padding-left: 25px;
        color: var(--text-secondary);
        font-size: 13px;
        line-height: 1.6;
    }

        .check-list li::before {
            position: absolute;
            top: 1px;
            left: 0;
            color: var(--green);
            font-family: "bootstrap-icons";
            content: "\f26a";
            font-size: 15px;
            font-weight: 700;
        }

.areas-list {
    gap: 13px;
}

/* FRASE DE DESTAQUE */

.quote-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: auto;
    padding: 5px 18px 18px 18px;
    border: 1px solid rgba(85, 237, 145, 0.24);
    border-radius: 9px;
    background: rgba(85, 237, 145, 0.045);
}

    .quote-card > i {
        color: var(--green);
        font-size: 26px;
    }

    .quote-card p {
        margin: 0;
        color: var(--green);
        font-size: 14px;
        font-weight: 650;
        line-height: 1.7;
    }

    .quote-card span {
        width: 35px;
        height: 2px;
        background: var(--green);
    }

/* =========================================
   PROJETOS
========================================= */

.section-title-block {
    margin-bottom: 25px;
}

.eyebrow {
    color: var(--green);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.section-title-block h2,
.contact-card h2 {
    margin: 6px 0;
    color: var(--text);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 750;
    letter-spacing: -1px;
}

.section-title-block p,
.contact-card p {
    margin: 0;
    color: var(--text-secondary);
}

.project-card {
    padding: 24px;
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    margin-bottom: 20px;
    border: 1px solid rgba(85, 237, 145, 0.2);
    border-radius: 12px;
    background: rgba(85, 237, 145, 0.07);
    color: var(--green);
    font-size: 25px;
}

.project-card h3 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.project-category {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(85, 237, 145, 0.17);
    border-radius: 50px;
    color: var(--green);
    font-size: 11px;
    font-weight: 650;
}

.projects-note {
    margin: 15px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}

/* =========================================
   CONTATO
========================================= */

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 32px;
    border: 1px solid rgba(85, 237, 145, 0.23);
    border-radius: var(--radius);
    background: radial-gradient( ellipse at 95% 50%, rgba(85, 237, 145, 0.08), transparent 40% ), var(--surface);
}

    .contact-card > div {
        max-width: 650px;
    }

    .contact-card p {
        margin-top: 8px;
        line-height: 1.8;
    }

/* =========================================
   RODAPÉ
========================================= */

.portfolio-footer {
    margin-top: 35px;
    padding: 23px 0 15px;
    border-top: 1px solid var(--border);
    background: rgba(12, 21, 33, 0.85);
}

.footer-content,
.footer-right,
.social-links {
    display: flex;
    align-items: center;
}

.footer-content {
    justify-content: space-between;
    gap: 20px;
}

    .footer-content > p {
        margin: 0;
        color: var(--text-muted);
        font-family: Georgia, serif;
        font-size: 14px;
        font-style: italic;
    }

.footer-right {
    flex-wrap: wrap;
    gap: 18px;
}

.social-links {
    gap: 18px;
}

    .social-links a {
        color: var(--green);
        font-size: 18px;
        transition: color var(--transition);
    }

        .social-links a:hover {
            color: var(--green-light);
        }

.footer-divider {
    width: 1px;
    height: 22px;
    background: var(--border);
}

.location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 12px;
}

    .location i {
        color: var(--green);
    }

.copyright {
    margin-top: 17px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
}

/* =========================================
   RESPONSIVIDADE
========================================= */

@media (min-width: 1400px) {
    .hero-section {
        padding-top: 30px;
        padding-bottom: 60px;
    }
}

@media (max-width: 991.98px) {
    .portfolio-navbar .nav-link {
        padding: 10px 0 !important;
    }

        .portfolio-navbar .nav-link.active::after {
            display: none;
        }

    .hero-section {
        padding-top: 45px;
    }

    .hero-avatar-wrapper {
        min-height: 300px;
    }

    .hero-avatar {
        width: 235px;
    }

    .info-card {
        padding: 22px;
    }

    .contact-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .hero-section {
        padding-top: 22px;
    }

    .hero-title {
        font-size: 44px;
        /*letter-spacing: -1.8px;*/
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description,
    .hero-education {
        font-size: 14px;
    }

    .hero-avatar-wrapper {
        min-height: 260px;
    }

    .hero-avatar {
        width: 205px;
    }

    .avatar-signature {
        margin-left: 12px;
        font-size: 13px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .hero-actions .btn {
            width: 100%;
        }

    .skills-card,
    .info-card,
    .project-card {
        padding: 19px;
    }

    .section-heading {
        align-items: flex-start;
        gap: 12px;
    }

        .section-heading h2 {
            font-size: 18px;
        }

        .section-heading p {
            margin-top: 6px;
        }

    .skills-list {
        gap: 8px;
    }

    .skill-tag {
        padding: 7px 11px;
        font-size: 12px;
    }

    .mini-features {
        gap: 3px;
    }

        .mini-features > div {
            padding: 4px;
        }

        .mini-features span {
            font-size: 11px;
        }

    .contact-card {
        padding: 23px;
    }

    .footer-content,
    .footer-right {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-right {
        gap: 13px;
    }

    .footer-divider {
        display: none;
    }
}

/* Respeita a preferência do usuário por menos movimento. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}