/* =========== RESET & VARIÁVEIS =========== */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
/* =========== RESET & VARIÁVEIS =========== */
:root {
  --bg-dark: #050505;
  --bg-header: rgba(5, 5, 5, 0.8);
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(0, 0, 0, 0.4);
  --border-color: rgba(255, 255, 255, 0.12);
  --primary-color: #9333ea;
  --primary-glow: #a855f7;
  --secondary-color: #ec4899;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --success: #10b981;
  --shadow-card: none;
  --font-main: 'Inter', sans-serif;
}

body.light-mode {
  --bg-dark: #f1f5f9;
  --bg-header: rgba(241, 245, 249, 0.9);
  --bg-card: #ffffff;
  --bg-input: #e2e8f0;
  --border-color: #cbd5e1;
  --primary-color: #6d28d9;
  --primary-glow: #7c3aed;
  --secondary-color: #4f46e5;
  --text-main: #0f172a;
  --text-muted: #475569;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========== BASE =========== */
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(147, 51, 234, 0.28), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(236, 72, 153, 0.22), transparent 45%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
  cursor: pointer;
}

ul {
  list-style: none;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-glow), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========== HEADER & NAVIGATION =========== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 96px;
}

.logo img {
  height: 65px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.45));
}

/* =========== DESKTOP NAVIGATION =========== */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    align-items: center;
    gap: 30px;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
  }
  
  .nav-links a:hover {
    color: var(--text-main);
  }
  
  .btn-nav,
  .lang-btn {
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
  }
  
  .btn-nav:hover,
  .lang-btn:hover {
    border-color: var(--primary-color);
    background: rgba(147, 51, 234, 0.1);
  }
  
  /* BOTÃO DE ORÇAMENTO SEM FUNDO COLORIDO */
  .btn-nav {
    background: transparent; /* Alterado: removido fundo roxo */
    color: var(--text-main); /* Alterado: usa cor do texto */
    border-color: var(--border-color); /* Alterado: usa borda padrão */
  }
  
  .btn-nav:hover {
    background: rgba(147, 51, 234, 0.1); /* Alterado: fundo sutil ao passar mouse */
    border-color: var(--primary-color);
    transform: translateY(-2px);
  }
  
  .theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
  }
  
  .theme-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-card);
    transform: rotate(15deg);
  }
  
  /* Esconde elementos mobile no desktop */
  .hamburger,
  .close-menu {
    display: none !important;
  }
}

/* =========== MOBILE NAVIGATION =========== */
@media (max-width: 768px) {
  .header-content {
    height: 80px;
  }
  
  .logo img {
    height: 45px;
  }
  
  /* Hamburger */
  .hamburger {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 2000;
  }
  
  .bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px auto;
    border-radius: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
  }
  
  /* Hamburger animation */
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  /* Menu mobile */
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1500;
    padding-top: 60px;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
  }
  
  /* Botão de Orçamento no mobile */
  .nav-links .btn-nav {
    background: transparent; /* Também transparente no mobile */
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    font-size: 1.2rem;
  }
  
  .nav-links .btn-nav:hover {
    background: rgba(147, 51, 234, 0.1);
    border-color: var(--primary-color);
  }
  
  /* Botões no mobile */
  .nav-links .theme-btn,
  .nav-links .lang-btn {
    transform: scale(1.2);
    margin: 10px;
  }
  
  /* Close button */
  .close-menu {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
  }
  
  /* Esconde navegação desktop no mobile */
  .nav-links {
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
}

/* =========== HERO SECTION =========== */
#home {
  padding-top: 180px;
  padding-bottom: 120px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--success);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.subtitle {
  max-width: 600px;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 80px;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  box-shadow: 0 12px 35px -12px rgba(147, 51, 234, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-secondary {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  background: rgba(147, 51, 234, 0.05);
}

/* =========== STATS =========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.stat-card h3 {
  font-size: 2.4rem;
  font-weight: 800;
}

.stat-card p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* =========== SECTIONS =========== */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
}

/* =========== PROJECTS =========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 35px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
  box-shadow: var(--shadow-card);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
}

.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.role-label {
  color: var(--primary-glow);
}

.result-badge {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.result-badge.success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

/* =========== CONTACT PAGE =========== */
#contact-page {
  padding-top: 140px;
  min-height: calc(100vh - 200px);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  width: 100%;
}

.contact-info-box h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.email-highlight {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-glow);
  display: block;
  margin-top: 10px;
  word-break: break-word;
}

.direct-contact {
  margin: 40px 0;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.social-list a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: all 0.3s ease;
  width: fit-content;
}

.social-list a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* =========== GLASS BOX =========== */
.glass-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

/* =========== FORM =========== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
}

.full-width {
  width: 100%;
  cursor: pointer;
  border: none;
}

/* =========== CTA CONTACT =========== */
#contato-cta .glass-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

#contato-cta .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

/* =========== FOOTER =========== */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 80px;
}

/* =========== RESPONSIVE =========== */

/* Tablet */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .contact-info-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }
  
  h1 {
    font-size: 3rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  section {
    padding: 60px 0;
  }
  
  #home {
    padding-top: 140px;
    text-align: center;
  }
  
  h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  
  .subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 16px;
  }
  
  .stats-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Contact page mobile */
  #contact-page {
    padding-top: 120px;
  }
  
  .contact-info-box h1 {
    font-size: 2rem;
  }
  
  .email-highlight {
    font-size: 1.2rem;
  }
  
  .glass-box {
    padding: 25px;
    border-radius: 16px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 14px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .contact-info-box h1 {
    font-size: 1.8rem;
  }
  
  .email-highlight {
    font-size: 1.1rem;
  }
  
  .glass-box {
    padding: 20px 15px;
  }
  
  .btn {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}

/* =========== FIXES ESPECÍFICOS =========== */
.project-card,
.project-card * {
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Garante que tudo é clicável */
header * {
  pointer-events: auto;
}

/* Ajuste específico para botões no header */
.theme-btn,
.lang-btn {
  cursor: pointer;
}

/* Text selection */
::selection {
  background-color: var(--primary-color);
  color: white;
}