/* ===== RESET E ESTILOS GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* AJUSTE DE ROLAGEM SUAVE: Altere o valor abaixo para mudar a velocidade
       Valores recomendados: smooth (padrão), auto (instantâneo)
       Para mais controle, use JavaScript com scroll-behavior: smooth em transições */
    scroll-behavior: smooth;
    scroll-behavior: auto;
}

/* ===== OVERLAY DE CARREGAMENTO ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0c0e 0%, #1a1d20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    visibility: visible;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    animation: fadeInScale 0.6s ease forwards;
}

.loading-logo {
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(135deg, #8a2be2, #b066fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    animation: pulseScale 1.5s ease-in-out infinite;
}

.loading-text {
    font-size: 18px;
    color: #d1d5db;
    margin-bottom: 32px;
    font-weight: 500;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background-color: rgba(138, 43, 226, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #8a2be2, #b066fe);
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out infinite;
}

/* Animações de carregamento */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes loadingProgress {
    0% {
        width: 0%;
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    }
    50% {
        width: 100%;
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
    }
    100% {
        width: 100%;
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #1a1a1a;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body.dark-theme {
    background: linear-gradient(145deg, #0a0c0e 0%, #1a1d20 100%);
    color: #e0e0e0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER/NAVEGAÇÃO ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease;
}

body.dark-theme .header {
    background-color: rgba(10, 12, 14, 0.95);
    border-bottom-color: #8a2be2;
}

.navbar {
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .logo a {
    background: linear-gradient(135deg, #8a2be2, #b066fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    transition: color 0.3s ease;
    position: relative;
}

body.dark-theme .nav-link {
    color: #d1d5db;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

body.dark-theme .nav-link:hover,
body.dark-theme .nav-link.active {
    color: #8a2be2;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
    box-shadow: 0 0 10px #2563eb;
}

body.dark-theme .nav-link.active::after {
    background: #8a2be2;
    box-shadow: 0 0 10px #8a2be2;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2.5px;
    background-color: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

body.dark-theme .menu-toggle span {
    background-color: #e5e7eb;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Theme Toggle */
.theme-toggle {
    background: #e5e7eb;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: all 0.3s ease;
    font-size: 18px;
}

body.dark-theme .theme-toggle {
    background: #8a2be2;
    color: white;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SEÇÕES ===== */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }

/* Seção Formação */
.formacao-section {
    background-color: #f3f4f6;
}

body.dark-theme .formacao-section {
    background: linear-gradient(145deg, #1a1d20 0%, #0a0c0e 100%);
}

/* Seção Projetos */
.projetos-section {
    background-color: #f3f4f6;
}

body.dark-theme .projetos-section {
    background: linear-gradient(145deg, #1a1d20 0%, #0a0c0e 100%);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding-top: 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 0.8s ease forwards;
}

.hero-image {
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

body.dark-theme .hero-title {
    color: #f3f4f6;
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .gradient-text {
    background: linear-gradient(135deg, #8a2be2, #b066fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 16px;
    font-weight: 500;
}

body.dark-theme .hero-subtitle {
    color: #d1d5db;
}

.hero-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 32px;
}

body.dark-theme .hero-description {
    color: #d1d5db;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

body.dark-theme .btn-primary {
    background-color: #8a2be2;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

body.dark-theme .btn-primary:hover {
    background-color: #b066fe;
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

body.dark-theme .btn-secondary {
    color: #b066fe;
    border-color: #b066fe;
}

.btn-secondary:hover {
    background-color: #eff6ff;
}

body.dark-theme .btn-secondary:hover {
    background-color: rgba(138, 43, 226, 0.15);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

/* Imagem Hero */
.image-wrapper {
    position: relative;
    display: inline-block;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 64, 175, 0.05));
    border-radius: 16px;
    z-index: -1;
    filter: blur(30px);
}

body.dark-theme .image-wrapper::before {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(138, 43, 226, 0.15));
}

.image-wrapper img {
    width: 320px;
    height: 320px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-wrapper img:hover {
    transform: scale(1.02);
}

/* ===== TÍTULOS DE SEÇÃO ===== */
.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

body.dark-theme .section-title {
    color: #f3f4f6;
}

.section-subtitle {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-theme .section-subtitle {
    color: #d1d5db;
}

/* ===== SEÇÃO FORMAÇÃO ===== */
.formacao-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.formacao-column {
    animation: fadeInUp 0.8s ease forwards;
}

.formacao-column:nth-child(2) {
    animation-delay: 0.2s;
}

.formacao-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}

body.dark-theme .formacao-subtitle {
    color: #f3f4f6;
}

.formacao-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.formacao-card {
    padding: 20px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.dark-theme .formacao-card {
    background-color: rgba(20, 22, 25, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(5px);
}

.formacao-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

body.dark-theme .formacao-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.formacao-title {
    font-size: 16px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 8px;
}

body.dark-theme .formacao-title {
    color: #b066fe;
}

.formacao-school {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

body.dark-theme .formacao-school {
    color: #d1d5db;
}

.formacao-date {
    font-size: 12px;
    color: #9ca3af;
}

body.dark-theme .formacao-date {
    color: #9ca3af;
}

/* ===== SEÇÃO TECNOLOGIAS ===== */
.tech-level {
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease forwards;
}

.tech-level:nth-child(2) { animation-delay: 0.1s; }
.tech-level:nth-child(3) { animation-delay: 0.2s; }
.tech-level:nth-child(4) { animation-delay: 0.3s; }

.tech-level-title {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 0.5px;
}

body.dark-theme .tech-level-title {
    color: #b066fe;
}

.tech-level-desc {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

body.dark-theme .tech-level-desc {
    color: #d1d5db;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.tech-card {
    padding: 24px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho roxo no tema escuro */
body.dark-theme .tech-card {
    background: linear-gradient(135deg, rgba(30, 33, 36, 0.9) 0%, rgba(20, 22, 25, 0.8) 100%);
    border: 2px solid rgba(138, 43, 226, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.1);
}

/* Animação ao passar o mouse */
.tech-card:hover {
    animation: jumpCard 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border-color: #2563eb;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

body.dark-theme .tech-card:hover {
    border-color: #8a2be2;
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.4);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(138, 43, 226, 0.1) 100%);
    border-color: #b066fe;
}

/* Animação de "pulo" para as tecnologias */
@keyframes jumpCard {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-25px) scale(1.1);
    }
    100% {
        transform: translateY(-12px) scale(1.05);
    }
}

/* Animação do ícone */
.tech-card i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 0px rgba(138, 43, 226, 0));
}

.tech-card:hover i {
    transform: rotateY(360deg) scale(1.2);
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.6));
}

body.dark-theme .tech-card:hover i {
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.8));
}

.tech-card p {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

body.dark-theme .tech-card p {
    color: #e0e0e0;
}

.tech-card:hover p {
    color: #2563eb;
    font-weight: 700;
}

body.dark-theme .tech-card:hover p {
    color: #b066fe;
}

/* ===== SEÇÃO PROJETOS ===== */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.projeto-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.8s ease forwards;
}

body.dark-theme .projeto-card {
    background-color: rgba(30, 33, 36, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(5px);
}

.projeto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.15);
}

body.dark-theme .projeto-card:hover {
    border-color: #8a2be2;
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.3);
}

.projeto-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f3f4f6;
}

body.dark-theme .projeto-img {
    background-color: #374151;
}

.projeto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projeto-card:hover .projeto-img img {
    transform: scale(1.05);
}

.projeto-info {
    padding: 24px;
}

.projeto-info h3 {
    font-size: 18px;
    color: #2563eb;
    margin-bottom: 12px;
}

body.dark-theme .projeto-info h3 {
    color: #b066fe;
}

.projeto-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.6;
}

body.dark-theme .projeto-desc {
    color: #d1d5db;
}

.projeto-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #eff6ff;
    color: #2563eb;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

body.dark-theme .tech-badge {
    background-color: rgba(138, 43, 226, 0.15);
    color: #b066fe;
}

.btn-projeto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #2563eb;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

body.dark-theme .btn-projeto {
    background-color: #8a2be2;
}

.btn-projeto:hover {
    background-color: #1d4ed8;
    gap: 12px;
}

body.dark-theme .btn-projeto:hover {
    background-color: #b066fe;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

/* ===== SEÇÃO CONTATO ===== */
.contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 48px;
}

.contato-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: white;
    text-decoration: none;
}

.contato-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.contato-card i {
    font-size: 20px;
}

.contato-card.email {
    background-color: #ef4444;
}

.contato-card.email:hover {
    background-color: #dc2626;
}

.contato-card.linkedin {
    background-color: #0a66c2;
}

.contato-card.linkedin:hover {
    background-color: #084fa0;
}

.contato-card.github {
    background-color: #24292e;
}

.contato-card.github:hover {
    background-color: #0d1117;
}

.contato-card.instagram {
    background: linear-gradient(135deg, #f09433, #d62976, #962fbf);
}

.contato-card.instagram:hover {
    filter: brightness(0.9);
}

.contato-card.whatsapp {
    background-color: #25d366;
    grid-column: 1 / -1;
}

.contato-card.whatsapp:hover {
    background-color: #1fa854;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
}

body.dark-theme .footer {
    border-top-color: rgba(138, 43, 226, 0.3);
    color: #d1d5db;
}

/* ===== BOTÕES DE NAVEGAÇÃO ===== */
.nav-button {
    position: fixed;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2563eb;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
}

body.dark-theme .nav-button {
    background-color: #8a2be2;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.nav-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

body.dark-theme .nav-button:hover {
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

.nav-button-down {
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}

.nav-button-up {
    bottom: 100px;
}

/* Mostrar botão de voltar ao topo quando necessário */
section:not(:last-child) .nav-button-up {
    opacity: 1;
    pointer-events: auto;
}

/* ===== SOMBRA ROXA DO MOUSE ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle 300px at var(--mouse-x, 0) var(--mouse-y, 0), 
                                rgba(138, 43, 226, 0.15) 0%, 
                                rgba(138, 43, 226, 0.05) 40%, 
                                transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.dark-theme::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .nav-button {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 20px;
        font-size: 18px;
    }
    
    .nav-button-up {
        bottom: 80px;
    }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-image {
        display: flex;
        justify-content: center;
    }

    .image-wrapper img {
        width: 280px;
        height: 280px;
    }

    .formacao-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid #e5e7eb;
        padding: 20px;
        gap: 12px;
    }

    body.dark-theme .nav-menu {
        background-color: rgba(15, 23, 42, 0.95);
        border-bottom-color: #374151;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .nav-link:hover {
        background-color: #f3f4f6;
    }

    body.dark-theme .nav-link:hover {
        background-color: #374151;
    }

    .nav-link.active::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .section-title {
        font-size: 36px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .contato-card.whatsapp {
        grid-column: auto;
    }

    .contato-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-section {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .nav-button {
        width: 45px;
        height: 45px;
        right: 20px;
        font-size: 18px;
    }
    
    .nav-button-up {
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contato-grid {
        grid-template-columns: 1fr;
    }

    .image-wrapper img {
        width: 240px;
        height: 240px;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
    }
}
