/* 1. VARIÁVEIS E RESET */
:root {
    /* Paleta Dark (Padrão) */
    --color-bg: #0A0A0B;
    --color-bg-offset: #111113;
    --color-text: #EAEAEA;
    --color-text-secondary: #A0A0A0;
    --color-primary: #7c3aed;
    --color-secondary: #00ffff;
    --color-glass-bg: rgba(17, 17, 19, 0.5);
    --color-border: rgba(255, 255, 255, 0.1);
}

body.light-mode {
    /* Paleta Light */
    --color-bg: #F0F2F5;
    --color-bg-offset: #FFFFFF;
    --color-text: #1C1C1E;
    --color-text-secondary: #555555;
    --color-glass-bg: rgba(255, 255, 255, 0.5);
    --color-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    cursor: none;
}

a, button {
    cursor: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 4rem;
}

/* 2. PARTÍCULAS E CURSOR */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.custom-cursor-outline {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    left: 0; 
    top: 0;
    --crosshair-color: var(--color-primary);
    --crosshair-size: 20px;
}

.custom-cursor-outline::before,
.custom-cursor-outline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--crosshair-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor-outline::before {
    width: var(--crosshair-size);
    height: 2px;
}

.custom-cursor-outline::after {
    width: 2px;
    height: var(--crosshair-size);
}

.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    left: 0;
    top: 0;
    transition: opacity 0.3s ease;
}

.custom-cursor-outline.hover {
    width: 40px;
    height: 40px;
    background-color: rgba(124, 58, 237, 0.1);
    border-color: var(--color-primary);
    --crosshair-color: var(--color-primary);
    --crosshair-size: 20px;
}

.custom-cursor-outline.hover + .custom-cursor-dot {
    opacity: 0;
}

.custom-cursor-outline.hover::before,
.custom-cursor-outline.hover::after {
    opacity: 1;
}

/* 3. HEADER / NAVBAR */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    z-index: 100;
    /* ADICIONADO: transição para o efeito de sumir */
    transition: background-color 0.3s ease, transform 0.4s ease, opacity 0.4s ease;
}

.header.scrolled {
    background-color: var(--color-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

/* NOVA CLASSE: Para esconder o header ao rolar para baixo */
.header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none; /* Impede cliques no header invisível */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.10rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo .logo-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover; 
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover {
    color: var(--color-text);
    text-shadow: 0 0 10px var(--color-secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
}

#theme-toggle {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    padding: 0.5rem;
}

#theme-toggle .fa-sun { display: none; }
#theme-toggle .fa-moon { display: block; }

body.light-mode #theme-toggle .fa-sun { display: block; }
body.light-mode #theme-toggle .fa-moon { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* 4. HERO SECTION */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 110px 0 60px;
    overflow: hidden;
    background: radial-gradient(ellipse 55% 50% at 72% 50%, rgba(124, 58, 237, 0.18), transparent 70%);
}

.hero-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3.5rem;
}

.hero-content {
    text-align: left;
}

.hero-eyebrow {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-name {
    font-size: clamp(3.25rem, 7vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -2px;
    font-weight: 700;
    margin-bottom: 1.75rem;
}

.hero-name-first {
    display: block;
    color: var(--color-text);
}

.hero-name-last {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -1px;
    background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.hero-role-pill {
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-glass-bg);
}

.hero-role-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.hero-role-text em {
    color: var(--color-primary);
    font-style: italic;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.hero-description strong {
    color: var(--color-text);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* CARD 3D DA FOTO */
.hero-photo-wrap {
    perspective: 1200px;
    display: flex;
    justify-content: center;
}

.hero-photo-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3 / 4;
    transform-style: preserve-3d;
    transform: rotateX(4deg) rotateY(-12deg);
    transition: transform 0.25s ease-out;
    will-change: transform;
}

.hero-photo-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.hero-photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 50px rgba(124, 58, 237, 0.18);
}

.photo-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    transform: translateZ(45px);
    z-index: 3;
    pointer-events: none;
}
.photo-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; border-radius: 7px 0 0 0; }
.photo-corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; border-radius: 0 7px 0 0; }
.photo-corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; border-radius: 0 0 0 7px; }
.photo-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; border-radius: 0 0 7px 0; }

.photo-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(17, 17, 19, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    z-index: 4;
}
.photo-badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
}
.photo-badge.badge-top { top: 14%; left: -9%; transform: translateZ(75px); }
.photo-badge.badge-mid { top: 45%; right: -12%; transform: translateZ(95px); }
.photo-badge.badge-mid i { background: var(--color-secondary); box-shadow: 0 0 8px var(--color-secondary); }
.photo-badge.badge-bottom { bottom: 16%; left: -5%; transform: translateZ(70px); }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 4%, #4f7bf0 100%);
    background-repeat: no-repeat;
    color: #0A0A0B;
}

.btn-primary:hover {
    box-shadow: 0 0 22px rgba(124, 58, 237, 0.45);
    transform: scale(1.05);
    filter: brightness(1.08);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-glass-bg);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    transform: scale(1.05);
}

/* 4.5. MARQUEE DE NOME (Com Sombra de Cruzamento) */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.name-marquee-section {
    position: relative;
    padding: 0; 
    height: 300px;
    overflow: hidden; 
    display: flex; 
    align-items: center;
    justify-content: center;
    margin-top: 60px; 
    margin-bottom: 60px;
}

.marquee-wrapper {
    position: absolute; 
    width: 120%; 
    left: -10%; 
    overflow: hidden;
}

.marquee-wrapper.wrapper-1 {
    transform: rotate(-3deg);
    top: 50%; 
    margin-top: -30px; 
    z-index: 6;
    filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, 0.25));
}

.marquee-wrapper.wrapper-2 {
    transform: rotate(3deg);
    top: 50%;
    margin-top: 30px; 
    z-index: 5;
}

.marquee-slider {
    display: flex;
    width: max-content;
    background: #ffffff; 
    padding: 1rem 0;
}

.marquee-wrapper.wrapper-1 .marquee-slider {
    animation: scroll-left 30s linear infinite; 
}

.marquee-wrapper.wrapper-2 .marquee-slider {
    animation: scroll-right 30s linear infinite;
}

.marquee-slider:hover {
    animation-play-state: paused;
}

.marquee-slider span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 2.5rem;
    white-space: nowrap;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111113;
    text-transform: uppercase;
}

.marquee-slider .logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover; /* Garante que a imagem cubra o círculo */
}

/* 5. PROJETOS / PORTFÓLIO */
#projects {
    padding-top: 120px;
}

.projects-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2.75rem;
    display: inline-block;
    position: relative;
}

.projects-subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 65%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.project-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--color-border);
    border-bottom: 3px solid var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-name {
    margin-top: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-card:hover .project-thumb {
    border-bottom-color: var(--color-secondary);
    box-shadow: 0 18px 45px rgba(124, 58, 237, 0.28);
}

.project-card:hover .project-thumb img {
    transform: scale(1.06);
}

.project-card:hover .project-name {
    color: var(--color-primary);
}

.projects-cta {
    text-align: center;
    max-width: 640px;
    margin: 3.5rem auto 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.projects-cta a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.projects-cta a:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

/* 5.5. SEÇÃO SOBRE MIM */
#about {
    background-color: var(--color-bg-offset); 
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-top: 120px;
    padding-bottom: 120px;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    align-items: center;
    gap: 4rem;
}

.about-image-col {
    position: relative;
}

/* CARD DE PERFIL */
.profile-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.profile-photo {
    position: relative;
    aspect-ratio: 1 / 1.2;
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.45));
}

.profile-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 50px;
    background: rgba(10, 10, 11, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.profile-badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

.profile-details {
    padding: 0.25rem 1.5rem;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.profile-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: right;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #22c55e;
}

.profile-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0.4rem 1.5rem 1.5rem;
    padding: 10px 22px;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #4f7bf0 100%);
    color: #0A0A0B;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    filter: brightness(1.08);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-text-col h2 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.about-text-col .highlight {
    color: var(--color-primary);
}

.about-text-col p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* 6. MODAL (LIGHTBOX) */
.modal {
    position: fixed;
    z-index: 1001;
    inset: 0;
    overflow: auto;
    background-color: rgba(10, 10, 11, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem 1rem;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-bg-offset);
    margin: auto;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    width: 100%;
    max-width: 1000px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-media {
    align-self: center;
    min-width: 0;
}

.modal-media img,
.modal-media video {
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.modal-media video {
    display: none; /* Alternado via JS */
}

.modal-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-right: 1.5rem;
}

.modal-body h3 {
    font-size: 1.9rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.modal-body p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.modal-date {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1.75rem;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.modal-actions .btn {
    padding: 11px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.modal-actions .btn i {
    margin-right: 6px;
}

.modal-close {
    color: var(--color-text-secondary);
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    line-height: 1;
    font-weight: bold;
    background: none;
    border: none;
    padding: 0;
    z-index: 2;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-primary);
    text-decoration: none;
}

/* 7. SKILLS / FERRAMENTAS */
#skills {
    padding-top: 120px;
    padding-bottom: 120px;
    overflow: hidden;
}

#skills .section-title {
    margin-bottom: 3rem;
}

.skills-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-bg-offset);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-top: 20px; 
    padding-bottom: 20px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.skills-slider {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

.skills-slider-wrapper:hover .skills-slider {
    animation-play-state: paused;
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    height: 60px;
    transition: all 0.3s ease;
}

.skill-item img {
    height: 100%; 
    max-width: 120px; 
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.skill-item:hover img {
    filter: grayscale(0%) brightness(1);
    transform: translateY(-5px) scale(1.05);
}

/* 7.5. SKILLS DETALHADAS (#stack) */
#stack {
    padding-top: 120px;
    padding-bottom: 40px;
}

.skills-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.skill-filter {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.skill-filter:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
}

.skill-filter.active {
    background: linear-gradient(90deg, var(--color-primary) 0%, #4f7bf0 100%);
    color: #fff;
    border-color: transparent;
}

.skill-group-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 3.5rem 0 2rem;
}

.skill-group-title::before,
.skill-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.skill-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.skill-card {
    background: var(--color-bg-offset);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.18);
}

.skill-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.skill-card-head img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.skill-card-meta h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

.skill-level {
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.skill-level::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.lvl-expert { color: #22d3ee; }
.lvl-avancado { color: #a78bfa; }
.lvl-intermediario { color: #60a5fa; }
.lvl-iniciante { color: #9ca3af; }

.skill-bar {
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    overflow: hidden;
}

.skill-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-percent {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

/* 8. DEPOIMENTOS (Testimonials) */
#testimonials {
    padding-bottom: 120px;
}

#testimonials .container {
    max-width: 1200px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    align-items: stretch;
}

.testimonial-card {
    background: var(--color-bg-offset);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
}

.user-info span {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* 9. FAQ / PERGUNTAS FREQUENTES */
#faq {
    padding-top: 120px;
}

#faq .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-container {
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.faq-question {
    background: var(--color-bg-offset);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    padding-bottom: 1.5rem;
}

.faq-item.faq-open .faq-question {
    color: var(--color-primary); 
    border-color: var(--color-primary);
}

.faq-item.faq-open .faq-question i {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-item.faq-open .faq-answer {
    padding-top: 1rem;
}

/* 10. CONTATO / CALL-TO-ACTION */
#contact {
    text-align: center;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(98, 0, 255, 0.1), transparent 70%);
}

#contact h2 {
    font-size: 3rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.3;
}

#contact .btn {
    font-size: 1.1rem;
    padding: 14px 32px;
}

#contact .btn i {
    margin-right: 0.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3.5rem;
}

.social-icons a {
    font-size: 1.75rem;
    color: var(--color-text-secondary);
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-secondary);
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--color-secondary);
}

/* 11. FOOTER */
.footer {
    padding: 2rem;
    text-align: center;
    background-color: var(--color-bg-offset);
    border-top: 1px solid var(--color-border);
    z-index: 2;
    position: relative;
}

.footer p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer .footer-name {
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer .footer-name:hover {
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary);
}

/* 13. ANIMAÇÕES DE SCROLL (REVEAL) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1), 
                transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 14. RESPONSIVIDADE (Mobile-First) */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        justify-items: center;
    }
    .hero-content { text-align: center; }
    .hero-role, .hero-buttons { justify-content: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-photo-wrap { order: -1; }
    .hero-photo-card { max-width: 300px; transform: rotateX(0) rotateY(0); }
    .photo-badge.badge-top { left: -2%; }
    .photo-badge.badge-mid { right: -4%; }
    .photo-badge.badge-bottom { left: 0; }

    /* Aproxima as seções no mobile (reduz a rolagem) */
    #hero { min-height: auto; padding-bottom: 30px; }
    .name-marquee-section { height: 200px; margin-top: 30px; margin-bottom: 30px; }
    #projects { padding-top: 50px; }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-col {
        text-align: center;
        padding: 15px;
        max-width: 450px;
        margin: 0 auto;
    }

    .about-tag {
        transform: translate(-20%, 20%);
        padding: 0.6rem 1rem;
    }

    .about-tag .tag-icon {
        width: 40px;
        height: 40px;
    }

    .about-tag .logo-initials {
        font-size: 1rem;
    }
    .about-tag .tag-text {
        font-size: 0.9rem;
    }

    .about-text-col h2 {
        font-size: 2.2rem;
    }
    
    .testimonials-grid {
        column-count: 2;
    }

}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 69px;
        flex-direction: column;
        background-color: var(--color-bg);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1.5rem 1rem;
        border-bottom: 1px solid var(--color-border);
    }
    .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    #hero h1 { font-size: 2.5rem; }
    .hero-description { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; }
    #contact h2 { font-size: 2rem; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .skill-cards-grid { grid-template-columns: 1fr; }
    .skill-group-title { font-size: 0.82rem; gap: 1rem; }

    .modal-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem;
        max-height: 88vh;
        overflow-y: auto;
    }
    .modal-media img, .modal-media video { max-height: 38vh; }
    .modal-body { padding-right: 0; }
    .modal-body h3 { font-size: 1.5rem; }
    .modal-actions .btn { flex: 1 1 auto; text-align: center; }

    .custom-cursor-dot, .custom-cursor-outline { display: none; }
    body, a, button { cursor: default; }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}