/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Fredoka", sans-serif;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ===== BANNER ===== */
.banner-container {
  width: 100%;
  max-width: 100%;
  margin: 0 0 40px 0;
  border: 8px solid #000;
  box-shadow: 12px 12px 0 #000;
  overflow: hidden;
  animation: bannerSlide 1s ease-out;
}

@keyframes bannerSlide {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.1) brightness(1.05);
}

/* ===== CREATOR CREDIT ===== */
.creator-credit {
  margin: 30px 0;
  padding: 20px;
  border: 5px solid #000;
  background: #fff;
  box-shadow: 8px 8px 0 #000;
  animation: creditPop 0.8s ease-out;
}

@keyframes creditPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.creator-text {
  font-family: "Righteous", cursive;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0;
  text-align: center;
}

.creator-name {
  font-family: "Bangers", cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  -webkit-text-stroke: 3px #000;
  color: #fff;
  text-shadow: 5px 5px 0 #000;
  display: inline-block;
  animation: nameGlow 2s ease-in-out infinite;
}

@keyframes nameGlow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===== FLOATING SHAPES BACKGROUND ===== */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.circle {
  width: 100px;
  height: 100px;
  border: 5px solid #000;
  border-radius: 50%;
}

.square {
  width: 80px;
  height: 80px;
  border: 5px solid #000;
  transform: rotate(45deg);
}

.triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 87px solid #000;
}

.star {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid #000;
  position: relative;
}

.star::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-top: 70px solid #000;
  top: 30px;
  left: -40px;
}

.shape:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 15s;
}

.shape:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: -5s;
  animation-duration: 20s;
}

.shape:nth-child(3) {
  top: 30%;
  left: 70%;
  animation-delay: -10s;
  animation-duration: 18s;
}

.shape:nth-child(4) {
  top: 80%;
  left: 20%;
  animation-delay: -3s;
  animation-duration: 22s;
}

.shape:nth-child(5) {
  top: 50%;
  left: 50%;
  animation-delay: -8s;
  animation-duration: 17s;
}

.shape:nth-child(6) {
  top: 20%;
  left: 40%;
  animation-delay: -12s;
  animation-duration: 19s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, -50px) rotate(90deg);
  }
  50% {
    transform: translate(-30px, 30px) rotate(180deg);
  }
  75% {
    transform: translate(30px, 50px) rotate(270deg);
  }
}

/* ===== CONTAINER ===== */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  padding: 60px 20px;
  position: relative;
}

.comic-burst {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 120px;
  height: 120px;
  background: #fff;
  border: 5px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite, rotate 10s linear infinite;
  box-shadow: 0 0 0 10px #fff, 0 0 0 15px #000;
}

.burst-text {
  font-family: "Bangers", cursive;
  font-size: 2rem;
  font-weight: bold;
  transform: rotate(-15deg);
  animation: wiggle 0.5s infinite alternate;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

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

@keyframes wiggle {
  0% {
    transform: rotate(-15deg);
  }
  100% {
    transform: rotate(-10deg);
  }
}

/* ===== MAIN TITLE ===== */
.main-title {
  font-family: "Titan One", cursive;
  font-size: clamp(3rem, 10vw, 8rem);
  margin: 20px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title-word {
  display: inline-block;
  -webkit-text-stroke: 4px #000;
  color: #fff;
  text-shadow: 8px 8px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000,
    -2px 2px 0 #000, 2px 2px 0 #000;
  animation: bounce 1s ease-in-out infinite;
  animation-delay: calc(var(--delay) * 0.2s);
}

.title-word:nth-child(1) {
  --delay: 0;
}

.title-word:nth-child(2) {
  --delay: 1;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

/* ===== CHARACTER SECTION ===== */
.character-container {
  position: relative;
  margin: 60px auto;
  max-width: 500px;
}

.character-frame {
  position: relative;
  border: 8px solid #000;
  padding: 20px;
  background: #fff;
  box-shadow: 12px 12px 0 #000, inset 0 0 0 4px #fff;
  animation: frameFloat 3s ease-in-out infinite;
}

.character-img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.2) brightness(1.1);
  animation: imageWobble 4s ease-in-out infinite;
}

.frame-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 5px solid #000;
  background: #fff;
}

.frame-corner.tl {
  top: -15px;
  left: -15px;
  border-right: none;
  border-bottom: none;
}

.frame-corner.tr {
  top: -15px;
  right: -15px;
  border-left: none;
  border-bottom: none;
}

.frame-corner.bl {
  bottom: -15px;
  left: -15px;
  border-right: none;
  border-top: none;
}

.frame-corner.br {
  bottom: -15px;
  right: -15px;
  border-left: none;
  border-top: none;
}

@keyframes frameFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

@keyframes imageWobble {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.02) rotate(0.5deg);
  }
  75% {
    transform: scale(0.98) rotate(-0.5deg);
  }
}

/* ===== SPEECH BUBBLES ===== */
.speech-bubble {
  position: absolute;
  background: #fff;
  border: 4px solid #000;
  border-radius: 20px;
  padding: 15px 25px;
  font-family: "Bangers", cursive;
  font-size: 1.5rem;
  animation: bubblePop 3s ease-in-out infinite;
  box-shadow: 4px 4px 0 #000;
}

.speech-bubble::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 15px solid transparent;
}

.bubble-1 {
  top: -40px;
  left: -80px;
  animation-delay: 0s;
}

.bubble-1::before {
  bottom: -25px;
  right: 20px;
  border-top-color: #000;
  border-bottom: none;
}

.bubble-1::after {
  content: "";
  position: absolute;
  bottom: -18px;
  right: 24px;
  width: 0;
  height: 0;
  border: 11px solid transparent;
  border-top-color: #fff;
  border-bottom: none;
}

.bubble-2 {
  bottom: -40px;
  right: -100px;
  animation-delay: 1.5s;
}

.bubble-2::before {
  top: -25px;
  left: 20px;
  border-bottom-color: #000;
  border-top: none;
}

.bubble-2::after {
  content: "";
  position: absolute;
  top: -18px;
  left: 24px;
  width: 0;
  height: 0;
  border: 11px solid transparent;
  border-bottom-color: #fff;
  border-top: none;
}

@keyframes bubblePop {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* ===== SUBTITLE ===== */
.subtitle {
  font-family: "Righteous", cursive;
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subtitle-line {
  display: block;
}

.subtitle-line.highlight {
  -webkit-text-stroke: 2px #000;
  color: #fff;
  text-shadow: 3px 3px 0 #000;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ===== STORY SECTION ===== */
.story-section {
  margin: 50px 0;
  padding: 0;
}

.story-content {
  border: 6px solid #000;
  background: #fff;
  padding: 35px 30px;
  box-shadow: 10px 10px 0 #000;
  animation: storyPop 0.8s ease-out;
}

@keyframes storyPop {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  60% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.story-text {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.8;
  text-align: center;
  margin: 0;
  font-weight: 500;
}

.story-text strong {
  font-family: "Bangers", cursive;
  font-size: 1.2em;
  letter-spacing: 1px;
}

.story-text em {
  font-style: normal;
  font-family: "Righteous", cursive;
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ===== SOCIAL SECTION ===== */
.social-section {
  margin: 60px 0;
  padding: 40px 20px;
  border: 6px solid #000;
  background: #fff;
  box-shadow: 10px 10px 0 #000;
}

.social-title {
  font-family: "Bangers", cursive;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 25px 15px;
  border: 4px solid #000;
  background: #fff;
  text-decoration: none;
  color: #000;
  font-family: "Righteous", cursive;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 5px 5px 0 #000;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 #000;
}

.social-link:active {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 #000;
}

.social-link svg {
  width: 40px;
  height: 40px;
  stroke-width: 2;
}

.dex-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.social-link span {
  font-weight: 600;
}

/* ===== CA SECTION ===== */
.ca-section {
  margin: 60px 0;
  padding: 40px 20px;
  border: 6px solid #000;
  background: #fff;
  box-shadow: 10px 10px 0 #000;
}

.ca-title {
  font-family: "Bangers", cursive;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 25px;
  letter-spacing: 2px;
}

.ca-container {
  display: flex;
  gap: 15px;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.ca-input {
  flex: 1;
  min-width: 200px;
  padding: 18px 20px;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  border: 4px solid #000;
  background: #fff;
  color: #000;
  text-align: center;
  box-shadow: 5px 5px 0 #000;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 30px;
  font-family: "Bangers", cursive;
  font-size: 1.3rem;
  border: 4px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 5px 5px 0 #000;
  letter-spacing: 1px;
}

.copy-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #000;
}

.copy-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #000;
}

.copy-btn svg {
  width: 24px;
  height: 24px;
}

.copy-btn.copied {
  background: #000;
  color: #fff;
  animation: copySuccess 0.5s ease;
}

@keyframes copySuccess {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ===== CHART SECTION ===== */
.chart-section {
  margin: 80px 0;
  padding: 0;
}

.chart-title {
  font-family: "Bangers", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 3px;
  -webkit-text-stroke: 2px #000;
  color: #fff;
  text-shadow: 4px 4px 0 #000;
}

.chart-container {
  width: 100%;
  max-width: 100%;
  border: 8px solid #000;
  background: #000;
  box-shadow: 12px 12px 0 #000;
  overflow: hidden;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.dex-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== CONTENT SECTION ===== */
.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 80px 0;
}

.comic-panel {
  border: 6px solid #000;
  background: #fff;
  padding: 0;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slideIn 0.6s ease-out forwards;
  opacity: 0;
}

.comic-panel:nth-child(1) {
  animation-delay: 0.2s;
}

.comic-panel:nth-child(2) {
  animation-delay: 0.4s;
}

.comic-panel:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes slideIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.comic-panel:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 12px 12px 0 #000;
}

.panel-header {
  background: #000;
  color: #fff;
  padding: 15px;
  border-bottom: 6px solid #000;
}

.panel-header h2 {
  font-family: "Bangers", cursive;
  font-size: 2rem;
  letter-spacing: 2px;
}

.panel-content {
  padding: 30px;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comic-text {
  font-family: "Fredoka", sans-serif;
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: center;
  font-weight: 500;
}

/* ===== DOODLES ===== */
.doodle-star,
.doodle-heart,
.doodle-smile {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 3rem;
  animation: spin 4s linear infinite;
}

.doodle-star::before {
  content: "★";
}

.doodle-heart::before {
  content: "♥";
}

.doodle-smile::before {
  content: "☺";
}

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

/* ===== INTERACTIVE SECTION ===== */
.interactive {
  text-align: center;
  margin: 80px 0;
}

.action-buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cartoon-btn {
  font-family: "Bangers", cursive;
  font-size: 1.8rem;
  padding: 20px 40px;
  border: 5px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 6px 6px 0 #000;
}

.cartoon-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000;
}

.cartoon-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 #000;
}

.btn-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -200%;
  }
  100% {
    left: 200%;
  }
}

.message-box {
  border: 5px solid #000;
  background: #fff;
  padding: 30px;
  margin: 0 auto;
  max-width: 600px;
  box-shadow: 8px 8px 0 #000;
  animation: messageFloat 2s ease-in-out infinite;
}

#messageText {
  font-family: "Righteous", cursive;
  font-size: 1.5rem;
  margin: 0;
}

@keyframes messageFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 60px 20px 40px;
  border-top: 5px dashed #000;
  margin-top: 80px;
}

.footer-doodles {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  font-size: 2rem;
}

.footer-doodles .doodle {
  display: inline-block;
  animation: doodleBounce 1s ease-in-out infinite;
}

.footer-doodles .doodle:nth-child(1) {
  animation-delay: 0s;
}

.footer-doodles .doodle:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-doodles .doodle:nth-child(3) {
  animation-delay: 0.4s;
}

.footer-doodles .doodle:nth-child(4) {
  animation-delay: 0.6s;
}

.footer-doodles .doodle:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes doodleBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(10deg);
  }
}

.footer-text {
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
  margin: 10px 0;
  font-weight: 500;
}

.footer-year {
  font-family: "Bangers", cursive;
  font-size: 1.5rem;
  margin: 10px 0;
}

/* ===== CURSOR CANVAS ===== */
#cursorCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .banner-container {
    border-width: 5px;
    box-shadow: 6px 6px 0 #000;
  }

  .comic-burst {
    width: 80px;
    height: 80px;
    top: 10px;
    right: 10px;
  }

  .burst-text {
    font-size: 1.3rem;
  }

  .main-title {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

  .creator-credit {
    padding: 15px;
    border-width: 4px;
    box-shadow: 5px 5px 0 #000;
  }

  .speech-bubble {
    position: static;
    margin: 20px auto;
    display: block;
    width: fit-content;
    font-size: 1.2rem;
  }

  .speech-bubble::before,
  .speech-bubble::after {
    display: none;
  }

  .social-section,
  .ca-section {
    padding: 25px 15px;
    border-width: 4px;
    box-shadow: 6px 6px 0 #000;
  }

  .social-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .social-link {
    padding: 20px 10px;
    font-size: 0.9rem;
  }

  .social-link svg,
  .dex-icon {
    width: 32px;
    height: 32px;
  }

  .ca-container {
    flex-direction: column;
    gap: 15px;
  }

  .ca-input {
    width: 100%;
    font-size: 0.85rem;
    padding: 15px;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
    padding: 15px;
  }

  .chart-container {
    border-width: 5px;
    box-shadow: 6px 6px 0 #000;
    padding-bottom: 150%; /* Extra tall on mobile for maximum chart visibility */
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cartoon-btn {
    width: 100%;
    max-width: 300px;
  }

  .content {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .social-links {
    grid-template-columns: 1fr;
  }

  .main-title {
    gap: 5px;
  }

  .character-frame {
    border-width: 5px;
    padding: 15px;
    box-shadow: 8px 8px 0 #000;
  }
}
