/* RESET */

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

body {
  background: #0A0A0A;
  color: #EAEAEA;
  font-family: Poppins, sans-serif;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}


/* FUNDO ANIMADO */

.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, #4cc9f022, transparent 40%),
    radial-gradient(circle at 80% 80%, #80ed9922, transparent 40%);
  z-index: -1;
  animation: moveBg 12s infinite alternate ease-in-out;
}

@keyframes moveBg {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-40px);
  }
}


/* HEADER */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  position: sticky;
  top: 0;
  background: #0A0A0A;
  z-index: 1000;
  border-bottom: 1px solid #111;
  height: 70px;
}


/* LOGO */

.site-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #e6faff;
  cursor: default;
  transition: 0.4s;
  animation: fadeSlide 1s ease forwards;
  position: relative;
}

.site-name:hover {
  color: #4CC9F0;
}

.site-name::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  margin-top: 5px;
  background: linear-gradient(90deg, #4cc9f0, #80ed99);
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow 1.2s ease forwards;
  animation-delay: 0.3s;
}


/* NAV */

nav {
  margin-left: auto;
  display: flex;
  gap: 25px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

nav a:hover {
  color: #4CC9F0;
}


/* HERO */

.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

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

.hero span {
  color: #4CC9F0;
}

.hero p {
  margin-top: 15px;
  opacity: 0.8;
}


/* BOTÕES */

.btn {
  margin-top: 30px;
  background: linear-gradient(90deg, #4CC9F0, #80ED99);
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(76, 201, 240, 0.6);
}


/* SECTIONS */

section {
  padding: 80px 10%;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #4CC9F0, #80ED99);
  border-radius: 10px;
}


/* SKILLS */

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

.skill {
  background: #111;
  padding: 25px;
  text-align: center;
  border-radius: 10px;
  transition: 0.3s;
  border: 1px solid #1f1f1f;
}

.skill:hover {
  transform: translateY(-6px);
  background: #151515;
  box-shadow: 0 0 15px rgba(76, 201, 240, 0.35);
}


/* PROJETOS */

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

.project {
  background: #111;
  padding: 25px;
  border-radius: 10px;
  transition: 0.35s;
  border: 1px solid #1f1f1f;
  position: relative;
  overflow: hidden;
}

.project:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(76, 201, 240, 0.3);
}


/* BOTÃO VER PROJETO */

.project-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 18px;
  border-radius: 20px;
  background: linear-gradient(90deg, #4CC9F0, #80ED99);
  color: black;
  font-size: 14px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.project-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(76, 201, 240, 0.6);
}


/* REDE REDEDEV */

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

.rede-card {
  background: #111;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #1f1f1f;
  transition: 0.3s;
}

.rede-card h3 {
  margin-bottom: 15px;
  color: #4CC9F0;
}

.rede-card p {
  margin-bottom: 15px;
  opacity: 0.85;
}

.rede-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(76, 201, 240, 0.25);
}


/* CONTATO */

#contato {
  text-align: center;
}

#contato p {
  margin: 10px 0;
  font-size: 16px;
}


/* INSTAGRAM */

#contato .footer-instagram {
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #4CC9F0, #80ED99);
  padding: 10px 22px;
  border-radius: 30px;
  color: black;
  font-weight: bold;
  font-size: 14px;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(76, 201, 240, 0.3);
}

.instagram-btn img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.instagram-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(76, 201, 240, 0.6);
}


/* FOOTER */

footer {
  margin-top: 60px;
  padding: 30px;
  text-align: center;
  background: #050505;
  opacity: 0.7;
}


/* WHATSAPP */

.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: 0.3s;
}

.whatsapp-btn img {
  width: 28px;
  height: 28px;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #25D366;
}


/* MODAL */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: #111;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #1f1f1f;
  animation: modalFade 0.35s ease;
  position: relative;
  max-width: 450px;
  width: 100%;
}

.modal-content img {
  width: 100%;
  border-radius: 10px;
  margin: 15px 0;
}

.modal-content h2 {
  color: #4CC9F0;
  margin-bottom: 10px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
  color: #aaa;
  transition: 0.3s;
}

.close:hover {
  color: #4CC9F0;
  transform: scale(1.2);
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* MENU MOBILE */

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}


/* RESPONSIVO */

@media(max-width:768px) {

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #0A0A0A;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    display: none;
    border-left: 1px solid #111;
  }

  nav a {
    margin: 10px 0;
  }

  nav.active {
    display: flex;
  }

  .hero {
    height: auto;
    padding: 120px 20px;
  }

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

  section {
    padding: 60px 20px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .rede-container {
    grid-template-columns: 1fr;
  }

}


/* ANIMAÇÕES */

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

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

@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ============================= */
/* SLIDER NO MODAL ASTRONOMIA */
/* ============================= */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider .slide {
  min-width: 100%;
  border-radius: 10px;
}

.slider-container .prev,
.slider-container .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: #4CC9F0;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transition: 0.3s;
  z-index: 10;
}

.slider-container .prev:hover,
.slider-container .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slider-container .prev {
  left: 10px;
}

.slider-container .next {
  right: 10px;
}

@media(max-width:768px) {
  .slider-container {
    max-width: 100%;
  }

  .slider-container .prev,
  .slider-container .next {
    padding: 8px;
    font-size: 20px;
  }
}

/* Container da skill */
.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}

/* Ícones das skills */
.skill img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

/* Hover para aumentar o ícone */
.skill img:hover {
  transform: scale(1.2);
}

/* Nome da skill */
.skill span {
  font-size: 14px;
  margin-top: 5px;
}

#porque-escolher {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* tons escuros e modernos */
    color: #fff;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

#porque-escolher h2 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

#porque-escolher .subtitle {
    font-size: 18px;
    margin-bottom: 60px;
    color: #a0a0a0;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.05); /* glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px 20px;
    width: 260px;
    transition: transform 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.card img {
    width: 80px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.2) rotate(10deg);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.card p {
    font-size: 14px;
    line-height: 1.6;
    color: #ddd;
}

#porque-escolher .btn {
    margin-top: 40px;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #ff416c, #ff4b2b); /* degradê vibrante */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#porque-escolher .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255,75,43,0.5);
}