/* Paleta de cores moderna */
:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #9b59b6;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #3498db, #9b59b6);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Header moderno */
.header {
  background: rgba(44, 62, 80, 0.85);
  backdrop-filter: blur(15px);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header.scrolled {
  padding: 0.5rem 2rem;
  background: rgba(44, 62, 80, 0.95);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.header .logo {
  font-weight: 700;
  font-size: 1.8rem;
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-links li a {
  color: var(--white);
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  color: var(--secondary);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background: var(--gradient);
  transition: 0.3s;
  border-radius: 2px;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--secondary);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover::after {
  width: 100%;
}

.btn-theme-toggle {
  background: var(--white);
  color: var(--primary);
  transition: all 0.3s;
}

.btn-theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #3498db, #9b59b6, #2c3e50);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  color: white;
  padding: 6rem 0 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn-custom {
  background: var(--white);
  color: var(--primary);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  text-align: center;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero .hero-content>.d-flex {
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-custom::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 20%, transparent 70%);
  transform: rotate(45deg);
  animation: glow 3s linear infinite;
}

@keyframes glow {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* Seções */
.section {
  margin-bottom: 2rem;
  padding: 4rem 2rem;
  border-radius: 12px;
}

.section-title {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  color: var(--primary);
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Cartões aprimorados */
.card {
  border: none;
  border-radius: 12px;
  background: var(--white);
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  overflow: hidden;
}

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

.skill-card {
  text-align: center;
  padding: 1.5rem 1rem;
  font-weight: 600;
  background: var(--white);
  border-left: 4px solid var(--secondary);
  position: relative;
  border: none;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.4s;
}

.skill-card:hover::before {
  opacity: 0.15;
}

.skill-card:hover {
  transform: translateY(-5px);
}

/* Timeline moderna */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
  border-radius: 3px;
}

.timeline-item {
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--secondary);
}

.timeline-item h5 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-item span {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 500;
}

/* Projeto destacado */
.project-card {
  display: block;
  transition: all 0.4s;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  position: relative;
}

.project-card .card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
}

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

.project-card h5 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

#linguas {
  padding-top: 2rem;
  ;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 2rem 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--secondary);
  transform: translateY(-3px);
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero {
    padding: 4rem 0 5rem 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-item::before {
    left: -1.9rem;
  }

  #linguas {
    padding-top: 0rem;
  }
}

/* Menu mobile */
.mobile-menu-btn {
  background: var(--white);
  padding: 0.3rem 0.5rem;
  transition: all 0.3s;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--primary);
  z-index: 1001;
  transition: right 0.4s ease;
  padding: 2rem;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
}

.mobile-nav-links li {
  margin-bottom: 1.5rem;
}

.mobile-nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

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

#sobre,
#competencias,
#projetos,
#experiencia,
#educacao {
  scroll-margin-top: 70px;
}

#projetos {
  padding-top: 2rem;
}

#contato {
  scroll-margin-top: 118px;
}

.section:nth-of-type(odd) {
  background-color: var(--light);
  transition: background-color 0.5s ease;
}

.section:nth-of-type(even) {
  background-color: #f0f2f5;
  transition: background-color 0.5s ease;
}

/* Tema escuro */
body.dark-mode {
  background-color: rgb(43, 42, 42);
  color: #f1f1f1;
}

body.dark-mode .header {
  background: rgba(43, 42, 42, 0.95);
}

body.dark-mode .timeline-item h5 {
  color: var(--light)
}

body.dark-mode .section:nth-of-type(odd),
body.dark-mode .section:nth-of-type(even) {
  background-color: #1e1e1e;
}

body.dark-mode .card {
  background: #1c1c1c;
  color: #f1f1f1;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode .skill-card {
  background: #1c1c1c;
  color: #f1f1f1;
  border-left: 4px solid var(--accent);
}

body.dark-mode .section-title {
  color: #f1f1f1;
}

body.dark-mode .footer {
  background: #1e1e1e;
  color: #ccc;
}

body.dark-mode .nav-links li a {
  color: #f1f1f1;
}

body.dark-mode .mobile-menu {
  background: #1a1a1a;
}

/* Hero dark mode */
body.dark-mode .hero {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  /* gradiente escuro */
  color: #f1f1f1;
}

body.dark-mode .btn-custom {
  background: #444;
  /* botão mais escuro */
  color: #f1f1f1;
}

body.dark-mode .btn-custom::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 20%, transparent 70%);
}

body.dark-mode .project-card h5 {
  color: #f1f1f1;
}

body.dark-mode .timeline::before {
  background: var(--accent);
}

body.dark-mode .timeline-item::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px #1c1c1c;
}

body.dark-mode .social-links a {
  color: #f1f1f1;
}

body.dark-mode .social-links a:hover {
  color: var(--accent);
}

body.dark-mode .mobile-nav-links a {
  color: #f1f1f1;
  border-bottom: 1px solid rgba(241, 241, 241, 0.1);
}

.indevelopment {
  pointer-events: none;
}

button.indevelopment {
  background-color: gray !important;
  border: none;
}