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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background-color: #05050a;
  color: #e5e7eb;
  line-height: 1.6;
}

/*---------- NAVBAR ----------*/
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 0.1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.navbar {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: center;
  justify-content: space-between;
  padding: 0px 20px;
  height: 80px;
  align-items: center;
}

/* Logo */
.navbar .logo {
  height: 80px;
}

/* Links */
.navbar .nav-links {
  display: flex;
  gap: 32px;
}

.navbar .nav-links a {
  position: relative;
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 500;
}

.navbar .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  transition: width 0.3s ease;
}

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

.navbar .nav-links a.active {
  color: #a78bfa;
}

.navbar .nav-links a.active::after {
  width: 100%;
}
/* Hamburger */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #e5e7eb;
  border-radius: 2px;
}

/*----------- HERO ----------*/

.hero {
  min-height: 100vh;
  padding-top: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at top, #3b1b8f, #05050a);
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-content span {
  color: #a78bfa;
}

.hero-content p {
  font-size: 1.2rem;
  color: #cbd5f5;
  margin-bottom: 26px;
}

.hero-content img {
  width: 350px;
  height: 520px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #7c3aed;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

/*--------- Seções ---------*/

section {
  max-width: 1100px;
  margin: auto;
  padding: 110px 20px;
}

section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 44px;
  position: relative;
  color: #f9fafb;
}

section h2::after {
  content: "";
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  position: absolute;
  left: 0;
  bottom: -12px;
  border-radius: 4px;
}

/*---------- Sobre ----------*/

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.about-content p {
  flex: 1;
  font-size: 1.1rem;
  color: #cbd5f5;
}

.about-img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 4px solid #7c3aed;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
  object-fit: cover;
}

/*---------- Skills ----------*/
.grid-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 28px;
  align-items: center;
  justify-items: center;
}

.grid-skills img {
  width: 150px;
  height: 110px;
  object-fit: contain;
  background: #0d0b1e;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.35s ease;
}

.grid-skills img:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.5);
}

/*---------- Projetos ----------*/

.grid-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.project-card {
  background: #0d0b1e;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card img {
  width: 100%;
  display: block;
}

.project-card h3 {
  font-size: 1.3rem;
  margin: 20px;
  color: #f9fafb;
}

.project-card p {
  margin: 0 20px 26px;
  color: #cbd5f5;
}

.project-card:hover {
  transform: translateY(-14px) scale(1.03);
  box-shadow: 0 28px 60px rgba(124, 58, 237, 0.45);
}

/*---------- Contato ----------*/

#contact p {
  max-width: 720px;
  margin-bottom: 26px;
  color: #cbd5f5;
}

#contact a {
  display: inline-block;
  margin-right: 12px;
  margin-top: 12px;
  padding: 14px 36px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#contact a:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.5);
}

/*---------- Animação ao Scroll ----------*/

.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}
/*---------- Footer ----------*/

footer {
  padding: 40px 20px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/*---------- Responsivo ----------*/

@media (max-width: 768px) {
  .navbar {
    position: relative;
  }

  /* Menu Mobile */
  .navbar .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(5, 5, 10, 0.95);
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    display: none;
    width: 220px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  }

  .navbar .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  section {
    padding: 90px 20px;
  }

  .hero-content img {
    width: 180px;
    height: 180px;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .about-content p {
    text-align: center;
  }

  .about-img {
    width: 180px;
    height: 180px;
  }
  .social-sidebar {
    display: none;
  }
}

/* Social Sidebar */

.social-sidebar {
  position: fixed;
  left: 30px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 999;
}

.social-sidebar a {
  writing-mode: vertical-rl;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #7c3aed;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-sidebar a:hover {
  color: #4c1d95;
}

.social-sidebar a img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: invert(10%) sepia(20%) saturate(450%) hue-rotate(200deg);
}

.social-sidebar a:hover img {
  transform: translateY(-4px) scale(1.1);
  filter: invert(25%) sepia(50%) saturate(300%) hue-rotate(250deg)
    brightness(0.6);
  transform: rotate(360deg);
}

.social-sidebar .line {
  width: 2px;
  height: 90px;
  background: linear-gradient(180deg, #7c3aed, #a78bfa);
  margin-top: 6px;
}
