/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #27eb16;
  --secondary-color: #27eb16;
  --accent-color: #3b82f6;
  --text-primary: #000000;
  --text-secondary: #ffffff;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #212628;
  --bg-dark: #111827;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #ffffff 0%, #27eb16 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
  overflow-x: hidden;
}

.container {
  margin: 0 auto;
  padding: 0 0px;
  background: var(--bg-secondary);
}

/* Header e Navegação */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgb(255 255 255 / 0%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.nav-brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

/* Botões de idioma */
.language-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.language-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

.language-btn:hover {
  transform: scale(1.1);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.2);
}

.language-btn.active {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.1);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Main Content */
.main {
  margin-top: 0px;
  background: #010401;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: #000112;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Canvas Three.js */
.threejs-canvas {
  position: absolute;
  width: 200%;
  height: 200%;
  z-index: 1;
  pointer-events: auto;
  cursor: grab;
}

.threejs-canvas:active {
  cursor: grabbing;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15rem;
  align-items: center;
  position: relative;
  z-index: 2;
  left: 100px;
}

.hero-text {
  min-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  width: 120%;
}

.highlight {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

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

.profile-placeholder {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  margin-left: 20px;
}

.skills h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.2rem;
  padding: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
}

.skill-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.skill-item span {
  font-weight: 500;
  color: var(--text-primary);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.social-link.github:hover {
  color: #333;
  border-color: #333;
}

.social-link.linkedin:hover {
  color: #0077b5;
  border-color: #0077b5;
}

.social-link i {
  font-size: 1.5rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* Responsividade */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .language-buttons {
    gap: 0.3rem;
  }

  .language-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-text {
    min-width: 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .social-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .profile-placeholder {
    width: 200px;
    height: 200px;
    font-size: 4rem;
  }
}

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

.hero-text,
.hero-image,
.about-content,
.social-links {
  animation: fadeInUp 0.8s ease-out;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Imagem do perfil no canto superior direito */
.profile-image {
  position: fixed;
  top: 130px;
  left: 120px;
  z-index: 1001;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #000;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ícone do WhatsApp no canto inferior direito */
.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.whatsapp-icon a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Melhoria na responsividade do Three.js */
@media (max-width: 768px) {
  .threejs-canvas {
    left: 0 !important;
    bottom: 0 !important;
  }

  .profile-image {
    width: 95px;
    height: 95px;
    top: 120px;
    left: 30px;
  }

  .hero-title {
    font-size: 3rem !important;
    width: 100% !important;
  }

  .whatsapp-icon {
    width: 100px;
    height: 100px;
    bottom: 105px !important;
    right: 15px;
  }

  .hero-content {
    left: 0px;
    max-width: 100vw;
  }

  .whatsapp-icon a {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .threejs-canvas {
    opacity: 0.7;
  }

  .profile-image {
    width: 95px;
    height: 95px;
    top: 120px;
    left: 30px;
  }

  .whatsapp-icon {
    width: 45px;
    height: 45px;
    bottom: 10px;
    right: 10px;
  }

  .whatsapp-icon a {
    font-size: 1.2rem;
  }
}
