/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@700&display=swap');

:root {
    --primary-color: #5d3f6a;
    --secondary-color: #7b4ea2;
    --accent-color: #9c6ad6;
    --text-light: #e0e0e0;
    --text-dark: #2c3e50;
    --divider-light-color: #a274ff;
    --body-background: #1e152a;
    --section-background: #2a1f3d;
    --card-background: rgba(42, 31, 61, 0.9);
    --card-border: rgba(156, 106, 214, 0.3);
    --github-color: #333;
}

/* --- RESET BÁSICO E ESTILOS GLOBAIS --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Lato', sans-serif;
    color: var(--text-light);
    background-color: var(--body-background);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Prefer Reduced Motion - Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Skip Links - Acessibilidade */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: var(--body-background);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 700;
    border-radius: 0 0 4px 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--text-light);
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.2; color: var(--text-light); }

/* --- FUNDO ANIMADO --- */
.animated-background {
    position: fixed; width: 100vw; height: 100vh; top: 0; left: 0; z-index: -1;
    background: radial-gradient(circle at center, rgba(30, 21, 42, 0.95) 0%, var(--body-background) 100%);
    overflow: hidden;
    contain: layout style paint;
}
.animated-background ul { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.animated-background li { 
    position: absolute; 
    list-style: none; 
    display: block; 
    width: 40px; 
    height: 40px; 
    bottom: -150px; 
    animation: animate-icons 30s linear infinite; 
    will-change: transform;
}
.animated-background li i { font-size: 2rem; color: rgba(156, 106, 214, 0.08); }
/* Reduzir para 8 ícones apenas */
.animated-background li:nth-child(1) { left: 10%; animation-duration: 25s; animation-delay: 0s; }
.animated-background li:nth-child(2) { left: 30%; animation-duration: 28s; animation-delay: 3s; }
.animated-background li:nth-child(3) { left: 50%; animation-duration: 32s; animation-delay: 6s; }
.animated-background li:nth-child(4) { left: 70%; animation-duration: 27s; animation-delay: 2s; }
.animated-background li:nth-child(5) { left: 20%; animation-duration: 30s; animation-delay: 5s; }
.animated-background li:nth-child(6) { left: 60%; animation-duration: 29s; animation-delay: 4s; }
.animated-background li:nth-child(7) { left: 80%; animation-duration: 26s; animation-delay: 1s; }
.animated-background li:nth-child(8) { left: 40%; animation-duration: 31s; animation-delay: 7s; }
/* Esconder os outros */
.animated-background li:nth-child(n+9) { display: none; }

@keyframes animate-icons {
    0% { transform: translateY(0); opacity: 0.8; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* --- ESTRUTURA E LAYOUT --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; }
.justify-content-center { justify-content: center; }
.col-lg-6 { padding: 0 15px; }
@media (min-width: 992px) { .col-lg-6 { flex: 0 0 50%; max-width: 50%; } }
.text-center { text-align: center; }
.text-white { color: var(--text-light) !important; }

/* --- HEADER E NAVEGAÇÃO --- */
.navbar { 
    background: rgba(30, 21, 42, 0.92); 
    padding: 1.2rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid rgba(156, 106, 214, 0.3); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.navbar:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.6);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar-brand { 
    color: var(--text-light); 
    text-decoration: none; 
    font-size: 1.8rem; 
    font-weight: 700; 
    letter-spacing: 1px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.navbar-brand:hover {
    transform: scale(1.05);
}
.navbar-nav { display: flex; list-style: none; gap: 0.5rem; }
.nav-item { margin-left: 1rem; }
.nav-link { 
    color: var(--text-light); 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1rem; 
    padding: 0.6rem 1.2rem; 
    position: relative; 
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-radius: 8px;
    letter-spacing: 0.5px;
}
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(156, 106, 214, 0.15), rgba(93, 63, 106, 0.1));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.nav-link::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 3px; 
    bottom: 0; 
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.15s ease; 
}
.nav-link:hover { 
    color: var(--accent-color); 
    transform: translateY(-2px);
}
.nav-link:hover::before {
    opacity: 1;
}
.nav-link:hover::after { 
    width: 80%; 
}

/* --- SEÇÃO HERO (MASTHEAD) --- */
.masthead { 
    padding: 8rem 0; 
    background: transparent; 
    color: var(--text-light); 
    position: relative; 
    z-index: 1;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.masthead::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(156, 106, 214, 0.08) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.masthead-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
.masthead-content {
    position: relative;
    z-index: 2;
}
.masthead-text {
    text-align: left;
}
.masthead-name {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-light);
    display: block;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(156, 106, 214, 0.3);
}
.masthead-role {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 2rem;
}
.role-large {
    font-size: 6rem;
    font-weight: 900;
    line-height: 0.85;
    color: var(--accent-color);
    letter-spacing: -2px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 40px rgba(156, 106, 214, 0.4);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--divider-light-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.role-accent {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-light);
    letter-spacing: -1px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    opacity: 1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}
.masthead-description {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--text-light);
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 650px;
    font-weight: 400;
    letter-spacing: 0.3px;
}
.masthead-description strong {
    color: var(--accent-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color), var(--divider-light-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.masthead-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    align-items: center;
}
.masthead-social-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.masthead-actions {
    margin: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-download-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--body-background);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 25px rgba(156, 106, 214, 0.4);
    position: relative;
    overflow: hidden;
}
.btn-download-cv::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.2s ease;
}
.btn-download-cv:hover::before {
    left: 100%;
}
.btn-download-cv i {
    font-size: 1.2rem;
    transition: transform 0.15s ease;
}
.btn-download-cv:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(156, 106, 214, 0.5);
    background: linear-gradient(135deg, var(--divider-light-color), var(--accent-color));
}
.btn-download-cv:hover i {
    transform: translateY(-2px);
}
.btn-skills {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--body-background);
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 25px rgba(93, 63, 106, 0.4);
    position: relative;
    overflow: hidden;
}
.btn-skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.2s ease;
}
.btn-skills:hover::before {
    left: 100%;
}
.btn-skills i {
    font-size: 1.2rem;
    transition: transform 0.15s ease;
}
.btn-skills:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(93, 63, 106, 0.5);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}
.btn-skills:hover i {
    transform: translateY(-2px);
}
.tech-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    background: rgba(156, 106, 214, 0.15);
    border: 1px solid rgba(156, 106, 214, 0.3);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    transition: background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
}
.tech-badge i {
    font-size: 1.3rem;
    color: var(--accent-color);
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
}
.tech-badge span {
    display: inline-block;
    line-height: 1;
}
.tech-badge:hover {
    background: rgba(156, 106, 214, 0.25);
    border-color: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(156, 106, 214, 0.3);
}
.tech-badge:hover i {
    transform: scale(1.2) rotate(5deg);
}
.masthead-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}
.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
}
.masthead-avatar { 
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 30px; 
    object-fit: cover; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(156, 106, 214, 0.2);
}
.masthead-avatar:hover {
    transform: scale(1.02);
}
.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(156, 106, 214, 0.2) 0%, transparent 70%);
    border-radius: 30px;
    z-index: 1;
    animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

/* Redes Sociais na Masthead */
.social-icons-masthead { 
    display: flex; 
    justify-content: center;
    align-items: center;
    gap: 1rem; 
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.social-badge {
    text-decoration: none;
    color: inherit;
}
.social-badge:hover {
    text-decoration: none;
    color: inherit;
}

/* --- DIVISOR CUSTOMIZADO --- */
.divider-custom { display: flex; align-items: center; justify-content: center; margin: 2rem 0; }
.divider-custom-line { flex: 0 1 7rem; height: 4px; background-color: var(--divider-light-color); border-radius: 1rem; }
.divider-custom-icon { font-size: 2.5rem; padding: 0 1.5rem; color: var(--divider-light-color); }

/* --- ESTILOS GERAIS DE SEÇÃO --- */
.page-section { 
    padding: 7rem 0; 
    background-color: transparent; 
    position: relative; 
    z-index: 1; 
    margin: 5rem auto; 
    width: 90%; 
    max-width: 1100px; 
    border-radius: 20px;
}
.page-section-heading { 
    font-size: 3.2rem; 
    color: var(--text-light); 
    margin-bottom: 2.5rem;
    letter-spacing: 1.5px;
    position: relative;
}
.page-section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

/* --- SEÇÃO SOBRE (REDESENHADA - SEM CARDS) --- */
#sobre .container { 
    background: transparent;
    padding: 0;
    position: relative;
}
.about-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}
.about-intro-section {
    margin-bottom: 4rem;
    text-align: center;
}
.about-intro {
    font-size: 1.4rem;
    line-height: 1.9;
    color: var(--text-light);
    opacity: 0.95;
    margin: 0;
}
.about-intro strong {
    color: var(--accent-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color), var(--divider-light-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.imepac-link {
    color: var(--divider-light-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--divider-light-color);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.imepac-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}
.about-philosophy-section {
    margin: 5rem 0;
    text-align: center;
    padding: 3rem 0;
    position: relative;
}
.about-philosophy-section::before,
.about-philosophy-section::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}
.about-philosophy-section::before {
    top: 0;
}
.about-philosophy-section::after {
    bottom: 0;
}
.about-philosophy {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--text-light);
    margin: 0 0 2rem 0;
    letter-spacing: -1px;
}
.philosophy-accent {
    display: block;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--accent-color), var(--divider-light-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    margin-top: 0.5rem;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.philosophy-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    opacity: 0.85;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.philosophy-text strong {
    color: var(--accent-color);
    font-weight: 700;
}
.about-approach-section {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 1px solid rgba(156, 106, 214, 0.2);
    border-bottom: 1px solid rgba(156, 106, 214, 0.2);
}
.section-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.section-subtitle i {
    color: var(--accent-color);
    font-size: 1.8rem;
}
.approach-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.approach-item {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.approach-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}
.approach-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    margin-top: 1rem;
    transition: transform 0.15s ease;
}
.approach-item:hover i {
    transform: scale(1.15) rotate(5deg);
}
.approach-label {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}
.approach-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.85;
    margin: 0;
}
.about-motto {
    margin-top: 4rem;
    padding: 3rem;
    text-align: center;
    position: relative;
}
.about-motto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}
.motto-text {
    font-size: 1.4rem;
    line-height: 1.9;
    color: var(--text-light);
    opacity: 0.95;
    max-width: 900px;
    margin: 0 auto;
    font-style: italic;
}
.motto-text strong {
    color: var(--accent-color);
    font-weight: 700;
    font-style: normal;
}
.lead { color: var(--text-light); opacity: 0.9; }

/* --- SEÇÕES PORTFOLIO, CONTATO (COM CARD INTERNO) --- */
/* --- SEÇÃO DE CONTATO --- */
#contato {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.contact-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-light);
    opacity: 0.9;
    margin: 2rem auto 4rem;
    max-width: 900px;
    text-align: center;
}
.contact-intro strong {
    color: var(--accent-color);
    font-weight: 700;
}
.contact-wrapper-new {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 3rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}
.contact-info-new {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2.5rem;
    background: rgba(28, 20, 40, 0.75);
    border-radius: 20px;
    border: 1px solid rgba(156, 106, 214, 0.2);
}
.contact-info-title-new {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(156, 106, 214, 0.08);
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.contact-info-item:hover {
    background: rgba(156, 106, 214, 0.15);
    transform: translateX(5px);
}
.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(156, 106, 214, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
}
.contact-icon-wrapper i {
    font-size: 1.5rem;
    color: var(--accent-color);
}
.contact-info-content {
    flex: 1;
}
.contact-info-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
}
.contact-info-content p,
.contact-info-content a {
    color: var(--text-light);
    opacity: 0.85;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.contact-info-content a:hover {
    color: var(--accent-color);
    opacity: 1;
}
.contact-socials-new {
    margin-top: 1rem;
}
.socials-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.social-icons-new {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.social-icon-new {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(156, 106, 214, 0.15);
    border: 2px solid rgba(156, 106, 214, 0.3);
    border-radius: 12px;
    color: var(--accent-color);
    font-size: 1.3rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}
.social-icon-new:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--body-background);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(156, 106, 214, 0.4);
}
.contact-form-wrapper-new {
    background: rgba(28, 20, 40, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(156, 106, 214, 0.3);
}
.contact-form-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group-new {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group-new label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}
.form-input-new,
.form-textarea-new {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(156, 106, 214, 0.1);
    border: 2px solid rgba(156, 106, 214, 0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.form-input-new:focus,
.form-textarea-new:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(156, 106, 214, 0.15);
    box-shadow: 0 0 0 3px rgba(156, 106, 214, 0.2);
}
.form-input-new::placeholder,
.form-textarea-new::placeholder {
    color: var(--text-light);
    opacity: 0.5;
}
.form-textarea-new {
    resize: vertical;
    min-height: 120px;
}
.btn-submit-new {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--body-background);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 25px rgba(156, 106, 214, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}
.btn-submit-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(156, 106, 214, 0.5);
    background: linear-gradient(135deg, var(--divider-light-color), var(--accent-color));
}
.btn-submit-new i {
    font-size: 1.1rem;
}
.success-message-new {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(156, 106, 214, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
}
.success-message-new i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.success-message-new h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 1rem 0;
}
.success-message-new p {
    color: var(--text-light);
    opacity: 0.9;
    margin: 0;
}
.error-message-new {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    border-radius: 20px;
}
.error-message-new i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}
.error-message-new h3 {
    font-size: 1.8rem;
    color: #dc3545;
    margin: 1rem 0;
}
.error-message-new p {
    color: var(--text-light);
    opacity: 0.9;
    margin: 0;
}
.error-message {
    display: none;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}
.form-input-new.error,
.form-textarea-new.error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}
.form-input-new.error:focus,
.form-textarea-new.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}
.required-asterisk {
    color: #dc3545;
    font-weight: 700;
}
.btn-submit-new:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- SEÇÃO DE DESTAQUES/COMPETÊNCIAS --- */
#destaques .container {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    padding: 4rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}
.highlight-card {
    background: rgba(42, 31, 61, 0.85);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.highlight-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #a274ff, #5d3f6a, #9c6ad6, #a274ff);
    background-size: 400% 400%;
    border-radius: 15px;
    z-index: -1;
    animation: gradient-border 10s ease infinite;
    opacity: 0.7;
}
.highlight-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: rgba(156, 106, 214, 0.6);
    background: rgba(42, 31, 61, 0.9);
}
.highlight-icon {
    margin-bottom: 1.5rem;
}
.highlight-icon i {
    font-size: 4.5rem;
    color: var(--accent-color);
    transition: transform 0.15s ease;
}
.highlight-card:hover .highlight-icon i {
    transform: scale(1.1) rotate(5deg);
}
.highlight-title {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.highlight-description {
    color: var(--text-light);
    opacity: 0.85;
    line-height: 1.7;
    font-size: 1rem;
}

/* --- SEÇÃO DE HABILIDADES --- */
#habilidades .container {
    background: transparent;
    padding: 0;
}
.skills-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 2rem; 
    text-align: center; 
    margin-top: 3rem; 
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.skill-item { 
    padding: 2.5rem 1.5rem; 
    border-radius: 15px; 
    color: var(--text-light); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1rem;
    background: transparent;
    transition: background-color 0.2s ease, transform 0.2s ease;
    position: relative;
}
.skill-item:hover {
    transform: translateY(-5px);
}
.skill-item i { 
    font-size: 3.5rem; 
    color: var(--accent-color); 
    transition: background-color 0.2s ease, transform 0.2s ease;
    position: relative;
    z-index: 1;
}
.skill-item:hover i {
    transform: scale(1.1) rotate(5deg);
}
.skill-item .fa-angular { color: #DD0031 !important; }
.skill-item:hover .fa-angular {
    color: #ff1744 !important;
}
.skill-item span { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700; 
    font-size: 1.1rem; 
    color: var(--text-light);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}
.skill-item:hover span {
    color: var(--accent-color);
}

/* --- MODAL DE HABILIDADES TÉCNICAS --- */
.skills-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}
.skills-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.skills-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}
.skills-modal-content {
    position: relative;
    z-index: 10000;
    background: rgba(28, 20, 40, 0.9);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(156, 106, 214, 0.25);
    opacity: 0;
    transition: opacity 0.2s ease-out;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(156, 106, 214, 0.3);
}
.skills-modal.active .skills-modal-content {
    opacity: 1;
}
.skills-modal-header {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid rgba(156, 106, 214, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(156, 106, 214, 0.15);
    position: relative;
}
.skills-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.7;
}
.skills-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.skills-modal-title i {
    color: var(--accent-color);
    font-size: 1.8rem;
}
.skills-modal-close {
    background: transparent;
    border: 2px solid rgba(156, 106, 214, 0.3);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-size: 1.2rem;
}
.skills-modal-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(90deg);
}
.skills-modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Estilização da Scrollbar do Modal */
.skills-modal-body::-webkit-scrollbar {
    width: 12px;
}
.skills-modal-body::-webkit-scrollbar-track {
    background: rgba(156, 106, 214, 0.1);
    border-radius: 10px;
    margin: 10px 0;
}
.skills-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid rgba(28, 20, 40, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.skills-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--divider-light-color), var(--accent-color));
    box-shadow: 0 0 10px rgba(156, 106, 214, 0.5);
}

/* Firefox */
.skills-modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(156, 106, 214, 0.1);
}
.skills-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.skill-item-modal {
    padding: 2rem 1.5rem;
    border-radius: 15px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(156, 106, 214, 0.15);
    border: 1px solid rgba(156, 106, 214, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    will-change: transform;
}
.skill-item-modal:hover {
    transform: translateY(-5px);
    background: rgba(156, 106, 214, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(156, 106, 214, 0.3);
}
.skill-item-modal i {
    font-size: 3.5rem;
    color: var(--accent-color);
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
}
.skill-item-modal:hover i {
    transform: scale(1.1);
}
.skill-item-modal .fa-angular { color: #DD0031 !important; }
.skill-item-modal:hover .fa-angular {
    color: #ff1744 !important;
}
.skill-item-modal span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}
.skill-item-modal:hover span {
    color: var(--accent-color);
}

/* --- SEÇÃO DE PORTFÓLIO --- */
#portfolio {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin-top: 3rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    contain: layout style;
}
.project-item-new {
    padding: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(156, 106, 214, 0.2);
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    contain: layout style paint;
}
.project-item-new:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.project-container-translucent {
    background: rgba(28, 20, 40, 0.7);
    border-radius: 25px;
    border: 1px solid rgba(156, 106, 214, 0.3);
    padding: 3.5rem;
    box-shadow: 0 8px 20px rgba(156, 106, 214, 0.1);
    position: relative;
    contain: layout style paint;
}
.project-container-translucent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-color), 
        var(--secondary-color),
        transparent);
    opacity: 0.6;
}
.project-container-translucent:hover {
    border-color: rgba(156, 106, 214, 0.5);
}
.project-header-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1rem;
    align-items: center;
    text-align: center;
}
.project-category {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 1.2rem;
    background: rgba(156, 106, 214, 0.15);
    border: 1px solid rgba(156, 106, 214, 0.3);
    border-radius: 50px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 0.5rem;
}
.project-title-new {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-light);
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}
.project-description-new {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-light);
    opacity: 0.95;
    margin: 0;
    max-width: 100%;
    font-weight: 400;
    text-align: center;
}
.project-details-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1rem;
    align-items: center;
    width: 100%;
}
.detail-section {
    padding: 2rem 0;
    border-top: 1px solid rgba(156, 106, 214, 0.25);
    margin-top: 1rem;
    width: 100%;
    max-width: 1000px;
}
.detail-section:first-of-type {
    border-top: none;
    padding-top: 0;
}
.detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
}
.detail-title::before {
    content: '';
    width: 4px;
    height: 25px;
    background: linear-gradient(180deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
    flex-shrink: 0;
}
.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    align-items: center;
}
.detail-list li {
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.8;
    padding: 1rem 1.5rem 1rem 2.5rem;
    position: relative;
    font-size: 1.05rem;
    background: rgba(156, 106, 214, 0.08);
    border-left: 3px solid rgba(156, 106, 214, 0.3);
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    text-align: left;
}
.detail-list li:hover {
    background: rgba(156, 106, 214, 0.12);
    border-left-color: var(--accent-color);
}
.detail-list li::before {
    content: '✓';
    position: absolute;
    left: 0.8rem;
    top: 1rem;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1rem;
}
.detail-list li strong {
    color: var(--accent-color);
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}
.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}
.tech-group {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}
.tech-label {
    font-weight: 700;
    color: var(--accent-color);
    min-width: 120px;
    font-size: 0.95rem;
    text-align: left;
}
.tech-tags {
    color: var(--text-light);
    opacity: 0.9;
    flex: 1;
    text-align: left;
}
.project-actions-top {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    width: 100%;
}
.btn-github-new {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--body-background);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(156, 106, 214, 0.25);
}
.btn-github-new:hover {
    background: linear-gradient(135deg, var(--divider-light-color), var(--accent-color));
    box-shadow: 0 8px 25px rgba(156, 106, 214, 0.4);
}
.btn-github-new i {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}
.project-gallery-section {
    margin-top: 2.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}
.project-gallery-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}
.project-gallery-new img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid rgba(156, 106, 214, 0.4);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(156, 106, 214, 0.1);
    background: rgba(28, 20, 40, 0.3);
}
.project-gallery-new img:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(156, 106, 214, 0.3);
}
.project-video-section {
    margin-top: 3rem;
    width: 100%;
}
.video-title-new {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.video-title-new::before,
.video-title-new::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}
.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}
.video-container-large {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid rgba(156, 106, 214, 0.4);
    box-shadow: 0 10px 30px rgba(156, 106, 214, 0.15);
    background: rgba(28, 20, 40, 0.3);
    contain: layout style paint;
}
.video-container-large:hover {
    border-color: var(--accent-color);
}
.video-container-large iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 20px;
}
.project-card {
    background: rgba(28, 20, 40, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(156, 106, 214, 0.3);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}
.project-card:hover::before {
    opacity: 1;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(156, 106, 214, 0.3);
    border-color: rgba(156, 106, 214, 0.5);
}
.project-header {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid rgba(156, 106, 214, 0.2);
    background: linear-gradient(135deg, rgba(156, 106, 214, 0.1), rgba(93, 63, 106, 0.1));
}
.project-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--text-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.project-title i {
    color: var(--accent-color);
    font-size: 1.8rem;
    -webkit-text-fill-color: var(--accent-color);
}
.project-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}
.tech-badge-small {
    padding: 0.4rem 1rem;
    background: rgba(156, 106, 214, 0.15);
    border: 1px solid rgba(156, 106, 214, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.tech-badge-small:hover {
    background: rgba(156, 106, 214, 0.25);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}
.project-content {
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.project-description-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    opacity: 0.9;
    margin: 0;
}
.project-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(156, 106, 214, 0.08);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
    transition: background-color 0.2s ease;
}
.feature-item:hover {
    background: rgba(156, 106, 214, 0.15);
}
.feature-item i {
    color: var(--accent-color);
    font-size: 1rem;
}
.feature-item span {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}
.project-media {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.project-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 2px solid rgba(156, 106, 214, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    filter: brightness(0.9);
}
.project-gallery img:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(156, 106, 214, 0.4);
    border-color: var(--accent-color);
    filter: brightness(1.1);
}
.project-video {
    width: 100%;
}
.video-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}
.video-title i {
    color: var(--accent-color);
    font-size: 1.2rem;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 2px solid rgba(156, 106, 214, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.video-container:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(156, 106, 214, 0.4);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.project-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid rgba(156, 106, 214, 0.2);
    background: rgba(156, 106, 214, 0.05);
    display: flex;
    justify-content: center;
}
.details-subtitle {
    color: var(--text-light);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}
.project-details ul { list-style-position: inside; padding-left: 0; }
.project-details ul li::before { color: var(--accent-color); content: "▹"; padding-right: 0.5rem; }
.project-links { margin-top: 1.5rem; }
.btn-github { 
    background: linear-gradient(135deg, #4a4a4a, #2a2a2a); 
    color: #fff; 
    border: 2px solid #6a6a6a; 
    font-size: 1.1rem; 
    padding: 0.9rem 2rem; 
    border-radius: 50px; 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}
.btn-github::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.4), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-github:hover::before {
    width: 300px;
    height: 300px;
}
.btn-github:hover { 
    background: linear-gradient(135deg, var(--github-color), #1a1a1a); 
    border-color: var(--accent-color); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); 
    color: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
}
.btn-github i {
    position: relative;
    z-index: 1;
    margin-right: 0.5rem;
}
.btn-github i { margin-right: 0.5rem; color: inherit; }

/* --- ESTILOS GERAIS DO FORMULÁRIO --- */
.form-group.floating { position: relative; margin-bottom: 2.5rem; }
.form-group.floating .form-control { 
    padding: 1.3rem 1.2rem 0.9rem 1.2rem; 
    height: auto; 
    color: var(--text-light); 
    background: rgba(60, 48, 86, 0.8);
    border: 2px solid var(--card-border); 
    border-radius: 12px; 
    transition: all 0.2s ease; 
    width: 100%;
    font-size: 1rem;
}
.form-group.floating .form-control:focus {
    background: rgba(60, 48, 86, 0.7);
}
.form-group.floating label { position: absolute; top: 1rem; left: 1rem; font-size: 1rem; color: rgba(224, 224, 224, 0.7); pointer-events: none; transition: all 0.2s ease-in-out; transform-origin: 0% 0%; }
.form-group.floating .form-control:focus ~ label, .form-group.floating .form-control:not(:placeholder-shown) ~ label { top: 0.5rem; font-size: 0.75rem; color: var(--accent-color); transform: scale(0.85); }
.form-control:focus { 
    outline: none; 
    border-color: var(--accent-color); 
    box-shadow: 0 0 0 0.3rem rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}
textarea.form-control { resize: vertical; min-height: 12rem; }
.btn { display: inline-block; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; border: 2px solid transparent; padding: 0.75rem 1.5rem; font-size: 1.1rem; border-radius: 50px; transition: all 0.3s ease; }
.btn-primary { 
    color: #fff; 
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); 
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(93, 63, 106, 0.4);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.2s ease;
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary:hover { 
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)); 
    border-color: var(--accent-color); 
    transform: translateY(-4px) scale(1.05); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.btn-xl { padding: 1rem 2rem; font-size: 1.25rem; }

/* --- RODAPÉ --- */
.footer { padding: 4rem 0; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: var(--text-light); border-top: 1px solid rgba(255, 255, 255, 0.2); position: relative; z-index: 1; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-section { flex: 1 1 300px; }
.footer h4 { color: var(--text-light); margin-bottom: 1rem; }
.social-icons { display: flex; gap: 1rem; }
.social-icon-link { display: flex; justify-content: center; align-items: center; width: 45px; height: 45px; background-color: rgba(156, 106, 214, 0.1); color: var(--text-light); border-radius: 50%; font-size: 1.3rem; text-decoration: none; transition: background-color 0.3s ease, transform 0.3s ease; box-shadow: 0 0 8px rgba(156, 106, 214, 0.2); border: 1px solid rgba(156, 106, 214, 0.3); }
.social-icon-link:hover { background-color: var(--accent-color); transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.3); color: var(--body-background); }
.copyright { background-color: #1a1520; padding: 1.5rem 0; color: rgba(255, 255, 255, 0.6); position: relative; z-index: 1; }

/* --- SEÇÃO DE CONTATO -- ATUALIZADO --- */
.lead.mb-5 { 
    margin-bottom: 3rem !important; 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}
/* CARD DE INFORMAÇÕES -- LAYOUT CORRIGIDO */
.contact-info {
    display: flex;
    flex-direction: column;
}
.contact-info-title {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--card-border);
}
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}
.info-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    background-color: rgba(79, 70, 229, 0.15);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.info-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    color: var(--body-background);
}
.info-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: var(--text-light);
}
.info-text p {
    margin: 0;
    color: var(--text-light);
    opacity: 0.8;
    word-break: break-all;
}
.contact-socials {
    margin-top: auto; /* EMPURRA PARA O FINAL DO CARD */
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}
.contact-socials .social-icons {
    justify-content: flex-start;
    gap: 1.5rem;
}
.contact-socials h4 {
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 1rem;
}
.contact-form-container { position: relative; display: flex; }
.contact-form-card { 
    padding: 3.5rem; 
    border-radius: 20px; 
    width: 100%;
    background: rgba(42, 31, 61, 0.75);
    border: 1px solid rgba(79, 70, 229, 0.3);
}
.success-message {
    display: none; text-align: center; padding: 3rem; background-color: var(--card-background);
    border: 1px solid var(--accent-color); border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.success-message h3 { font-size: 2rem; color: var(--accent-color); margin-bottom: 1rem; }
.success-message p { margin: 0; }

/* --- APRIMORAMENTO DE BORDAS PARA CARDS --- */
.contact-info, .contact-form-card {
    position: relative;
    border: none;
    background: var(--card-background);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    padding: 2.5rem;
}
.contact-info::before, .contact-form-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #a274ff, #5d3f6a, #9c6ad6, #a274ff);
    background-size: 400% 400%;
    border-radius: 14px;
    z-index: -1;
    animation: gradient-border 10s ease infinite;
    opacity: 0.7;
}
@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* FOTO DE PERFIL NA SEÇÃO DE CONTATO */
.contact-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
    border: 3px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.profile-info {
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(79, 70, 229, 0.3);
    display: flex;
    justify-content: flex-start; /* Alinha à esquerda */
}
.profile-info h4 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.profile-info p { font-size: 0.9rem; opacity: 0.7; margin: 0; }
.contact-info .info-text { flex-grow: 1; }

/* --- BOTÃO VOLTAR AO TOPO --- */
.back-to-top-container {
    position: fixed; bottom: 30px; right: 30px; z-index: 1001; display: flex;
    flex-direction: column; align-items: center; opacity: 0; visibility: hidden;
    transform: translateY(20px); transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}
.back-to-top-container.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn {
    width: 50px; height: 50px; background-color: var(--accent-color); color: var(--body-background);
    border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.3s ease, background-color 0.3s ease;
    border: none; text-decoration: none;
}
.back-to-top-btn:hover { transform: scale(1.1); background-color: var(--divider-light-color); }
.btt-menu {
    list-style: none; padding: 0; margin: 0 0 15px 0; display: flex; flex-direction: column;
    gap: 12px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease-in-out;
}
.back-to-top-container:hover .btt-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.btt-link {
    width: 45px; height: 45px; background-color: var(--card-background); color: var(--accent-color);
    border: 1px solid var(--card-border); border-radius: 50%; display: grid; place-items: center;
    font-size: 1.3rem; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: all 0.3s ease;
    text-decoration: none; position: relative;
}
.btt-link:hover { background-color: var(--accent-color); color: var(--body-background); transform: scale(1.1); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.btt-label {
    position: absolute; right: calc(100% + 15px); top: 50%; transform: translateY(-50%) translateX(10px);
    background-color: var(--card-background); color: var(--text-light); padding: 5px 12px; border-radius: 6px;
    font-size: 0.9rem; font-family: 'Montserrat', sans-serif; font-weight: 700; white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); border: 1px solid var(--card-border); opacity: 0;
    visibility: hidden; transition: all 0.3s ease; pointer-events: none;
}
.btt-link:hover .btt-label { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

/* --- RESPONSIVIDADE --- */
@media (max-width: 991.98px) {
    .masthead-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .masthead-text {
        text-align: center;
    }
    .masthead-name {
        font-size: 3.5rem;
    }
    .role-large {
        font-size: 5rem;
    }
    .role-accent {
        font-size: 3.5rem;
    }
    .masthead-avatar {
        max-width: 400px;
        border-radius: 25px;
    }
    .masthead-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .masthead-tech {
        justify-content: center;
    }
    .social-icons-masthead {
        justify-content: center;
    }
    .masthead-image {
        order: -1;
    }
    .masthead-avatar {
        max-width: 350px;
    }
    .page-section-heading { font-size: 2.5rem; }
    .page-section { width: 95%; margin: 3rem auto; }
    #destaques .container { padding: 3rem 1.5rem; }
    #contato { padding: 3rem 1.5rem; }
    #portfolio { padding: 3rem 1.5rem; }
    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1.5rem; }
    .about-philosophy { font-size: 2.2rem; }
    .philosophy-accent { font-size: 2.8rem; }
    .section-subtitle { font-size: 1.6rem; }
    .approach-items { grid-template-columns: repeat(2, 1fr); }
    .motto-text { font-size: 1.2rem; }
    .about-intro { font-size: 1.2rem; }
    .highlights-grid { grid-template-columns: 1fr; gap: 2rem; }
    .project-main-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .project-container-translucent {
        padding: 2.5rem;
    }
    .project-title-new {
        font-size: 2rem;
    }
    .project-description-new {
        font-size: 1.1rem;
    }
    .project-gallery-new {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .project-gallery-new img {
        height: 220px;
    }
    .video-wrapper {
        max-width: 100%;
    }
    .contact-wrapper-new {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-form-wrapper-new {
        padding: 2rem;
    }
    .project-description { font-size: 1rem; }
    .footer-container { flex-direction: column; text-align: center; }
    .social-icons { justify-content: center; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { margin-bottom: 2rem; }
}
@media (max-width: 767.98px) {
    .navbar .container { flex-direction: column; }
    .navbar-nav { margin-top: 1rem; }
    .masthead { 
        padding: 4rem 0; 
        min-height: auto;
    }
    .masthead-container {
        padding: 0 20px;
        gap: 2rem;
    }
    .masthead-name {
        font-size: 2.5rem;
    }
    .role-large {
        font-size: 3.5rem;
    }
    .role-accent {
        font-size: 2.5rem;
    }
    .masthead-avatar {
        max-width: 300px;
        border-radius: 20px;
    }
    .btn-download-cv, .btn-skills {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    .masthead-actions {
        flex-direction: column;
        align-items: center;
    }
    .skills-modal-content {
        width: 95%;
        max-height: 90vh;
        background: rgba(28, 20, 40, 0.85);
    }
    .skills-modal-header {
        padding: 1.5rem;
    }
    .skills-modal-title {
        font-size: 1.5rem;
    }
    .skills-modal-body {
        padding: 1.5rem;
    }
    .skills-grid-modal {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    .skill-item-modal {
        padding: 1.5rem 1rem;
    }
    .skill-item-modal i {
        font-size: 2.5rem;
    }
    .masthead-description {
        font-size: 1.1rem;
    }
    .masthead-avatar {
        max-width: 280px;
    }
    .page-section-heading { font-size: 2rem; }
    .page-section { width: 100%; margin: 2rem auto; border-radius: 0; }
    #destaques .container { padding: 3rem 1rem; border-radius: 0; box-shadow: none; border: none; }
    #contato { padding: 3rem 1rem; }
    #portfolio {
        padding: 3rem 1rem;
    }
    .projects-grid {
        padding: 0;
    }
    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 1rem; }
    .skill-item { padding: 2rem 1rem; }
    .skill-item i { font-size: 2.5rem; }
    .about-philosophy { font-size: 1.8rem; }
    .philosophy-accent { font-size: 2.2rem; }
    .section-subtitle { font-size: 1.4rem; }
    .approach-items { grid-template-columns: 1fr; }
    .approach-label { font-size: 1.1rem; }
    .motto-text { font-size: 1.1rem; padding: 0 1rem; }
    .highlight-card { padding: 2rem 1.5rem; }
    .highlight-icon i { font-size: 3.5rem; }
    .highlight-title { font-size: 1.3rem; }
    .project-card { margin-bottom: 2rem; }
    .project-header { padding: 1.2rem; }
    .project-title { font-size: 1.4rem; }
    .project-content {
        grid-template-columns: 1fr;
        padding: 1.2rem;
        gap: 1.5rem;
    }
    .project-features {
        grid-template-columns: 1fr;
    }
    .project-gallery {
        grid-template-columns: 1fr;
    }
    .project-gallery img {
        height: 180px;
    }
    .project-footer {
        padding: 1rem 1.2rem;
    }
    .btn-github {
        width: 100%;
        justify-content: center;
    }
    .project-description { font-size: 0.95rem; }
    .contact-form-card { padding: 1.5rem; }
    .contact-info { padding: 1.5rem; }
    .back-to-top-container { bottom: 20px; right: 20px; }
    .back-to-top-btn { width: 45px; height: 45px; font-size: 1.3rem; }
    .btt-label { display: none; }
}

/* ============================================
   NOVA ESTRUTURA DE PROJETOS - CARDS E MODAIS
   ============================================ */

/* Filtros de Projetos */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0 4rem;
    padding: 0 2rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: rgba(28, 20, 40, 0.6);
    border: 2px solid rgba(156, 106, 214, 0.3);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.filter-btn:hover {
    background: rgba(156, 106, 214, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(156, 106, 214, 0.4);
}

/* Grid de Cards de Projetos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Cards de Projetos */
.project-card {
    background: rgba(28, 20, 40, 0.6);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(156, 106, 214, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    contain: layout style paint;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(156, 106, 214, 0.3);
}

.project-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.15s ease;
}

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

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

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

.project-card-overlay i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.project-card-overlay span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
}

.project-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card-category {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    width: fit-content;
    padding: 0.4rem 1rem;
    background: rgba(156, 106, 214, 0.15);
    border: 1px solid rgba(156, 106, 214, 0.3);
    border-radius: 50px;
}

.project-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
}

.project-card-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    opacity: 0.9;
    margin: 0;
    flex: 1;
}

/* Modais de Projetos */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.project-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.project-modal-content {
    position: relative;
    z-index: 10001;
    background: rgba(28, 20, 40, 0.98);
    border-radius: 25px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(156, 106, 214, 0.3);
    opacity: 0;
    transition: opacity 0.15s ease-out;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(156, 106, 214, 0.4);
    will-change: opacity;
    contain: layout style paint;
}

.project-modal.active .project-modal-content {
    opacity: 1;
}

.project-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    background: rgba(156, 106, 214, 0.2);
    border: 2px solid rgba(156, 106, 214, 0.4);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: all 0.2s ease;
}

.project-modal-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(90deg);
}

.project-modal-header {
    padding: 3rem 3rem 2rem;
    border-bottom: 1px solid rgba(156, 106, 214, 0.3);
    background: linear-gradient(135deg, rgba(156, 106, 214, 0.1), rgba(93, 63, 106, 0.1));
}

.project-modal-category {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(156, 106, 214, 0.15);
    border: 1px solid rgba(156, 106, 214, 0.3);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.project-modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin: 0 0 1.5rem 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

.project-modal-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
    opacity: 0.9;
    margin: 0;
}

.project-modal-body {
    padding: 2.5rem 3rem;
    flex: 1;
}

/* Custom Scrollbar para Modal */
.project-modal-content::-webkit-scrollbar {
    width: 12px;
}

.project-modal-content::-webkit-scrollbar-track {
    background: rgba(156, 106, 214, 0.1);
    border-radius: 10px;
}

.project-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid rgba(28, 20, 40, 0.3);
}

.project-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--divider-light-color), var(--accent-color));
}

.project-modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(156, 106, 214, 0.1);
}

.project-modal-section {
    margin-bottom: 3rem;
}

.project-modal-section:last-child {
    margin-bottom: 0;
}

.project-modal-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.project-modal-section-title i {
    font-size: 1.6rem;
}

.project-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-modal-list li {
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.8;
    padding: 1rem 1.5rem;
    background: rgba(156, 106, 214, 0.08);
    border-left: 3px solid rgba(156, 106, 214, 0.3);
    border-radius: 8px;
    font-size: 1.05rem;
}

.project-modal-list li strong {
    color: var(--accent-color);
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.project-modal-tech {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tech-item-modal {
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1rem 1.5rem;
    background: rgba(156, 106, 214, 0.08);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
}

.tech-label-modal {
    font-weight: 700;
    color: var(--accent-color);
    min-width: 140px;
    font-size: 1rem;
}

.tech-value-modal {
    color: var(--text-light);
    opacity: 0.9;
    flex: 1;
    font-size: 1rem;
}

.project-modal-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-modal-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(156, 106, 214, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-modal-gallery img:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(156, 106, 214, 0.4);
}

.project-modal-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid rgba(156, 106, 214, 0.3);
    box-shadow: 0 10px 30px rgba(156, 106, 214, 0.2);
}

.project-modal-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.project-modal-actions-top {
    display: flex;
    justify-content: center;
    padding: 2.5rem 3rem;
    border-bottom: 1px solid rgba(156, 106, 214, 0.3);
    background: linear-gradient(135deg, rgba(156, 106, 214, 0.15), rgba(93, 63, 106, 0.15));
}

.btn-modal-github {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.3rem 3.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--body-background);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(156, 106, 214, 0.5), 0 0 20px rgba(156, 106, 214, 0.3);
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-modal-github::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.2s ease;
}

.btn-modal-github:hover::before {
    left: 100%;
}

.btn-modal-github:hover {
    background: linear-gradient(135deg, var(--divider-light-color), var(--accent-color));
    box-shadow: 0 15px 40px rgba(156, 106, 214, 0.6), 0 0 30px rgba(156, 106, 214, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.btn-modal-github i {
    font-size: 1.3rem;
}

/* Responsividade para Cards e Modais */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .project-filters {
        gap: 0.8rem;
        margin: 2rem 0 3rem;
        padding: 0 1rem;
    }

    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .project-card-image {
        height: 200px;
    }

    .project-card-content {
        padding: 1.5rem;
    }

    .project-card-title {
        font-size: 1.4rem;
    }

    .project-card-description {
        font-size: 0.95rem;
    }

    .project-modal-content {
        width: 98%;
        max-height: 95vh;
        border-radius: 20px;
    }

    .project-modal-header {
        padding: 2rem 2rem 1.5rem;
    }

    .project-modal-title {
        font-size: 1.8rem;
    }

    .project-modal-subtitle {
        font-size: 1rem;
    }

    .project-modal-body {
        padding: 2rem 1.5rem;
    }

    .project-modal-section-title {
        font-size: 1.4rem;
    }

    .project-modal-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-modal-gallery img {
        height: 180px;
    }

    .tech-item-modal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tech-label-modal {
        min-width: auto;
    }

    .project-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}