/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  height: 100%;
  position: fixed !important;
  width: 100% !important;
  top: 0 !important;
  left: 0 !important;
}

body {
  font-family: 'Sour Gummy';
  background-color: #f0846e;
  color: white;
  padding-top: 60px; /* adjust to match your navbar height */
  position: absolute !important;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
}

h1 {
  font-family: 'Sour Gummy', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Sour Gummy', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

p {
  font-family: 'Sour Gummy', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Navigation Header */
.navbar {
  height: 60px !important;
  padding: 0 20px 0 200px;
  display: flex;
  align-items: center;
  justify-content: right;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background-color: #f0846e !important;
  z-index: 999 !important;
  min-height: 60px !important;
  max-height: 60px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  will-change: auto !important;
  contain: layout style paint !important;
}

.ticker-logo {
  position: fixed;     /* locks it to the viewport */
  top: 2px;           /* distance from top of screen */
  left: 20px;          /* distance from left of screen */
  z-index: 1000;       /* ensures it's on top of other elements */
}

.ticker-logo img {
  height: 55px;        /* fine-tuned for optimal desktop proportions */
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1rem;
    font-family: 'Sour Gummy';
}

.nav-links li a:hover {
  color: #ffd83a;
}

/* Hero Section */
.hero {
  /* Fallback gradient while background image loads */
  background: linear-gradient(135deg, #000000 0%, #0d1421 25%, #1e3a8a 50%, #1e40af 75%, #000000 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease-in-out infinite;
  
  /* Use optimized background image that loads much faster */
  background-image: url('IMAGES/Rug Pool_BANNER WIDTH_NO TEXT_optimized.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: scroll; /* Better mobile performance */
  
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 4rem;
  
  /* Performance optimizations */
  will-change: auto;
  transform: translateZ(0); /* Force hardware acceleration */
}

/* Gradient animation keyframes */
@keyframes gradientShift {
  0%, 100% { background-position: 25% 50%; }
  50% { background-position: 75% 50%; }
}

/* Mobile-specific subtle gradient animation */
@keyframes gradientShiftMobile {
  0%, 100% { background-position: 40% 50%; }
  50% { background-position: 60% 50%; }
}

/* Mobile optimization - still load background but optimize for mobile */
@media (max-width: 768px) {
  .hero {
    /* Keep the background on mobile but optimize settings */
    background-attachment: scroll; /* Better mobile performance */
    background-size: cover;
    height: 70vh; /* Slightly shorter on mobile */
    /* Use more subtle animation on mobile to keep characters centered */
    animation: gradientShiftMobile 8s ease-in-out infinite;
  }
}

/* Tablet optimization - smaller background if available */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    /* Could use a smaller version here if we create one */
    background-size: cover;
  }
}

.hero-text-logo img {
  width: 100%;           /* makes image fill the container */
  max-width: 1200px;       /* prevents overflow */
  height: auto;          /* keeps aspect ratio */
  padding: 0 5vw;       /* horizontal buffer on left and right */
  box-sizing: border-box; /* ensures padding doesn't break the layout */
}

.hero-content h1 {
  font-size: 8rem;
  letter-spacing: 10px;
}
.hero-content p {
  font-size: 1rem;
  margin-top: 1rem;
}

/* Buy Section */
.buy-section {
  background-color: #0a1242;
  padding: 2rem 2rem;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.buy-text-logo img {
  width: 100px;
  max-width: 100px;
  height: auto;
  box-sizing: border-box;
  display: block;
  margin: 1rem auto; 
}

/* Other Section */
.other-section {
  padding-top: 2rem;
  padding-left: 50rem;
  padding-right: 50rem;
  text-align: center;
  justify-content: center;
  align-items: center;
}

/* RUGenomics Section Styles */
.rugenomics-section {
  background: linear-gradient(135deg, rgba(240, 132, 110, 0.1), rgba(10, 18, 66, 0.1));
  border-radius: 20px;
  margin: 2rem 0;
  padding: 3rem 2rem;
}

.rugenomics-subtitle {
  font-size: 1.2rem;
  color: #f0846e;
  margin-top: 0.5rem;
  font-weight: 600;
  font-family: 'Sour Gummy', sans-serif;
}

.tokenomics-flow {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.flow-step {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(240, 132, 110, 0.3);
  border-radius: 15px;
  padding: 2rem;
  margin: 1.5rem 0;
  text-align: center;
  transition: all 0.3s ease;
}

.flow-step:hover {
  transform: translateY(-5px);
  border-color: #f0846e;
  box-shadow: 0 10px 30px rgba(240, 132, 110, 0.2);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.flow-step h3 {
  color: #f0846e;
  font-family: 'Sour Gummy', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.flow-step p {
  color: white;
  font-family: 'Sour Gummy', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.flow-arrow {
  text-align: center;
  font-size: 2rem;
  color: #f0846e;
  margin: 1rem 0;
  font-weight: bold;
}

.flow-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.split-path {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(240, 132, 110, 0.4);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.split-path:hover {
  transform: translateY(-3px);
  border-color: #f0846e;
  background: rgba(240, 132, 110, 0.1);
}

.split-path .step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.split-path h3 {
  color: #f0846e;
  font-family: 'Sour Gummy', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.split-path p {
  color: white;
  font-family: 'Sour Gummy', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.benefit-card {
  background: rgba(10, 18, 66, 0.3);
  border: 1px solid rgba(240, 132, 110, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: #f0846e;
  transform: scale(1.02);
  background: rgba(240, 132, 110, 0.1);
}

.benefit-card h4 {
  color: #f0846e;
  font-family: 'Sour Gummy', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  color: white;
  font-family: 'Sour Gummy', sans-serif;
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

/* RUGenomics Title Visibility Fix */
.rugenomics-section h1 {
  color: #f0846e !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.other-info-title h1 {
  color: #f0846e !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Contract Address Styling */
.contract-address {
  color: white;
  font-family: 'Sour Gummy', sans-serif;
  font-weight: 500;
  word-break: break-all;
  white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .navbar {
    height: 70px !important;
    padding: 5px 15px !important;
    flex-direction: column !important;
    justify-content: space-evenly !important;
    align-items: center !important;
    gap: 4px !important;
    overflow: hidden !important;
    min-height: 70px !important;
    max-height: 70px !important;
    transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
    box-sizing: border-box !important;
    position: fixed !important;
    top: 0 !important;
    will-change: transform !important;
    contain: strict !important;
    isolation: isolate !important;
    pointer-events: auto !important;
  }
  
  .ticker-logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 10px !important;
    height: 35px !important;
    flex-shrink: 0 !important;
    max-height: 35px !important;
    min-height: 35px !important;
  }
  
  .ticker-logo img {
    height: 45px !important;        /* increased from 36px */
    max-height: 45px !important;
    min-height: 45px !important;
    flex-shrink: 0 !important;
    width: auto !important;
  }
  
  .contract-address {
    font-size: 0.7em !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    display: block !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important;
    line-height: 1.2 !important;
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
  }
  
  .nav-links {
    gap: 12px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    height: 25px !important;
    max-height: 25px !important;
    min-height: 25px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .nav-links li a {
    font-size: 11px !important;
    padding: 3px 6px !important;
    border-radius: 3px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .other-section {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  
  /* RUGenomics Mobile Styles */
  .rugenomics-section {
    padding: 2rem 1rem !important;
    margin: 1rem 0 !important;
  }
  
  .flow-split {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .flow-step {
    padding: 1.5rem !important;
    margin: 1rem 0 !important;
  }
  
  .flow-step h3 {
    font-size: 1.3rem !important;
  }
  
  .flow-step p {
    font-size: 1rem !important;
  }
  
  .split-path {
    padding: 1.5rem !important;
  }
  
  .split-path h3 {
    font-size: 1.2rem !important;
  }
  
  body {
    padding-top: 75px !important;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 65px !important;
    padding: 4px 10px !important;
    gap: 3px !important;
    min-height: 65px !important;
    max-height: 65px !important;
    justify-content: space-evenly !important;
    contain: strict !important;
    transform: translate3d(0, 0, 0) !important;
    isolation: isolate !important;
    pointer-events: auto !important;
  }
  
  .ticker-logo {
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    height: 32px !important;
    max-height: 32px !important;
    min-height: 32px !important;
  }
  
  .ticker-logo img {
    height: 42px !important;        /* increased from 34px */
    max-height: 42px !important;
    min-height: 42px !important;
  }
  
  .contract-address {
    font-size: 0.55em !important;
    padding: 2px 5px !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    line-height: 14px !important;
    margin-top: 5px !important;
    display: block !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important;
  }
  
  .nav-links {
    gap: 8px !important;
    height: 22px !important;
    max-height: 22px !important;
    min-height: 22px !important;
  }
  
  .nav-links li a {
    font-size: 10px !important;
    padding: 2px 4px !important;
    height: 16px !important;
  }
  
  body {
    padding-top: 70px !important;
  }
  
  /* RUGenomics Mobile Styles for Small Screens */
  .rugenomics-section {
    padding: 1.5rem 0.5rem !important;
    margin: 0.5rem 0 !important;
  }
  
  .rugenomics-subtitle {
    font-size: 1rem !important;
  }
  
  .flow-step {
    padding: 1rem !important;
    margin: 0.5rem 0 !important;
  }
  
  .step-icon {
    font-size: 2rem !important;
  }
  
  .flow-step h3 {
    font-size: 1.1rem !important;
  }
  
  .flow-step p {
    font-size: 0.9rem !important;
  }
  
  .split-path {
    padding: 1rem !important;
  }
  
  .split-path .step-icon {
    font-size: 2rem !important;
  }
  
  .split-path h3 {
    font-size: 1rem !important;
  }
  
  .split-path p {
    font-size: 0.85rem !important;
  }
  
  .benefit-card {
    padding: 1rem !important;
  }
  
  .benefit-card h4 {
    font-size: 1rem !important;
  }
  
  .benefit-card p {
    font-size: 0.8rem !important;
  }
}

