/* =============================================
   DETAILCLEAN — PORTFOLIO CSS
   ============================================= */

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

:root {
  --navy:        #04355A;
  --primary:     #54CAFB;
  --primary-dark:#2ab0f0;
  --primary-glow: rgba(84, 202, 251, 0.22);
  --mint:        #13FFB1;
  --mint-glow:   rgba(19, 255, 177, 0.18);
  --blue-soft:   #A3E4FC;
  --secondary:   #13FFB1;
  --dark: #04355A;
  --dark2: #032d4e;
  --text: #3a3a3c;
  --text-light: #8e8e93;
  --white: #ffffff;
  --light-bg: #f0f7ff;
  --border: rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, 'SF Pro Display', 'Poppins', BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #020c18 0%, #04355A 55%, #032d4e 100%);
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: linear-gradient(135deg, #020c18 0%, #04355A 55%, #032d4e 100%);
  border-bottom: 1px solid rgba(84,202,251,0.12);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
  padding: 14px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.3px;
  text-transform: uppercase;
}

@keyframes logoAura {
  0%   { filter: drop-shadow(0 0 4px rgba(84,202,251,0.6)) drop-shadow(0 0 10px rgba(84,202,251,0.3)); }
  33%  { filter: drop-shadow(0 0 10px rgba(84,202,251,0.9)) drop-shadow(0 0 22px rgba(19,255,177,0.5)); }
  66%  { filter: drop-shadow(0 0 8px rgba(19,255,177,0.8)) drop-shadow(0 0 20px rgba(84,202,251,0.45)); }
  100% { filter: drop-shadow(0 0 4px rgba(84,202,251,0.6)) drop-shadow(0 0 10px rgba(84,202,251,0.3)); }
}

.logo-img {
  height: 38px; width: 38px;
  object-fit: contain; flex-shrink: 0;
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(84,202,251,0.4));
  transition: filter 0.4s ease, transform 0.3s ease;
}
.logo:hover .logo-img {
  animation: logoAura 1.6s ease-in-out infinite;
  transform: scale(1.08);
}

.logo-nav-img {
  height: 36px; width: auto;
  object-fit: contain; display: block;
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(84, 202, 251, 0.4));
  transition: filter 0.4s ease, transform 0.3s ease;
}
.logo:hover .logo-nav-img { animation: logoAura 1.6s ease-in-out infinite; transform: scale(1.08); }
.logo:active .logo-nav-img { animation: none; transform: scale(0.94); filter: drop-shadow(0 0 5px rgba(84,202,251,0.4)); }

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

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem; font-weight: 500;
  transition: var(--transition);
  letter-spacing: -0.1px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--secondary); }

.btn-nav {
  background: var(--primary);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.86rem; font-weight: 600;
  transition: var(--spring);
  white-space: nowrap;
}
.btn-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px; cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 4px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   BADGE & BUTTONS
   ============================================= */
.badge {
  display: inline-block;
  background: rgba(19,255,177,0.10);
  color: #0aaa74;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  transition: var(--spring);
  border: none; cursor: pointer;
  letter-spacing: -0.2px;
}
.btn-primary:hover {
  background: #1ebe57;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(37,211,102,0.45);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #03243d;
  padding: 80px 0 0;
  color: rgba(255,255,255,0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 56px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .logo.white { color: var(--white); margin-bottom: 18px; }
.footer-brand p { font-size: 0.87rem; line-height: 1.75; }

.footer h4 {
  color: var(--white); font-size: 0.9rem; font-weight: 700;
  margin-bottom: 22px; letter-spacing: -0.2px;
}

.footer-links ul, .footer-servicos ul {
  list-style: none; display: flex; flex-direction: column; gap: 11px;
}

.footer-links a {
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 0.87rem; transition: var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-servicos li { font-size: 0.87rem; color: rgba(255,255,255,0.55); }
.footer-servicos a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.87rem; transition: var(--transition); }
.footer-servicos a:hover { color: var(--white); }

.footer-contato p {
  font-size: 0.87rem; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.footer-contato i { color: var(--secondary); }
.footer-insta {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  transition: color 0.2s ease;
}
.footer-insta:hover { color: #e1306c; }
.footer-insta .fab.fa-instagram { color: #e1306c; }

.admin-link {
  font-size: 0.78rem; color: rgba(255,255,255,0.2);
  text-decoration: none; transition: color 0.3s ease, text-shadow 0.3s ease;
  letter-spacing: 0.5px; cursor: default; position: relative;
}
.admin-link:hover {
  color: #c4b5fd;
  text-shadow: 0 0 8px rgba(167,139,250,0.8), 0 0 20px rgba(139,92,246,0.5);
}

@keyframes firework-particle {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}
.fw-particle {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  animation: firework-particle 0.7s ease-out forwards;
}

.footer-bottom {
  padding: 22px 0;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ── COPY PHONE ── */
.copy-phone {
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}
.copy-phone .fa-copy { font-size: 0.75em; opacity: 0; transition: opacity 0.2s ease; }
.copy-phone:hover { background: rgba(84,202,251,0.2); color: #54CAFB; transform: scale(1.04); }
.copy-phone:hover .fa-copy { opacity: 0.7; }
.copy-phone:active { transform: scale(0.96); background: rgba(84,202,251,0.25); }

/* ── COPY TOAST ── */
.copy-toast {
  position: fixed; bottom: 110px; left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: linear-gradient(135deg, #04355A, #054a7a);
  color: #fff; padding: 11px 22px; border-radius: 30px;
  font-size: 0.88rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  border: 1px solid rgba(84,202,251,0.4);
  box-shadow: 0 6px 28px rgba(4,53,90,0.35), 0 0 18px rgba(84,202,251,0.15);
}
.copy-toast .fa-check-circle { color: #13FFB1; font-size: 1rem; }
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 104px; right: 32px;
  width: 44px; height: 44px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
  border: none; border-radius: 50%;
  color: #fff; font-size: 0.95rem; cursor: pointer;
  z-index: 999; opacity: 0;
  transform: translateY(16px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.back-to-top.show { opacity: 1; transform: translateY(0) scale(1); }
.back-to-top:hover { background: #04355A; transform: translateY(-3px) scale(1.1); }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* =============================================
   WHATSAPP FLUTUANTE
   ============================================= */
.whatsapp-float {
  position: fixed; bottom: 32px; right: 32px;
  width: 60px; height: 60px;
  background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--white); text-decoration: none;
  z-index: 999;
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
  transition: var(--spring);
  animation: pulsate 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 14px 40px rgba(37,211,102,0.6);
}
@keyframes pulsate {
  0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 8px 42px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.06); }
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #04355A;
    backdrop-filter: blur(20px);
    padding: 24px 28px; gap: 18px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    animation: slideDown 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-links.open a { color: var(--white); }

  .container { padding: 0 16px; }

  .portfolio-hero { padding: 110px 20px 50px; }

  .btn-primary { justify-content: center; width: 100%; }

  .whatsapp-float { bottom: 20px; right: 16px; width: 52px; height: 52px; font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
