/* ---------- CORE ---------- */
:root {
  --primary: #2f0351;
  --secondary: #b971ff;
  --light: #e9d3ff;
  --accent: #c68dff;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  margin: 0;
  scroll-behavior: smooth;
}

html { margin: 0; padding: 0; }

/* ---------- NAVBAR ---------- */
.navbar {
  background: var(--primary);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 0.75rem 0;
}

.navbar.nav-scroll {
  background: rgba(47, 3, 81, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Remove focus ring and set white icon */
.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.navbar-toggler:focus {
  box-shadow: none !important;
  outline: none !important;
}
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Transparent background for collapsed menu */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(47, 3, 81, 0.9);
    padding: 0 1rem 1rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
  }
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: opacity 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { opacity: 0.9; }

.navbar-brand img { transition: transform 0.3s ease; }
.navbar-brand:hover img { transform: scale(1.05); }

/* ---------- HERO ---------- */
.banner-home {
  height: 580px;
  width: 100%;
  background: url('https://images.unsplash.com/photo-1587614382346-4ec3222574f2?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
  position: relative;
  margin-top: 80px; /* Adjust if navbar height changes */
}
.banner-home::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 3, 81, 0.65), rgba(185, 113, 255, 0.45));
}
.banner-home .container { position: relative; z-index: 1; }
.banner-home h1 { text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); animation: fadeInDown 0.8s ease; }
.banner-home p { text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2); animation: fadeInUp 0.8s ease 0.2s backwards; }

.btn-gradient {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(185, 113, 255, 0.3);
  transition: all 0.3s ease;
}
.btn-gradient:hover {
  opacity: 0.9;
  box-shadow: 0 6px 16px rgba(185, 113, 255, 0.5);
  transform: translateY(-2px);
  color: #fff;
}
.btn-gradient:focus { box-shadow: 0 0 0 .25rem rgba(177, 156, 217, .5); }

/* ---------- SECTIONS ---------- */
section { scroll-margin-top: 120px; }
h2 {
  color: var(--primary);
  font-weight: 700;
  position: relative;
  text-align: center;
}
h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  margin: 12px auto 0;
}
.sobre { max-width: 800px; font-size: 1.1em; line-height: 1.8; color: #555; }

/* ---------- PORTFOLIO ---------- */
.card { border-radius: .5rem; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,.15)!important; }
.card img { height: 200px; object-fit: cover; }
.link-portfolio{ text-decoration: none; color:#2f0351;}
.link-portfolio:hover{color:#b971ff; transition: color 0.5s ease;}

/* ---------- SERVICES ---------- */
.service-box {
  border-left: 4px solid var(--accent);
  background: #fff;
  border-radius: .5rem;
  transition: all .3s ease;
}
.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(185, 113, 255, .2)!important;
  border-left-color: var(--secondary);
}
.icon-box { font-size: 2.5rem; color: var(--secondary); }
.service-box h5 { color: var(--primary); }

/* ---------- FORM ---------- */
.form-label { color: var(--primary); font-weight: 600; font-size: .95rem; }
.form-control { border: 1.5px solid var(--accent); border-radius: .375rem; font-size: .95rem; transition: all .3s ease; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(177,156,217,.4); outline: none; }

/* ---------- FOOTER ---------- */
footer { background: var(--light); color: var(--primary); border-top: 1px solid var(--accent); }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .banner-home { height: 400px; }
  .banner-home h1 { font-size: 2rem; }
  .banner-home p { font-size: .95rem; }
  .navbar-brand img { width: 180px !important; }
  h2 { font-size: 1.8rem; }
  .sobre { font-size: 1rem; }
}

/* ---------- PÁGINAS PORTFÓLIO ---------- */
/* Ajuste do espaço por causa da navbar fixa */
main.project-simple {
  min-height: 100vh;                  /* ocupa a tela inteira */
  padding-top: 140px;                 /* espaço para a navbar */
  padding-bottom: 60px;
  display: flex;
  align-items: center;                /* centraliza verticalmente */
  justify-content: center;
  background: linear-gradient(145deg, #f7f7f7, #ececec);
}

/* Título estiloso */
.project-simple h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

/* Imagem principal do projeto */
.project-image {
  width: 40%;                         /* ocupa bastante espaço */
  max-width: 650px;                   /* limita pra não ficar gigante */
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  transition: transform .3s ease;
}

.project-image:hover {
  transform: scale(1.03);
}

/* Botão */
.btn-gradient {
  background: linear-gradient(135deg, #6e1de9, #b176ff);
  color: #fff !important;
  padding: 10px 26px;
  border-radius: 30px;
  transition: opacity .3s;
}

.btn-gradient:hover {
  opacity: .85;
}

/* ---------- RESPONSIVO PARA MOBILE ---------- */
@media (max-width: 768px) {

  main.project-simple {
    padding-top: 120px;       /* reduz o espaço da navbar */
    padding-bottom: 40px;
    flex-direction: column;   /* empilha os itens */
    text-align: center;       /* centraliza título e imagem */
  }

  .project-simple h1 {
    font-size: 1.8rem;        /* título menor e proporcional */
    margin-bottom: 20px;
  }

  .project-image {
    width: 90%;               /* imagem grande e centralizada */
    max-width: 400px;         /* limite sensato no mobile */
    margin-bottom: 20px;      
  }
}

/* Ajuste extra para celulares muito pequenos */
@media (max-width: 480px) {
  .project-simple h1 {
    font-size: 1.5rem;
  }

  .project-image {
    width: 100%;
    max-width: 360px;
  }
}


.whatsapp-float {
      position: fixed;
      width: 60px;
      height: 60px;
      bottom: 24px;
      right: 24px;
      background-color: #25D366;
      color: #fff;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 4px 16px rgba(0,0,0,0.2);
      z-index: 1000;
      text-decoration: none;
      transition: box-shadow 0.2s, transform 0.2s;
    }
    .whatsapp-float:hover {
      box-shadow: 0 6px 24px rgba(0,0,0,0.3);
      transform: scale(1.07);
    }
    .whatsapp-float img {
      width: 32px;
      height: 32px;
      display: block;
    }
