:root {
    --roxo-escuro: #2a0a42;
    --roxo-medio: #4a148c;
    --roxo-claro: #7b1fa2;
    --roxo-claro-transp: rgba(123, 31, 162, 0.1);
    --preto: #121212;
    --cinza-escuro: #1e1e1e;
    --cinza-medio: #2d2d2d;
    --cinza-claro: #3d3d3d;
    --azul-escuro: #0d1b2a;
    --texto: #f5f5f5;
    --texto-claro: rgba(245, 245, 245, 0.8);
    --destaque: #bb86fc;
    --destaque-transp: rgba(187, 134, 252, 0.2);
    --sucesso: #4caf50;
    --erro: #f44336;
}

/* Modo Claro */
[data-theme="light"] {
    --roxo-escuro: #7b1fa2;
    --roxo-medio: #9c27b0;
    --roxo-claro: #ba68c8;
    --preto: #f5f5f5;
    --cinza-escuro: #e0e0e0;
    --cinza-medio: #eeeeee;
    --cinza-claro: #f5f5f5;
    --texto: #121212;
    --texto-claro: rgba(18, 18, 18, 0.8);
    --destaque: #6200ea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    background: linear-gradient(135deg, var(--roxo-escuro) 0%, var(--preto) 100%);
    color: var(--texto);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Navbar */
header {
    padding: 30px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--texto);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo span {
    color: var(--destaque);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--texto);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--destaque);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--destaque);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--texto);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: var(--roxo-claro-transp);
    color: var(--destaque);
}

.menu-mobile {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    max-width: 1000px;
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, var(--destaque), var(--roxo-claro));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--texto-claro);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--roxo-medio), var(--roxo-claro));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 31, 162, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--roxo-medio);
    color: var(--texto);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.4);
}

.cta-button.secondary:hover {
    background: var(--roxo-claro-transp);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Seções */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    color: var(--texto);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--roxo-medio), var(--destaque));
}

/* Sobre */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--destaque);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--texto-claro);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    gap: 10px;
}

.info-item span {
    font-weight: 600;
    color: var(--destaque);
}

.about-skills {
    flex: 1;
    background: var(--cinza-escuro);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-skills h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--destaque);
}

.skills-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-bar {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-progress {
    height: 10px;
    background: var(--cinza-medio);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--roxo-medio), var(--destaque));
    border-radius: 5px;
    position: relative;
}

.skill-progress .progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.2), 
                transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Projetos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--cinza-escuro);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--destaque-transp);
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--destaque);
    font-size: 1.3rem;
}

.project-info p {
    margin-bottom: 15px;
    color: var(--texto-claro);
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tech-tag {
    background: var(--roxo-claro-transp);
    color: var(--destaque);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--texto-claro);
}

.stat-item i {
    color: var(--destaque);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.project-link {
    color: var(--texto);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.project-link:hover {
    color: var(--destaque);
}

.project-link i {
    font-size: 0.8rem;
}

/* Habilidades */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skills-category {
    background: var(--cinza-escuro);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--destaque);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-category h3 i {
    font-size: 1.2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    background: var(--cinza-medio);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--destaque-transp);
    background: var(--roxo-claro-transp);
}

.skill-icon {
    font-size: 2rem;
    color: var(--destaque);
}

.skill-item span {
    font-weight: 500;
    text-align: center;
}

/* Contato */
.contact-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    background: var(--cinza-escuro);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--destaque);
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--texto-claro);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--destaque);
    width: 40px;
    height: 40px;
    background: var(--roxo-claro-transp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--texto);
}

.contact-item p {
    margin: 0;
    color: var(--texto-claro);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--texto);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--destaque);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background: var(--cinza-escuro);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--preto);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo .logo {
    font-size: 1.8rem;
}

.footer-logo p {
    color: var(--texto-claro);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--destaque);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--texto-claro);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--destaque);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--cinza-medio);
}

.footer-bottom p {
    color: var(--texto-claro);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--texto-claro);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--destaque);
    transform: translateY(-3px);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--preto);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: all 0.5s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-mobile {
        display: block;
        z-index: 1001;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p.subtitle {
        font-size: 1rem;
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Particles.js */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Foto de perfil responsiva */
.profile-photo {
    width: 80%;
    max-width: 350px; /* Tamanho máximo */
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: float-smooth 8s ease-in-out infinite;
}

/* Substitua a animação existente por esta versão otimizada */
@keyframes smooth-float {
  0%, 100% { 
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  50% { 
    transform: translateY(-15px) translateX(5px);
    opacity: 0.95;
  }
}

.profile-photo {
  animation: smooth-float 4s ease-in-out infinite;
  will-change: transform; /* Otimização para o browser */
}

/* Classe para pausar suavemente */
.paused-animation {
  animation: none !important;
  transform: translateY(0) translateX(0);
  transition: transform 0.5s ease-out;
}

/* Ajustes para telas menores */
@media (max-width: 992px) {
    .profile-photo {
        max-width: 280px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .profile-photo {
        max-width: 220px;
    }
}

/* Adicione no seu arquivo CSS */
.profile-photo.paused {
    animation-play-state: paused;
}

.static-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--destaque);
}

.subtitle {
  font-size: 1.2rem;
  text-align: center;
  opacity: 0.8;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .static-title {
    font-size: 2rem;
    margin-top: 30px; /* Espaço para a navbar */
  }
}

a {
    text-decoration: none;
}