/* ==============================
   CurieOriginals – v3 Ultra Modern
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-deep: #080808;
  --bg-surface: #0d0d0d;
  --accent: #E50914;
  --accent-glow: rgba(229, 9, 20, 0.5);
  --accent-subtle: rgba(229, 9, 20, 0.07);
  --text-primary: #f0f0f0;
  --text-secondary: #8a8a8a;
  --text-muted: #444;
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  /* Gradient: lighter top → darker bottom */
  background: linear-gradient(180deg, #111 0%, #0a0a0a 35%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

/* ================================
   ANIMATED DOT GRID BACKGROUND
   ================================ */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 20%, transparent 70%);
}

/* Subtle horizontal scan line animation */
.grid-bg::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 200%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(229, 9, 20, 0.015) 50%,
    transparent 100%
  );
  animation: gridScan 12s linear infinite;
}

@keyframes gridScan {
  0% { transform: translateY(-25%); }
  100% { transform: translateY(25%); }
}

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

/* ================================
   EASTER EGG
   ================================ */
.easter-egg {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease-out-expo);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.easter-egg:hover {
  background: rgba(229, 9, 20, 0.1);
  border-color: rgba(229, 9, 20, 0.25);
  transform: rotate(20deg) scale(1.1);
}

.easter-egg svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  transition: fill 0.3s;
}

.easter-egg:hover svg { fill: var(--accent); }

.speech-bubble {
  position: fixed;
  top: 64px;
  right: 20px;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.4rem;
  letter-spacing: 2px;
  padding: 7px 20px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(-10px) scale(0.7);
  pointer-events: none;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 8px 25px rgba(229,9,20,0.35);
}

.speech-bubble::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 14px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--accent);
}

.speech-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ================================
   HERO
   ================================ */
.hero {
  text-align: center;
  padding: 60px 0 50px;
}

.hero .reveal { animation: revealUp 0.9s var(--ease-out-expo) both; }
.hero .reveal-d1 { animation-delay: 0.1s; }
.hero .reveal-d2 { animation-delay: 0.25s; }
.hero .reveal-d3 { animation-delay: 0.4s; }

.avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(229,9,20,0.08), 0 0 30px rgba(229,9,20,0.15);
  transition: all 0.5s var(--ease-out-expo);
}

.avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 8px rgba(229,9,20,0.12), 0 0 50px rgba(229,9,20,0.2);
}

/* Rotating dashed ring */
.avatar-orbit {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(229,9,20,0.12);
  animation: orbitSpin 25s linear infinite;
}

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

.hero-name {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.6rem, 7vw, 4rem);
  letter-spacing: 5px;
  line-height: 1;
}

.hero-name span {
  color: var(--accent);
}

.hero-tagline {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ================================
   DIVIDER LINE
   ================================ */
.divider {
  width: 50px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 50px;
  opacity: 0.5;
  box-shadow: 0 0 8px rgba(229,9,20,0.3);
}

/* ================================
   SECTIONS – Scroll Reveal
   ================================ */
.section {
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out-expo);
}

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

/* ================================
   SECTION TITLES
   ================================ */
.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ================================
   ABOUT
   ================================ */
.about-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.85;
  font-weight: 300;
}

.about-note {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--accent-subtle);
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 400;
}

.about-note strong {
  color: var(--text-primary);
}

/* ================================
   DONATION CARDS – 3D Tilt + Glow
   ================================ */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.donation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 38px 16px 34px;
  min-height: 210px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.4s;
  will-change: transform;
}

/* Cursor-following radial highlight */
.donation-card .card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  /* JS sets the background via --glow-x, --glow-y */
  background: radial-gradient(
    300px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(229, 9, 20, 0.08),
    transparent 60%
  );
}

.donation-card:hover .card-glow {
  opacity: 1;
}

/* Top edge highlight */
.donation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: all 0.5s var(--ease-out-expo);
}

.donation-card:hover::before {
  left: 10%;
  right: 10%;
  background: linear-gradient(90deg, transparent, rgba(229,9,20,0.25), transparent);
}

/* Bottom accent line */
.donation-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.5s var(--ease-out-expo);
  border-radius: 2px;
}

.donation-card:hover::after {
  width: 40%;
  box-shadow: 0 0 12px rgba(229,9,20,0.4);
}

.donation-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.donation-card-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: all 0.5s var(--ease-spring);
  filter: brightness(0.9);
}

.donation-card:hover .donation-card-icon {
  transform: translateZ(20px) scale(1.12);
  filter: brightness(1.1);
}

.donation-card-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: transform 0.5s var(--ease-spring);
}

.donation-card:hover .donation-card-text {
  transform: translateZ(15px);
}

.donation-card-label {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.donation-card-sublabel {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* --- Inactive --- */
.donation-card.inactive {
  opacity: 0.25;
  pointer-events: none;
  filter: grayscale(1) brightness(0.7);
}

.donation-card.inactive::after { display: none; }

.coming-soon-badge {
  position: absolute;
  top: 11px;
  right: 11px;
  font-family: 'Bebas Neue', cursive;
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.04);
}

/* ================================
   BANNER – MY WORK
   ================================ */
.banner-link {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease-out-expo);
}

.banner-link:hover {
  border-color: rgba(229,9,20,0.2);
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(229,9,20,0.08);
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.6s var(--ease-out-expo);
}

.banner-link:hover .banner-img {
  filter: brightness(1.05) saturate(1.1);
  transform: scale(1.03);
}

/* ================================
   FOOTER
   ================================ */
.footer {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-text .heart {
  color: var(--accent);
  display: inline-block;
  animation: heartPulse 2s ease-in-out infinite;
}

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

/* ================================
   ANIMATIONS
   ================================ */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 680px) {
  .container {
    padding: 24px 16px 50px;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .avatar {
    width: 90px;
    height: 90px;
  }

  .avatar-orbit {
    inset: -10px;
  }

  .hero-name {
    letter-spacing: 3px;
  }

  .donation-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .donation-card {
    flex-direction: row;
    padding: 20px 22px;
    gap: 16px;
    justify-content: flex-start;
    min-height: unset;
  }

  .donation-card-icon {
    width: 40px;
    height: 40px;
  }

  .donation-card-text {
    align-items: flex-start;
  }

  .easter-egg {
    top: 14px;
    right: 14px;
  }

  .speech-bubble {
    top: 56px;
    right: 14px;
  }

  .divider {
    margin-bottom: 36px;
  }
}

@media (max-width: 360px) {
  .hero-name { font-size: 2.2rem; }
  .section-title { font-size: 1.25rem; }
}
