/* Variáveis */
:root {
    /* Tema Escuro (padrão) */
    --cor-primaria: #00a8ff;
    --cor-secundaria: #192a56;
    --cor-destaque: #0097e6;
    --cor-escura: #0c1220;
    --cor-mais-escura: #080d16;
    --cor-clara: #e9ecef;
    --cor-texto: var(--cor-clara);
    --cor-fundo: var(--cor-escura);
    --fundo-cartao: rgba(24, 36, 59, 0.8);
    --gradiente-primario: linear-gradient(135deg, var(--cor-primaria), #00d2d3);
    --sombra-neon: 0 0 10px rgba(0, 168, 255, 0.5),
                   0 0 20px rgba(0, 168, 255, 0.3),
                   0 0 30px rgba(0, 168, 255, 0.1);
    --transicao: all 0.3s ease-in-out;
    --cor-geometrica-1: rgba(0, 168, 255, 0.15);
    --cor-geometrica-2: rgba(0, 210, 211, 0.08);
}

/* Tema Claro */
[data-theme="light"] {
    --cor-primaria: #0084ff;
    --cor-secundaria: #1e3799;
    --cor-destaque: #00a8ff;
    --cor-escura: #eef2f7;
    --cor-mais-escura: #e2e8f0;
    --cor-clara: #2d3436;
    --cor-texto: #2d3436;
    --cor-fundo: #f1f5f9;
    --fundo-cartao: rgba(241, 245, 249, 0.9);
    --gradiente-primario: linear-gradient(135deg, #0084ff, #00d2d3);
    --texto-formulario: #4a4a4a;
    --borda-formulario: rgba(0, 0, 0, 0.1);
    --sombra-neon: none;
    --cor-geometrica-1: rgba(0, 132, 255, 0.15);
    --cor-geometrica-2: rgba(0, 210, 211, 0.12);
}

/* Botão Alternar Tema */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradiente-primario);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--sombra-neon);
    transition: var(--transicao);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    color: var(--cor-fundo);
    font-size: 1.5rem;
    transition: var(--transicao);
}

/* Aplicações com tema claro */
[data-theme="light"] .header {
    background: rgba(241, 245, 249, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .service-card-header,
[data-theme="light"] .service-content {
    background: rgba(241, 245, 249, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .project-card {
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .footer {
    background: rgba(241, 245, 249, 0.85);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .footer-logo {
    color: var(--cor-secundaria);
}

[data-theme="light"] .footer-logo .main-text {
    color: var(--cor-secundaria);
    text-shadow: none;
}

[data-theme="light"] .footer-logo .accent-text {
    color: var(--cor-destaque);
}

[data-theme="light"] .footer-logo span {
    color: var(--cor-destaque);
}

[data-theme="light"] .geometric-background::before {
    opacity: 0.7;
}

[data-theme="light"] .geometric-background::after {
    opacity: 0.6;
}

[data-theme="light"] .glitch {
    text-shadow: none;
    color: var(--cor-secundaria);
    animation: none;
    opacity: 1;
    transform: none;
}

[data-theme="light"] .glitch::before,
[data-theme="light"] .glitch::after {
    display: none;
}

/* Resete e bases dos estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    overflow-x: hidden;
    position: relative;
}

.geometric-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.geometric-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25px 25px, var(--cor-geometrica-1) 2px, transparent 0),
        radial-gradient(circle at 75px 75px, var(--cor-geometrica-1) 2px, transparent 0),
        linear-gradient(30deg, transparent 49%, var(--cor-geometrica-1) 50%, transparent 51%),
        linear-gradient(-30deg, transparent 49%, var(--cor-geometrica-2) 50%, transparent 51%);
    background-size: 100px 100px, 100px 100px, 50px 50px, 50px 50px;
    animation: patternMove 60s linear infinite;
    opacity: 0.4;
}

.geometric-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(45deg, transparent 48%, var(--cor-geometrica-1) 49%, var(--cor-geometrica-1) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, var(--cor-geometrica-2) 49%, var(--cor-geometrica-2) 51%, transparent 52%);
    background-size: 30px 30px;
    animation: patternMove 40s linear infinite reverse;
    opacity: 0.3;
}

@keyframes patternMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100px 100px;
    }
}

a {
    text-decoration: none;
    color: var(--cor-texto);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(12, 18, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0;
    letter-spacing: -0.5px;
    position: relative;
    font-family: 'Consolas', 'Monaco', monospace;
}

.logo .main-text,
.footer-logo .main-text {
    color: #e9ecef;
    text-shadow: 0 0 5px rgba(0, 168, 255, 0.2);
}

.logo .no-space,
.footer-logo .no-space {
    margin-left: -1px;
}

.logo .accent-text,
.footer-logo span {
    color: rgba(0, 168, 255, 0.9);
    margin-left: -1px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradiente-primario);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Menu */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    flex-direction: row;
    z-index: 1000;
}

[data-theme="light"] .nav-links {
    background: none;
    backdrop-filter: none;
    box-shadow: none;
}

.nav-links a {
    color: var(--cor-texto);
    font-weight: 500;
    position: relative;
    transition: var(--transicao);
    opacity: 1;
    transform: none;
    margin: 0;
    border-bottom: none; 
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradiente-primario);
    transition: var(--transicao);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    border-bottom: none; 
}

.menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-btn span {
        width: 25px;
        height: 3px;
        background: var(--cor-texto);
        transition: var(--transicao);
    }

    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        background: rgb(10, 22, 34);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: 0.3s ease-in-out;
        margin: 0;
        padding: 6rem;
    }

    [data-theme="light"] .nav-links {
        background: #f1f5f9 !important;
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.03);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 0;
        font-size: 1.1rem;
        opacity: 0;
        transform: translateX(20px);
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
        transition: 0.3s ease;
    }

    .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active a:nth-child(5) { transition-delay: 0.5s; }

    /* Contato no mobile */
    .contact-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .contact-info {
        order: 2;
        width: 100%;
    }

    .contact-form {
        order: 1;
        width: 100%;
    }

    .info-item {
        width: 100%;
    }

    /* Alinhamentos do Hero */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 5% 60px;
        gap: 3rem;
        height: auto;
    }

    .hero-content {
        margin-top: 2rem;
    }

    .glitch {
        font-size: 2.2rem;
    }

    .orbita-container {
        margin: 2rem auto 4rem;
        width: 250px;
        height: 250px;
    }

    .orbita i {
        font-size: 1.8rem;
    }

    section {
        padding: 80px 5%;
    }

    .sobre-content {
        gap: 3rem;
    }

    .sobre-text {
        padding: 0 0 0 2rem;
    }

    .services-grid {
        gap: 2rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}

/* Menu no tema claro */
[data-theme="light"] .nav-links {
    background: none;
    backdrop-filter: none;
    box-shadow: none;
}

[data-theme="light"] .nav-links a {
    color: var(--cor-texto);
}

[data-theme="light"] .nav-links a:hover {
    color: var(--cor-primaria);
}

@media (max-width: 768px) {
    [data-theme="light"] .nav-links {
        background: rgb(232, 236, 242);
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.03);
    }
}

/* Sessão Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.05), rgba(0, 210, 211, 0.05));
}

.hero-content {
    max-width: 600px;
}

.glitch {
    font-size: 3rem;
    font-weight: 600;
    position: relative;
    color: #d1d8e0;
    text-shadow: 0 0 5px rgba(0, 168, 255, 0.15);
    opacity: 0;
    transform: translateY(20px);
    animation: aparecer 1s ease forwards;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0.1;
}

.glitch::before {
    animation: glitch-effect 3s infinite linear alternate-reverse;
    text-shadow: 1px 0 var(--cor-primaria);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    animation: glitch-effect 3s infinite linear alternate-reverse;
    text-shadow: -1px 0 #00d2d3;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softGlow {
    from {
        text-shadow: 0 0 2px rgba(0, 168, 255, 0.1),
                     0 0 4px rgba(0, 168, 255, 0.1);
    }
    to {
        text-shadow: 0 0 5px rgba(0, 168, 255, 0.15);
    }
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-0.5px, 0.5px);
    }
    40% {
        transform: translate(-0.5px, -0.5px);
    }
    60% {
        transform: translate(0.5px, 0.5px);
    }
    80% {
        transform: translate(0.5px, -0.5px);
    }
    100% {
        transform: translate(0);
    }
}

.typing-text {
    font-size: 1.25rem;
    margin: 1rem 0;
    min-height: 2em;
    color: var(--cor-texto);
    opacity: 0.9;
    position: relative;
}

.typing-text::after {
    content: '|';
    right: -4px;
    color: var(--cor-primaria);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.social-links {
    margin: 2rem 0;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: var(--transicao);
}

.social-links a:hover {
    color: var(--cor-primaria);
    transform: translateY(-3px);
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--cor-primaria);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transicao);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    background: var(--cor-destaque);
    transform: translateY(-2px);
    box-shadow: var(--sombra-neon);
}

/* Animação da orbita */
.orbita-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.orbita {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotacao 20s linear infinite;
}

.orbita i {
    position: absolute;
    font-size: 2rem;
    color: var(--cor-primaria);
    transition: var(--transicao);
}

.orbita i:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbita i:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.orbita i:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.orbita i:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }
.orbita i:nth-child(5) { top: 50%; left: 50%; transform: translate(-50%, -50%); }

@keyframes rotacao {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Estilos aplicados para todas as sessões */
section {
    padding: 80px 10%;
}

.section-header {
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 35px;
    display: flex;
    align-items: center;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--cor-primaria);
    margin-bottom: 0;
    position: relative;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
}

.section-header::before,
.section-header::after {
    content: '/';
    position: absolute;
    left: 0;
    height: 100%;
    color: var(--cor-primaria);
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: bold;
    font-size: 2rem;
    display: flex;
    align-items: center;
    background: var(--gradiente-primario);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header::before {
    left: 8px;
}

.section-header::after {
    left: 18px;
}

#sobre,
#services,
#projects,
#contact {
    padding-top: 80px;
    scroll-margin-top: 60px;
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    section {
        padding: 60px 5%;
    }

    #sobre,
    #services,
    #projects,
    #contact {
        padding-top: 70px;
        scroll-margin-top: 50px;
    }

    .section-header {
        margin-bottom: 2rem;
        padding-left: 30px;
    }

    .section-header::before {
        left: 6px;
    }

    .section-header::after {
        left: 15px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Sessão sobre */
.sobre-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}

.sobre-text {
    position: relative;
    padding: 2rem 0 2rem 3rem;
    max-width: 100%;
}

.sobre-text p {
    color: var(--cor-texto);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
    opacity: 0.9;
}

.sobre-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradiente-primario);
    border-radius: 4px;
}

.skills {
    margin-top: 2rem;
}

.skill {
    margin-bottom: 1.5rem;
    position: relative;
}

.skill:last-child {
    margin-bottom: 0;
}

.skill span {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--cor-clara);
}

.progresso-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progresso-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 1px;
    background: linear-gradient(90deg, var(--cor-primaria), var(--cor-destaque));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

.progresso {
    height: 100%;
    background: var(--gradiente-primario);
    border-radius: 10px;
    position: relative;
    transition: width 1s ease-in-out;
}

.progresso::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 168, 255, 0.2)
    );
    filter: blur(5px);
}

/* Sessão serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.service-card {
    background-color: transparent;
    min-height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-header,
.service-content {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
}

.service-card-header {
    background: linear-gradient(
        135deg,
        rgba(89, 128, 172, 0.1),
        rgba(48, 96, 137, 0.2)
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.service-content {
    background: linear-gradient(
        135deg,
        rgba(89, 128, 172, 0.15),
        rgba(48, 96, 137, 0.25)
    );
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(89, 128, 172, 0.3);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--light-color);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.service-title {
    text-align: center;
    position: relative;
    z-index: 1;
}

.service-title h3 {
    font-size: 1.6rem;
    color: var(--light-color);
    margin: 0;
    text-shadow: 0 0 10px rgba(89, 128, 172, 0.5);
}

.service-content p {
    color: var(--light-color);
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 80%;
    margin: 0 auto;
}

/* Partículas flutuantes nos cards*/
.service-card::before,
.service-card::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cor-primaria);
    filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before,
.service-card:hover::after {
    opacity: 0.5;
    animation: float 4s infinite;
}

.service-card::before {
    top: 20%;
    left: 10%;
    animation-delay: 0.5s;
}

.service-card::after {
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.2);
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        min-height: 300px;
    }
    
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .service-title h3 {
        font-size: 1.2rem;
    }
    
    .service-content p {
        font-size: 0.95rem;
    }
}

/* Sessão projetos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 0.5rem;
}

.project-card {
    background: rgba(12, 18, 32, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transicao);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.project-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transicao);
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(12, 18, 32, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-info {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.project-info h3 {
    font-size: 1.2rem;
    color: var(--cor-clara);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.project-links a {
    padding: 0.5rem 1.5rem;
    background: var(--cor-primaria);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transicao);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}

.project-links a:hover {
    background: var(--cor-destaque);
    transform: translateY(-2px);
    box-shadow: var(--sombra-neon);
}

[data-theme="light"] .project-card {
    background: rgba(232, 236, 242, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .project-info {
    background: rgba(232, 236, 242, 0.85);
}

[data-theme="light"] .project-info h3 {
    color: var(--cor-secundaria);
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-image {
        height: 200px;
    }
}

/* Sessão contato */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    transition: transform 0.3s ease;
    border-radius: 12px;
    position: relative;
}

.info-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradiente-primario);
    transition: width 0.3s ease;
}

.info-item:hover::after {
    width: 100%;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--cor-primaria);
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(89, 128, 172, 0.2);
}

.info-item:hover i {
    color: var(--cor-destaque);
    transform: scale(1.1);
}

.info-content {
    text-align: left;
}

.info-content h3 {
    font-size: 1rem;
    color: var(--cor-clara);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.info-content p {
    font-size: 0.9rem;
    color: rgba(232, 232, 232, 0.8);
}

.contact-form {
    position: relative;
    padding: 2rem 0;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cor-texto);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--cor-primaria);
}

.form-group input:focus ~ .input-highlight,
.form-group textarea:focus ~ .input-highlight {
    width: 100%;
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradiente-primario);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--cor-primaria);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--cor-texto);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    font-size: 0.85rem;
    color: var(--cor-primaria);
}

.form-group textarea {
    height: 122px;
    resize: none;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--cor-primaria);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--cor-destaque);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: rgba(12, 18, 32, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 10%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0;
    letter-spacing: -0.5px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.footer-logo .main-text,
.footer-logo .accent-text {
    color: var(--cor-clara);
    text-shadow: var(--sombra-neon);
}

.footer-logo span {
    color: var(--cor-destaque);
}

.footer-social a {
    margin-left: 1.5rem;
    font-size: 1.2rem;
    transition: var(--transicao);
}

.footer-social a:hover {
    color: var(--cor-primaria);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cor-fundo);
}

::-webkit-scrollbar-thumb {
    background: var(--gradiente-primario);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cor-primaria);
}

@media (max-width: 480px) {
    .hero {
        padding: 140px 5% 40px;
        min-height: auto;
    }

    .hero-content {
        margin-top: 0;
        padding: 0;
    }

    .glitch {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        opacity: 1;
        transform: none;
    }

    .typing-text {
        font-size: 1rem;
        margin: 1.5rem 0;
    }

    .orbita-container {
        width: 200px;
        height: 200px;
        margin: 2rem auto;
    }

    .orbita i {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .service-title h3 {
        font-size: 1.1rem;
    }

    .sobre-text p {
        font-size: 0.9rem;
    }

    .skill span {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 5% 60px;
        min-height: auto;
    }

    .hero-content {
        margin-top: 1rem;
        padding: 0;
    }

    .glitch {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        opacity: 1;
        transform: none;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .service-title h3 {
        font-size: 1.2rem;
    }

    .sobre-text p {
        font-size: 0.95rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .social-links a {
        margin: 0 1.2rem;
    }
}

/* Ajustes específicos para o tema claro */
[data-theme="light"] .logo .main-text,
[data-theme="light"] .footer-logo .main-text {
    color: var(--cor-secundaria);
    text-shadow: none;
}

[data-theme="light"] .logo .accent-text,
[data-theme="light"] .footer-logo span {
    color: var(--cor-destaque);
}

[data-theme="light"] .glitch {
    text-shadow: none;
    color: var(--cor-secundaria);
}

[data-theme="light"] .service-title h3 {
    text-shadow: none;
    color: var(--cor-secundaria);
}

[data-theme="light"] .info-item {
    background: transparent;
    box-shadow: none;
    border-radius: 8px;
}

[data-theme="light"] .info-content h3 {
    color: var(--cor-secundaria);
}

[data-theme="light"] .info-content p {
    color: var(--cor-texto);
}

[data-theme="light"] .info-item:hover {
    transform: translateX(10px);
}

[data-theme="light"] .info-item i {
    color: var(--cor-primaria);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .input-highlight {
    background: var(--gradiente-primario);
    box-shadow: 0 0 10px var(--cor-primaria);
}

[data-theme="light"] .submit-btn {
    background: var(--cor-primaria);
    color: white;
    border: none;
}

[data-theme="light"] .submit-btn:hover {
    background: var(--cor-destaque);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .footer-logo .main-text {
    text-shadow: none;
    color: var(--cor-secundaria);
}

[data-theme="light"] .orbita {
    border: 1px solid rgba(25, 42, 86, 0.3);
}

[data-theme="light"] .orbita i {
    color: var(--cor-primaria);
    filter: drop-shadow(0 0 8px rgba(0, 132, 255, 0.3));
}

[data-theme="light"] .orbita i:hover {
    color: var(--cor-destaque);
}

[data-theme="light"] .section-header h2 {
    color: var(--cor-secundaria);
}

[data-theme="light"] .section-header::before,
[data-theme="light"] .section-header::after {
    content: '/';
    color: var(--cor-primaria);
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: bold;
    font-size: 2rem;
    display: flex;
    align-items: center;
    background: var(--gradiente-primario);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
}

[data-theme="light"] .section-header::before {
    left: 8px;
}

[data-theme="light"] .section-header::after {
    left: 18px;
}

[data-theme="light"] .menu-btn span {
    background: var(--cor-texto);
}

[data-theme="light"] .nav-links {
    background: none;
    backdrop-filter: none;
    box-shadow: none;
}

[data-theme="light"] .nav-links a {
    color: var(--cor-texto);
}

[data-theme="light"] .nav-links a:hover {
    color: var(--cor-primaria);
}

/* Ajustes na responsividade do desktop */
@media (min-width: 1024px) {
    .nav-container {
        padding: 1rem 10%;
        max-width: 100%;
    }

    .hero {
        padding: 0 10%;
        max-width: 100%;
        gap: 2rem;
    }

    .hero-content {
        padding-left: 0;
        flex: 1;
    }

    .hero-image {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    .orbita-container {
        margin-right: 0;
        width: 350px;
        height: 350px;
    }

    .logo {
        font-size: 1.5rem;
        padding-left: 0;
    }

    .nav-links {
        padding-right: 0;
    }
}

/* Estilos do Popup de Agradecimento */
.popup-agradecimento {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.popup-agradecimento.ativo {
    opacity: 1;
    visibility: visible;
}

.popup-conteudo {
    background: var(--fundo-cartao);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(0, 168, 255, 0.1);
    transform: scale(0.9) translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.popup-agradecimento.ativo .popup-conteudo {
    transform: scale(1) translateY(0);
}

.popup-conteudo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradiente-primario);
    opacity: 0.05;
    z-index: -1;
}

.popup-conteudo i {
    font-size: 3.5rem;
    color: var(--cor-primaria);
    margin-bottom: 1.5rem;
    animation: popIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    text-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}

.popup-conteudo h3 {
    color: var(--cor-texto);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.popup-conteudo p {
    color: var(--cor-texto);
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.popup-conteudo button {
    background: var(--gradiente-primario);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.2);
}

.popup-conteudo button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.popup-conteudo button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.3);
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Ajustes para o tema claro do popup */
[data-theme="light"] .popup-conteudo {
    background: var(--fundo-cartao);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
                0 0 20px rgba(0, 168, 255, 0.05);
}

[data-theme="light"] .popup-conteudo i {
    color: var(--cor-primaria);
    text-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}

[data-theme="light"] .popup-conteudo button {
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.15);
}

[data-theme="light"] .popup-conteudo button:hover {
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.2);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    border-bottom: 1px solid var(--borda-formulario);
    color: var(--cor-texto);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    border-bottom-color: var(--cor-primaria);
}