/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ===== CSS VARIABLES / DESIGN TOKENS ===== */
:root {
  /* Core Colors */
  --bg-primary: #07070c;
  --bg-secondary: #101018;
  --bg-card: #14141d;
  --bg-elevated: #1a1a26;
  --bg-glass: rgba(20, 20, 29, 0.65);

  /* Accent Colors — red theme (variable names kept for compatibility) */
  --neon-cyan: #ff5c39;
  --neon-purple: #ff2d48;
  --neon-pink: #ff2d78;
  --neon-green: #39ff14;
  --neon-orange: #ff6b2b;
  --neon-blue: #ff4d5e;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ff2d48 0%, #ff6a3d 100%);
  --gradient-hero: linear-gradient(135deg, #0b0708 0%, #2a0b12 48%, #1a0709 100%);
  --gradient-card-hover: linear-gradient(135deg, rgba(255, 45, 72, 0.1) 0%, rgba(255, 92, 57, 0.1) 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(255, 45, 72, 0.15) 0%, transparent 70%);
  --gradient-text: linear-gradient(120deg, #ff9a6a 0%, #ff2d48 45%, #ff5c39 100%);
  --gradient-border: linear-gradient(135deg, rgba(255, 45, 72, 0.5), rgba(255, 92, 57, 0.35));
  --gradient-mesh:
    radial-gradient(ellipse 70% 60% at 12% 8%, rgba(255, 45, 72, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 55% at 88% 22%, rgba(255, 92, 57, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(255, 45, 120, 0.06), transparent 60%);

  /* Text Colors */
  --text-primary: #f0f0f6;
  --text-secondary: #bdbdca;
  --text-muted: #76767f;
  --text-accent: #ff5c39;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(255, 45, 72, 0.35);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-primary: 'Outfit', 'Noto Sans JP', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-jp: 'Noto Sans JP', sans-serif;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 50px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow-purple: 0 10px 40px -8px rgba(255, 45, 72, 0.35), 0 0 60px -20px rgba(255, 45, 72, 0.2);
  --shadow-glow-cyan: 0 10px 40px -8px rgba(255, 92, 57, 0.3), 0 0 60px -20px rgba(255, 92, 57, 0.15);
  --shadow-neon: 0 0 10px rgba(255, 45, 72, 0.5), 0 0 40px rgba(255, 45, 72, 0.15);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Container */
  --container-max: 1200px;
  --container-narrow: 900px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: 0.015em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Soft ambient gradient */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255, 45, 72, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(255, 92, 57, 0.04) 0%, transparent 50%);
}

::selection {
  background: rgba(255, 45, 72, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--neon-purple);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-purple), var(--neon-cyan));
  border-radius: var(--radius-full);
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-grid,
.bg-glow,
.bg-glow-2,
.kanji-particles {
  display: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  position: relative;
  z-index: 1;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ===== HEADER / NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  transition: transform var(--transition-spring);
}

.header__logo:hover {
  transform: scale(1.03);
  color: var(--text-primary);
}

.header__logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow-purple);
  position: relative;
  overflow: hidden;
}

.header__logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.header__logo-text span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__logo-jp {
  font-family: var(--font-jp);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 2px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header__nav-link {
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 45, 72, 0.1);
}

.header__nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.header__search {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-md);
  transition: all var(--transition-base);
  cursor: pointer;
  margin-left: var(--space-md);
}

.header__search:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-purple);
}

.header__search input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  width: 160px;
  outline: none;
}

.header__search input::placeholder {
  color: var(--text-muted);
}

.header__search-icon {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: 0;
  overflow: hidden;
}

/* Animated background video (gif.webm) */
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 0;
}

/* Readability scrim over the video — darker on the left where the text sits,
   fading toward the right and into the page background at the bottom. */
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 7, 12, 0.95) 0%, rgba(7, 7, 12, 0.72) 42%, rgba(7, 7, 12, 0.3) 100%),
    linear-gradient(180deg, transparent 55%, var(--bg-primary) 100%);
}

/* Legacy static banner (kept for other references / fallback) */
.hero__bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

/* Respect reduced-motion: fall back to the gradient/poster, no playback distraction */
@media (prefers-reduced-motion: reduce) {
  .hero__bg-video { opacity: 0.28; }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 45, 72, 0.12);
  border: 1px solid rgba(255, 45, 72, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neon-purple);
  margin-bottom: var(--space-xl);
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(255, 45, 72, 0.25); }
  50% { border-color: rgba(255, 45, 72, 0.6); }
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.06;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero__title-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title-jp {
  display: block;
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
  background: none;
  margin-top: var(--space-sm);
  letter-spacing: 4px;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.hero__stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

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

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 45, 72, 0.5), 0 0 80px rgba(255, 45, 72, 0.2);
  color: #fff;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.btn--primary:hover::before {
  left: 100%;
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

/* ===== CATEGORY FILTER BAR ===== */
.filter-bar {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filter-tag {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.filter-tag:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  background: rgba(255, 45, 72, 0.08);
}

.filter-tag.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow-purple);
}

/* ===== FEATURED POST ===== */
.featured {
  padding: var(--space-4xl) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--neon-purple);
  margin-bottom: var(--space-2xl);
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.featured__card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-slow);
  position: relative;
}

.featured__card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-4px);
}

.featured__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
}

.featured__image {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.featured__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(20, 20, 29, 0.9) 100%);
  pointer-events: none;
  z-index: 1;
}

.featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured__card:hover .featured__image img {
  transform: scale(1.05);
}

.featured__content {
  padding: var(--space-3xl) var(--space-3xl) var(--space-3xl) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured__category {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--neon-pink);
  margin-bottom: var(--space-md);
}

.featured__category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-pink);
}

.featured__title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--space-md);
  transition: color var(--transition-base);
}

.featured__card:hover .featured__title {
  color: var(--neon-cyan);
}

.featured__excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.featured__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.featured__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.featured__author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon-purple);
}

.featured__author-name {
  color: var(--text-primary);
  font-weight: 600;
}

.featured__date,
.featured__read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== BLOG GRID ===== */
.blog-grid {
  padding: var(--space-3xl) 0 var(--space-4xl);
}

.blog-grid__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
}

.blog-grid__title {
  font-size: 1.6rem;
  font-weight: 800;
}

.blog-grid__count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ===== POST CARD ===== */
.post-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-spring), border-color var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* Gradient border sheen that fades in on hover */
.post-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.post-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
}

.post-card:hover::after {
  opacity: 1;
}

.post-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.post-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 29, 0.55), transparent 55%);
  pointer-events: none;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image img {
  transform: scale(1.1);
}

.post-card__category {
  position: absolute;
  z-index: 2;
  top: var(--space-md);
  left: var(--space-md);
  padding: 5px 13px;
  background: rgba(7, 7, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 45, 72, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ff8a6a;
}

.post-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-base);
}

.post-card:hover .post-card__title {
  color: var(--neon-cyan);
}

.post-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.post-card__author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--neon-purple);
}

.post-card__author-name {
  color: var(--text-primary);
  font-weight: 600;
}

.post-card__read-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
  padding: var(--space-4xl) 0;
  position: relative;
}

.newsletter__card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-glow);
  pointer-events: none;
}

.newsletter__icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
}

.newsletter__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.newsletter__desc {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

.newsletter__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-base);
}

.newsletter__input:focus {
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-glow-purple);
}

.newsletter__input::placeholder {
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.footer__logo:hover {
  color: var(--text-primary);
}

.footer__logo-icon {
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--neon-cyan);
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* ===== BLOG POST / ARTICLE PAGE ===== */
.article-hero {
  padding: 72px 0 40px;
  position: relative;
}

.article-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.article-hero__breadcrumb a {
  color: var(--text-muted);
}

.article-hero__breadcrumb a:hover {
  color: var(--neon-cyan);
}

.article-hero__breadcrumb span {
  color: var(--text-muted);
}

.article-hero__category {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 14px;
  background: rgba(255, 45, 120, 0.12);
  border: 1px solid rgba(255, 45, 120, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--neon-pink);
  margin-bottom: var(--space-lg);
}

.article-hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.article-hero__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.article-hero__author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon-purple);
  box-shadow: var(--shadow-glow-purple);
}

.article-hero__author-info {
  display: flex;
  flex-direction: column;
}

.article-hero__author-name {
  font-weight: 700;
  color: var(--text-primary);
}

.article-hero__author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-hero__date,
.article-hero__read-time {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Article Cover Image */
.article-cover {
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.article-cover img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.article-cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(transparent, var(--bg-primary));
  pointer-events: none;
}

/* Article Layout */
.article-layout {
  display: grid;
  /* Left TOC · wide centered reading column · balancing spacer. The side
     columns keep a usable minimum for the TOC (so they never collapse on
     small screens) while letting the middle column grow wide on large ones,
     staying centered because both sides are symmetric. */
  grid-template-columns: minmax(200px, 1fr) minmax(0, 1040px) minmax(200px, 1fr);
  gap: var(--space-lg);
  padding-bottom: var(--space-4xl);
}

/* Article Content — centered reading column */
.article-content {
  min-width: 0;
  grid-column: 2;
}

.article-content h2 {
  font-size: 2.15rem;
  font-weight: 800;
  margin-top: var(--space-4xl);
  margin-bottom: var(--space-xl);
  padding-left: var(--space-md);
  border-left: 3px solid var(--neon-purple);
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.68rem;
  font-weight: 700;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  color: var(--neon-cyan);
}

.article-content p {
  color: var(--text-secondary);
  font-size: 1.55rem;
  line-height: 1.85;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.01em;
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.article-content li {
  color: var(--text-secondary);
  font-size: 1.55rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  position: relative;
  list-style: none;
  padding-left: var(--space-lg);
  letter-spacing: 0.01em;
}

.article-content li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--neon-purple);
  font-weight: 700;
}

.article-content strong {
  color: #f5f5fa;
  font-weight: 600;
}

.article-content a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Code Blocks — Windows PowerShell console styling */
.article-content pre {
  background: #012456; /* classic PowerShell console blue */
  border: 1px solid #0a3a7a;
  border-radius: var(--radius-md);
  padding: 42px var(--space-xl) var(--space-xl);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  position: relative;
  box-shadow: var(--shadow-md);
}

/* PowerShell title bar */
.article-content pre::before {
  content: 'Windows PowerShell';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  line-height: 30px;
  padding: 0 14px;
  background: #001536;
  color: #cfe0ff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #0a3a7a;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Language label, right side of the title bar */
.article-content pre::after {
  content: attr(data-lang);
  position: absolute;
  top: 0;
  right: 14px;
  height: 30px;
  line-height: 30px;
  font-size: 0.64rem;
  font-family: var(--font-mono);
  color: #7fa8e0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-right: 96px; /* room for the JS copy button */
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #e8e8f0;
  line-height: 1.8;
}

.article-content pre code {
  color: #eef1f7; /* PowerShell console text */
}

/* References — numbered citation list */
.article-content ol.references {
  counter-reset: ref;
  list-style: none;
  padding-left: 0;
}
.article-content ol.references li {
  counter-increment: ref;
  position: relative;
  padding-left: 44px;
  margin-bottom: var(--space-md);
}
.article-content ol.references li::before {
  content: counter(ref);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: rgba(255, 45, 72, 0.12);
  border: 1px solid rgba(255, 45, 72, 0.35);
  color: var(--neon-purple);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.article-content p code,
.article-content li code {
  background: rgba(255, 92, 57, 0.1);
  border: 1px solid rgba(255, 92, 57, 0.15);
  color: var(--neon-cyan);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.9em; /* scales with the surrounding text */
}

/* Callout / Alert Box */
.callout {
  background: rgba(255, 45, 72, 0.06);
  border: 1px solid rgba(255, 45, 72, 0.2);
  border-left: 4px solid var(--neon-purple);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.callout--warning {
  background: rgba(255, 107, 43, 0.06);
  border-color: rgba(255, 107, 43, 0.2);
  border-left-color: var(--neon-orange);
}

.callout__title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.callout p {
  font-size: 1.05rem !important;
  line-height: 1.9 !important;
  margin-bottom: 0 !important;
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  grid-column: 1; /* TOC in the left column */
}

.sidebar-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.sidebar-toc__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-toc__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sidebar-toc__link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition-base);
}

.sidebar-toc__link:hover,
.sidebar-toc__link.active {
  color: var(--neon-cyan);
  background: rgba(255, 92, 57, 0.06);
  border-left-color: var(--neon-cyan);
}

/* Share Widget */
.sidebar-share {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.sidebar-share__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.sidebar-share__links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.sidebar-share__btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}

.sidebar-share__btn:hover {
  background: rgba(255, 45, 72, 0.15);
  border-color: var(--border-glow);
  color: var(--neon-purple);
  transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
  padding: var(--space-4xl) 0;
  border-top: 1px solid var(--border-subtle);
}

/* Tags */
.article-tags {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.article-tags__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-right: var(--space-sm);
}

.tag {
  padding: 4px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  cursor: pointer;
}

.tag:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(255, 92, 57, 0.06);
}

/* ===== LOADING ANIMATION ===== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-kanji {
  font-family: var(--font-jp);
  font-size: 3rem;
  color: var(--neon-purple);
  animation: pulse-glow 1.5s ease-in-out infinite;
  margin-bottom: var(--space-md);
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 45, 72, 0.5); }
  50% { text-shadow: 0 0 30px rgba(255, 45, 72, 0.8), 0 0 60px rgba(255, 45, 72, 0.4); }
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar__fill {
  width: 30%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  animation: loading 1.2s ease-in-out infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

  .featured__card {
    grid-template-columns: 1fr;
  }

  .featured__content {
    padding: var(--space-2xl);
  }

  .featured__image {
    min-height: 300px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-content {
    grid-column: auto;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    grid-column: auto;
  }

  .hero__title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .header__nav {
    display: none;
  }

  .header__search {
    display: none;
  }

  .header__menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__bg-image {
    width: 100%;
    opacity: 0.15;
  }

  .hero__bg-video {
    opacity: 0.32;
  }

  .hero__stats {
    gap: var(--space-xl);
  }

  .hero__stat-number {
    font-size: 1.5rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar__inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }

  .newsletter__card {
    padding: var(--space-2xl);
  }

  .newsletter__form {
    flex-direction: column;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .article-hero__title {
    font-size: 2rem;
  }

  .article-hero__meta {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .article-content h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.8rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .featured__title {
    font-size: 1.5rem;
  }
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.page-hero {
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}

/* Floating top controls (home + language) — replaces the removed header */
.top-controls {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 300;
  display: flex;
  gap: 8px;
  align-items: center;
}
.top-controls__home {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all var(--transition-base);
}
.top-controls__home:hover { border-color: var(--border-glow); transform: translateY(-1px); }
.top-controls__lang {
  min-width: 46px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow-glow-purple);
  transition: all var(--transition-base);
}
.top-controls__lang:hover { transform: translateY(-1px); filter: brightness(1.08); }

.page-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: blur(2px);
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(transparent, var(--bg-primary));
}

.page-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero__title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: var(--space-md);
}

.page-hero__title-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.page-hero__jp {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-top: var(--space-sm);
}

/* About Profile Card */
.about-profile {
  padding: var(--space-3xl) 0;
}

.about-profile__card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-3xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.about-profile__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
}

.about-profile__avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.about-profile__avatar {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  border: 3px solid var(--neon-purple);
  box-shadow: var(--shadow-glow-purple);
  transition: transform var(--transition-base);
}

.about-profile__avatar:hover {
  transform: scale(1.05) rotate(2deg);
}

.about-profile__name {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
}

.about-profile__role {
  font-size: 0.85rem;
  color: var(--neon-cyan);
  font-weight: 600;
  text-align: center;
}

.about-profile__social {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.about-profile__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-base);
  text-decoration: none;
}

.about-profile__social-link:hover {
  background: rgba(255, 45, 72, 0.15);
  border-color: var(--border-glow);
  color: var(--neon-purple);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-purple);
}

.about-profile__bio h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--neon-purple);
}

.about-profile__bio p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: var(--space-lg);
}

/* Skills Grid */
.about-skills {
  padding: var(--space-3xl) 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-purple);
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card__icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-md);
}

.skill-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.skill-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.skill-card__tag {
  padding: 2px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Timeline */
.about-timeline {
  padding: var(--space-3xl) 0;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-purple), var(--neon-cyan), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: var(--space-2xl);
}

.timeline-item__dot {
  position: absolute;
  left: 16px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--neon-purple);
  box-shadow: 0 0 10px rgba(255, 45, 72, 0.4);
  z-index: 1;
}

.timeline-item__year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.timeline-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.timeline-item__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.cert-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-purple);
}

.cert-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.cert-card__name {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.cert-card__org {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-section {
  padding: var(--space-3xl) 0 var(--space-4xl);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-form__card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.contact-form__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
}

.contact-form__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.contact-form__subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(255, 45, 72, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238e8e93' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Contact Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info__card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  transition: all var(--transition-base);
}

.contact-info__card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
  box-shadow: var(--shadow-glow-purple);
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 45, 72, 0.1);
  border: 1px solid rgba(255, 45, 72, 0.2);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.contact-info__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-info__text a {
  color: var(--neon-cyan);
}

/* Social Links Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.social-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
  color: var(--text-primary);
}

.social-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-purple);
  color: var(--text-primary);
}

.social-card__icon {
  font-size: 1.5rem;
}

.social-card__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.social-card__handle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ========================================
   CATEGORY PAGE
   ======================================== */

.category-hero {
  padding: 140px 0 40px;
  position: relative;
  text-align: center;
}

.category-hero__icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  display: block;
}

.category-hero__title {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: var(--space-md);
}

.category-hero__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.category-hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
}

.category-hero__stat {
  text-align: center;
}

.category-hero__stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Category Navigation */
.category-nav {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.category-nav__inner {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.category-nav__link {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all var(--transition-base);
}

.category-nav__link:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
}

.category-nav__link.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow-purple);
}

/* FAQ / Accordion */
.faq-section {
  padding: var(--space-3xl) 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-glow);
}

.faq-item__question {
  padding: var(--space-lg) var(--space-xl);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: color var(--transition-base);
}

.faq-item__question:hover {
  color: var(--neon-cyan);
}

.faq-item__arrow {
  transition: transform var(--transition-base);
  color: var(--neon-purple);
}

.faq-item.open .faq-item__arrow {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
  padding: 0 var(--space-xl) var(--space-lg);
}

.faq-item__answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========================================
   RESPONSIVE — NEW PAGES
   ======================================== */

@media (max-width: 1024px) {
  .about-profile__card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-profile__bio h2 {
    border-left: none;
    padding-left: 0;
    text-align: center;
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero__title {
    font-size: 2.2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

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

  .social-grid {
    grid-template-columns: 1fr;
  }

  .category-hero__title {
    font-size: 2rem;
  }

  .category-hero__stats {
    gap: var(--space-xl);
  }
}

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

  .category-hero__stats {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* ========================================
   AESTHETIC POLISH LAYER
   (theme & content unchanged — refinement only)
   ======================================== */

/* Animated underline for nav links */
.header__nav-link {
  overflow: hidden;
}
.header__nav-link::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  transition: width var(--transition-spring);
}
.header__nav-link:hover::before {
  width: 18px;
}
.header__nav-link.active::before {
  width: 20px;
}

/* Section labels: refine + optional trailing rule */
.section-label {
  color: transparent;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Blog grid heading: leading accent bar */
.blog-grid__title,
.newsletter__title {
  letter-spacing: -0.02em;
}
.blog-grid__title {
  position: relative;
  padding-left: 16px;
}
.blog-grid__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0.85em;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
}

/* Filter tags: crisper resting state, animated active */
.filter-tag {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.filter-tag.active {
  transform: translateY(-1px);
}

/* Hero badge: glassy refinement */
.hero__badge {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px -6px rgba(255, 45, 72, 0.4);
}

/* Hero stat numbers with subtle tabular alignment */
.hero__stat-number,
.category-hero__stat-num {
  font-feature-settings: 'tnum';
  letter-spacing: -0.02em;
}

/* Buttons: refined weight + smoother motion */
.btn {
  letter-spacing: 0.01em;
  transition: transform var(--transition-spring), box-shadow var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Featured / newsletter cards: gradient border sheen on hover */
.featured__card::after,
.newsletter__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}
.featured__card:hover::after,
.newsletter__card:hover::after {
  opacity: 1;
}

/* Article headings: gradient accent bar instead of flat border */
.article-content h2 {
  border-left: none;
  padding-left: 20px;
  position: relative;
  letter-spacing: -0.01em;
}
.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  box-shadow: 0 0 12px -2px rgba(255, 45, 72, 0.6);
}

/* Reveal animation: gentler, with slight scale */
.reveal {
  transform: translateY(28px) scale(0.99);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  transform: translateY(0) scale(1);
}

/* Loader: softer backdrop */
.page-loader {
  background: radial-gradient(circle at 50% 45%, #12081f 0%, var(--bg-primary) 70%);
}

/* Nicer scrollbar sizing on modern browsers */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 45, 72, 0.5) transparent;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .kanji-particle {
    display: none;
  }
}
