/* === Premium Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --premium-dark: #0D1A26;
  --premium-surface: #1B2B3A;
  --premium-accent: #4E84A6;
  --premium-sub-accent: #9CBCD9;
  --premium-text: #9CBCD9;
  --premium-light: #D0E2F2;
  --premium-gold: #4E84A6;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

@media (max-width: 768px) {
  html {
    /* Aumenta agressivamente a base (rem) no mobile para igualar à escala do Instagram WebView */
    font-size: 20px !important; 
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--premium-dark);
  color: var(--premium-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--font-heading) !important;
  color: var(--premium-accent);
  font-weight: 600;
}

/* === Glassmorphism & Surface Utilities === */
.glass-panel {
  background: rgba(13, 26, 38, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(156, 188, 217, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.premium-card {
  background: linear-gradient(145deg, #1B2B3A, #0D1A26);
  border: 1px solid rgba(78, 132, 166, 0.2);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  border-color: var(--premium-sub-accent);
}

.premium-card .card-body {
  background: transparent;
}

/* === Text FX === */
.text-gradient {
  color: var(--premium-sub-accent) !important;
}

.text-gold {
  color: var(--premium-sub-accent) !important;
}

.text-subtext {
  color: #576574 !important;
}

/* === Buttons === */
.btn-premium {
  background: var(--premium-light);
  color: var(--premium-accent);
  border: 1px solid var(--premium-light);
  font-weight: 600;
  border-radius: 30px;
  padding: 12px 28px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-premium:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--premium-light);
}

.btn-outline-premium {
  background: transparent;
  border: 1px solid var(--premium-light);
  color: var(--premium-light);
  font-weight: 500;
  border-radius: 30px;
  padding: 10px 24px;
  transition: all 0.3s ease;
}

.btn-outline-premium:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--premium-light);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* === Navbar overrides === */
.navbar {
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--premium-text) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem !important;
  background: transparent !important;
  border: none !important;
}

.nav-link::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--premium-sub-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link:focus::before {
  width: 80%;
}

.nav-link:hover,
.nav-link:focus {
  color: #4E84A6 !important;
  text-shadow: 0 0 10px rgba(78, 132, 166, 0.3);
}

.dropdown-menu {
  background: var(--premium-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.dropdown-item {
  color: var(--premium-text);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--premium-light);
}

/* === Typewriter efeito === */
#typewriter {
  border-right: 2px solid var(--premium-accent);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  font-weight: 700;
}

/* === Animations === */
.animate-fade {
  animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glow-animation {
  animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }

  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  }

  100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
}

/* === Form Inputs === */
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--premium-light);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.form-control:hover,
.form-select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--premium-light);
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
  color: var(--premium-light);
}

.form-select option {
  background: var(--premium-surface);
  color: var(--premium-light);
}

.form-control::placeholder,
.form-control::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1;
}

.form-label {
  color: var(--premium-text);
  font-weight: 500;
  font-size: 0.95rem;
}

/* === Footer === */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: var(--premium-dark) !important;
}

/* === Section: Clientes === */
.clients-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 3rem;
  align-items: center;
  justify-items: center;
}

.client-logo-item {
  width: 100%;
  max-width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.client-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.client-logo-item:hover {
  opacity: 1;
  transform: scale(1.15);
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(78, 132, 166, 0.8));
}

.hover-text-primary:hover {
  color: #4E84A6 !important;
  transition: all 0.3s ease;
}

/* === Responsividade === */
@media (max-width: 420px) {
  h1 {
    font-size: 1.8rem !important;
  }
}