/* ==========================================================================
   KANVAST 2026 — LANDING PAGE & PUBLIC WEB MODULE
   Components: Navbar, Hero, Countdown, Bento About, Competitions, Timeline, Sponsors, Footer
   ========================================================================== */

/* ==========================================
   NAVBAR (HEADER)
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 28, 56, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--trans-normal);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.nav-brand-sub {
  font-size: 0.75rem;
  color: var(--brand-cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--trans-fast);
  cursor: pointer;
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2.5px;
  background: var(--brand-cyan);
  border-radius: 2px;
  opacity: 0;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              right 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
}

.nav-link.active::after {
  left: 0;
  right: 0;
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-only-auth {
  display: none;
}

@media (max-width: 992px) {
  .nav-actions {
    display: none !important;
  }

  .mobile-only-auth {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.5rem;
  }

  .mobile-only-auth .btn {
    width: 100%;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(6, 28, 56, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-160%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: center;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 480px) {
  .navbar-container { height: 68px; }
  .nav-links { top: 68px; }
  .nav-logo-img { height: 38px; }
  .nav-brand-title { font-size: 1.15rem; }
  .nav-brand-sub { font-size: 0.65rem; }
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
  z-index: 5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-glass-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-2xl);
  box-shadow: 0 24px 60px -10px rgba(6, 28, 56, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 40px rgba(0, 210, 255, 0.12);
  padding: 2.75rem 2.25rem;
  position: relative;
  z-index: 5;
}

.hero-wonder-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 248, 255, 0.9));
  border: 1.5px solid rgba(0, 210, 255, 0.45);
  box-shadow: 0 4px 18px rgba(0, 180, 216, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wonder-star-icon {
  font-size: 0.95rem;
  filter: drop-shadow(0 0 4px #ffb703);
  animation: starTwinkle 2.5s ease-in-out infinite alternate;
}

.wonder-pill-text {
  font-size: 0.82rem;
  font-weight: 800;
  color: #034078;
  letter-spacing: 0.4px;
}

.wonder-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes starTwinkle {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.2) rotate(12deg); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.18;
  color: var(--primary-navy);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

/* Crisp, High-Contrast Luminous Main Hero Title (Teks Tajam, Cerah & Bercahaya) */
.hero-title-main, #landing-hero-title {
  display: inline-block;
  color: #0077b6;
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.025em;
  -webkit-text-fill-color: initial;
  text-shadow: 
    0 0 14px rgba(0, 180, 216, 0.45),
    0 0 30px rgba(0, 210, 255, 0.35),
    0 0 48px rgba(56, 189, 248, 0.22);
  animation: heroTitleLuminousGlow 4s ease-in-out infinite alternate;
  will-change: text-shadow;
}

@keyframes heroTitleLuminousGlow {
  0% {
    text-shadow: 
      0 0 10px rgba(0, 180, 216, 0.4),
      0 0 22px rgba(0, 210, 255, 0.28);
  }
  50% {
    text-shadow: 
      0 0 16px rgba(0, 180, 216, 0.6),
      0 0 35px rgba(0, 210, 255, 0.42),
      0 0 52px rgba(56, 189, 248, 0.25);
  }
  100% {
    text-shadow: 
      0 0 10px rgba(0, 180, 216, 0.4),
      0 0 22px rgba(0, 210, 255, 0.28);
  }
}

.hero-title-sub, #landing-hero-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 0.48em;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary-navy);
  margin-top: 0.35rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

/* Countdown Card */
.countdown-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 210, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 10px 25px -4px rgba(0, 119, 182, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.countdown-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.countdown-box {
  background: linear-gradient(180deg, #061c38 0%, #03254c 100%);
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.3rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(6, 28, 56, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d2ff, transparent);
}

.countdown-num {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  color: #00d2ff;
  text-shadow: 0 0 12px rgba(0, 210, 255, 0.5);
}

.countdown-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 0.3rem;
  letter-spacing: 0.5px;
}

/* Mascot Graphic & Floating Badges */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}.hero-mascot-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  perspective: 1000px;
  image-rendering: auto;
}

/* Magical Radiant Aura behind the Mascot — Butter-smooth, zero pixelation / zero banding */
.mascot-magical-glow {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  max-width: 150%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, 
    rgba(56, 189, 248, 0.45) 0%, 
    rgba(14, 165, 233, 0.32) 18%, 
    rgba(192, 38, 211, 0.2) 38%, 
    rgba(217, 70, 239, 0.1) 56%, 
    rgba(251, 191, 36, 0.04) 70%, 
    transparent 85%
  );
  pointer-events: none;
  z-index: 1;
  animation: mascotAuraPulse 5.5s ease-in-out infinite alternate;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  image-rendering: auto;
}

@keyframes mascotAuraPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.82;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.88;
  }
}

.hero-mascot-wrapper::before {
  content: '';
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0, 210, 255, 0.25) 0%, rgba(168, 85, 247, 0.12) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-mascot-img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 14px 28px rgba(6, 28, 56, 0.35)) 
          drop-shadow(0 0 16px rgba(56, 189, 248, 0.45));
  transition: filter 0.4s ease, transform 0.4s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  image-rendering: auto;
}

.hero-mascot-img:hover {
  filter: drop-shadow(0 20px 40px rgba(6, 28, 56, 0.45)) 
          drop-shadow(0 0 24px rgba(56, 189, 248, 0.75));
  transform: scale(1.03);
}

/* ==========================================
   COMIC RETRO PIXEL SPEECH BUBBLES
   8-bit Comic Dialogues for Hero Mascot
   ========================================== */
.mascot-speech-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}

.comic-pixel-bubble {
  position: absolute;
  pointer-events: auto;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-pixel, 'Pixelify Sans', 'Silkscreen', monospace);
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.35;
  /* Authentic 8-bit stepped pixel border */
  border: 3px solid #000000;
  box-shadow: 
    -3px 0 0 0 #000000, 
    3px 0 0 0 #000000, 
    0 -3px 0 0 #000000, 
    0 3px 0 0 #000000, 
    0 10px 24px rgba(6, 28, 56, 0.35);
  border-radius: 4px;
  cursor: default;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  user-select: none;
  image-rendering: pixelated;
}

.comic-pixel-bubble:hover {
  transform: scale(1.06) !important;
  box-shadow: 
    -3px 0 0 0 #000000, 
    3px 0 0 0 #000000, 
    0 -3px 0 0 #000000, 
    0 3px 0 0 #000000, 
    0 12px 30px rgba(0, 210, 255, 0.5);
}

/* Bubble 1: "ayo ikut kanvast!" (Top Left) */
.comic-pixel-bubble.bubble-1 {
  top: 5%;
  left: -70px;
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
  text-transform: lowercase;
  white-space: nowrap;
  animation: comicFloat1 4.5s ease-in-out infinite alternate;
}

/* Bubble 1 Pixel Pointer Tail (pointing down-right toward mascot's head) */
.pixel-tail.tail-1 {
  position: absolute;
  bottom: -11px;
  right: 28px;
  width: 14px;
  height: 11px;
}
.pixel-tail.tail-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  background: #ffffff;
  border-right: 3px solid #000000;
  border-bottom: 3px solid #000000;
  box-shadow: 3px 3px 0 0 #000000;
}

/* Bubble 2: "masa kamu ga ikut kanvast sih, rugi dong" (Right Side with Star) */
.comic-pixel-bubble.bubble-2 {
  bottom: 22%;
  right: -95px;
  left: auto;
  padding: 0.75rem 1.15rem 0.75rem 2.25rem;
  font-size: 0.88rem;
  max-width: 285px;
  text-align: left;
  animation: comicFloat2 5.2s ease-in-out infinite alternate 0.3s;
}

/* Pixel Star Accent Icon in top-left */
.pixel-star-badge {
  position: absolute;
  top: -12px;
  left: 6px;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  animation: starTwinkle 2.5s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% { transform: scale(0.95) rotate(-2deg); }
  50% { transform: scale(1.12) rotate(4deg); }
  100% { transform: scale(0.98) rotate(-1deg); }
}

/* Bubble 2 Pixel Pointer Tail (pointing left towards mascot) */
.pixel-tail.tail-2 {
  position: absolute;
  top: 50%;
  left: -11px;
  right: auto;
  transform: translateY(-50%);
  width: 11px;
  height: 14px;
}
.pixel-tail.tail-2::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 9px;
  height: 9px;
  background: #ffffff;
  border-top: 3px solid #000000;
  border-left: 3px solid #000000;
  box-shadow: -3px -3px 0 0 #000000;
}

/* Floating Animations */
@keyframes comicFloat1 {
  0% { transform: translate3d(0, 0, 0) rotate(-1.5deg); }
  50% { transform: translate3d(-4px, -10px, 0) rotate(1deg); }
  100% { transform: translate3d(2px, -5px, 0) rotate(-0.5deg); }
}

@keyframes comicFloat2 {
  0% { transform: translate3d(0, 0, 0) rotate(1deg); }
  50% { transform: translate3d(5px, -12px, 0) rotate(-1deg); }
  100% { transform: translate3d(-3px, -6px, 0) rotate(1.2deg); }
}

.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
  box-shadow: 0 12px 30px -4px rgba(2, 18, 38, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(0, 210, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 3;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.hero-floating-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 36px -4px rgba(0, 180, 216, 0.3);
}

.hero-card-1 { top: 10%; left: -5%; }
.hero-card-2 { bottom: 12%; right: -5%; }

.floating-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.15);
}

.floating-text-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.floating-text-val {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-navy);
}

@media (max-width: 992px) {
  .hero-section { padding: 2.5rem 0 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-glass-panel { padding: 2.5rem 2rem; max-width: 680px; margin: 0 auto; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .countdown-card { margin: 0 auto; }
  .hero-mascot-wrapper { max-width: 340px; margin: 0 auto; }
  .hero-card-1 { left: 2%; }
  .hero-card-2 { right: 2%; }

  .comic-pixel-bubble.bubble-1 {
    top: 2%;
    left: -45px;
    font-size: 0.88rem;
    padding: 0.55rem 0.95rem;
  }
  .comic-pixel-bubble.bubble-2 {
    bottom: 15%;
    left: auto;
    right: -55px;
    max-width: 260px;
    font-size: 0.82rem;
    padding: 0.65rem 0.95rem 0.65rem 2rem;
  }
}

@media (max-width: 576px) {
  .hero-section { padding: 1.75rem 0 3rem; }
  .hero-glass-panel { padding: 2rem 1.25rem; border-radius: var(--radius-xl); width: 100%; }
  .hero-title { font-size: clamp(1.75rem, 6.8vw, 2.35rem); line-height: 1.25; margin-bottom: 1rem; }
  .hero-description { font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.75rem; }
  .hero-ctas { flex-direction: column; width: 100%; gap: 0.85rem; margin-bottom: 1.75rem; }
  .hero-ctas .btn { width: 100%; padding: 0.85rem 1.5rem; }
  .countdown-card { padding: 1.25rem 1rem; width: 100%; border-radius: var(--radius-md); }
  .countdown-title { font-size: 0.78rem; justify-content: center; margin-bottom: 0.85rem; }
  .countdown-grid { gap: 0.5rem; }
  .countdown-box { padding: 0.65rem 0.25rem; border-radius: var(--radius-sm); }
  .countdown-num { font-size: 1.35rem; }
  .countdown-label { font-size: 0.62rem; margin-top: 0.25rem; }
  /* Mascot wrapper with ample vertical clearance for dialogue bubbles */
  .hero-mascot-wrapper { 
    max-width: 245px; 
    margin: 2.75rem auto 3.75rem; 
  }
  .hero-card-1, .hero-card-2 { position: static; display: inline-flex; margin: 0.5rem 0.25rem 0; box-shadow: var(--shadow-sm); padding: 0.5rem 0.75rem; }
  .hero-visual { flex-direction: column; }

  /* Mobile Comic Bubble 1 (Above hat, zero mascot coverage, refined smaller size) */
  .comic-pixel-bubble.bubble-1 {
    top: -46px;
    left: -10px;
    font-size: 0.68rem;
    padding: 0.32rem 0.65rem;
    white-space: nowrap;
    border-width: 2px;
    box-shadow: 
      -2px 0 0 0 #000000, 
      2px 0 0 0 #000000, 
      0 -2px 0 0 #000000, 
      0 2px 0 0 #000000, 
      0 6px 16px rgba(6, 28, 56, 0.28);
    animation: comicFloatMobile1 4.5s ease-in-out infinite alternate;
  }
  .pixel-tail.tail-1 {
    bottom: -8px;
    right: 22px;
    width: 10px;
    height: 8px;
  }
  .pixel-tail.tail-1::before {
    width: 6px;
    height: 6px;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    box-shadow: 2px 2px 0 0 #000000;
  }

  /* Mobile Comic Bubble 2 (Below mascot feet, zero mascot coverage, refined smaller size) */
  .comic-pixel-bubble.bubble-2 {
    bottom: -52px;
    left: auto;
    right: -8px;
    max-width: 188px;
    font-size: 0.64rem;
    padding: 0.32rem 0.55rem 0.32rem 1.45rem;
    line-height: 1.26;
    border-width: 2px;
    box-shadow: 
      -2px 0 0 0 #000000, 
      2px 0 0 0 #000000, 
      0 -2px 0 0 #000000, 
      0 2px 0 0 #000000, 
      0 6px 16px rgba(6, 28, 56, 0.28);
    animation: comicFloatMobile2 5.2s ease-in-out infinite alternate 0.3s;
  }
  .pixel-star-badge {
    top: -8px;
    left: 3px;
    width: 16px;
    height: 16px;
  }
  .pixel-star-badge svg {
    width: 16px;
    height: 16px;
  }
  /* Tail pointing up-left toward mascot feet */
  .pixel-tail.tail-2 {
    top: -8px;
    bottom: auto;
    left: 22px;
    right: auto;
    transform: none;
    width: 10px;
    height: 8px;
  }
  .pixel-tail.tail-2::before {
    border-right: none;
    border-bottom: none;
    border-top: 2px solid #000000;
    border-left: 2px solid #000000;
    box-shadow: -2px -2px 0 0 #000000;
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 380px) {
  .hero-mascot-wrapper { 
    max-width: 225px; 
    margin: 2.4rem auto 3.4rem; 
  }
  .comic-pixel-bubble.bubble-1 {
    top: -42px;
    left: -4px;
    font-size: 0.62rem;
    padding: 0.28rem 0.55rem;
  }
  .comic-pixel-bubble.bubble-2 {
    bottom: -48px;
    left: auto;
    right: -4px;
    max-width: 170px;
    font-size: 0.59rem;
    padding: 0.28rem 0.45rem 0.28rem 1.35rem;
  }
  .pixel-star-badge {
    top: -7px;
    left: 2px;
    width: 14px;
    height: 14px;
  }
  .pixel-star-badge svg {
    width: 14px;
    height: 14px;
  }
}

@keyframes comicFloatMobile1 {
  0% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(-2px, -4px, 0) rotate(0.8deg); }
  100% { transform: translate3d(1px, -2px, 0) rotate(-0.5deg); }
}

@keyframes comicFloatMobile2 {
  0% { transform: translate3d(0, 0, 0) rotate(0.8deg); }
  50% { transform: translate3d(2px, -4px, 0) rotate(-0.8deg); }
  100% { transform: translate3d(-1px, -2px, 0) rotate(1deg); }
}

/* ==========================================
   ABOUT KANVAST — BENTO SHOWCASE
   ========================================== */
.about-section {
  position: relative;
  z-index: 10;
  padding: 3.5rem 0 2.5rem;
}

.about-scroll-container.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(3px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.about-scroll-container.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.about-bento-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-2xl);
  padding: 2.75rem 2.5rem;
  box-shadow: 0 24px 60px -10px rgba(6, 28, 56, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 35px rgba(0, 180, 216, 0.1);
  position: relative;
  overflow: hidden;
}

.about-bento-grid::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.about-narrative-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary-navy);
  margin-bottom: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-title-highlight {
  color: #0077b6;
  font-weight: 900;
}

.about-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
}

.about-subtext {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.about-quick-cta {
  margin-top: auto;
}

.about-bento-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.bento-tile {
  background: #ffffff;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.15rem;
  box-shadow: 0 4px 14px rgba(14, 30, 60, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  will-change: transform, box-shadow;
}

.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -4px rgba(0, 119, 182, 0.18);
  border-color: #38bdf8;
}

.bento-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.bento-icon-calendar { background: #e0f2fe; color: #0369a1; }
.bento-icon-location { background: #ffedd5; color: #c2410c; }
.bento-icon-audience { background: #ede9fe; color: #6d28d9; }
.bento-icon-trophy { background: #fef3c7; color: #b45309; }

.bento-tile-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bento-tile-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bento-tile-value {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
}

.bento-tile-sub {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

@media (max-width: 992px) {
  .about-bento-grid { grid-template-columns: 1fr; padding: 2.25rem 1.75rem; gap: 2rem; }
  .about-title { font-size: 2rem; }
}

@media (max-width: 576px) {
  .about-section { padding: 2rem 0 1.5rem; }
  .about-bento-grid { padding: 1.75rem 1.25rem; border-radius: var(--radius-xl); }
  .about-title { font-size: 1.65rem; }
  .about-lead { font-size: 0.95rem; }
  .about-subtext { font-size: 0.88rem; }
  .about-bento-tiles { grid-template-columns: 1fr; gap: 0.85rem; }
}

/* ==========================================
   COMPETITIONS SECTION & CARDS
   ========================================== */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header-glass {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px -8px rgba(6, 28, 56, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 30px rgba(0, 180, 216, 0.1);
  padding: 2.25rem 2rem;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: center;
  position: relative;
  z-index: 5;
}

@media (max-width: 576px) {
  .section-header { margin-bottom: 1.75rem; }
  .section-header-glass { padding: 1.5rem 1.15rem; margin-bottom: 1.75rem; border-radius: var(--radius-lg); }
  .section-header-glass .section-title { font-size: clamp(1.5rem, 6vw, 1.85rem); }
  .section-header-glass .section-subtitle { font-size: 0.9rem; }
  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 0.92rem; }
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0077b6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.25);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  color: #334155;
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 0.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 480px) {
  .filter-tabs { gap: 0.4rem; margin-bottom: 1.5rem; }
  .filter-tab-btn { padding: 0.45rem 0.9rem; font-size: 0.82rem; flex: 1 1 auto; text-align: center; }
}

.filter-tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: var(--surface-white);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--trans-fast);
  box-shadow: var(--shadow-sm);
}

.filter-tab-btn:hover {
  border-color: #0096c7;
  color: #0077b6;
  transform: translateY(-1px);
}

.filter-tab-btn.active {
  background: linear-gradient(135deg, #03254c 0%, #0052cc 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(3, 37, 76, 0.25);
}

/* Grid & Cards (Defined canonically in style.css) */

/* ==========================================
   TIMELINE, SPONSORS & FOOTER
   ========================================== */
.timeline-section {
  position: relative;
  z-index: 5;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.85rem 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 30px -6px rgba(2, 18, 38, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.timeline-card-1::before { background: #0077b6; }
.timeline-card-2::before { background: #d97706; }
.timeline-card-3::before { background: #059669; }
.timeline-card-4::before { background: #0284c7; }

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -8px rgba(0, 119, 182, 0.22);
  border-color: #38bdf8;
  background: #ffffff;
}

.timeline-phase-badge {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 0.5rem;
}

.timeline-card-1 .timeline-phase-badge { color: #0077b6; }
.timeline-card-2 .timeline-phase-badge { color: #d97706; }
.timeline-card-3 .timeline-phase-badge { color: #059669; }
.timeline-card-4 .timeline-phase-badge { color: #0284c7; }

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.timeline-date {
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline-meta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: auto;
}

.timeline-card-1 .timeline-meta { color: #0077b6; }
.timeline-card-2 .timeline-meta { color: #b45309; }
.timeline-card-3 .timeline-meta { color: #047857; }
.timeline-card-4 .timeline-meta { color: #0369a1; }

/* Sponsors Grid & Card Design (Matches Photo 2) */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
  justify-content: center;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .sponsors-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sponsor-card {
  background: #ffffff;
  border: 1.5px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  padding: 2.25rem 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px -6px rgba(2, 18, 38, 0.08), 0 4px 12px -2px rgba(2, 18, 38, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

.sponsor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 119, 182, 0.2), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  border-color: #38bdf8;
  background: #ffffff;
}

.sponsor-logo-wrap {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
}

.sponsor-logo-img {
  max-height: 68px;
  max-width: 135px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sponsor-card:hover .sponsor-logo-img {
  transform: scale(1.06);
}

.sponsor-name {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.3rem;
  line-height: 1.3;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sponsor-category {
  font-size: 0.86rem;
  font-weight: 500;
  color: #64748b;
  margin: 0;
  line-height: 1.2;
}

/* Backward compatibility for legacy logo box */
.sponsor-logo-box {
  background: #ffffff;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px -4px rgba(2, 18, 38, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.footer {
  background: rgba(3, 18, 38, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #94a3b8;
  padding: 4.5rem 0 2.25rem;
  border-top: 1px solid rgba(0, 180, 216, 0.2);
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a:hover {
  color: var(--brand-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Public Status Search Panel */
.search-glass-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 14px 34px -6px rgba(2, 18, 38, 0.16);
  margin-bottom: 2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   MOBILE HIGH-PERFORMANCE ACCELERATION (SILKY 60-120FPS ON ALL SMARTPHONES)
   Applied STRICTLY on Mobile Viewports (max-width: 768px).
   Desktop retains full rich glassmorphism blur and layered graphics!
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Eliminate heavy backdrop-filter blur on repetitive cards & panels (Saves ~70% GPU fillrate) */
  .comp-card,
  .about-bento-grid,
  .hero-glass-panel,
  .countdown-card,
  .timeline-card,
  .search-glass-panel,
  .hero-wonder-pill {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 6px 20px -2px rgba(6, 28, 56, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
  }

  /* 2. Free up GPU compositing layers (Eliminate layer thrashing on mobile) */
  .comp-card {
    will-change: auto !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  }

  /* 3. Simplify hero title keyframe glow to zero-overhead static shadow on mobile */
  .hero-title-main, 
  #landing-hero-title {
    animation: none !important;
    text-shadow: 0 0 12px rgba(0, 180, 216, 0.35) !important;
    will-change: auto !important;
  }

  /* 4. Single lightweight drop shadow on mascot instead of double layered drop-shadow */
  .hero-mascot-img {
    filter: drop-shadow(0 8px 18px rgba(6, 28, 56, 0.35)) !important;
  }

  /* 5. Static aura behind mascot (0% CPU, no pulse animation on mobile) */
  .mascot-magical-glow {
    animation: none !important;
    opacity: 0.85 !important;
    transform: translate(-50%, -50%) scale(1) !important;
  }

  /* 6. Mobile footer optimization */
  .footer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #031226 !important;
  }
}

