/* Custom styles for Territórios de Pedra - Modern Design */

/* Modern crypto cards hover effects */
article[style*="backdrop-filter: blur(15px)"] {
  position: relative !important;
  overflow: hidden !important;
}

article[style*="backdrop-filter: blur(15px)"]:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.15) !important;
  border-color: rgba(255, 215, 0, 0.3) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

article[style*="backdrop-filter: blur(15px)"]::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent) !important;
  transition: left 0.6s ease !important;
  z-index: 1 !important;
}

article[style*="backdrop-filter: blur(15px)"]:hover::before {
  left: 100% !important;
}

article[style*="backdrop-filter: blur(15px)"] > * {
  position: relative !important;
  z-index: 2 !important;
}

/* Fix card headings visibility */
article[style*="backdrop-filter: blur(15px)"] h3 {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  color: #ffd700 !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

article[style*="backdrop-filter: blur(15px)"] h3 a {
  color: #ffd700 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

article[style*="backdrop-filter: blur(15px)"] h3 a:hover {
  color: #ffed4e !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}

/* Ensure our modern styles take precedence - Desktop only */
@media (min-width: 769px) {
  .measure-wide.center {
    max-width: 100% !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
    padding: 2rem !important;
    margin: 2rem auto !important;
    text-align: left !important;
  }
}

/* Ensure navigation uses our modern styles */
nav {
  background: rgba(15, 15, 35, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e8e8e8 !important;
}

nav a {
  color: #e8e8e8 !important;
}

nav a:hover {
  color: #ffd700 !important;
}

/* Modern color overrides */
.bg-black-90 {
  background: rgba(15, 15, 35, 0.95) !important;
}

.white-90 {
  color: #e8e8e8 !important;
}

.black-90 {
  color: #e8e8e8 !important;
}

.black-70 {
  color: #cbd5e0 !important;
}

/* Ensure proper spacing */
.ph3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.ph4-ns {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.pv3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.pv4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.pv6 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* Utility classes for responsive design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .nav-menu {
    display: none !important;
  }
  
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .measure-wide.center {
    border-radius: 15px !important;
    padding: 1rem !important;
    margin: 1rem auto !important;
    width: calc(100% - 2rem) !important;
    max-width: calc(100% - 2rem) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
    text-align: left !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem !important;
  }
  
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .measure-wide.center {
    width: calc(100% - 1rem) !important;
    max-width: calc(100% - 1rem) !important;
    padding: 0.75rem !important;
    margin: 0.5rem auto !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
  }
}

/* Modern trust badges */
.trust-badges {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1.5rem !important;
  margin: 3rem 0 !important;
  flex-wrap: wrap !important;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.8rem !important;
  transition: all 0.4s ease !important;
  min-width: 140px !important;
  color: #e8e8e8 !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
}

.trust-badge::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
  transition: left 0.6s ease !important;
  z-index: 1 !important;
}

.trust-badge:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 12px 35px rgba(0, 255, 136, 0.25) !important;
  border-color: rgba(0, 255, 136, 0.4) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.trust-badge:hover::before {
  left: 100% !important;
}

.trust-badge img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) !important;
  z-index: 2 !important;
  position: relative !important;
  transition: all 0.3s ease !important;
}

.trust-badge:hover img {
  transform: scale(1.1) !important;
  filter: drop-shadow(0 6px 12px rgba(0, 255, 136, 0.3)) !important;
}

.trust-badge-text {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #e8e8e8 !important;
  z-index: 2 !important;
  position: relative !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Modern footer styling */
footer {
  background: rgba(15, 15, 35, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e8e8e8 !important;
  padding: 2rem 0 !important;
  margin-top: 3rem !important;
}

footer a {
  color: #00ff88 !important;
  transition: all 0.3s ease !important;
}

footer a:hover {
  color: #ffd700 !important;
  transform: none !important;
}

/* --- OUT OF THIS WORLD ANIMATED BACKGROUND (DARKER PALETTE) --- */
body {
  background: #0a1023 !important;
  color: #e0e6f0 !important;
  min-height: 100vh !important;
  position: relative;
  overflow-x: hidden;
}
body::before, body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -2;
  pointer-events: none;
}
body::before {
  background: linear-gradient(120deg, #0a2342, #1a1a40, #2d3250, #23395d, #1e2746, #274690, #22223b, #3a506b, #21243d, #1b1b2f, #232946, #21243d, #3a506b, #1a1a40, #0a2342);
  background-size: 400% 400%;
  animation: auroraGradient 24s ease-in-out infinite;
  opacity: 0.75;
  filter: blur(0px) brightness(0.85);
}
body::after {
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(0,80,120,0.13) 0%, transparent 100%),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(80,0,120,0.10) 0%, transparent 100%),
    radial-gradient(ellipse 50% 30% at 60% 20%, rgba(0,120,120,0.08) 0%, transparent 100%),
    radial-gradient(ellipse 30% 50% at 70% 80%, rgba(0,60,120,0.09) 0%, transparent 100%);
  opacity: 0.65;
  filter: blur(16px) saturate(1.1);
  mix-blend-mode: lighten;
  animation: auroraBlobs 18s ease-in-out infinite alternate;
}
@keyframes auroraGradient {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 100%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}
@keyframes auroraBlobs {
  0% { filter: blur(16px) saturate(1.1); opacity: 0.65; }
  50% { filter: blur(28px) saturate(1.2); opacity: 0.8; }
  100% { filter: blur(16px) saturate(1.1); opacity: 0.65; }
}
/* --- END OUT OF THIS WORLD BACKGROUND --- */

/* --- ANIMATED BACKGROUND FOR MAIN CONTENT BLOCK (BETTER BLEND) --- */
.measure-wide.center {
  position: relative;
  overflow: hidden;
  background: none !important;
}
.measure-wide.center::before, .measure-wide.center::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.measure-wide.center::before {
  background: linear-gradient(120deg, #0a2342, #1a1a40, #2d3250, #23395d, #1e2746, #274690, #22223b, #3a506b, #21243d, #1b1b2f, #232946, #21243d, #3a506b, #1a1a40, #0a2342);
  background-size: 400% 400%;
  animation: auroraGradient 24s ease-in-out infinite;
  opacity: 0.65;
  filter: blur(20px) brightness(0.85);
}
.measure-wide.center::after {
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(0,80,120,0.12) 0%, transparent 100%),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(80,0,120,0.09) 0%, transparent 100%),
    radial-gradient(ellipse 50% 30% at 60% 20%, rgba(0,120,120,0.07) 0%, transparent 100%),
    radial-gradient(ellipse 30% 50% at 70% 80%, rgba(0,60,120,0.08) 0%, transparent 100%);
  opacity: 0.45;
  filter: blur(32px) saturate(1.08);
  mix-blend-mode: lighten;
  animation: auroraBlobs 18s ease-in-out infinite alternate;
}
.measure-wide.center > * {
  position: relative;
  z-index: 1;
}
/* --- END MAIN CONTENT BLOCK --- */

/* --- ANIMATED BACKGROUND FOR NAV BAR (DARKER) --- */
nav, .nav-container {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  overflow: visible !important;
  background: none !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
nav::before, nav::after, .nav-container::before, .nav-container::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
nav::before, .nav-container::before {
  background: linear-gradient(120deg, #0a2342, #1a1a40, #2d3250, #23395d, #1e2746, #274690, #22223b, #3a506b, #21243d, #1b1b2f, #232946, #21243d, #3a506b, #1a1a40, #0a2342);
  background-size: 400% 400%;
  animation: auroraGradient 24s ease-in-out infinite;
  opacity: 0.48;
  filter: blur(18px) brightness(0.85);
}
nav::after, .nav-container::after {
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(0,80,120,0.07) 0%, transparent 100%),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(80,0,120,0.06) 0%, transparent 100%),
    radial-gradient(ellipse 50% 30% at 60% 20%, rgba(0,120,120,0.05) 0%, transparent 100%),
    radial-gradient(ellipse 30% 50% at 70% 80%, rgba(0,60,120,0.05) 0%, transparent 100%);
  opacity: 0.18;
  filter: blur(24px) saturate(1.05);
  mix-blend-mode: lighten;
  animation: auroraBlobs 18s ease-in-out infinite alternate;
}
nav > *, .nav-container > * {
  position: relative;
  z-index: 1;
}

/* --- FIX DROPDOWN MENU POSITIONING --- */
.dropdown {
  position: relative !important;
  overflow: visible !important;
}

.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: rgba(15, 15, 35, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  min-width: 200px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
  z-index: 1001 !important;
  margin-top: 5px !important;
  overflow: visible !important;
}

.dropdown:hover .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.dropdown-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dropdown-menu a {
  color: #e8e8e8 !important;
  padding: 0.8rem 1.2rem !important;
  border-radius: 8px !important;
  margin: 0.2rem !important;
  font-size: 0.9rem !important;
  display: block !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.dropdown-menu a:hover {
  background: rgba(255, 215, 0, 0.1) !important;
  color: #ffd700 !important;
}

/* Ensure nav container doesn't clip dropdowns */
.nav-container {
  overflow: visible !important;
}

.nav-menu {
  overflow: visible !important;
}

.nav-menu li {
  overflow: visible !important;
}
/* --- END FIX DROPDOWN MENU POSITIONING --- */
/* --- END NAV BAR --- */

/* --- BRIGHTEN DESCRIPTION TEXT --- */
header p, .description, .text-left {
  color: #e8eef8 !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  opacity: 0.9 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

/* Ensure any description text is bright and readable */
p[style*="color: #666"], 
p[style*="color: #666;"] {
  color: #e8eef8 !important;
  font-size: 1.1rem !important;
  opacity: 0.9 !important;
}

/* Make sure all paragraph text in headers is bright */
header p, header .text-left {
  color: #e8eef8 !important;
  font-weight: 400 !important;
}
/* --- END BRIGHTEN DESCRIPTION TEXT --- */

/* Modern heading styles */
h1, h2, h3, h4, h5, h6 {
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}

/* Modern link styles */
a {
  color: #00ff88 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

a:hover {
  color: #ffd700 !important;
  transform: translateY(-1px) !important;
}

/* Ensure lists are readable */
ul, ol {
  color: #e8e8e8 !important;
}

li {
  color: #e8e8e8 !important;
}

/* Strong text emphasis */
strong, b {
  color: #ffd700 !important;
  font-weight: 600 !important;
} 