/* ==========================================================================
   CSS Variables & Design Tokens (UI UX Pro Max)
   ========================================================================== */
:root {
  --bg-dark: #070707;
  --bg-card: rgba(25, 25, 25, 0.05);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text-primary: #FFFFFF;
  --text-secondary: #B4B4B4;
  --accent-blue: #0077D1;
  --accent-blue-hover: #0088EA;
  --glow-shadow: 0 0 20px rgba(0, 119, 209, 0.4);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .logo {
  font-family: var(--font-display);
}

.accent {
  color: var(--accent-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.title-main {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.1;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 40px;
}

/* ==========================================================================
   Buttons & CTA
   ========================================================================== */
a {
  text-decoration: none;
  color: inherit;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-blue);
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  box-shadow: var(--glow-shadow);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  text-align: center;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline:hover {
  background-color: var(--accent-blue);
  color: #fff;
  box-shadow: var(--glow-shadow);
}

.glow-effect {
  position: relative;
}

/* Sticky WhatsApp */
.sticky-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* WhatsApp Green */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: var(--transition);
}

.sticky-whatsapp:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   Navbar (Floating Layout)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 50;
  padding: 16px 24px;
  background: rgba(7, 7, 7, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 7, 7, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05);
  animation: zoomBg 20s infinite alternate linear;
}

@keyframes zoomBg {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-content {
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.7;
}

.scroll-down span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mouse-icon {
  width: 24px;
  height: 36px;
  border: 2px solid var(--text-primary);
  border-radius: 12px;
  position: relative;
}

.mouse-icon::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--text-primary);
  border-radius: 2px;
  animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 10px); opacity: 0; }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
  padding: 120px 0;
  position: relative;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-size: 2.8rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 30px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.feature-visual {
  flex: 1.2;
  position: relative;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.glass-card img {
  border-radius: 8px;
  width: 100%;
}

.img-floating {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  border: 1px solid var(--border-glass);
  z-index: 3;
}

.float-1 {
  width: 45%;
  bottom: -40px;
  left: -40px;
}

.float-2 {
  width: 50%;
  top: -40px;
  right: -40px;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery {
  padding: 100px 0 150px;
  background: linear-gradient(to bottom, var(--bg-dark), #030303);
}

.gallery-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.gallery-header h2 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.gallery-header p {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  opacity: 0;
  transition: var(--transition);
  transform: translateY(10px);
}

.gallery-item:hover .item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.item-overlay span {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Asymmetric Grid Spans */
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

.gallery-cta {
  text-align: center;
  margin-top: 60px;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--accent-blue);
}

/* ==========================================================================
   Inline CTA (between features)
   ========================================================================== */
.inline-cta {
  margin: 20px 0 80px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(0,119,209,0.08), rgba(0,119,209,0.02));
  border: 1px solid rgba(0,119,209,0.15);
  border-radius: 16px;
  text-align: center;
}

.inline-cta-content p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.inline-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

/* ==========================================================================
   CTA Banner (after gallery)
   ========================================================================== */
.cta-banner {
  position: relative;
  margin-top: 80px;
  padding: 60px 40px;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,119,209,0.12) 0%, rgba(0,60,120,0.06) 100%);
  border: 1px solid rgba(0,119,209,0.2);
  border-radius: 20px;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
}

.cta-banner-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-banner-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 28px;
}

.cta-banner .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

/* ==========================================================================
   Button Reset (for buttons used as CTAs)
   ========================================================================== */
button.btn-primary,
button.btn-secondary,
button.btn-outline,
button.btn-large {
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

button.btn-outline {
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

button.sticky-whatsapp {
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 100px 0 40px;
  text-align: center;
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.footer p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.btn-large {
  padding: 20px 40px;
  font-size: 1.2rem;
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-logo {
  height: 24px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: var(--transition);
}

.footer-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ==========================================================================
   Animations / Reveal
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================================================
   Media Queries (Responsive Pro Max)
   ========================================================================== */
@media (max-width: 1024px) {
  .feature-row { flex-direction: column; gap: 60px; }
  .feature-row.reverse { flex-direction: column; }
  .float-1, .float-2 { display: none; }
  .title-main { font-size: 3.2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar {
    top: 12px;
    left: 12px;
    right: 12px;
    padding: 12px 16px;
  }
  .navbar .btn-outline {
    display: none; /* Esconde para não quebrar layout, sticky-whatsapp cumpre a função */
  }
  
  .title-main { font-size: 2rem; line-height: 1.15; margin-bottom: 16px; }
  .subtitle { font-size: 1.05rem; margin-bottom: 30px; }
  
  .hero-bg {
    background-position: 70% center; 
  }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.95) 100%);
  }
  .hero-content {
    padding-top: 40px;
    text-align: center;
  }
  .hero-actions {
    flex-direction: column;
    gap: 16px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .features { padding: 60px 0; }
  .feature-row, .feature-row.reverse {
    gap: 30px;
    margin-bottom: 60px;
  }
  .feature-text h2 { font-size: 2.2rem; }
  
  .gallery-header h2 { font-size: 2.4rem; }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .gallery-item.wide, .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .footer { padding: 60px 0 30px; }
  .footer-title { font-size: 2rem; }
  .btn-large { width: 100%; padding: 16px 20px; font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .title-main { font-size: 1.8rem; }
  .feature-text h2 { font-size: 1.8rem; }
  .footer-title { font-size: 1.8rem; }
}
