/* Variáveis e Reset */
:root {
  --rosa-claro: #FFF0F5;
  --rosa-medio: #FF69B4;
  --rosa-escuro: #FF1493;
  --rosa-pastel: #FFB6C1;
  --branco: #FFFFFF;
  --preto: #333;
  --sombra: rgba(255, 105, 180, 0.3);
  --dark-bg: #1a1a1a;
  --dark-text: #f0f0f0;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--preto);
  background: linear-gradient(135deg, var(--rosa-claro) 0%, var(--branco) 100%);
  overflow-x: hidden;
  transition: background 0.5s, color 0.5s;
}

body.dark {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #333 100%);
  color: var(--dark-text);
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
}

.logo{
  display:flex;
  align-items:center;
}


.nav-links{
  display:flex;
  align-items:center;
  gap:24px;
  list-style:none;
  margin:0;
  padding:0;
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 24px;
  list-style:none;
  margin:0;
  padding:0;
}

.nav-actions{
  display:flex;
  align-items:center;
  gap: 12px;
}

.theme-toggle{
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* Partículas de Fundo */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particles::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--rosa-pastel) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

/* Header - Transparente */
header {
  color: var(--branco);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: transparent;
  box-shadow: none;
  animation: slideDown 0.5s ease-out;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Header com fundo ao rolar */
header.scrolled{
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--branco);
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s;
}

.nav-links a:hover {
  color: var(--rosa-pastel);
  transform: translateY(-2px) scale(1.05);
}

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

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--branco);
  margin: 3px 0;
  transition: 0.3s;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--branco);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.theme-toggle:hover {
  transform: scale(1.2);
}

/* Container geral */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* HERO */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
  background: #0b0b12;
}

.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 0;
  transform: scale(1.45);
  transform-origin: center;
}

/* conteúdo por cima do bg */
.hero .container{
  position: relative;
  z-index: 1;
}

/* texto legível */
.hero h1,
.hero p{
  color: #fff;
  text-shadow:
    0 2px 10px rgba(0,0,0,0.65),
    0 10px 24px rgba(0,0,0,0.35);
}

.hero-content {
  text-align: left;
  max-width: 50%;
  animation: fadeInUp 1s ease-out;
}

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

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Foto de perfil */
.profile-img {
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 14px 28px rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  max-width: 300px;
  width: 100%;
  animation: bounceIn 1.5s ease-out;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

/* Seções gerais (animação) */
.section {
  padding: 5rem 0;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
  transition: all 1s ease-out;
  overflow: visible;
}

.section.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

h2 {
  font-size: 2.5rem;
  color: var(--rosa-escuro);
  margin-bottom: 2rem;
  text-align: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ======= FUNDO DA SEÇÃO HABILIDADES (atrás dos cards) ======= */
/* (o fundo aparece mesmo se a section estiver animando) */
.section.habilidades{
  position: relative;
  overflow: hidden;
  background-image: url("img/fundo2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay para contraste */
.section.habilidades::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
}

/* garante que o conteúdo fique por cima do fundo */
.section.habilidades .container{
  position: relative;
  z-index: 1;
}

/* Habilidades - Grid */
.skills-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 2.5rem;
  align-items: stretch;
}

/* Cards */
.skill-card{
  position: relative;
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 105, 180, 0.25);
  box-shadow: 0 12px 30px rgba(255, 105, 180, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: auto;
  min-height: 260px;
}

.skill-card::before{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,105,180,0.35), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(255,20,147,0.25), transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(255,182,193,0.35), transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

.skill-card > *{
  position: relative;
  z-index: 1;
}

.skill-card:hover{
  transform: translateY(-6px);
  border-color: rgba(255, 20, 147, 0.35);
  box-shadow: 0 18px 42px rgba(255, 105, 180, 0.28);
}

.skill-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.skill-title{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.skill-title h3{
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.skill-icon{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,105,180,0.25), rgba(255,20,147,0.20));
  border: 1px solid rgba(255, 20, 147, 0.25);
  box-shadow: 0 10px 22px rgba(255, 105, 180, 0.18);
  font-size: 1.1rem;
}

.skill-badge{
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--rosa-escuro);
  background: rgba(255, 20, 147, 0.10);
  border: 1px solid rgba(255, 20, 147, 0.20);
  white-space: nowrap;
  flex: 0 0 auto;
}

.skill-desc{
  font-size: 0.92rem;
  opacity: 0.95;
  margin-bottom: 12px;
  white-space: normal;
}

.progress{
  height: 10px;
  background: rgba(255, 105, 180, 0.14);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress::after{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rosa-medio), var(--rosa-escuro));
  box-shadow: 0 10px 20px rgba(255, 20, 147, 0.25);
  transition: width 1.6s cubic-bezier(.2,.8,.2,1);
}

.progress.animate::after{
  width: var(--progress-width, 0%);
}

.skill-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.skill-tags span{
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 105, 180, 0.18);
  box-shadow: 0 8px 16px rgba(255, 105, 180, 0.10);
}

/* Responsividade skills */
@media (max-width: 1100px){
  .skills-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px){
  .skills-grid{ grid-template-columns: 1fr; }
  .hero-content{ max-width: 100%; }
}

/* Dark mode skills */
body.dark .skill-card{
  background: rgba(20, 20, 30, 0.65);
  border-color: rgba(255, 105, 180, 0.18);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

body.dark .skill-tags span{
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 105, 180, 0.16);
}

body.dark .progress{
  background: rgba(255, 105, 180, 0.12);
}

/* Projetos - Carousel */
.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--sombra);
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.project-slide {
  min-width: 100%;
  position: relative;
}

.project-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 105, 180, 0.9);
  color: var(--branco);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.project-slide:hover .project-info {
  transform: translateY(0);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--rosa-medio);
  color: var(--branco);
  border: none;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: var(--rosa-escuro);
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 10px; }
.next { right: 10px; }

/* Contato */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
}

input, textarea {
  padding: 1rem;
  border: 2px solid var(--rosa-pastel);
  border-radius: 10px;
  font-family: inherit;
  transition: all 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--rosa-medio);
  box-shadow: 0 0 10px var(--sombra);
}

.feedback {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

.feedback.success {
  color: green;
  animation: confetti 1s ease-out;
}

.feedback.error {
  color: red;
}

@keyframes confetti {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Botões */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  text-align: center;
}

.btn.primary {
  background: linear-gradient(90deg, var(--rosa-medio), var(--rosa-escuro));
  color: var(--branco);
}

.btn.primary:hover {
  transform: translateY(-3px) rotate(2deg);
  box-shadow: 0 5px 15px var(--sombra);
}

.btn.secondary {
  background: var(--branco);
  color: var(--rosa-medio);
  border: 2px solid var(--rosa-medio);
}

.btn.secondary:hover {
  background: var(--rosa-medio);
  color: var(--branco);
  transform: scale(1.05);
}

/* Footer */
footer {
  background: var(--rosa-medio);
  color: var(--branco);
  text-align: center;
  padding: 1.5rem 0;
}

/* FORÇA o fundo da seção de habilidades aparecer */
.section.habilidades{
  opacity: 1 !important;
  transform: none !important;
}

/* ===== Projetos (cards explicativos) ===== */
.projects-grid{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 2.5rem;
  align-items: stretch;
}

.project-card{
  position: relative;
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(255,105,180,0.22);
  box-shadow: 0 12px 30px rgba(255,105,180,0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.project-card:hover{
  transform: translateY(-6px);
  border-color: rgba(255,20,147,0.35);
  box-shadow: 0 18px 42px rgba(255,105,180,0.26);
}

.project-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.project-top h3{
  font-size: 1.08rem;
  font-weight: 800;
}

.project-badge{
  font-size: .78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--rosa-escuro);
  background: rgba(255, 20, 147, 0.10);
  border: 1px solid rgba(255, 20, 147, 0.20);
  white-space: nowrap;
}

.project-desc{
  font-size: .95rem;
  opacity: .92;
  margin-bottom: 12px;
}

.project-list{
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding-left: 0;
}

.project-list li{
  font-size: .9rem;
  opacity: .9;
}

.project-tags{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.project-tags span{
  font-size: .78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 105, 180, 0.18);
  box-shadow: 0 8px 16px rgba(255, 105, 180, 0.10);
}

.project-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsivo */
@media (max-width: 1100px){
  .projects-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .projects-grid{ grid-template-columns: 1fr; }
}

/* Dark mode */
body.dark .project-card{
  background: rgba(20,20,30,0.65);
  border-color: rgba(255,105,180,0.16);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}
body.dark .project-tags span{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,105,180,0.16);
}


/* Responsividade completa */

/* ===== HERO MOBILE FIX ===== */
@media (max-width: 768px){
  .hero{
    min-height: 100vh;
    padding-top: 5.5rem; /* espaço pro header */
  }

  .hero .container{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    text-align: center;
  }

  .hero-content{
    max-width: 100%;
  }

  .hero h1{
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .hero p{
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .profile-img{
    max-width: 180px;
  }

  /* background: menos “zoom” no mobile */
  .hero-bg{
    transform: scale(1.08);
    object-position: center;
    opacity: 0.95;
  }

  /* botões mais confortáveis */
  .btn{
    width: 100%;
    max-width: 320px;
  }
}

/* bem pequeno (celulares menores) */
@media (max-width: 420px){
  .hero h1{
    font-size: 1.85rem;
  }
  .profile-img{
    max-width: 160px;
  }
  .hero-bg{
    transform: scale(1.02);
  }
}

@media (max-width: 900px){
  .hamburger{ display: flex; }

  .nav-links{
    position: absolute;
    top: 70px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
  }

  .nav-links.open{
    display: flex;
  }

  .nav-links li{ margin-left: 0; }
}

/* ===== HERO BACKGROUND FIX MOBILE ===== */
@media (max-width: 768px){
  .hero-bg{
    object-fit: cover;   /* preenche a tela */
    transform: none;     /* remove zoom */
  }

  .hero{
    min-height: 100vh;
  }
}

/* Fundo do "Projetos */

/* Fundo da seção Projetos */
#projetos{
  position: relative;
  overflow: hidden;

  background-image: url("img/fundo2.png"); /* mesma imagem */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Camada escura pra dar contraste */
#projetos::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
}

/* Conteúdo acima do fundo */
#projetos .container{
  position: relative;
  z-index: 1;
}
.section-bg{
  position: relative;
  overflow: hidden;

  background-image: url("img/fundo2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
}

.section-bg .container{
  position: relative;
  z-index: 1;
}

/* botoes de contato */

/* ===== BOTÕES DE CONTATO COM ÍCONES ===== */
.contact-links{
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}

.contact-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.contact-btn i{
  font-size: 1.1rem;
}

/* hover */
.contact-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}

/* cores */
.contact-btn.github{
  background: linear-gradient(135deg, #24292e, #000);
}

.contact-btn.discord{
  background: linear-gradient(135deg, #5865F2, #404EED);
}

.contact-btn.email{
  background: linear-gradient(135deg, #FF69B4, #FF1493);
}

/* Responsividade logo */

/* Base (desktop) */
.logo img{
  height: 40px;
  width: auto;
  display: block;
}

/* Mobile */
@media (max-width: 768px){
  .logo img{
    height: 30px;   /* diminui a logo no celular */
  }
}

/* Mobile bem pequeno */
@media (max-width: 480px){
  .logo img{
    height: 26px;
  }
}

@media (max-width: 768px){
  .navbar{
    padding: 12px 16px;
    gap: 14px;
  }

  .nav-links{
    gap: 14px;
    flex-wrap: wrap; /* se faltar espaço, quebra os links em 2 linhas */
    justify-content: flex-end;
  }
}

.hamburger{ display:none; }

@media (max-width: 768px){
  .hamburger{ display:flex; flex-direction:column; gap:5px; cursor:pointer; }
  .nav-links{ display:none; } /* depois você abre via JS quando clicar */
}


/* Desktop */
.logo img{
  height: 150px;
  width: auto;
  display: block;
}

/* Tablet / Mobile */
@media (max-width: 768px){
  .logo img{
    height: 70px;
  }
}

/* Mobile pequeno */
@media (max-width: 480px){
  .logo img{
    height: 80px;
  }
}
