/* General resets and font styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0f0f0f; /* Dark background */
  color: #fff;              
  overflow-x: hidden;
  position: relative;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffaddd; /* Pink accent */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

#loading-screen p {
  font-weight: 600;
  color: #ffaddd;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Sticky, Animated Header */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #1a1a1a;
  z-index: 999;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: #2a2a2a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.6rem;
  cursor: default;
  color: #ffaddd;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
}

.nav-links li a.active {
  color: #ffaddd;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ffaddd;
  transition: width 0.3s, transform 0.3s;
  transform: translateX(-50%);
}

.nav-links li a:hover::after {
  width: 100%;
}

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

/* Hero Section (Index Page) */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  padding-top: 80px; /* So hero text doesn't hide behind navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Light Pink Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 173, 221, 0.1);
  z-index: 1;
}

/* Background image (no parallax/hover) */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-position: center center;
  background-size: cover;
  z-index: 0;
}

/* Hero Content */
.hero-content {
  z-index: 2;
  max-width: 600px;
  padding: 0 1rem;
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

/* 
   Add black outline to "Chilly Pig Token" (hero-title)
   and "The Coolest Crypto of the Season" (hero-subtitle)
*/
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffaddd;
  /* Outline via text-shadow for cross-browser support */
  text-shadow:
    -1px  0  #000,
     1px  0  #000,
     0   1px #000,
     0  -1px #000;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  min-height: 1.5em; /* space reserved for typed text */
  color: #fff;
  letter-spacing: 1px;
  /* Outline via text-shadow for cross-browser support */
  text-shadow:
    -1px  0  #000,
     1px  0  #000,
     0   1px #000,
     0  -1px #000;
}

.btn {
  background-color: #ffaddd;
  color: #111;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  background-color: #ff90cc;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(255,144,204, 0.5);
}

/* Keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features Section */
.features-section {
  max-width: 1000px;
  margin: 5rem auto;
  text-align: center;
  padding: 0 1rem;
}

.features-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ffaddd;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #1f1f1f;
  border-radius: 6px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.feature-card h3 {
  color: #ffaddd;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.feature-card p {
  line-height: 1.6;
}

/* Decorative Section with Images */
.decorative-section {
  max-width: 800px;
  margin: 5rem auto;
  text-align: center;
  padding: 0 1rem;
}

.decorative-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffaddd;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.images-grid {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.images-grid img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.images-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* DexScreener Section (Index) */
.dexscreener-section {
  max-width: 800px;
  margin: 5rem auto;
  padding: 0 1rem;
  text-align: center;
  transition: all 0.4s;
}

.dexscreener-section a {
  color: #ffaddd;
  text-decoration: none;
  font-weight: 600;
}

.dexscreener-section a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Contract Address Section */
.contract-section {
  max-width: 800px;
  margin: 5rem auto;
  text-align: center;
  padding: 0 1rem;
  transition: all 0.4s;
}

.contract-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffaddd;
}

.contract-box {
  border: 2px solid #ffaddd;
  border-radius: 8px;
  padding: 1rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* A distinct highlight style for the CA */
.highlight-ca {
  color: #00ffb3;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
}

/* Socials Section (Index) */
.socials-section {
  max-width: 800px;
  margin: 5rem auto;
  padding: 0 1rem;
  text-align: center;
  transition: all 0.4s;
}

/* Base styling for social buttons */
.socials-section .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background-color: #ffaddd;
  color: #111;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  margin: 0.5rem; /* spacing between social buttons */
}

.socials-section .social-link:hover {
  background-color: #ff90cc;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(255,144,204,0.5);
}

/* Twitter Button */
.twitter-link {
  background-color: #1da1f2; /* Twitter brand color */
  color: #fff !important;    
}
.twitter-link:hover {
  background-color: #0c7cbf; 
  box-shadow: 0 6px 12px rgba(29,161,242,0.5);
}

/* Telegram Button */
.telegram-link {
  background-color: #0088cc; /* Telegram brand blue */
  color: #fff !important;
}
.telegram-link:hover {
  background-color: #0077b5;
  box-shadow: 0 6px 12px rgba(0,136,204,0.5);
  transform: scale(1.05);
}

/* Footer (Index and Whitepaper) */
.footer {
  background-color: #1a1a1a;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  transition: all 0.4s;
}

/* Section Reveal Animation */
.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Whitepaper Page */
.whitepaper-hero {
  position: relative;
  width: 100%;
  height: 35vh;
  overflow: hidden;
  padding-top: 80px; 
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  margin-bottom: 2rem;
}

.lightpink-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 173, 221, 0.1);
  z-index: 1;
}

.whitepaper-hero-content {
  z-index: 2;
  color: #ffaddd;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.whitepaper-hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.whitepaper-hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.whitepaper-body {
  max-width: 900px;
  margin: 0 auto 4rem auto;
  padding: 0 1rem;
  line-height: 1.7;
}

.whitepaper-body h2 {
  font-size: 1.8rem;
  color: #ffaddd; 
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(255,173,221,0.4);
}

.whitepaper-body p,
.whitepaper-body li {
  margin-bottom: 1rem;
  text-align: justify;
}

.whitepaper-body li strong {
  color: #ffaddd;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    text-shadow:
      -1px  0  #000,
       1px  0  #000,
       0   1px #000,
       0  -1px #000;
  }
  .hero-subtitle {
    font-size: 1rem;
    text-shadow:
      -1px  0  #000,
       1px  0  #000,
       0   1px #000,
       0  -1px #000;
  }
  .nav-links {
    gap: 0.8rem;
  }
  .images-grid img {
    width: 150px;
    height: 150px;
  }
  .feature-card {
    padding: 1rem;
  }
  .whitepaper-hero-content h1 {
    font-size: 1.8rem;
  }
}
