* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #8b5cf6;
  --secondary-color: #a855f7;
  --bg-color: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --text-color: #ffffff;
  --text-secondary: #b3b3b3;
  --border-color: #333333;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.nav {
  display: flex;
  list-style: none; /* garantindo que não há bullets na lista */
  gap: 2rem;
  transition: all 0.3s ease;
}

.nav.active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 1rem 0;
  gap: 0;
  list-style: none; /* removendo bullets do menu mobile */
}

.nav.active li {
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* garantindo que cada item não tenha bullet */
}

.nav.active li:last-child {
  border-bottom: none;
}

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

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

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
  position: relative;
  padding: 2rem 0;
}

.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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.highlight {
  color: var(--primary-color);
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* WhatsApp Button */
.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  will-change: transform;
}

.whatsapp-button:hover {
  background: #20b858;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  will-change: auto;
}

.whatsapp-button i {
  font-size: 1.2rem;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

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

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

.about-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.stat h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  will-change: auto;
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #c2aef079;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-link {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  padding: 1rem;
  border: 2px solid white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: white;
  color: var(--primary-color);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tags span {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

/* Skills Section */
.skills {
  background: var(--bg-secondary);
}

.skills-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.skills-category h3 {
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.skill-item {
  margin-bottom: 2rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  width: 0;
  transition: width 2s ease;
  border-radius: 4px;
}

.skills-icons {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.skill-icon {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  background: var(--bg-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  will-change: transform;
}

.skill-icon:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  will-change: auto;
}

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

.skill-icon span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item i {
  color: var(--primary-color);
  margin-right: 1rem;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  will-change: transform;
}

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

.contact-form {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  will-change: transform;
  margin-bottom: 1rem;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
  will-change: auto;
}

/* Footer */
.footer {
  background: var(--bg-color);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer p {
  color: var(--text-secondary);
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

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

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

@media (max-width: 550px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 2rem 0;
    min-height: 90vh;
  }

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

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

  .about-image {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .about-image img {
    max-width: 220px;
    width: 80%;
  }

  .about-text {
    padding: 0 1rem;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }

  .about-stats {
    justify-content: space-around;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
  }

  .stat {
    min-width: 100px;
  }

  .stat h3 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
  }

  .stat p {
    font-size: 0.85rem;
    line-height: 1.3;
  }

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

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

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skills-icons {
    gap: 1rem;
  }

  .skill-icon {
    padding: 0.75rem;
    min-width: 80px;
  }

  .skill-icon i {
    font-size: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .whatsapp-button {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .whatsapp-button i {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header {
    padding: 0.75rem 0;
  }

  .logo h2 {
    font-size: 1.3rem;
  }

  .hero {
    min-height: 85vh;
    padding: 1.5rem 0;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .cta-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .about-image img {
    max-width: 180px;
    width: 70%;
  }

  .about-text {
    padding: 0 0.5rem;
  }

  .about-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .about-stats {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.5rem;
    margin-top: 1.25rem;
  }

  .stat {
    min-width: 80px;
  }

  .stat h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .stat p {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .project-content {
    padding: 1.25rem;
  }

  .project-content h3 {
    font-size: 1.1rem;
  }

  .project-content p {
    font-size: 0.9rem;
  }

  .project-tags {
    gap: 0.4rem;
  }

  .project-tags span {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
  }

  .skills-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .skill-item {
    margin-bottom: 1.5rem;
  }

  .skill-info {
    font-size: 0.9rem;
  }

  .skills-icons {
    gap: 0.75rem;
  }

  .skill-icon {
    padding: 0.5rem;
    min-width: 70px;
  }

  .skill-icon i {
    font-size: 1.25rem;
  }

  .skill-icon span {
    font-size: 0.8rem;
  }

  .contact-info h3 {
    font-size: 1.3rem;
  }

  .contact-info p {
    font-size: 0.9rem;
  }

  .contact-item {
    font-size: 0.9rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .submit-button {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .whatsapp-button {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .whatsapp-button i {
    font-size: 1.1rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

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

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

  .about-image img {
    max-width: 160px;
    width: 65%;
  }

  .about-stats {
    gap: 0.25rem;
    padding: 0 0.25rem;
  }

  .stat {
    min-width: 70px;
  }

  .stat h3 {
    font-size: 1.3rem;
  }

  .stat p {
    font-size: 0.75rem;
  }

  .skills-icons {
    gap: 0.5rem;
  }

  .skill-icon {
    padding: 0.4rem;
    min-width: 60px;
  }

  .project-tags span {
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
  }
}
