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

:root {
  --sakura-pink: #ffb7c5;
  --sakura-deep: #e8829a;
  --sakura-light: #fff0f3;
  --ink-black: #1a0a0f;
  --ink-dark: #2d1520;
  --ink-mid: #5c2d3e;
  --gold: #c9a84c;
  --gold-light: #f0d080;
  --white: #fffaf9;
  --glass: rgba(255, 240, 243, 0.08);
  --glass-border: rgba(255, 183, 197, 0.25);
  --shadow-pink: rgba(232, 130, 154, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--ink-black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== SAKURA CANVAS ===== */
#sakura-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ===== BACKGROUND ===== */
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(232, 130, 154, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(45, 21, 32, 0.95) 0%, rgba(26, 10, 15, 1) 100%);
  z-index: 0;
}

/* ===== CONTAINER ===== */
.container {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  padding: 80px 0 40px;
  position: relative;
}

.hero-deco {
  position: absolute;
  font-family: 'Noto Serif JP', serif;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 183, 197, 0.06);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.hero-deco.top-left {
  top: 60px;
  left: -20px;
}

.hero-deco.top-right {
  top: 60px;
  right: -20px;
}

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

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--sakura-pink);
  opacity: 0.6;
  animation: ring-pulse 3s ease-in-out infinite;
}

.avatar-ring.ring-2 {
  inset: -16px;
  border-color: var(--gold);
  opacity: 0.3;
  animation-delay: 1.5s;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 0.3; }
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sakura-pink);
  display: block;
  background: var(--ink-dark);
  box-shadow: 0 0 40px var(--shadow-pink), 0 0 80px rgba(232, 130, 154, 0.15);
}

/* Hero Text */
.hero-text {
  margin-bottom: 32px;
}

.hero-greeting {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  color: var(--sakura-pink);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  opacity: 0.8;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 6px;
  text-shadow: 0 0 40px rgba(255, 183, 197, 0.4);
}

.hero-kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 16px;
  opacity: 0.8;
}

.hero-bio {
  font-size: 0.95rem;
  color: rgba(255, 250, 249, 0.7);
  line-height: 1.8;
  margin-bottom: 20px;
}

.bio-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.8rem;
  color: var(--sakura-pink);
  opacity: 0.7;
  letter-spacing: 0.15em;
}

/* Tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: rgba(255, 250, 249, 0.85);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(255, 183, 197, 0.15);
  border-color: var(--sakura-pink);
  transform: translateY(-2px);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sakura-pink), transparent);
  opacity: 0.4;
}

.divider-icon {
  color: var(--sakura-pink);
  font-size: 1.2rem;
  opacity: 0.7;
}

/* ===== STATS SECTION ===== */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 40px 0;
}

.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-card:hover {
  background: rgba(255, 183, 197, 0.1);
  border-color: var(--sakura-pink);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-pink);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sakura-pink);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(255, 250, 249, 0.6);
  letter-spacing: 0.05em;
}

.stat-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.65rem;
  color: var(--gold);
  opacity: 0.6;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  text-shadow: 0 0 30px rgba(255, 183, 197, 0.3);
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--sakura-pink);
  letter-spacing: 0.2em;
  opacity: 0.8;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  margin: 60px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--sakura-pink);
  box-shadow: 0 12px 40px var(--shadow-pink);
}

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 15, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  color: var(--sakura-pink);
  letter-spacing: 0.2em;
}

.gallery-info {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-flag {
  font-size: 1.1rem;
}

.gallery-info h3 {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 2px;
}

.gallery-info p {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.68rem;
  color: var(--gold);
  opacity: 0.7;
}

/* ===== LINKS SECTION ===== */
.links-section {
  margin: 60px 0;
  overflow: visible;
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--white);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.link-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.link-card:hover::before {
  opacity: 0.12;
  width: 3px;
}

.link-card:not(.tiktok-dropdown-trigger):hover {
  transform: translateX(6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.tiktok-dropdown-trigger:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Link colors */
.instagram::before { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.instagram:hover { border-color: #e1306c; }

.tiktok::before { background: linear-gradient(135deg, #010101, #69c9d0, #ee1d52); }
.tiktok:hover { border-color: #69c9d0; }

.youtube::before { background: #ff0000; }
.youtube:hover { border-color: #ff0000; }

.twitter::before { background: #000000; }
.twitter:hover { border-color: #ffffff; }

.blog::before { background: linear-gradient(135deg, var(--sakura-pink), var(--gold)); }
.blog:hover { border-color: var(--sakura-pink); }

.email::before { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }
.email:hover { border-color: var(--gold); }

.link-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.link-icon svg {
  width: 20px;
  height: 20px;
}

.link-card:hover .link-icon {
  background: rgba(255, 255, 255, 0.15);
}

.link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
}

.link-handle {
  font-size: 0.75rem;
  color: rgba(255, 250, 249, 0.5);
}

.link-arrow {
  font-size: 1.1rem;
  color: rgba(255, 250, 249, 0.3);
  transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
  color: var(--sakura-pink);
  transform: translateX(4px);
}

/* ===== QUOTE SECTION ===== */
.quote-section {
  margin: 60px 0;
}

.quote-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 183, 197, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.quote-mark {
  font-size: 3rem;
  color: var(--sakura-pink);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}

.quote-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--white);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  line-height: 1.6;
}

.quote-id {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 250, 249, 0.6);
  margin-bottom: 20px;
}

.quote-author {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 40px 0 20px;
  border-top: 1px solid rgba(255, 183, 197, 0.1);
}

.footer-sakura {
  font-size: 1.2rem;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

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

.footer-text {
  font-size: 0.85rem;
  color: rgba(255, 250, 249, 0.5);
  margin-bottom: 6px;
}

.heart {
  color: var(--sakura-deep);
}

.footer-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.6;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 250, 249, 0.25);
  letter-spacing: 0.05em;
}

/* ===== MODALS ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 10, 15, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  animation: modal-fade-in 0.3s ease;
}

.modal.active {
  display: flex;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--ink-dark);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  position: relative;
  animation: modal-slide-up 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--shadow-pink);
}

@keyframes modal-slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-content img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(26, 10, 15, 0.8);
  border: 1px solid var(--glass-border);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: var(--sakura-deep);
  border-color: var(--sakura-deep);
}

.modal-info {
  padding: 24px;
}

.modal-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 6px;
}

.modal-sub {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.modal-desc {
  font-size: 0.9rem;
  color: rgba(255, 250, 249, 0.65);
  line-height: 1.7;
}

/* ===== SCROLL ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-deco {
    font-size: 3rem;
  }

  .quote-card {
    padding: 32px 24px;
  }
}

@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--ink-black);
}

::-webkit-scrollbar-thumb {
  background: var(--sakura-deep);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sakura-pink);
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(255, 183, 197, 0.3);
  color: var(--white);
}

/* ===== TIKTOK POPUP ===== */
.tiktok-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 3, 8, 0.85);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.tiktok-popup-overlay.active {
  display: flex;
}

.tiktok-popup-box {
  background: #1e0d17;
  border: 1px solid rgba(105, 201, 208, 0.4);
  border-radius: 20px;
  overflow: hidden;
  width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 30px rgba(105, 201, 208, 0.15);
  animation: popup-in 0.25s ease;
}

@keyframes popup-in {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.tiktok-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(105, 201, 208, 0.15);
}

.tiktok-popup-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #69c9d0;
}

.tiktok-popup-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.tiktok-popup-close:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.tiktok-popup-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--white);
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255, 183, 197, 0.08);
}

.tiktok-popup-option:last-child {
  border-bottom: none;
}

.tiktok-popup-option:hover {
  background: rgba(105, 201, 208, 0.1);
}

.tiktok-popup-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(105, 201, 208, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tiktok-popup-icon svg {
  width: 18px;
  height: 18px;
  color: #69c9d0;
}

.tiktok-popup-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tiktok-popup-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
}

.tiktok-popup-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

.tiktok-popup-arrow {
  color: rgba(105, 201, 208, 0.5);
  font-size: 1rem;
  transition: transform 0.2s;
}

.tiktok-popup-option:hover .tiktok-popup-arrow {
  transform: translateX(4px);
  color: #69c9d0;
}
