/* ============================================================
   DRAGÃO NEGRO ESPORTE CLUBE — Custom Stylesheet
   Design: Ultra-Premium Dark Mode
   ============================================================ */

/* --- Smooth Scroll & Overflow prevention --- */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* --- Base Body --- */
body {
  background-color: #0A0A0A;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Selection Color --- */
::selection {
  background-color: #E50914;
  color: #FFFFFF;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
  background: #E50914;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff1a25;
}

/* ============================================================
   SPLASH VIDEO OVERLAY
   ============================================================ */
#splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

#splash-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

#splash-overlay.hidden {
  display: none;
}

#splash-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.active > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.active > *:nth-child(10) { transition-delay: 0.5s; }

.stagger-children.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.6) 40%,
    rgba(10, 10, 10, 0.85) 80%,
    rgba(10, 10, 10, 1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Hero Parallax */
@media (min-width: 768px) {
  .hero-bg {
    background-attachment: fixed;
  }
}

/* ============================================================
   BENTO GRID CARDS
   ============================================================ */
.bento-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0), transparent);
  transition: background 0.5s ease;
}

.bento-card:hover {
  border-color: rgba(229, 9, 20, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(229, 9, 20, 0.05);
}

.bento-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.5), transparent);
}

/* Large card with image bg */
.bento-card-image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  border-radius: inherit;
  z-index: 0;
}

.bento-card-image > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   ORGANOGRAM CARDS (Diretoria)
   ============================================================ */
.org-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.org-card-primary {
  border-top: 2px solid #E50914;
}

.org-card:hover {
  border-color: rgba(229, 9, 20, 0.2);
  transform: translateY(-1px);
}

/* ============================================================
   FORM STYLING
   ============================================================ */
.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
  color: #6B7280;
}

.form-input:focus {
  border-color: #E50914;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.15);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9CA3AF;
  margin-bottom: 0.375rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.form-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #E50914;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(229, 9, 20, 0.2);
}

/* Checkbox custom */
.form-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.form-checkbox:checked {
  background-color: #E50914;
  border-color: #E50914;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.form-checkbox:hover {
  border-color: #E50914;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  border-color: rgba(229, 9, 20, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-image {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   SECTION BADGE
   ============================================================ */
.section-badge {
  display: inline-block;
  background: rgba(229, 9, 20, 0.1);
  color: #E50914;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(229, 9, 20, 0.2);
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 3.25rem;
  }
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 60;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #FFFFFF;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.hamburger.active span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 45;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow-y: auto;
}

#mobile-menu.open {
  transform: translateY(0) !important;
}

#menu-close {
  position: fixed !important;
  top: 1.5rem !important;
  right: 1.5rem !important;
  z-index: 9999 !important;
}

#mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 2rem;
  transition: color 0.3s ease;
  text-align: center;
}

#mobile-menu a:hover {
  color: #E50914;
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */
@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(12px) translateX(-50%); }
}

.scroll-indicator {
  animation: bounce-subtle 2s infinite ease-in-out;
}

/* ============================================================
   STAT COUNTER
   ============================================================ */
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: #E50914;
  line-height: 1;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3rem;
  }
}

/* ============================================================
   CONTACT CARD ICON GLOW
   ============================================================ */
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(229, 9, 20, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E50914;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: rgba(229, 9, 20, 0.2);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.15);
}

/* ============================================================
   BUTTON STYLES
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #E50914;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  background-color: #cc0812;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: #E50914;
  color: #E50914;
}

/* ============================================================
   GLOW EFFECTS
   ============================================================ */
.glow-red {
  box-shadow: 0 0 80px rgba(229, 9, 20, 0.08);
}

/* ============================================================
   GRADIENT TEXT
   ============================================================ */
.text-gradient-red {
  background: linear-gradient(135deg, #E50914, #ff4d56);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   IMAGE SECTION OVERLAYS
   ============================================================ */
.image-overlay {
  position: relative;
}

.image-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0.8) 100%
  );
  border-radius: inherit;
}

@media (max-width: 767px) {
  .image-overlay::after {
    background: linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0) 0%,
      rgba(10, 10, 10, 0.9) 100%
    );
  }
}

/* ============================================================
   LOADING STATE
   ============================================================ */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   VALIDATION STATES & GLOWS
   ============================================================ */
.input-valid {
  border-color: #22c55e !important;
}

.input-valid:focus {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15) !important;
}

.input-invalid {
  border-color: #ef4444 !important;
}

.input-invalid:focus {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}

/* ============================================================
   RESPONSIVE FINE-TUNING
   ============================================================ */
@media (max-width: 640px) {
  .section-heading {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  #mobile-menu a {
    font-size: 1.25rem;
  }
}

/* ============================================================
   FOOTER SOCIAL ICONS
   ============================================================ */
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(229, 9, 20, 0.15);
  color: #E50914;
  transform: translateY(-2px);
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  #splash-overlay,
  #mobile-menu,
  .hamburger,
  .scroll-indicator {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .bento-card, .org-card, .product-card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* ============================================================
   FINISH WEB SIGNATURE GRADIENT WAVE
   ============================================================ */
.finish-web-link {
  /* Cores: Roxo (#a855f7) -> Azul Claro (#38bdf8) -> Roxo (#a855f7) para loop perfeito */
  background: linear-gradient(to right, #a855f7, #38bdf8, #a855f7);
  background-size: 200% auto;
  
  /* Força o clipe do degradê no texto em todos os navegadores */
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  
  /* Torna o preenchimento original invisível para expor o degradê */
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  text-fill-color: transparent;
  
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  
  /* Animação linear e contínua */
  animation: infiniteGradientShift 6s linear infinite;
}

@keyframes infiniteGradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

