/* ============================================
   S3 DRONE - Estilo Cinematográfico (v3.0)
   Cores: Preto #0a0a0a | Amarelo #F0C040 | Branco | Cinza
   Inclui: Mobile, Performance, Avatar 3:4, Contato funcional
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

:root {
  --amarelo: #F0C040;
  --amarelo-escuro: #d4a820;
  --dourado: #F0C040;
  --preto: #0a0a0a;
  --cinza: #b0b0b0;
  --branco: #ffffff;
}

/* ==================== Animações ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes droneFlight {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -20px) rotate(3deg); }
  50% { transform: translate(0, -40px) rotate(0deg); }
  75% { transform: translate(-30px, -20px) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==================== Topo ==================== */
.top-bar {
  background: #000;
  color: #888;
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar a { color: var(--amarelo); text-decoration: none; font-weight: 600; }

/* ==================== Header ==================== */
.main-header {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(15px);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.logo-img {
  height: 90px;
  width: auto;
  transition: transform 0.3s;
}
.logo-img:hover { transform: scale(1.05); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amarelo);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--amarelo); }
.nav-links a.active { color: var(--amarelo); font-weight: 700; }

/* Botão WhatsApp */
.btn-whats {
  background: #25D366;
  color: #000000;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}
.btn-whats:hover {
  background: #1da851;
  color: #000000;
  transform: translateY(-2px);
}

/* ==================== Hero com vídeo ==================== */
.hero-video {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-video video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease forwards;
}
.hero-drone-icon {
  font-size: 5rem;
  color: var(--amarelo);
  animation: droneFlight 6s ease-in-out infinite;
  margin-bottom: 20px;
  display: block;
}
.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero-content h1 span {
  background: linear-gradient(135deg, var(--amarelo) 0%, #fff 50%, var(--amarelo) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease infinite;
}
.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 28px;
  opacity: 0.85;
  color: #ccc;
}
.btn-hero {
  background: var(--amarelo);
  color: #000;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  display: inline-block;
}
.btn-hero:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(240,192,64,0.4);
}
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 2rem;
  animation: float 2s ease-in-out infinite;
  cursor: pointer;
  color: #fff;
}

/* ==================== Seções ==================== */
.section { padding: 80px 0; }
.section-dark { background: #050505; }
.section-tag {
  color: var(--amarelo);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--cinza);
  margin-bottom: 48px;
  max-width: 600px;
}

/* ==================== Cards Serviços ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 36px 28px;
  transition: all 0.4s;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card:hover {
  border-color: var(--amarelo);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(240,192,64,0.1);
}
.service-icon {
  width: 65px; height: 65px;
  background: rgba(240,192,64,0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--amarelo);
  margin-bottom: 20px;
  transition: all 0.3s;
}
.service-card:hover .service-icon {
  background: var(--amarelo);
  color: #000;
  transform: rotate(-5deg) scale(1.1);
}
.service-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--cinza); }

/* ==================== Portfólio ==================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.portfolio-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #111;
  transition: all 0.4s;
  position: relative;
  cursor: pointer;
}
.portfolio-item:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(240,192,64,0.2);
}
.portfolio-item img,
.portfolio-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}
.portfolio-overlay h4 { font-size: 1.1rem; margin-bottom: 4px; }
.portfolio-overlay p { font-size: 0.85rem; color: var(--amarelo); }

/* ==================== Sobre ==================== */
.about-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.about-text { flex: 1 1 400px; }
.about-video {
  flex: 1 1 400px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.about-video video {
  width: 100%;
  display: block;
}

/* ==================== Contato ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.contact-card:hover { border-color: var(--amarelo); }
.contact-icon {
  width: 50px; height: 50px;
  min-width: 50px;
  background: rgba(240,192,64,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--amarelo);
}
.contact-card h3 { font-weight: 700; margin-bottom: 4px; font-size: 1.1rem; }
.contact-card p { color: var(--cinza); font-size: 0.95rem; }
.contact-card a { color: var(--amarelo); text-decoration: none; font-weight: 600; }

.form-box {
  background: #111;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 40px 32px;
}
.form-box h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amarelo);
  box-shadow: 0 0 0 3px rgba(240,192,64,0.1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.btn-submit {
  background: var(--amarelo);
  color: #000;
  border: none;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
}
.btn-submit:hover { background: #fff; transform: translateY(-2px); }

/* Mapa */
.map-container {
  border-radius: 24px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}
.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

/* ==================== CTA ==================== */
.cta-section {
  background: linear-gradient(135deg, #111, #1a1a1a);
  text-align: center;
  border-radius: 32px;
  padding: 60px 32px;
  margin: 40px 0;
  border: 1px solid rgba(255,255,255,0.05);
}
.cta-section h2 { font-size: 2rem; margin-bottom: 16px; }
.cta-section h2 span { color: var(--amarelo); }
.btn-amarelo {
  background: var(--amarelo);
  color: #000;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 40px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  margin-top: 16px;
}
.btn-amarelo:hover { background: #fff; transform: translateY(-2px); }

/* ==================== Footer ==================== */
.site-footer {
  background: #000;
  color: #999;
  padding: 60px 32px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.footer-grid h4 { color: var(--amarelo); margin-bottom: 14px; }
.footer-grid a { color: #999; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid #222;
  font-size: 0.85rem;
}
.footer-logo { height: 120px; margin-bottom: 12px; }

/* ==================== Vídeos 3:4 (Avatar) ==================== */
.video-avatar {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: #000;
  margin: 0 auto;
  display: block;
}

/* ==================== Responsivo ==================== */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-video { height: 80vh; }
  .section-title { font-size: 1.8rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .logo-img { height: 65px; }
  .footer-logo { height: 90px; }
  
  .btn-whats {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.9rem; }
  
  .video-avatar { max-width: 300px; }
}