/* ============================================
   Franz Lam Fan Page — Dark Asian Theme
   ============================================ */

:root {
  --color-bg: #0a0a0f;
  --color-bg-alt: #0f0f18;
  --color-bg-card: #141420;
  --color-bg-card-hover: #1a1a2e;
  --color-text: #e8e4df;
  --color-text-muted: #8a8490;
  --color-accent: #c9302c;
  --color-accent-light: #e84142;
  --color-gold: #d4a853;
  --color-gold-light: #f0cc71;
  --color-teal: #2ec4b6;
  --color-cherry: #ff6b8a;
  --color-ink: rgba(255, 255, 255, 0.03);
  --font-display: 'Noto Serif JP', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --border: 1px solid rgba(255, 255, 255, 0.06);
  --glow-red: 0 0 40px rgba(201, 48, 44, 0.15);
  --glow-gold: 0 0 40px rgba(212, 168, 83, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Falling Bonsais
   ============================================ */
#falling-bonsais {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.bonsai-fall {
  position: absolute;
  top: -60px;
  font-size: 1.8rem;
  animation: bonsaiFall linear forwards;
  filter: drop-shadow(0 0 8px rgba(212, 168, 83, 0.2));
  will-change: transform;
}

@keyframes bonsaiFall {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.8;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(calc(100vh + 80px)) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

/* ============================================
   Ink Splatters
   ============================================ */
.ink-splatter {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ink-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(201, 48, 44, 0.06) 0%, transparent 70%);
}

.ink-2 {
  width: 500px;
  height: 500px;
  bottom: 20%;
  left: -150px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.04) 0%, transparent 70%);
}

.ink-3 {
  width: 400px;
  height: 400px;
  top: 50%;
  right: -100px;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.04) 0%, transparent 70%);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 48, 44, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(212, 168, 83, 0.05) 0%, transparent 50%),
    var(--color-bg);
}

.hero-torii {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  color: var(--color-accent);
  opacity: 0.08;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
}

.hero-kanji {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 48, 44, 0.12);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* Photo */
.hero-photo-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 32px;
  z-index: 1;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  box-shadow: var(--glow-red), 0 0 0 8px rgba(201, 48, 44, 0.08);
  position: relative;
  z-index: 1;
}

.photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 83, 0.2);
  animation: ringRotate 15s linear infinite;
}

.photo-ring::before {
  content: '•';
  position: absolute;
  top: -4px;
  left: 50%;
  color: var(--color-gold);
  font-size: 10px;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
  color: var(--color-text);
}

.title-line.accent {
  color: var(--color-accent);
  position: relative;
  text-shadow: 0 0 60px rgba(201, 48, 44, 0.3);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--glow-red);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(201, 48, 44, 0.3);
}

.btn-japanese {
  font-family: var(--font-display);
  font-size: 1rem;
  opacity: 0.7;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; height: 60px; }
  50% { opacity: 0.3; height: 40px; }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-kanji {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
  opacity: 0.4;
  display: block;
  margin-bottom: 12px;
  letter-spacing: 8px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-text);
}

.section-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
  margin: 20px auto 0;
}

/* ============================================
   About Cards
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--color-bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 32px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
  transform: translateY(-6px);
  background: var(--color-bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}

.card-accent.accent-gold {
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
}

.card-accent.accent-teal {
  background: linear-gradient(to right, transparent, var(--color-teal), transparent);
}

.about-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.about-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================================
   Hobby Sections
   ============================================ */
.hobby-section {
  background: var(--color-bg-alt);
}

.hobby-section:nth-child(even) {
  background: var(--color-bg);
}

.hobby-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.hobby-hero.reverse {
  grid-template-columns: 1.4fr 1fr;
  direction: rtl;
}

.hobby-hero.reverse > * {
  direction: ltr;
}

.hobby-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.zen-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(201, 48, 44, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(201, 48, 44, 0.05) 0%, transparent 70%);
}

.bonsai-circle {
  border-color: rgba(212, 168, 83, 0.2);
  background: radial-gradient(circle, rgba(212, 168, 83, 0.05) 0%, transparent 70%);
}

.zen-emoji {
  font-size: 5rem;
  animation: gentleBreathe 4s ease-in-out infinite;
}

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

/* Ripples for fishing */
.ripple {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(46, 196, 182, 0.15);
  animation: rippleOut 3s ease-out infinite;
}

.ripple-2 { animation-delay: -1s; }
.ripple-3 { animation-delay: -2s; }

@keyframes rippleOut {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

/* Leaves for bonsai */
.leaf {
  position: absolute;
  font-size: 1.5rem;
  animation: leafDrift 6s ease-in-out infinite;
}

.leaf-1 { top: 10%; right: 10%; animation-delay: 0s; }
.leaf-2 { bottom: 15%; left: 10%; animation-delay: -2s; }
.leaf-3 { top: 60%; right: 5%; animation-delay: -4s; }

@keyframes leafDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  50% { transform: translate(-10px, -20px) rotate(15deg); opacity: 0.9; }
}

.hobby-kanji {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-accent);
  opacity: 0.1;
  position: absolute;
  top: -20px;
  right: 0;
}

.hobby-number {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-gold);
  opacity: 0.5;
  letter-spacing: 4px;
  display: block;
  margin-bottom: 8px;
}

.hobby-content {
  position: relative;
}

.hobby-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hobby-content p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 28px;
}

.fun-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 20px;
  border-radius: var(--radius);
  border-left: 2px solid var(--color-accent);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.fact:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(6px);
  border-left-color: var(--color-gold);
}

.fact-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ============================================
   Quote Section
   ============================================ */
.quote-section {
  background: var(--color-bg);
  padding: 100px 0;
  border-top: var(--border);
  border-bottom: var(--border);
}

.quote-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.quote-vertical-text {
  font-family: var(--font-display);
  font-size: 2rem;
  writing-mode: vertical-rl;
  color: var(--color-accent);
  opacity: 0.15;
  letter-spacing: 8px;
  flex-shrink: 0;
}

.big-quote {
  position: relative;
  text-align: left;
}

.quote-mark, .quote-mark-end {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
}

.quote-mark-end {
  display: block;
  text-align: right;
}

.big-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  padding: 8px 0;
}

.big-quote cite {
  font-style: normal;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  display: block;
  margin-top: 16px;
}

/* ============================================
   Stats
   ============================================ */
.stats {
  background: var(--color-bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--color-bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 48, 44, 0.2);
  box-shadow: var(--glow-red);
}

.stat-bg-kanji {
  position: absolute;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  position: relative;
}

.stat-card:nth-child(2) .stat-number { color: var(--color-teal); }
.stat-card:nth-child(3) .stat-number { color: var(--color-gold); }
.stat-card:nth-child(4) .stat-number { color: var(--color-cherry); }

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0.5;
  color: var(--color-text);
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-bg);
  border-top: var(--border);
  padding: 60px 0;
  text-align: center;
}

.footer-seal {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  color: var(--color-accent);
  opacity: 0.4;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.footer-sub {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-wave {
  margin-top: 32px;
}

/* ============================================
   Scroll Animations
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-card:nth-child(2).animate-on-scroll { transition-delay: 0.12s; }
.about-card:nth-child(3).animate-on-scroll { transition-delay: 0.24s; }
.stat-card:nth-child(2).animate-on-scroll { transition-delay: 0.08s; }
.stat-card:nth-child(3).animate-on-scroll { transition-delay: 0.16s; }
.stat-card:nth-child(4).animate-on-scroll { transition-delay: 0.24s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hobby-hero,
  .hobby-hero.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .hero-photo-wrapper {
    width: 150px;
    height: 150px;
  }

  .section { padding: 80px 0; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .quote-vertical-text {
    writing-mode: horizontal-tb;
  }

  .big-quote {
    text-align: center;
  }

  .zen-circle {
    width: 160px;
    height: 160px;
  }

  .zen-emoji { font-size: 4rem; }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card { padding: 32px 12px; }
  .stat-number { font-size: 2.2rem; }
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 48, 44, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 48, 44, 0.5);
}
