/* ---------------------------------
   Landing Page Internal Content CSS
   (Layout & Sidebar are now handled natively by NexT)
--------------------------------- */

.landing-content {
  margin-top: -20px; /* Offset the post-body default padding if needed */
}

/* Hero Section */
.hero-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0 60px;
  min-height: 300px;
}

.introduction { max-width: 480px; }
.subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-block h1 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 24px;
  border-bottom: none !important;
}
.hero-block p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 40px;
}

/* Premium Buttons */
.hero-actions { display: flex; gap: 16px; }

.btn-primary, .btn-secondary {
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: none !important;
}

.btn-primary {
  background: rgba(34, 34, 34, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  color: #ffffff !important;
}
@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: rgba(220, 220, 220, 0.85);
    color: #111111;
  }
  .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #111111 !important;
  }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-main);
  border: 1px solid rgba(150, 150, 150, 0.3);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
@media (prefers-color-scheme: dark) {
  .btn-secondary {
    background: rgba(50, 50, 50, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .btn-secondary:hover {
    background: rgba(80, 80, 80, 0.8);
  }
}

/* Hero Graphic */
.hero-graphic {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mark {
  font-family: var(--serif);
  font-size: 120px;
  color: var(--text-main);
  opacity: 0.1;
  z-index: 2;
}
.geo-1, .geo-2 {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(150, 150, 150, 0.3);
}
.geo-1 { width: 100%; height: 100%; animation: rotate 60s linear infinite; }
.geo-2 { width: 75%; height: 75%; animation: rotate 40s linear infinite reverse; }
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Projects Block */
.projects-block { margin-bottom: 40px; }
.section-title { font-size: 1.2rem; font-weight: 600; margin: 0 0 24px; border-bottom: none !important; }

.projects-grid { display: grid; gap: 20px; }
.grid-3-col { grid-template-columns: repeat(3, 1fr); }
.grid-2-col { grid-template-columns: repeat(2, 1fr); }

.nav-card {
  display: block;
  padding: 24px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border-bottom: none !important;
}
@media (prefers-color-scheme: dark) {
  .nav-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
  }
}
.nav-card:hover {
  transform: translateY(-2px);
  background: rgba(0,0,0,0.04);
  box-shadow: 0 6px 16px var(--shadow-color);
}
@media (prefers-color-scheme: dark) {
  .nav-card:hover { background: rgba(255,255,255,0.04); }
}

.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.nav-card h3 { margin: 0 0 8px; font-size: 1.05rem; border-bottom: none !important; }
.nav-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* Interactive Tilt */
.interactive-tilt { transform-style: preserve-3d; will-change: transform; }

/* Responsive */
@media (max-width: 991px) {
  .hero-block { flex-direction: column; padding: 20px 0; }
  .hero-actions { justify-content: center; }
  .introduction {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 32px;
    text-align: center;
  }
  /* Force h1 lines to center — full-width block centering so punctuation doesn't shift lines */
  .hero-block h1 {
    text-align: center;
    /* Each line (separated by <br>) renders as the block's full width;
       centering the block means punctuation pushes visual center slightly.
       We compensate by padding-right = 1 character on each side so the
       purely logographic characters land exactly on the optical midpoint. */
    padding-right: 0;
    letter-spacing: 0.02em;
  }
  .hero-block p {
    text-align: center;
  }
  .hero-graphic { margin-top: 40px; min-height: 200px; }

  /* Center projects block on tablet/mobile */
  .section-title { text-align: center; }
  .nav-card { text-align: center; }
}

@media (max-width: 767px) {
  .grid-3-col, .grid-2-col { grid-template-columns: 1fr; }
  .hero-block h1 {
    font-size: 2.2rem;
    text-align: center;
    /* Optically neutralise fullwidth punctuation (，。) which each
       occupy 1em but visually feel like 0.5em. We shift the whole
       block a half-character to the left so the logographic
       characters land on the true optical centre. */
    padding-left: 0.5em;
    padding-right: 0;
    box-sizing: border-box;
  }
  .hero-graphic { display: none; }
}
