/* ========================================
   CSS Variables & Color Palette
   ======================================== */
:root {
  --primary-white: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.75);
  --text-dark: #1a1a1a;
  --text-outline: #000000;
  --accent-pink: #ffb6c1;
  --accent-blue: #87ceeb;
  --accent-purple: #dda0dd;
  --ticker-bg: #f5f5dc;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-full: 50px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ========================================
   CSS Reset
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}


/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* BUY NOW Button */
.btn-buy {
  background: var(--primary-white);
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
  border-radius: var(--radius-full);
  padding: var(--spacing-xs) var(--spacing-md);
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-buy:hover {
  background: var(--text-dark);
  color: var(--primary-white);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-buy:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Logo */
.logo {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  color: var(--primary-white);
  text-shadow: 
    2px 2px 0 var(--text-outline),
    -2px -2px 0 var(--text-outline),
    2px -2px 0 var(--text-outline),
    -2px 2px 0 var(--text-outline);
  letter-spacing: 2px;
}

/* Social Icons Container */
.social-icons {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

/* Social Icon Links */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-white);
  border-radius: 50%;
  color: var(--text-dark);
  text-decoration: none;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
}

.social-icon:hover {
  background: var(--text-dark);
  color: var(--primary-white);
  border-color: var(--primary-white);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-icon:hover svg {
  transform: scale(1.15);
}

.social-icon:active {
  transform: translateY(-2px) scale(1.05);
}

/* Specific social icon hover colors (optional enhancement) */
.social-icon.telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
}

.social-icon.twitter:hover {
  background: #000000;
  border-color: #000000;
}

.social-icon.tiktok:hover {
  background: #000000;
  border-color: #000000;
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #dc2743;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 35vh;
  padding-top: 100px; /* Account for fixed navbar */
  position: relative;
  z-index: 10;
}

/* 3D Pill Container */
.pill-3d-container {
  width: 100%;
  max-width: 500px;
  height: 300px;
  position: relative;
}

.pill-3d-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(3rem, 12vw, 8rem);
  color: var(--primary-white);
  text-align: center;
  letter-spacing: 0.1em;
  text-shadow: 
    4px 4px 0 var(--text-outline),
    -4px -4px 0 var(--text-outline),
    4px -4px 0 var(--text-outline),
    -4px 4px 0 var(--text-outline),
    4px 0 0 var(--text-outline),
    -4px 0 0 var(--text-outline),
    0 4px 0 var(--text-outline),
    0 -4px 0 var(--text-outline),
    6px 6px 10px rgba(0, 0, 0, 0.3);
  margin: 0;
  padding: var(--spacing-md);
  transition: transform var(--transition-normal),
              text-shadow var(--transition-normal);
  cursor: default;
}

.hero-title:hover {
  transform: scale(1.02);
  text-shadow: 
    4px 4px 0 var(--text-outline),
    -4px -4px 0 var(--text-outline),
    4px -4px 0 var(--text-outline),
    -4px 4px 0 var(--text-outline),
    4px 0 0 var(--text-outline),
    -4px 0 0 var(--text-outline),
    0 4px 0 var(--text-outline),
    0 -4px 0 var(--text-outline),
    8px 8px 15px rgba(0, 0, 0, 0.4);
}

/* ========================================
   Animated Background
   ======================================== */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

/* Base layer styling for all background layers */
.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Forest background layer with cartoon effect */
.bg-layer.mountains {
  background-image: url('../assets/images/forest-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Cartoon effect using CSS filters */
  filter: 
    saturate(1.4)
    contrast(1.1)
    brightness(1.05);
  animation: parallax 20s ease-in-out infinite, cartoon-pulse 8s ease-in-out infinite;
}

/* SVG filter for cartoon effect - applied via pseudo-element */
.bg-layer.mountains::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  background-size: inherit;
  background-position: inherit;
  /* Posterize effect for cartoon look */
  filter: url('#cartoon-filter');
  opacity: 0;
}

/* Clouds layer with floating animation */
.bg-layer.clouds {
  background: 
    radial-gradient(ellipse 120px 80px at 15% 20%, rgba(255, 255, 255, 0.8) 0%, transparent 70%),
    radial-gradient(ellipse 150px 90px at 35% 15%, rgba(255, 255, 255, 0.7) 0%, transparent 70%),
    radial-gradient(ellipse 100px 60px at 55% 25%, rgba(255, 255, 255, 0.75) 0%, transparent 70%),
    radial-gradient(ellipse 180px 100px at 75% 18%, rgba(255, 255, 255, 0.65) 0%, transparent 70%),
    radial-gradient(ellipse 130px 70px at 90% 22%, rgba(255, 255, 255, 0.7) 0%, transparent 70%),
    radial-gradient(ellipse 90px 50px at 25% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse 110px 65px at 65% 12%, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
  animation: float-clouds 15s ease-in-out infinite;
}

/* Gradient overlay for dreamy cartoon effect */
.bg-layer.gradient-overlay {
  background: linear-gradient(
    135deg,
    rgba(255, 182, 193, 0.25) 0%,
    rgba(135, 206, 235, 0.15) 25%,
    rgba(144, 238, 144, 0.2) 50%,
    rgba(173, 216, 230, 0.15) 75%,
    rgba(255, 218, 185, 0.2) 100%
  );
  background-size: 400% 400%;
  animation: gradient-shift 12s ease infinite;
  /* Soft vignette effect */
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.15);
}

/* Water shimmer effect for river animation */
.bg-layer.water-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(173, 216, 230, 0.15) 40%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(173, 216, 230, 0.15) 60%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: water-flow 4s linear infinite;
  /* Position at bottom where river is */
  clip-path: polygon(0% 55%, 100% 45%, 100% 100%, 0% 100%);
  opacity: 0.6;
}

/* ========================================
   Background Animations
   ======================================== */

/* Floating clouds animation */
@keyframes float-clouds {
  0%, 100% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(15px) translateY(-5px);
  }
  50% {
    transform: translateX(25px) translateY(0);
  }
  75% {
    transform: translateX(10px) translateY(5px);
  }
}

/* Gradient color shift animation */
@keyframes gradient-shift {
  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%;
  }
}

/* Parallax depth effect animation */
@keyframes parallax {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.03) translateY(-10px);
  }
}

/* Cartoon pulse animation - subtle breathing effect */
@keyframes cartoon-pulse {
  0%, 100% {
    filter: saturate(1.4) contrast(1.1) brightness(1.05);
  }
  50% {
    filter: saturate(1.5) contrast(1.15) brightness(1.1);
  }
}

/* Water flow animation for river effect */
@keyframes water-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Leaves rustling animation */
@keyframes leaves-rustle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(0.5deg) scale(1.005);
  }
  75% {
    transform: rotate(-0.5deg) scale(0.995);
  }
}


/* ========================================
   Content Grid
   ======================================== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* ========================================
   Card Base Styles (Glassmorphism)
   ======================================== */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 2px solid var(--text-dark);
  padding: var(--spacing-sm) var(--spacing-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-normal), 
              box-shadow var(--transition-normal),
              border-color var(--transition-normal),
              background var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--text-dark);
  background: rgba(255, 255, 255, 0.9);
}

.card-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 2px;
}

/* ========================================
   Community Card
   ======================================== */
.community-card {
  display: flex;
  flex-direction: column;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs);
  background: transparent;
  border-radius: var(--radius-sm);
  transition: background var(--transition-normal),
              transform var(--transition-normal);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateX(3px);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--text-dark);
  border-radius: 50%;
  color: var(--primary-white);
  transition: transform var(--transition-normal);
}

.stat-icon svg {
  width: 16px;
  height: 16px;
}

.stat-item:hover .stat-icon {
  transform: scale(1.05);
}

.stat-icon.solana-icon {
  background: linear-gradient(135deg, #9945FF, #14F195);
}

.stat-icon.tiktok-icon {
  background: #000000;
}

.stat-icon.community-icon {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
}

.stat-text {
  font-size: 0.8rem;
  color: var(--text-dark);
  line-height: 1.3;
}

/* X Icon */
.stat-icon.x-icon {
  background: #000000;
}

/* Stat Link (for clickable stat items) */
.stat-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none !important;
  color: inherit;
}

.stat-link .stat-text {
  text-decoration: none !important;
}

/* Override mobile column direction for stat-link */
.stat-item .stat-link {
  flex-direction: row !important;
}


/* ========================================
   Contract Address Card
   ======================================== */
.contract-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contract-box {
  width: 100%;
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--text-dark);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
  transition: background var(--transition-normal);
}

.contract-box:hover {
  background: rgba(255, 255, 255, 0.8);
}

.contract-address {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: var(--text-dark);
  word-break: break-all;
  display: block;
}

.btn-copy {
  background: var(--text-dark);
  color: var(--primary-white);
  border: 2px solid var(--text-dark);
  border-radius: var(--radius-full);
  padding: var(--spacing-xs) var(--spacing-md);
  font-family: 'Bangers', cursive;
  font-size: 0.9rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-copy:hover {
  background: var(--primary-white);
  color: var(--text-dark);
  transform: scale(1.05);
}

.btn-copy:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-copy.copied {
  background: #28a745;
  border-color: #28a745;
  color: var(--primary-white);
}

.btn-copy.copy-failed {
  background: #dc3545;
  border-color: #dc3545;
  color: var(--primary-white);
}


/* ========================================
   About Us Card
   ======================================== */
.about-card {
  display: flex;
  flex-direction: column;
}

.about-text {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.5;
  text-align: justify;
}


/* ========================================
   Responsive Design
   ======================================== */

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }
  
  /* Make about card span full width on tablet */
  .about-card {
    grid-column: span 2;
  }
  
  .navbar {
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* Mobile breakpoint - 768px */
@media (max-width: 768px) {
  /* Navigation Bar - Mobile */
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .btn-buy {
    order: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.85rem;
  }
  
  .logo {
    order: 0;
    width: 100%;
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
  }
  
  .social-icons {
    order: 2;
    gap: var(--spacing-xs);
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
  }
  
  .social-icon svg {
    width: 16px;
    height: 16px;
  }
  
  /* Hero Section - Mobile */
  .hero {
    min-height: 25vh;
    padding-top: 120px;
  }
  
  .pill-3d-container {
    max-width: 300px;
    height: 200px;
  }
  
  .hero-title {
    font-size: clamp(2rem, 10vw, 4rem);
    letter-spacing: 0.05em;
    text-shadow: 
      3px 3px 0 var(--text-outline),
      -3px -3px 0 var(--text-outline),
      3px -3px 0 var(--text-outline),
      -3px 3px 0 var(--text-outline),
      3px 0 0 var(--text-outline),
      -3px 0 0 var(--text-outline),
      0 3px 0 var(--text-outline),
      0 -3px 0 var(--text-outline),
      4px 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  /* Content Grid - Mobile (Stack Vertically) */
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
  }
  
  .about-card {
    grid-column: span 1;
  }
  
  /* Cards - Mobile */
  .card {
    padding: var(--spacing-md);
  }
  
  .card-title {
    font-size: 1.5rem;
  }
  
  /* Community Stats - Mobile */
  .stat-item {
    flex-direction: column;
    text-align: center;
  }
  
  .stat-text {
    font-size: 0.85rem;
  }
  
  /* Contract Address - Mobile */
  .contract-address {
    font-size: 0.75rem;
  }
  
  .btn-copy {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
  }
  
  /* About Section - Mobile */
  .about-text {
    font-size: 0.9rem;
    text-align: left;
  }
  
  /* Ticker Banner - Mobile */
  .ticker-content span {
    font-size: clamp(1rem, 3vw, 1.5rem);
    padding: 0 var(--spacing-md);
    letter-spacing: 2px;
  }
  
  /* Body padding for ticker */
  body {
    padding-bottom: 50px;
  }
}

/* Small Mobile breakpoint - 480px */
@media (max-width: 480px) {
  .navbar {
    padding: var(--spacing-xs);
  }
  
  .btn-buy {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
  }
  
  .social-icon svg {
    width: 14px;
    height: 14px;
  }
  
  .hero {
    padding-top: 110px;
  }
  
  .pill-3d-container {
    max-width: 250px;
    height: 180px;
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 9vw, 3rem);
  }
  
  .card {
    padding: var(--spacing-sm);
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  .stat-icon {
    width: 35px;
    height: 35px;
    min-width: 35px;
  }
  
  .stat-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .stat-text {
    font-size: 0.8rem;
  }
  
  .contract-address {
    font-size: 0.65rem;
  }
  
  .about-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

/* ========================================
   Ticker Banner
   ======================================== */
.ticker-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ticker-bg);
  border-top: 2px solid var(--text-dark);
  border-bottom: 2px solid var(--text-dark);
  overflow: hidden;
  padding: 4px 0;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: scroll-ticker 20s linear infinite;
}

.ticker-content span {
  font-family: 'Bangers', cursive;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-dark);
  letter-spacing: 3px;
  padding: 0 var(--spacing-lg);
  text-transform: uppercase;
}

/* Ticker scroll animation */
@keyframes scroll-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover for accessibility */
.ticker-banner:hover .ticker-content {
  animation-play-state: paused;
}

/* Add padding to body to account for fixed ticker */
body {
  padding-bottom: 40px;
}
