:root{
  --bg:#241733; /* deep purple */
  --panel:#32193a; 
  --accent:#f5c400; /* yellow */
  --muted:#b6a6c0;
  --cta:#6b3bd8; /* purple CTA */
  --glass: rgba(255,255,255,0.04);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(180deg, rgba(20,17,35,1) 0%, rgba(26,18,39,1) 100%), url('') center/cover no-repeat;
  color:#eee;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

/* New Header Design */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), transparent);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-sizing: border-box;
  left: 0;
  right: 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
  flex-shrink: 0;
}

.logo-icon {
  background: #FFD700;
  color: black;
  border-radius: 5px;
  padding: 5px 10px;
  margin-right: 5px;
  font-size: 24px;
  font-weight: 700;
}

.logo-text {
  color: #a366ff;
  font-weight: 700;
}

.logo-agencia {
  font-size: 14px;
  margin-left: 5px;
  color: #ccc;
  font-weight: 400;
}

.menu {
  display: none;
  gap: 25px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: 30px;
  flex: 1;
  justify-content: center;
  margin: 0 20px;
  overflow: hidden;
}

.menu a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  position: relative;
  padding: 5px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #a366ff;
}

.menu i {
  margin-left: 5px;
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.menu a:hover i {
  transform: rotate(180deg);
}

.btn-whatsapp {
  background-color: #7b32fc;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  display: none;
  align-items: center;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(123, 50, 252, 0.3);
}

.btn-whatsapp i {
  background: white;
  color: #25D366;
  border-radius: 50%;
  padding: 8px;
  font-size: 16px;
  margin-right: 10px;
}

/* Mobile Hamburger */
.hamburger{
  width:40px;
  height:40px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--glass);
  border:1px solid rgba(255,255,255,0.03);
  cursor:pointer;
  flex-shrink: 0;
}

/* Side menu overlay */
.side-menu{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  display:none;
  z-index:80;
}

.side-menu.open{display:block}

.side-menu .backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.6);
}

.side-menu .panel{
  position:absolute;
  left:0;
  top:0;
  height:100%;
  width:78%;
  max-width:420px;
  background:linear-gradient(180deg,var(--panel),#22142a);
  padding:40px 28px;
  color:#ddd;
  box-shadow: 4px 0 30px rgba(0,0,0,0.6);
}

.side-menu .panel h3{
  margin:0 0 24px;
  font-size:20px;
  color:#fff;
}

.nav-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.nav-list a{
  color:var(--muted);
  text-decoration:none;
  font-size:18px;
}

.side-close{
  position:absolute;
  right:16px;
  top:16px;
  color:#fff;
  font-size:26px;
  cursor:pointer;
}

/* Hero */
.hero{
  padding-top:88px;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  text-align:center;
  padding:110px 20px 60px;
  background-image: radial-gradient(circle at 50% 30%, rgba(107,59,216,0.06), transparent 20%);
  max-width: 100vw;
}

.hero .badge{
  display:inline-block;
  padding:8px 14px;
  border-radius:34px;
  background:rgba(255,255,255,0.03);
  color:var(--muted);
  font-size:13px;
}

.hero h1{
  font-size:28px;
  margin:8px 0 6px;
  line-height:1.05;
  font-weight:800;
  max-width: 100%;
  word-wrap: break-word;
}

.hero h1 .accent{
  color:var(--accent);
  display:block;
  font-size:30px;
}

.hero p .Icent{
  color:var(--accent)
}

.hero p{
  max-width:720px;
  color: #d9cfe6;
  margin:6px 0 18px;
  font-size:15px;
}

/* CTA */
.cta{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:12px 18px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--cta),#7d5ef0);
  box-shadow:0 8px 20px rgba(107,59,216,0.14);
  color:white;
  text-decoration:none;
  font-weight:600;
}

/* Cases section */
.section{
  padding:40px 18px 80px;
  max-width: 100vw;
  overflow-x: hidden;
}

.section h2{
  color:#fff;
  margin:8px 0 18px;
  font-size:20px;
}

.cases-wrap{
  max-width:960px;
  margin:0 auto;
  position:relative;
}

.carousel{
  display:flex;
  gap:18px;
  overflow:hidden;
  padding:12px 0;
}

.slide{
  min-width:72%;
  max-width:72%;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.08));
  padding:20px;
  height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  box-shadow:0 6px 20px rgba(0,0,0,0.45);
  border:1px solid rgba(255,255,255,0.03);
  flex-shrink: 0;
}

.slide .meta{
  position:absolute;
  left:18px;
  bottom:18px;
  color:var(--muted);
  font-size:13px;
}

.carousel-controls{
  position:absolute;
  right:4px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ctrl-btn{
  width:36px;
  height:36px;
  border-radius:8px;
  background:var(--glass);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  border:1px solid rgba(255,255,255,0.03);
}

/* Brands Slider Section - Full Width */
.brands-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 60px;
  padding: 50px 0;
  background: linear-gradient(135deg, rgba(245, 196, 0, 0.08), rgba(163, 102, 255, 0.08));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.brands-section h3 {
  text-align: center;
  font-size: 24px;
  color: #a366ff;
  margin-bottom: 40px;
  font-weight: 700;
  padding: 0 20px;
}

.brands-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
}

.brands-track {
  display: flex;
  width: calc(200% + 40px);
  animation: scroll-brands 50s linear infinite;
  gap: 30px;
  will-change: transform;
}

.brand-item {
  flex-shrink: 0;
  width: 140px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  padding: 12px;
  backdrop-filter: blur(5px);
}

.brand-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(163, 102, 255, 0.4);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(163, 102, 255, 0.15);
}

.brand-item img {
  /* max-width: 100%;
  max-height: 100%; */
  object-fit: cover;
  width:100%;
  height: 100%;
  filter: brightness(0.95) contrast(1.1) saturate(1.1);
  transition: all 0.3s ease;
}

.brand-item:hover img {
  filter: brightness(1.15) contrast(1.2) saturate(1.2);
  transform: scale(1.05);
}

@keyframes scroll-brands {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 15px));
  }
}

/* Pause animation on hover */
.brands-slider:hover .brands-track {
  animation-play-state: paused;
}

/* Footer-ish CTA bottom */
.bottom-cta{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:22px;
  background:linear-gradient(90deg,var(--cta),#7d5ef0);
  padding:12px 18px;
  border-radius:999px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  z-index:60;
  box-shadow:0 10px 30px rgba(107,59,216,0.16);
  text-decoration: none;
}

/* WhatsApp Float - Unified Style (same as services page) */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Responsive Design */

/* Medium screens - show desktop menu but compact */
@media(min-width: 768px) and (max-width: 1023px){
  .navbar {
    padding: 15px 24px;
  }
  
  .menu {
    display: flex;
    gap: 20px;
    margin: 0 16px;
    padding: 8px 16px;
  }
  
  .menu a {
    font-size: 14px;
  }
  
  .btn-whatsapp {
    display: flex;
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .hamburger {
    display: none;
  }
  
  .hero {
    padding: 130px 32px 80px;
  }
  
  .hero h1 {
    font-size: 38px;
  }
  
  .hero h1 .accent {
    display: inline;
    font-size: 38px;
  }
  
  .slide {
    min-width: 45%;
    max-width: 45%;
    height: 300px;
  }
  
  .whatsapp-float {
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    font-size: 26px;
  }
}

/* Large Desktop */
@media(min-width: 1024px){
  .navbar {
    padding: 15px 40px;
  }
  
  .menu {
    display: flex;
    gap: 25px;
    margin: 0 32px;
  }
  
  .btn-whatsapp {
    display: flex;
  }
  
  .hamburger {
    display: none;
  }
  
  .hero {
    padding: 130px 40px 80px;
  }
  
  .hero h1 {
    font-size: 44px;
  }
  
  .hero h1 .accent {
    display: inline;
    font-size: 44px;
  }
  
  .slide {
    min-width: 32%;
    max-width: 32%;
    height: 320px;
  }
}

/* Extra Large Desktop */
@media(min-width: 1200px){
  .navbar {
    padding: 15px 60px;
  }
  
  .menu {
    margin: 0 40px;
    gap: 30px;
  }
  
  .hero {
    padding: 140px 60px 100px;
  }
}

/* Mobile optimizations for brands slider */
@media(max-width: 767px) {
  .menu {
    display: none;
  }
  
  .btn-whatsapp {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .brands-section {
    padding: 40px 0;
    margin-top: 40px;
  }
  
  .brands-section h3 {
    font-size: 20px;
    margin-bottom: 30px;
    padding: 0 16px;
    line-height: 1.3;
  }
  
  .brands-track {
    gap: 20px;
    animation-duration: 40s;
  }
  
  .brand-item {
    width: 120px;
    height: 65px;
    padding: 10px;
  }
  
  .brand-item:hover {
    transform: translateY(-2px) scale(1.01);
  }
}

/* Small Mobile */
@media(max-width: 480px){
  .navbar {
    padding: 15px 20px;
  }
  
  .logo {
    font-size: 24px;
  }
  
  .logo-icon {
    font-size: 20px;
    padding: 4px 8px;
  }
  
  .logo-agencia {
    font-size: 12px;
  }
  
  .side-menu .panel {
    width: 82%;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  /* Brands slider optimizations */
  .brands-section {
    padding: 30px 0;
    margin-top: 30px;
  }
  
  .brands-section h3 {
    font-size: 18px;
    margin-bottom: 25px;
    padding: 0 12px;
  }
  
  .brands-track {
    gap: 15px;
    animation-duration: 35s;
  }
  
  .brand-item {
    width: 100px;
    height: 55px;
    padding: 8px;
  }
}

/* Extra Small Mobile */
@media(max-width: 360px){
  .navbar {
    padding: 15px 16px;
  }
  
  .logo {
    font-size: 22px;
  }
  
  .logo-icon {
    font-size: 18px;
    padding: 3px 6px;
  }
  
  .logo-agencia {
    font-size: 11px;
  }
  
  .side-menu .panel {
    width: 88%;
  }
  
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 22px;
  }
  
  /* Brands slider optimizations */
  .brands-section {
    padding: 25px 0;
  }
  
  .brands-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  
  .brands-track {
    gap: 12px;
    animation-duration: 30s;
  }
  
  .brand-item {
    width: 90px;
    height: 50px;
    padding: 6px;
  }
}

/* Prevent horizontal scroll */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

* {
  max-width: 100%;
}

/* Small helpers */
.hidden{display:none}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  .brands-track {
    animation-duration: 120s;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .brand-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Animações de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}
