:root {
    /* --- PALETA DE CORES --- */
    --bg-dark: #090014;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;

    /* --- ACENTOS NEON --- */
    --primary: #d946ef;
    --secondary: #8b5cf6;
    --tertiary: #06b6d4;

    /* --- VIDRO --- */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --font-main: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* --- TRAVAR SCROLL APENAS NA HOME --- */
.home-body {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

@media (max-width: 900px) {
    .home-body {
        overflow-y: auto;
        height: auto;
        position: static;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- FUNDO --- */
.nebula-bg {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -2;
    background: var(--bg-dark);
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--tertiary);
    top: 40%;
    left: 40%;
    opacity: 0.3;
    filter: blur(100px);
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -20px) scale(1.1);
    }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* --- COMPONENTES GERAIS --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.section-container {
    padding: 100px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.page-padding {
    padding-top: 150px;
    padding-bottom: 50px;
}

.full-height {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-subtitle {
    color: var(--tertiary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: 4rem;
    margin-bottom: 50px;
    background: linear-gradient(to right, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- NAV (DESKTOP) --- */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 30px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: auto;
    min-width: 500px;
    z-index: 1000;
    transition: 0.3s ease;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    z-index: 1002;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    margin-left: 20px;
}

.nav-links a:first-child {
    margin-left: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.lang-toggle {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 20px;
    display: flex;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
    border-radius: 3px;
}

/* --- NAV (MOBILE) --- */
@media (max-width: 768px) {
    .floating-nav {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 20px;
        min-width: unset;
    }

    .menu-toggle {
        display: block;
    }

    .nav-wrapper {
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(9, 0, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s ease-in-out;
        z-index: 1001;
    }

    .nav-wrapper.active {
        top: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 25px;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 1.5rem;
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- HERO --- */
.hero-container {
    min-height: 100vh;
    padding: 120px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--tertiary);
    color: var(--tertiary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--tertiary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--tertiary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

h1 {
    line-height: 1.1;
    margin-bottom: 25px;
}

.small-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
}

.gradient-name {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(217, 70, 239, 0.3));
}

.hero-role {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--tertiary);
    margin-top: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-main);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

@media (max-width: 1024px) {
    .hero-role {
        font-size: 1.2rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 150px;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .hero-actions {
        justify-content: center;
    }

    .gradient-name {
        font-size: 3.5rem;
    }
}

.hero-bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.4);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(217, 70, 239, 0.6);
    background: #e879f9;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-left: 20px;
    display: inline-flex;
    vertical-align: middle;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.4rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--tertiary);
    transform: scale(1.1);
}

/* --- PROFILE IMAGE --- */
.hero-visual {
    perspective: 1000px;
}

.profile-card {
    width: 350px;
    height: 450px;
    position: relative;
    border-radius: 20px;
    transition: transform 0.1s;
    transform-style: preserve-3d;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    mask-image: linear-gradient(black 80%, transparent);
}

.card-border-glow {
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    z-index: -1;
    background: linear-gradient(45deg, var(--primary), var(--tertiary), var(--secondary));
    opacity: 0.5;
    filter: blur(10px);
}

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bento-box {
    padding: 30px;
    border-radius: 24px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.bento-box:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.box-large {
    grid-column: span 2;
}

.box-tall {
    grid-column: span 1;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.box-wide {
    grid-column: span 3;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--tertiary);
    margin-bottom: 20px;
}

.bento-box h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.bento-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.lang-row {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #fff;
}

.lang-row b {
    color: var(--primary);
    margin-right: 5px;
}

/* --- TIMELINE --- */
.box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tertiary);
    margin-bottom: 20px;
    font-weight: 600;
}

.timeline {
    margin-top: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.separator {
    margin: 0 8px;
    color: var(--secondary);
    opacity: 0.6;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--tertiary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--tertiary);
}

.timeline-item h4 {
    color: #fff;
    margin: 5px 0;
}

.timeline-item .date {
    font-size: 0.8rem;
    color: var(--tertiary);
}

/* --- TECH STACK --- */
.tech-showcase {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    padding: 15px;
    border-radius: 15px;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 2.5rem;
    color: #fff;
    transition: 0.3s;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.tech-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.skill-tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.skill-tags span {
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #fff;
}

/* Cores Hover Ícones */
.tech-item:hover i.fa-php {
    color: #777BB4;
    filter: drop-shadow(0 0 15px #777BB4);
}

.tech-item:hover i.fa-laravel {
    color: #F05340;
    filter: drop-shadow(0 0 15px #F05340);
}

.tech-item:hover i.fa-database {
    color: #00BCF2;
    filter: drop-shadow(0 0 15px #00BCF2);
}

.tech-item:hover i.fa-docker {
    color: #2496ED;
    filter: drop-shadow(0 0 15px #2496ED);
}

.tech-item:hover i.fa-js {
    color: #F7DF1E;
    filter: drop-shadow(0 0 15px #F7DF1E);
}

.tech-item:hover i.fa-bootstrap {
    color: #7952B3;
    filter: drop-shadow(0 0 15px #7952B3);
}

.tech-item:hover i.fa-html5 {
    color: #E34F26;
    filter: drop-shadow(0 0 15px #E34F26);
}

/* --- PROJETOS (Cards) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.project-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    border: none;
    background: transparent;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(var(--primary), var(--secondary), var(--tertiary), var(--primary));
    animation: rotate-border 4s linear infinite;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.5s;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(13, 13, 25, 0.95);
    border-radius: inherit;
    z-index: -1;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.project-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px 24px 0 0;
    z-index: 2;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.card-inner {
    position: relative;
    z-index: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #fff;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.project-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-link:hover {
    color: var(--primary);
    gap: 15px;
    text-shadow: 0 0 10px var(--primary);
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .box-large,
    .box-wide {
        grid-column: span 1;
    }

    .tech-showcase {
        gap: 10px;
    }
}

/* --- FOOTER --- */
.main-footer {
    text-align: center;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
}

.highlight {
    color: var(--primary);
    font-family: var(--font-display);
}

/* --- ANIMAÇÕES --- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.1s;
    transition-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}