/* ===== CSS Variables ===== */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.8);
}

/* ===== Base & Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  text-align: center;
  overflow-x: hidden;
  font-weight: 400;
  line-height: 1.6;
}

/* ===== Premium Background ===== */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255, 100, 150, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(100, 200, 255, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(255, 200, 100, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, 
      #1a0a2e 0%, 
      #16213e 25%, 
      #0f3460 50%, 
      #1a0a2e 75%,
      #16213e 100%);
  background-size: 100% 100%;
  animation: bgFlow 20s ease-in-out infinite;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 100, 150, 0.15) 0%,
    transparent 25%,
    rgba(100, 200, 255, 0.15) 50%,
    transparent 75%,
    rgba(255, 150, 100, 0.1) 100%);
  background-size: 400% 400%;
  animation: shimmer 25s ease infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes bgFlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, -2%) scale(1.02); }
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Navigation ===== */
.nav-glass {
  position: sticky;
  top: 0;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  animation: navSlideDown 0.8s var(--ease-out-expo) both;
}

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

.nav-glass a {
  margin: 0 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
}

.nav-glass a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b9d, #c44dff);
  transition: width 0.4s var(--ease-out-expo), left 0.4s var(--ease-out-expo);
}

.nav-glass a:hover {
  color: #ff9ecd;
}

.nav-glass a:hover::after {
  width: 100%;
  left: 0;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  animation: heroFadeIn 1.2s var(--ease-out-expo) 0.2s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hero-emoji {
  display: inline-block;
  animation: emojiFloat 4s var(--ease-in-out-circ) infinite;
}

.hero-emoji:last-child {
  animation-delay: 2s;
}

@keyframes emojiFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #ff6b9d 0%, #c44dff 50%, #6b8cff 100%);
  background-size: 200% 200%;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
  transition: 
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-quart),
    background-position 0.6s var(--ease-out-quart);
  animation: btnGlow 3s ease-in-out infinite;
}

.home-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(196, 77, 255, 0.5);
  background-position: 100% 0;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4); }
  50% { box-shadow: 0 6px 28px rgba(196, 77, 255, 0.5); }
}

/* ===== Section Cards ===== */
.section {
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  width: 90%;
  max-width: 700px;
  border-radius: 24px;
  animation: sectionReveal 0.8s var(--ease-out-expo) both;
}

.section:nth-of-type(1) { animation-delay: 0.3s; }
.section:nth-of-type(2) { animation-delay: 0.5s; }

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

.section-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.section-icon {
  font-size: 1.2em;
}

/* ===== Account Box ===== */
.donation-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.donation-methods-intro {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.donation-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.2rem 1rem;
  position: relative;
}

.donation-card-label {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.donation-card-title {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.donation-card-desc {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.donation-link-btn {
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
}

.account-info {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.account-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
}

.account-number strong {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.copy-btn {
  position: relative;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copy-btn.copied {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: transparent;
}

.copy-btn .copy-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s var(--ease-out-expo);
}

.copy-btn.copied .copy-text {
  opacity: 0;
  transform: scale(0.8);
}

.copy-btn.copied .copy-check {
  opacity: 1;
  transform: scale(1);
}

/* ===== Amount Box ===== */
.amount-box {
  padding: 1.5rem 0;
}

.amount {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: amountPulse 2s var(--ease-in-out-circ) infinite;
}

@keyframes amountPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b9d, #c44dff);
  border-radius: 100px;
  width: 0%;
  transition: width 1.5s var(--ease-out-expo);
}

.goal {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
}

/* ===== Reason Section - 강조 섹션 ===== */
.reason-section {
  margin: 6rem auto;
  max-width: 900px;
  padding: 4rem 2rem;
}

.reason-headline {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 180, 220, 0.9) 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 4s ease-in-out infinite;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.reason-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0 0 3rem;
}

.reason-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.reason-highlight {
  position: relative;
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.6s var(--ease-out-expo);
}

.reason-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b9d, #c44dff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
}

.reason-highlight.show::before {
  transform: scaleX(1);
}

.reason-highlight:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 107, 157, 0.3);
}


.highlight-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 107, 157, 0.9);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  animation: labelPulse 2s var(--ease-in-out-circ) infinite;
}

.reason-highlight--secondary .highlight-label {
  color: rgba(196, 77, 255, 0.9);
}

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

.highlight-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #fff;
}

.reason-highlight--primary .highlight-title {
  color: #ffb8d4;
}

.reason-highlight--secondary .highlight-title {
  color: #c9a0ff;
}

.highlight-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

.reason-cta {
  text-align: center;
}

.reason-cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: inherit;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, #ff6b9d 0%, #c44dff 100%);
  border: none;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.4);
  cursor: pointer;
  transition: all 0.5s var(--ease-out-expo);
  animation: ctaGlow 3s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.reason-cta-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

.reason-cta-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.reason-cta-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(196, 77, 255, 0.5);
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 8px 30px rgba(255, 107, 157, 0.4); }
  50% { box-shadow: 0 8px 35px rgba(196, 77, 255, 0.5); }
}

/* ===== Fade-up Animation ===== */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: 
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo),
    filter 0.9s var(--ease-out-expo);
  will-change: opacity, transform;
}

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

.fade-up[data-delay="0"].show { transition-delay: 0s; }
.fade-up[data-delay="1"].show { transition-delay: 0.1s; }
.fade-up[data-delay="2"].show { transition-delay: 0.2s; }
.fade-up[data-delay="3"].show { transition-delay: 0.3s; }
.fade-up[data-delay="4"].show { transition-delay: 0.4s; }
.fade-up[data-delay="5"].show { transition-delay: 0.5s; }
.fade-up[data-delay="6"].show { transition-delay: 0.65s; }

/* ===== Contact Section ===== */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.contact-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .donation-methods {
    grid-template-columns: 1fr;
  }
}

/* ===== Scroll-triggered animations ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
