/* ============================================
   WEB3 THEME - COLOR & FONT OVERRIDES
   This file ensures all colors and fonts are properly applied
   ============================================ */

/* Critical: Force font family on ALL elements */
* {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Ensure body background and text color */
body {
  background-color: #0a0e27 !important;
  color: #ffffff !important;
}

/* Contact Form Button Styles */
.btn-contact {
    background: linear-gradient(135deg, #9d4ffd 0%, #7b2fcf 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(157, 79, 253, 0.3) !important;
}

.btn-contact:hover {
    background: linear-gradient(135deg, #b86fff 0%, #9d4ffd 100%) !important;
    box-shadow: 0 6px 25px rgba(157, 79, 253, 0.5) !important;
    transform: translateY(-2px) !important;
}

.btn-contact:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(157, 79, 253, 0.4) !important;
}

/* All text elements should be white by default */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
}

p, span, div, li {
  color: #ffffff !important;
}

/* Links and secondary text */
.nav-link,
.footer-nav a,
.footer p,
.text-slogan,
.fs-custom {
  color: #a0aec0 !important;
}

/* Active/hover states */
.nav-link:hover,
.nav-link.active,
.footer-nav a:hover,
.footer a:hover {
  color: #ffffff !important;
}

/* Buttons */
.new__link,
.down__link,
.new__link span,
.down__link span,
.new__link em,
.down__link em {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
}

/* Gradient text elements */
.text-gradient {
  background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Override any conflicting Bootstrap or theme styles */
.navbar-light .navbar-nav .nav-link {
  color: #a0aec0 !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: #ffffff !important;
}

/* Ensure navbar background */
.navbar {
  background-color: rgba(10, 14, 39, 0.8) !important;
}

/* Fix any remaining dark text on dark background */
.container, .row, .col, [class*="col-"] {
  color: inherit;
}

/* Make sure all spans inside buttons are visible */
button *, 
a[class*="link"] * {
  color: inherit !important;
}

/* ============================================
   HERO SECTION - TEXT READABILITY FIX
   ============================================ */

/* Add dark semi-transparent overlay to hero section */
.hero-section {
  position: relative;
  background: transparent !important;
}

.hero-section::before {
  background: radial-gradient(circle at 30% 50%, rgba(10, 14, 39, 0.95) 0%, rgba(10, 14, 39, 0.85) 100%) !important;
}

/* Hero title - modern subtle shadow */
.hero-section .text-title {
  color: #ffffff !important;
  text-shadow: 
    0 2px 20px rgba(157, 79, 253, 0.3),
    0 4px 40px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.5) !important;
  position: relative;
  z-index: 10;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  text-align: left !important;
}

/* All titles left aligned */
.head-title {
  text-align: left !important;
}

.text-slogan {
  text-align: left !important;
}

.download_btn-wrap {
  justify-content: flex-start !important;
}

/* For gradient text parts - enhanced neon effect */
.hero-section .text-gradient,
.text-gradient {
  background: linear-gradient(135deg, #b87fff 0%, #9d4ffd 50%, #7c3fd1 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: #9d4ffd !important;
  text-shadow: none !important;
  display: inline-block;
  padding: 0 0.2em;
  font-weight: 900 !important;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(157, 79, 253, 0.8)) 
          drop-shadow(0 0 40px rgba(157, 79, 253, 0.6))
          drop-shadow(0 0 60px rgba(157, 79, 253, 0.4));
  animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% { 
    filter: drop-shadow(0 0 20px rgba(157, 79, 253, 0.8)) 
            drop-shadow(0 0 40px rgba(157, 79, 253, 0.6))
            drop-shadow(0 0 60px rgba(157, 79, 253, 0.4));
  }
  50% { 
    filter: drop-shadow(0 0 25px rgba(157, 79, 253, 1)) 
            drop-shadow(0 0 50px rgba(157, 79, 253, 0.8))
            drop-shadow(0 0 80px rgba(157, 79, 253, 0.6));
  }
}

/* Hero slogan text - make it super readable */
.hero-section .text-slogan {
  color: #e0e7ff !important;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 4px 16px rgba(0, 0, 0, 0.7) !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  position: relative;
  z-index: 10;
  background: rgba(10, 14, 39, 0.6);
  padding: 1rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

/* Add dark overlay behind hero text content */
.hero-section .col-12.col-md-12.col-lg-6 {
  position: relative;
  z-index: 3;
}

/* Fix hero image positioning and add subtle dark filter */
.hero-section img {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)) brightness(0.9) !important;
  position: relative;
  z-index: 3;
}

/* Ensure particles are visible in hero section */
.hero-section .particle {
  z-index: 2 !important;
}

.hero-section .text-title,
.hero-section .text-slogan,
.hero-section .download_btn-wrap {
  position: relative;
  z-index: 3;
}

/* ============================================
   SECTION BACKGROUND FIXES
   ============================================ */

/* Override any light backgrounds */
section[style*="background-color"],
section[style*="background"] {
  background: rgba(19, 24, 46, 0.5) !important;
}

#validation {
  background: transparent !important;
}

#validation:nth-of-type(even) {
  background: rgba(19, 24, 46, 0.5) !important;
}

/* All section titles should be readable */
.head-title {
  color: #ffffff !important;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.8),
    0 4px 20px rgba(0, 0, 0, 0.6) !important;
  position: relative;
  z-index: 10;
}

/* ============================================
   LAYOUT SHIFT FIXES
   ============================================ */

/* Prevent layout shifts by setting explicit sizes */
.hero-section {
  min-height: 600px;
  display: flex;
  align-items: center;
}

/* Prevent image layout shifts */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-section img {
  width: 100%;
  max-width: 325.84px;
  height: auto;
}

/* Prevent font loading shifts */
body {
  font-display: swap;
}

/* Container stability */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

/* ============================================
   DOWNLOAD SECTION FIX
   ============================================ */

#superhero {
  background: rgba(19, 24, 46, 0.3) !important;
}

#superhero .dl-text {
  color: #ffffff !important;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.8),
    0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

/* ============================================
   SCROLL ANIMATION FIXES
   ============================================ */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Prevent layout shifts during scroll */
body {
  overflow-x: hidden;
}

/* Fix section spacing */
section.pt-5 {
  padding-top: 3rem !important;
}

section.pt-6 {
  padding-top: 4rem !important;
}

section.py-md-7 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

/* Prevent hero section from moving during scroll */
.hero-section {
  transform: none !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Hero section button hover - keep original icon colors */
.new__link.google:hover::after {
  background-image: url('../img/ico-google-store.svg') !important;
}

.new__link.apple:hover::after {
  background-image: url('../img/ico-apple-store.svg') !important;
}

/* Footer download buttons - same hover effects as hero buttons */
.down_section .down__link.google:hover::after {
  background-image: url('../img/ico-google-store.svg') !important;
}

.down_section .down__link.apple:hover::after {
  background-image: url('../img/ico-apple-store.svg') !important;
}

/* Header KR Flag Fix */
.nav-link.nav-kr {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

.nav-link.nav-kr img {
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden !important;
}

.nav-link.nav-kr span {
  display: inline-block !important;
  line-height: inherit !important;
}

/* Additional flag styling for all instances */
.nav-item img[src*="kr.png"],
.nav-item img[src*="en.png"],
img[alt="KR"],
img[alt="EN"] {
  border-radius: 4px !important;
  overflow: hidden !important;
}

/* Footer download button icon fixes */
.down_section .down__link {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 2em 0 4.5em !important;
  text-align: left !important;
  min-height: 52px !important;
  position: relative !important;
}

.down_section .down__link.apple {
  padding: 0 2.6em 0 4.9em !important;
}

.down_section .down__link.google {
  padding: 0 2em 0 4.5em !important;
}

.down_section .down__link::after,
.down_section .down__link.apple::after,
.down_section .down__link.google::after {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  bottom: auto !important;
  margin: 0 !important;
}

.down_section .down__link.apple::after {
  left: 38px !important;
  width: 30px !important;
  height: 34px !important;
}

.down_section .down__link.google::after {
  left: 35px !important;
  width: 32px !important;
  height: 32px !important;
}

/* Footer button hover effects - same as hero */
.down_section .down__link:hover {
  background: linear-gradient(135deg, #b87fff 0%, #9d4ffd 100%) !important;
  color: #fff !important;
  border: 1.5px solid #9d4ffd !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(157, 79, 253, 0.5),
              0 0 30px rgba(157, 79, 253, 0.3) !important;
}

/* Privacy Policy & Terms - Card Styles for Dark Mode */
.card {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(157, 79, 253, 0.2) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
}

.card-header {
  background: linear-gradient(135deg, rgba(157, 79, 253, 0.15) 0%, rgba(123, 47, 207, 0.1) 100%) !important;
  border-bottom: 1px solid rgba(157, 79, 253, 0.3) !important;
  color: #9d4ffd !important;
  font-weight: 600 !important;
  padding: 1rem 1.5rem !important;
  font-size: 1.1rem !important;
}

.card-body {
  background: transparent !important;
  color: #e0e0e0 !important;
  padding: 1.5rem !important;
}

.card-text {
  color: #e0e0e0 !important;
}

.card-text p,
.card-text li,
.card-text ul {
  color: #e0e0e0 !important;
}

.card-button a,
.card-button .btn {
  background: rgba(157, 79, 253, 0.1) !important;
  border: 1px solid rgba(157, 79, 253, 0.4) !important;
  color: #9d4ffd !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
}

.card-button a:hover,
.card-button .btn:hover {
  background: rgba(157, 79, 253, 0.2) !important;
  border-color: #9d4ffd !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(157, 79, 253, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* Privacy Policy Content Styles */
.privacy-content-wrap,
.privacy-content-wrap p,
.privacy-content-wrap li,
.privacy-content-wrap ul,
.privacy-content-wrap div {
  color: #e0e0e0 !important;
}

.privacy-content-wrap .num,
.privacy-content-wrap b,
.privacy-content-wrap strong {
  color: #ffffff !important;
}

.privacy-content-wrap .company-name,
.privacy-content-wrap .url,
.privacy-content-wrap .email {
  color: #9d4ffd !important;
  font-weight: 600 !important;
}

.privacy-title {
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(157, 79, 253, 0.3) !important;
}

