/* Estilos compartilhados para header e footer */

:root {
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a35;
  --fg: #ffffff;
  --gradient-1: #6366f1;
  --gradient-2: #a855f7;
  --gradient-3: #ec4899;
  --gradient-4: #f59e0b;
  --accent: #10b981;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-color: rgba(99, 102, 241, 0.5);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6);
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 20px;
  background: rgba(15, 15, 35, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  width: clamp(150px, 22vw, 220px);
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.site-nav {
  position: relative;
}

.site-nav summary {
  list-style: none;
  cursor: pointer;
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(15, 15, 35, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  gap: 4px;
  transition: 0.3s ease;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav[open] .nav-toggle {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.site-nav[open] .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav[open] .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav[open] .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--gradient-4);
  outline-offset: 2px;
}

.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15, 15, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: none;
  gap: 12px;
  z-index: 4;
}

.site-nav[open] .nav-panel {
  display: grid;
}

.nav-panel a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

.nav-panel a:hover {
  color: var(--gradient-4);
}

/* Aurora Background */
header {
  padding: 140px 20px 100px;
  color: #fff;
  text-align: left;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: #0a0a1f;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.aurora-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  contain: layout paint;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  mix-blend-mode: screen;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  will-change: transform;
}

.aurora-blob:nth-child(1) {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, rgba(99, 102, 241, 0) 70%);
  top: -200px;
  left: -100px;
  animation: aurora-float-1 20s infinite;
}

.aurora-blob:nth-child(2) {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.8) 0%, rgba(168, 85, 247, 0) 70%);
  top: -100px;
  right: -150px;
  animation: aurora-float-2 18s infinite;
  animation-delay: -5s;
}

.aurora-blob:nth-child(3) {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.7) 0%, rgba(236, 72, 153, 0) 70%);
  bottom: -200px;
  left: 20%;
  animation: aurora-float-3 22s infinite;
  animation-delay: -10s;
}

.aurora-blob:nth-child(4) {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.6) 0%, rgba(245, 158, 11, 0) 70%);
  bottom: -150px;
  right: 15%;
  animation: aurora-float-4 25s infinite;
  animation-delay: -15s;
}

.aurora-blob:nth-child(5) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, rgba(16, 185, 129, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: aurora-float-5 15s infinite;
  animation-delay: -7s;
}

@keyframes aurora-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, 50px) scale(1.1); }
  66% { transform: translate(-50px, 100px) scale(0.9); }
}

@keyframes aurora-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, 80px) scale(1.15); }
  66% { transform: translate(60px, -60px) scale(0.95); }
}

@keyframes aurora-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(120px, -80px) scale(1.2); }
  66% { transform: translate(-100px, -40px) scale(0.9); }
}

@keyframes aurora-float-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-70px, -90px) scale(1.1); }
  66% { transform: translate(90px, 70px) scale(0.85); }
}

@keyframes aurora-float-5 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.3); }
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(15, 15, 35, 0.8), #0f0f23);
  pointer-events: none;
  z-index: 1;
}

header > * {
  position: relative;
  z-index: 2;
}

.header-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  text-align: left;
}

/* Footer Styles */
.site-footer {
  background: linear-gradient(180deg, rgba(15, 15, 35, 0.5) 0%, rgba(10, 10, 30, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 60px 20px 40px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gradient-1), var(--gradient-2), transparent);
  opacity: 0.5;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

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

.site-footer-block h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.3px;
}

.site-footer-block p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer-block p:last-child {
  margin-bottom: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a span {
  transition: transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--gradient-4);
}

.footer-links a:hover span {
  transform: translateX(4px);
}

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

.footer-tag {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.site-footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
  text-align: center;
}

.site-footer-bottom p {
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer-bottom p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 720px) {
  .site-header {
    padding: 14px 16px;
  }

  .nav-panel {
    min-width: 200px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
