@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Uniswap Light Theme */
  --bg-color: #FFFFFF;
  --card-bg: #F5F6FC;
  --card-hover: #EDEEF2;
  --primary: #FF007A;
  --primary-hover: #E8006F;
  --text-primary: #000000;
  --text-secondary: #7780A0;
  --card-border: rgba(0, 0, 0, 0.05);
  --border-radius-lg: 24px;
  --border-radius-md: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* NFT Floating Background */
.bg-nft {
  position: fixed;
  width: 140px;
  height: 140px;
  opacity: 0.25;
  z-index: -1;
  border-radius: 24px;
  object-fit: cover;
  animation: float 20s infinite linear;
  filter: grayscale(0.3) blur(2px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.bg-nft:hover {
  opacity: 0.8;
  filter: grayscale(0) blur(0);
  transform: scale(1.1) rotate(5deg);
  z-index: 5;
  box-shadow: 0 20px 40px rgba(255, 0, 122, 0.2);
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10vw, 15vh) rotate(5deg); }
  50% { transform: translate(-5vw, 30vh) rotate(-5deg); }
  75% { transform: translate(15vw, 15vh) rotate(5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Navbar */
nav {
  position: fixed;
  top: 37px;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--card-border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  background: var(--card-bg);
  padding: 0.5rem;
  border-radius: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: #000;
  background: #FFF;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Hero */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  margin-top: 97px;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 600;
  color: #000;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.35rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 3rem;
}

/* Glass Card - Light Version */
.glass-card {
  background: #FFF;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Buttons */
.btn {
  padding: 14px 28px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  border: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

.btn-outline {
  background: var(--card-bg);
  color: #000;
  border: 1px solid var(--card-border);
}

.btn-outline:hover {
  background: var(--card-hover);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 5rem 5%;
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Stats */
.stats-row {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 1px solid #F0F0F0;
}

.stats-label { color: var(--text-secondary); }
.stats-value { font-weight: 600; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Responsiveness & Layout Improvements */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* Ensure tables are scrollable on smaller screens */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    padding: 1rem;
  }
  
  .logo { order: 1; margin-right: auto; }
  
  .mobile-menu-btn {
    display: block;
    order: 3;
    margin-left: 1rem;
  }
  
  .nav-btns { 
    order: 2; 
  }
  
  .nav-btns .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .nav-links { 
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
    animation: fadeIn 0.3s ease;
  }

  .nav-links.active {
    display: flex;
  }
  
  .hero h1 { 
    font-size: 2.5rem; 
    margin-top: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }
  
  .hero-btns .btn {
    width: 100%;
  }

  .features-grid { padding: 3rem 1.5rem; gap: 1.5rem; }
  .dashboard-container { padding: 100px 1.5rem 50px; gap: 1.5rem; }
  
  .glass-card { 
    padding: 1.5rem; 
  }
  
  .glass-card h2 {
    font-size: 2rem !important;
  }

  /* Specific mobile overrides */
  .dashboard-container,
  .nft-grid,
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .bg-nft { opacity: 0.05 !important; }
  .bg-nft:hover { transform: none !important; z-index: -1 !important; box-shadow: none !important; }

  /* Wallet Banner Mobile Alignment */
  .wallet-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .wallet-banner > div {
    text-align: center !important;
  }
  .wallet-banner > div:last-child {
    border-top: 1px solid var(--card-border);
    padding-top: 1.5rem;
    width: 100%;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Google Translate Top Bar */
.top-bar {
  background: var(--bg-color);
  padding: 0 5%;
  height: 37px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
}

.top-bar-links {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: nowrap;
}

.top-bar-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.top-bar-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.top-bar-link.bn {
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.top-bar-link.bn:hover {
  border-bottom-color: var(--primary);
}

#google_translate_element {
  display: inline-block;
}

@media (max-width: 768px) {
  .top-bar {
    height: auto;
    padding: 10px 5%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    position: relative;
  }
  
  nav {
    top: 0;
    position: sticky;
  }

  .hero {
    margin-top: 20px;
  }

  .hide-mobile {
      display: none !important;
  }
}
