/* ============ VARIÁVEIS ============ */
:root {
  --primary: #6A0DAD;
  --primary-light: #B266FF;
  --secondary: #FF66C4;
  --dark: #2D043B;
  --light: #FAF6FF;
  --gray: #E5E0EB;
  --white: #FFFFFF;
  --text: #2D043B;
  --text-light: #6D6D6D;

  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ============ RESET E ESTILOS GLOBAIS ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

p {
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 80px 0;
  animation: fadeIn 1s ease-in-out;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
}

span.destaque {
  color: var(--primary);
}

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1;
  min-width: 180px;
}

.btn-primary {
  background: linear-gradient(45deg, #6A0DAD, #B266FF);
  color: white;
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #B266FF, #FF66C4);
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
  border-radius: 50px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(106, 13, 173, 0.3);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  border-radius: 50px;
}

.btn-secondary:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(106, 13, 173, 0.2);
}

.btn-secondary:hover::before {
  transform: translateX(0);
}

.btn i {
  margin-right: 10px;
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(5px);
}

/* ============ HEADER ============ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo span {
  color: var(--primary);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

.btn-contato {
  background: var(--primary);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-contato:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.menu-mobile {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* ============ HERO SECTION ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--light) 60%, var(--primary-light) 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.subtitulo {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 500;
}

.descricao {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar {
  width: 100%;
  max-width: 500px;
  z-index: 2;
  position: relative;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.decoracao {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle at center, var(--primary-light), transparent);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.25;
  z-index: 1;
  animation: morph 15s ease-in-out infinite;
}

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

@keyframes morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* ============ SOBRE SECTION ============ */
.sobre {
  background: var(--white);
}

.sobre-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.sobre-content {
  flex: 1;
}

.sobre h2 {
  margin-bottom: 30px;
}

.sobre p {
  margin-bottom: 20px;
}

.skills {
  margin-top: 40px;
}

.skills h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skills-list span {
  background: var(--gray);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.skills-list span:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.sobre-image {
  flex: 1;
  position: relative;
}

.sobre-img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.sobre-img:hover {
  transform: scale(1.02);
}

/* ============ PROJETOS SECTION ============ */
.projetos {
  background: var(--light);
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.projeto {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.projeto.animated {
  opacity: 1;
  transform: translateY(0);
}

.projeto:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.projeto-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.projeto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.projeto:hover .projeto-img img {
  transform: scale(1.1);
}

.projeto-links {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(106, 13, 173, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: var(--transition);
}

.projeto:hover .projeto-links {
  opacity: 1;
}

.projeto-link {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.projeto-link:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-5px);
}

.projeto-info {
  padding: 20px;
}

.projeto h3 {
  margin-bottom: 10px;
}

.projeto p {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.projeto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.projeto-tags span {
  background: var(--gray);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
}

.ver-mais {
  text-align: center;
  margin-top: 50px;
}

/* ============ SERVIÇOS SECTION ============ */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.servico-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.servico-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.servico-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.servico-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--white);
  font-size: 1.8rem;
  transition: var(--transition);
}

.servico-card:hover .servico-icon {
  background: var(--primary);
  transform: rotate(15deg) scale(1.1);
}

.servico-card h3 {
  margin-bottom: 15px;
}

/* ============ DEPOIMENTOS SECTION ============ */
.depoimentos {
  background: var(--white);
}

.depoimentos-carrossel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}

.depoimento {
  min-width: 350px;
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(30px);
}

.depoimento.animated {
  opacity: 1;
  transform: translateY(0);
}

.depoimento-content {
  background: var(--light);
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  position: relative;
}

.depoimento-texto {
  margin-bottom: 30px;
  position: relative;
}

.depoimento-texto i {
  position: absolute;
  top: -15px;
  left: -15px;
  font-size: 3rem;
  color: var(--primary-light);
  opacity: 0.3;
}

.depoimento-texto p {
  font-style: italic;
  position: relative;
  z-index: 1;
}

.depoimento-autor {
  display: flex;
  align-items: center;
  gap: 15px;
}

.depoimento-autor img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.depoimento-autor h4 {
  margin-bottom: 5px;
}

.depoimento-autor span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============ CONTATO SECTION ============ */
.contato {
  background: var(--light);
}

.contato-inner {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.contato-content {
  flex: 1;
}

.contato h2 {
  margin-bottom: 20px;
}

.contato p {
  margin-bottom: 30px;
  max-width: 500px;
}

.contato-info {
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item i {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contato-redes {
  display: flex;
  gap: 15px;
}

.rede-social {
  width: 45px;
  height: 45px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.rede-social:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-5px);
}

.contato-form {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 500px;
  transition: transform 0.3s ease;
  position: relative;
}

.contato-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 20px 20px 0 0;
}

.form-group.floating {
  position: relative;
  margin-bottom: 30px;
}

.form-group.floating input,
.form-group.floating textarea {
  width: 100%;
  padding: 15px 40px 15px 15px;
  border: 2px solid var(--gray);
  background: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  color: var(--text);
}

.form-group.floating textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 20px;
}

.form-group.floating label {
  position: absolute;
  top: 15px;
  left: 15px;
  color: var(--text-light);
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
  background: var(--white);
  padding: 0 5px;
}

.form-group.floating i {
  position: absolute;
  right: 15px;
  top: 15px;
  color: var(--primary-light);
  transition: all 0.3s ease;
}

.focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.4s ease;
  z-index: 2;
}

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

.form-group.floating input:focus ~ .focus-border,
.form-group.floating textarea:focus ~ .focus-border {
  width: 100%;
}

.form-group.floating input:focus ~ label,
.form-group.floating textarea:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-25px) scale(0.9);
  color: var(--primary);
  left: 10px;
}

.form-group.floating input:focus ~ i,
.form-group.floating textarea:focus ~ i {
  color: var(--primary);
  transform: scale(1.1);
}

/* Botão de envio */

.form-footer {
  margin-top: 40px;
  text-align: center;
}

.contato-form button[type="submit"] {
  position: relative;
  overflow: hidden;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  color: white;
}

.contato-form button[type="submit"] .btn-text {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.contato-form button[type="submit"] .btn-icon {
  position: relative;
  z-index: 1;
  margin-left: 10px;
  transform: translateX(-5px);
  opacity: 0;
  transition: all 0.3s ease;
}

.contato-form button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(106, 13, 173, 0.3);
}

.contato-form button[type="submit"]:hover .btn-text {
  transform: translateX(-5px);
}

.contato-form button[type="submit"]:hover .btn-icon {
  transform: translateX(0);
  opacity: 1;
}

.contato-form button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-light), var(--secondary));
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contato-form button[type="submit"]:hover::before {
  opacity: 1;
}

/* ============ FOOTER ============ */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo p {
  color: var(--gray);
  margin-top: 20px;
}

.footer-links h4,
.footer-contato h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contato h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-light);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--gray);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-contato li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--gray);
}

.footer-contato i {
  font-size: 1.2rem;
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--gray);
}

.footer-redes {
  display: flex;
  gap: 15px;
}

/* ============ DARK MODE ============ */
#toggle-dark {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

body.dark #toggle-dark {
  color: var(--primary-light);
}

body.dark {
  background: var(--dark);
  color: var(--light);
}

body.dark p {
  color: var(--gray);
}

body.dark header {
  background: #2a0a4a;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

body.dark .hero {
  background: linear-gradient(135deg, #1a052f 60%, #4a1b8a 100%);
}

body.dark .sobre,
body.dark .depoimentos {
  background: #3a0a5a;
}

body.dark .projetos,
body.dark .contato {
  background: var(--dark);
}

body.dark .projeto,
body.dark .servico-card,
body.dark .contato-form {
  background: #2a0a4a;
  border: 1px solid #3f1d58;
}

body.dark .depoimento-content {
  background: #22073d;
  border-left: 5px solid #B266FF;
}

body.dark .form-group.floating input,
body.dark .form-group.floating textarea {
  background: #2a0a4a;
  border-color: #4d0d77;
  color: #f0e6ff;
}

body.dark .form-group.floating input:focus,
body.dark .form-group.floating textarea:focus {
  box-shadow: 0 0 0 3px rgba(178, 102, 255, 0.1);
}

body.dark .form-group.floating label {
  background: #2a0a4a;
  color: #a090c0;
}

body.dark .form-group.floating input:focus ~ label,
body.dark .form-group.floating textarea:focus ~ label,
body.dark .form-group.floating input:not(:placeholder-shown) ~ label,
body.dark .form-group.floating textarea:not(:placeholder-shown) ~ label {
  color: var(--primary-light);
}

body.dark .focus-border {
  background: var(--primary-light);
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4 {
  color: #ffffff;
}

body.dark .skills-list span {
  background: #3f1d58;
  color: #e0d6ff;
}

body.dark .projeto-tags span {
  background: #3f1d58;
  color: #e0d6ff;
}

body.dark .btn-primary {
  background: linear-gradient(45deg, #6A0DAD, #8a3bff);
}

body.dark .btn-secondary {
  border-color: #8a3bff;
  color: #8a3bff;
}

body.dark .btn-secondary:hover {
  background: #6A0DAD;
  color: white;
}

body.dark .rede-social {
  background: #3a0a5a;
  color: var(--primary-light);
}

body.dark .rede-social:hover {
  background: var(--primary);
  color: white;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 992px) {
  .hero-inner,
  .sobre-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content,
  .sobre-content {
    margin-bottom: 50px;
  }

  .hero-buttons,
  .contato-info,
  .contato-redes {
    justify-content: center;
  }

  .descricao,
  .contato p {
    margin-left: auto;
    margin-right: auto;
  }

  .contato-inner {
    flex-direction: column;
  }

  .contato-form {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: var(--transition);
    z-index: 999;
  }

  nav ul.active {
    left: 0;
  }

  .menu-mobile {
    display: block;
  }

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

  .subtitulo {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ANIMAÇÕES */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--primary);
  margin-left: 2px;
  animation: blink 1s infinite;
}

/* CURSOR PERSONALIZADO */
.custom-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 32px;
  height: 32px;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%);
}

.custom-cursor img {
  width: 100%;
  height: 100%;
  animation: bater-asa 0.5s infinite alternate;
}

@keyframes bater-asa {
  0% { transform: rotate(-5deg) scale(1); }
  100% { transform: rotate(5deg) scale(1.1); }
}