@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --text-muted: #b8c7d4;
    --main-color: #00abf0;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

span {
    color: var(--main-color);
}

/* ================= HEADER & NAVBAR ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
}

.header.sticky,
.header.internal-header {
    background: var(--bg-color);
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .35);
}

.logo {
    position: relative;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .8rem;
}

.logo i {
    color: var(--main-color);
}

.logo-badge {
    font-size: 1.1rem;
    padding: .2rem .8rem;
    border: .15rem solid var(--main-color);
    border-radius: .4rem;
    color: var(--main-color);
    font-weight: 600;
}

.navbar {
    position: relative;
    display: flex;
    align-items: center;
}

.navbar a {
    font-size: 1.6rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

.navbar a.nav-cta {
    padding: .7rem 1.6rem;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: .6rem;
    font-weight: 600;
    border: .2rem solid var(--main-color);
}

.navbar a.nav-cta:hover {
    background: transparent;
    color: var(--main-color);
}

#menu-icon {
    position: relative;
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

/* ================= SECTIONS BASE ================= */
section {
    min-height: 100vh;
    padding: 10rem 9% 6rem;
}

.heading {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-top-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.section-subtitle i {
    color: var(--main-color);
    margin-right: .5rem;
}

/* ================= HOME SECTION ================= */
.home {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 0 9%;
    background: radial-gradient(circle at 80% 50%, rgba(0, 171, 240, 0.14) 0%, rgba(8, 27, 41, 0.98) 65%);
    background-size: cover;
    background-position: center;
}

.home-content {
    max-width: 62rem;
    z-index: 99;
}

.status-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: .5rem 1.4rem;
    border: .15rem solid var(--main-color);
    border-radius: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    letter-spacing: .08rem;
}

.pulse-dot {
    width: .9rem;
    height: .9rem;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 1rem var(--main-color);
}

.home-content h1 {
    position: relative;
    display: inline-block;
    font-size: 5.1rem;
    font-weight: 700;
    line-height: 1.25;
}

.home-content h1 span {
    color: var(--text-color);
}

.home-content .text-animate {
    position: relative;
    width: 44rem;
    max-width: 100%;
    margin-top: .5rem;
}

.home-content .text-animate h3 {
    font-size: 2.9rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: .7px var(--main-color);
    background-image: linear-gradient(var(--main-color), var(--main-color));
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-position: -44rem 0;
}

.home.show-animate .home-content .text-animate h3 {
    animation: homeBgText 6s linear infinite;
    animation-delay: 2s;
}

.home-content .text-animate h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-right: 2px solid var(--main-color);
    z-index: -1;
}

.home.show-animate .home-content .text-animate h3::before {
    animation: homeCursorText 6s linear infinite;
    animation-delay: 2s;
}

.home-content p {
    position: relative;
    font-size: 1.6rem;
    margin: 2rem 0 3.5rem;
    line-height: 1.7;
}

/* ================= BUTTONS ================= */
.btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 36rem;
    max-width: 100%;
    height: 5rem;
    gap: 1.5rem;
}

.btn-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .6rem;
    width: 17rem;
    height: 100%;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: .05rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
    cursor: pointer;
}

.btn-box .btn:hover {
    color: var(--main-color);
}

.btn-box .btn:nth-child(2) {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
    color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before {
    background: var(--main-color);
}

.btn-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover::before {
    width: 100%;
}

.btn-box.btns {
    display: inline-flex;
    width: auto;
    min-width: 22rem;
}

.btn-box.btns .btn {
    width: 100%;
    padding: 0 2.2rem;
}

/* Social / Quick Icons */
.home-sci {
    position: absolute;
    bottom: 4rem;
    width: 220px;
    display: flex;
    justify-content: space-between;
    z-index: 99;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.home-sci a:hover {
    color: var(--bg-color);
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before {
    width: 100%;
}

.home-imgHover {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: transparent;
    transition: 3s;
    z-index: 1;
}

.home-imgHover:hover {
    background: var(--bg-color);
    opacity: .8;
}

/* ================= ABOUT / TELEMETRIA ================= */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 6rem;
}

.about-img {
    position: relative;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 88%;
    height: 88%;
    object-fit: cover;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
    background: var(--bg-color);
}

.about-img .circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .2rem solid var(--second-bg-color);
    border-bottom: .2rem solid var(--second-bg-color);
    border-left: .2rem solid var(--main-color);
    border-right: .2rem solid var(--main-color);
    animation: aboutSpinner 8s linear infinite;
}

.about-content {
    text-align: center;
    max-width: 85rem;
}

.about-content h3 {
    position: relative;
    display: inline-block;
    font-size: 2.6rem;
}

.about-content p {
    position: relative;
    font-size: 1.6rem;
    margin: 1.5rem 0 3rem;
}

.telemetry-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.telemetry-box {
    position: relative;
    padding: 2rem;
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    background: var(--bg-color);
    overflow: hidden;
    z-index: 1;
}

.telemetry-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.telemetry-box:hover::before {
    width: 100%;
}

.telemetry-val {
    display: block;
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--main-color);
}

.telemetry-label {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .1rem;
    color: var(--text-color);
}

.btn-box.btns a::before {
    background: var(--second-bg-color);
}

/* ================= CATALOG CARDS (PROJETOS, TEXTURAS, GLB) ================= */
.catalog-sec.alt-bg {
    background: var(--second-bg-color);
}

.catalog-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
    gap: 2.5rem;
}

.catalog-card {
    position: relative;
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    background: rgba(8, 27, 41, 0.55);
}

.catalog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.catalog-sec.alt-bg .catalog-card::before {
    background: var(--bg-color);
}

.catalog-card:hover::before {
    width: 100%;
}

.card-thumb-wrap {
    position: relative;
    width: 100%;
    height: 21rem;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: .15rem solid rgba(0, 171, 240, 0.35);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.card-thumb.contain-mode {
    object-fit: contain;
    padding: 1.2rem;
}

.catalog-card:hover .card-thumb {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-color);
    border: .15rem solid var(--main-color);
    color: var(--main-color);
    padding: .3rem 1rem;
    border-radius: .5rem;
    font-size: 1.15rem;
    font-weight: 600;
    z-index: 2;
}

.card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: .6rem;
    color: var(--text-color);
}

.card-meta {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.card-meta i {
    color: var(--main-color);
}

.card-actions {
    width: 100%;
    height: 4.2rem;
}

.card-actions .btn {
    width: 48%;
    font-size: 1.35rem;
}

/* ================= EDUCATION / MISSÕES & MÓDULOS ================= */
.education {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 6rem;
}

.education .education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    width: 100%;
}

.education-row .education-column {
    flex: 1 1 40rem;
}

.education-column .title {
            position: relative;
            display: inline-block;
            font-size: 2.5rem;
            margin: 0 0 1.5rem 2rem;
        }

.education-column .education-box {
    position: relative;
    border-left: .2rem solid var(--main-color);
}

.education-box .education-content {
    position: relative;
    padding-left: 2rem;
}

.education-box .education-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
}

.education-content .content {
    position: relative;
    padding: 1.8rem;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
    overflow: hidden;
    display: block;
    color: var(--text-color);
    z-index: 1;
}

.education-content .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.education-content .content:hover::before {
    width: 100%;
}

.education-content .content .year {
    font-size: 1.4rem;
    color: var(--main-color);
    padding-bottom: .5rem;
    font-weight: 600;
}

.education-content .content .year i {
    padding-right: .5rem;
}

.education-content .content h3 {
    font-size: 2rem;
}

.education-content .content p {
    font-size: 1.5rem;
    padding-top: .5rem;
    color: #d0dce5;
}

/* ================= SKILLS / TELEMETRIA DE SISTEMA ================= */
.skills {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
}

.skills .skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills-row .skills-column {
    flex: 1 1 40rem;
}

.skills-column .title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.skills-column .skills-box {
    position: relative;
}

.skills-box .skills-content {
    position: relative;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    padding: .5rem 1.5rem;
    z-index: 1;
    overflow: hidden;
}

.skills-box .skills-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.skills-box .skills-content:hover::before {
    width: 100%;
}

.skills-content .progress {
    padding: 1rem 0;
}

.skills-content .progress h3 {
    font-size: 1.7rem;
    display: flex;
    justify-content: space-between;
}

.skills-content .progress h3 span {
    color: var(--text-color);
}

.skills-content .progress .bar {
    height: 2.5rem;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
    padding: .5rem;
    margin: 1rem 0;
}

.skills-content .progress .bar span {
    display: block;
    height: 100%;
    border-radius: .3rem;
    background: var(--main-color);
}

/* ================= UTILITÁRIOS PARA PÁGINAS INTERNAS ================= */
.breadcrumbs {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-muted);
    transition: .3s;
}

.breadcrumbs a:hover {
    color: var(--main-color);
}

.breadcrumbs .current {
    color: var(--main-color);
    font-weight: 600;
}

/* ================= FOOTER ================= */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem 9%;
    background: var(--bg-color);
    border-top: .1rem solid rgba(0, 171, 240, 0.25);
}

.footer-text,
.footer-iconTop {
    position: relative;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: .3s;
}

.footer-links a:hover {
    color: var(--main-color);
}

.footer-text p {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.footer-hazard {
    display: inline-block;
    margin-top: .8rem;
    font-size: 1.25rem;
    color: var(--main-color);
}

.footer-iconTop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}

.footer-iconTop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.footer-iconTop a:hover::before {
    width: 100%;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
    transition: .5s;
}

.footer-iconTop a:hover i {
    color: var(--main-color);
}

/* ================= ANIMATION RELOAD AND SCROLL ================= */
/* ================= ANIMATION RELOAD AND SCROLL ================= */
.animate {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 98;
    pointer-events: none;
}

.animate.home-img {
    width: 45%;
}

/* Dispara a abertura tanto na Home quanto nas páginas internas (.internal-sec) */
.logo .animate,
.navbar .animate,
#menu-icon .animate,
.home.show-animate .animate,
.internal-sec.show-animate .animate,
section.show-animate .animate:not(.scroll) {
    animation: showRight 1s ease forwards;
    animation-delay: calc(.3s * var(--i));
}

.animate.scroll {
    transition: 1s ease;
    transition-delay: calc(.3s / var(--i));
    animation: none;
}

.about .animate.scroll,
.catalog-sec.alt-bg .animate.scroll,
.skills .animate.scroll {
    background: var(--second-bg-color);
}

.education .education-box .animate.scroll {
    width: 105%;
}

section.show-animate .animate.scroll,
.footer.show-animate .animate.scroll {
    transition-delay: calc(.3s * var(--i));
    width: 0;
}

/* ================= BREAKPOINTS ================= */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }
    section {
        padding: 10rem 4% 4rem;
    }
    .home {
        padding: 0 4%;
    }
    .footer {
        padding: 2rem 4%;
    }
}

@media (max-width: 768px) {
    .header {
        background: var(--bg-color);
    }
    #menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--main-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        z-index: 1;
        transition: .25s ease;
        transition-delay: .25s;
        display: block;
    }
    .navbar.active {
        left: 0;
        transition-delay: 0s;
    }
    .navbar .active-nav {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        z-index: -1;
        transition: .25s ease;
        transition-delay: 0s;
    }
    .navbar.active .active-nav {
        left: 0;
        transition-delay: .25s;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 2.5rem 0;
        transform: translateX(-20rem);
        transition: .25s ease;
        transition-delay: 0s;
    }
    .navbar.active a {
        transform: translateX(0);
        transition-delay: .25s;
    }
    .telemetry-grid {
        grid-template-columns: 1fr;
    }
    .home-imgHover {
        pointer-events: none;
        background: var(--bg-color);
        opacity: .6;
    }
}

@media (max-width: 520px) {
    html {
        font-size: 50%;
    }
    .home-content h1 {
        display: flex;
        flex-direction: column;
    }
}

/* ================= KEYFRAMES ANIMATION ================= */
@keyframes homeBgText {
    0%, 10%, 100% {
        background-position: -44rem 0;
    }
    65%, 85% {
        background-position: 0 0;
    }
}

@keyframes homeCursorText {
    0%, 10%, 100% {
        width: 0;
    }
    65%, 78%, 85% {
        width: 100%;
        opacity: 1;
    }
    75%, 81% {
        opacity: 0;
    }
}

@keyframes aboutSpinner {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes showRight {
    100% {
        width: 0;
    }
}

/* ================= CATÁLOGO & INSPECIONADOR PBR (INTERNAS) ================= */
.internal-sec {
    min-height: calc(100vh - 12rem);
    padding: 12rem 9% 6rem;
}

/* Visualizador Split (Single Texture / Single Model / Projeto) */
.inspector-split {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4.5rem;
    align-items: start;
    background: var(--second-bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    padding: 3.5rem;
    z-index: 1;
}

.texture-viewer {
    position: relative;
}

.texture-preview-box {
    position: relative;
    border-radius: .6rem;
    overflow: hidden;
    border: .2rem solid var(--main-color);
    background: var(--bg-color);
    box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, .5);
}

.texture-img {
    width: 100%;
    height: 44rem;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.texture-preview-box:hover .texture-img {
    transform: scale(1.04);
}

/* Abas de troca de Mapas PBR (Diffuse / Normal / Roughness) */
.pbr-tabs {
    display: flex;
    gap: 1rem;
    margin-top: 1.4rem;
    flex-wrap: wrap;
}

.pbr-tab-btn {
    position: relative;
    flex: 1;
    min-width: 12rem;
    padding: 1.1rem 1.2rem;
    background: var(--bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: .4s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}

.pbr-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .4s;
}

.pbr-tab-btn:hover::before,
.pbr-tab-btn.active::before {
    width: 100%;
}

.pbr-tab-btn:hover,
.pbr-tab-btn.active {
    color: var(--bg-color);
}

/* Especificações da Chapa */
.inspector-info h1 {
    font-size: clamp(2.8rem, 3.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.inspector-desc {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin-bottom: 3rem;
}

.spec-item {
    position: relative;
    background: var(--bg-color);
    border: .2rem solid var(--main-color);
    padding: 1.4rem 1.6rem;
    border-radius: .6rem;
    overflow: hidden;
    z-index: 1;
}

.spec-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .4s;
}

.spec-item:hover::before {
    width: 100%;
}

.spec-label {
    font-size: 1.2rem;
    color: var(--main-color);
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: .3rem;
}

.spec-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Barra de Busca Animada e Filtros */
.catalog-search-form {
    position: relative;
    max-width: 65rem;
    margin: 0 auto 3rem;
    display: flex;
    gap: 1.2rem;
}

.catalog-search-field {
    position: relative;
    flex: 1;
    z-index: 1;
}

.catalog-search-input {
    width: 100%;
    height: 5rem;
    padding: 0 1.8rem;
    font-size: 1.5rem;
    color: var(--text-color);
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
}

.catalog-search-input::placeholder {
    color: var(--text-muted);
}

.catalog-search-field .focus {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    border-radius: .8rem;
    z-index: -1;
    transition: .5s;
}

.catalog-search-input:focus ~ .focus,
.catalog-search-input:not(:placeholder-shown) ~ .focus {
    width: 100%;
}

.filter-chips {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-chip {
    position: relative;
    padding: .8rem 1.8rem;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--main-color);
    background: transparent;
    overflow: hidden;
    z-index: 1;
    transition: .4s;
}

.filter-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .4s;
}

.filter-chip:hover::before,
.filter-chip.active::before {
    width: 100%;
}

.filter-chip:hover,
.filter-chip.active {
    color: var(--bg-color);
}

/* Alerta 404 amigável */
.alert-box {
    position: relative;
    background: var(--second-bg-color);
    border: .2rem solid var(--main-color);
    padding: 2rem;
    border-radius: .8rem;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
    .inspector-split {
        grid-template-columns: 1fr;
        padding: 2.2rem;
    }
    .texture-img {
        height: 30rem;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
    .catalog-search-form {
        flex-direction: column;
    }
}
/* ================= PROJETO.PHP (AUTOR & REGRAS DE PEÇAS) ================= */
.author-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    background: var(--bg-color);
    border: .2rem solid var(--main-color);
    padding: 1.5rem 2rem;
    border-radius: .8rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
    z-index: 1;
}

.author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.author-box:hover::before {
    width: 100%;
}

.author-avatar {
    width: 5.2rem;
    height: 5.2rem;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
    background: var(--second-bg-color);
    color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    flex-shrink: 0;
}

.author-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.author-info p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin: 0;
}

.rules-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
    gap: 2rem;
}

.rule-card {
    position: relative;
    background: var(--bg-color);
    border: .2rem solid var(--main-color);
    border-left: .5rem solid var(--main-color);
    border-radius: .6rem;
    padding: 1.8rem;
    font-size: 1.45rem;
    color: var(--text-muted);
    overflow: hidden;
    z-index: 1;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.article-alt-bg .rule-card::before {
    background: var(--bg-color);
}

.rule-card:hover::before {
    width: 100%;
}

.rule-card strong {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--text-color);
    font-size: 1.7rem;
    margin-bottom: .6rem;
}

.rule-card strong i {
    color: var(--main-color);
}

/* ================= MANUAL.PHP (CALCULADORA, ARTIGOS & FAQ) ================= */
.calc-panel {
    position: relative;
    background: var(--second-bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    padding: 3.2rem;
    margin-bottom: 5rem;
    z-index: 1;
    box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, .35);
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: .1rem solid rgba(0, 171, 240, 0.25);
}

.calc-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-color);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.2rem;
    align-items: start;
}

.calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
}

.hud-field label {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: .6rem;
}

.hud-input,
.hud-select {
    width: 100%;
    padding: 1.2rem 1.4rem;
    background: var(--bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 500;
    transition: .3s;
}

.hud-input:focus,
.hud-select:focus {
    box-shadow: 0 0 1.2rem rgba(0, 171, 240, 0.45);
}

.hud-select option {
    background: var(--bg-color);
    color: var(--text-color);
}

.calc-results-box {
    background: var(--bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    padding: 2.4rem;
}

.calc-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin-bottom: 2rem;
}

.calc-stat {
    position: relative;
    background: var(--second-bg-color);
    border: .15rem solid rgba(0, 171, 240, 0.4);
    border-left: .4rem solid var(--main-color);
    border-radius: .6rem;
    padding: 1.2rem 1.4rem;
}

.calc-stat span {
    display: block;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: .4rem;
}

.calc-stat strong {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--main-color);
}

/* Layout de Leitura de Artigo Individual */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 35rem;
    gap: 3.5rem;
    align-items: start;
}

.article-main {
    position: relative;
    background: var(--second-bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    padding: 4rem;
}

.article-title {
    font-size: clamp(2.6rem, 3.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 1.2rem 0 1.8rem;
    color: var(--text-color);
}

.article-meta-bar {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 1.35rem;
    color: var(--text-muted);
    padding-bottom: 2rem;
    margin-bottom: 2.8rem;
    border-bottom: .1rem solid rgba(0, 171, 240, 0.25);
}

.article-meta-bar i {
    color: var(--main-color);
    margin-right: .4rem;
}

/* Formatação do Conteúdo HTML vindo do MySQL (conteudo_html) */
.article-body {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-body h2 {
    font-size: 2.3rem;
    color: var(--main-color);
    margin: 3.5rem 0 1.4rem;
    padding-bottom: .8rem;
    border-bottom: .1rem solid rgba(0, 171, 240, 0.3);
}

.article-body h3 {
    font-size: 1.9rem;
    color: var(--text-color);
    margin: 2.6rem 0 1rem;
}

.article-body p {
    margin-bottom: 1.8rem;
}

.article-body ul,
.article-body ol {
    margin: 0 0 2.2rem 2.4rem;
}

.article-body li {
    margin-bottom: 1rem;
}

.article-body code {
    background: var(--bg-color);
    border: .1rem solid var(--main-color);
    color: var(--main-color);
    padding: .2rem .7rem;
    border-radius: .4rem;
    font-family: monospace;
    font-size: 1.4rem;
}

/* Tabelas Técnicas dentro dos Artigos (.hud-data-table) */
.hud-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.2rem 0 3rem;
    background: var(--bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    overflow: hidden;
}

.hud-data-table th {
    background: rgba(0, 171, 240, 0.18);
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: left;
    padding: 1.3rem 1.5rem;
    border-bottom: .2rem solid var(--main-color);
}

.hud-data-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: .1rem solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 1.45rem;
}

.hud-data-table tr:hover td {
    background: rgba(0, 171, 240, 0.06);
    color: var(--text-color);
}

/* Perguntas Frequentes (FAQ) */
.faq-section {
    margin-top: 4.5rem;
    padding-top: 3rem;
    border-top: .15rem dashed rgba(0, 171, 240, 0.35);
}

.faq-card {
    background: var(--bg-color);
    border: .2rem solid var(--main-color);
    border-left: .5rem solid var(--main-color);
    border-radius: .6rem;
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
}

.faq-q {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .8rem;
}

.faq-q i {
    color: var(--main-color);
}

.faq-a {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Sidebar Fixa do Artigo */
.article-sidebar {
    position: sticky;
    top: 9.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.sidebar-box {
    background: var(--second-bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    padding: 2.5rem;
}

.sidebar-box h3 {
    font-size: 2rem;
    margin: .8rem 0 1.2rem;
    color: var(--text-color);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.4rem;
}

.sidebar-link-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: var(--bg-color);
    border: .15rem solid var(--main-color);
    border-radius: .6rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-color);
    overflow: hidden;
    z-index: 1;
    transition: .4s;
}

.sidebar-link-item i {
    color: var(--main-color);
    font-size: 1.7rem;
}

.sidebar-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .4s;
}

.sidebar-link-item:hover::before {
    width: 100%;
}

.sidebar-link-item:hover,
.sidebar-link-item:hover i {
    color: var(--bg-color);
}

@media (max-width: 991px) {
    .calc-grid,
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-main {
        padding: 2.4rem 1.8rem;
    }
    .hud-data-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 600px) {
    .calc-inputs,
    .calc-result-grid {
        grid-template-columns: 1fr;
    }
}