/* ============================================
   AADITYA AGARWAL — PORTFOLIO
   日本語 CYBERPUNK × PIXEL GAME × PROFESSIONAL
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&family=Press+Start+2P&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Tokyo Night palette */
  --bg-void: #07060d;
  --bg-primary: #0c0b14;
  --bg-secondary: #12111d;
  --bg-card: rgba(15, 14, 25, 0.7);
  --bg-card-hover: rgba(22, 20, 40, 0.85);

  /* Neon Tokyo colors */
  --neon-sakura: #ff3e8a;
  --neon-cyan: #00e5ff;
  --neon-amber: #ffb444;
  --neon-violet: #9d4edd;
  --neon-mint: #2effc8;
  --pixel-red: #ff4757;

  /* Core accents */
  --accent-1: #ff3e8a;
  --accent-2: #00e5ff;
  --accent-3: #9d4edd;

  --text-primary: #eae8ff;
  --text-secondary: #9895b5;
  --text-muted: #5c5878;
  --border: rgba(255, 62, 138, 0.08);
  --border-hover: rgba(255, 62, 138, 0.25);

  /* Gradients */
  --gradient-sakura: linear-gradient(135deg, var(--neon-sakura), var(--neon-violet));
  --gradient-cyber: linear-gradient(135deg, var(--neon-cyan), var(--neon-mint));
  --gradient-sunset: linear-gradient(135deg, var(--neon-sakura), var(--neon-amber));

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-pixel: 'Press Start 2P', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1100px;
  --container-padding: 0 24px;

  /* Effects */
  --glass-blur: blur(20px);
  --shadow-sakura: 0 0 30px rgba(255, 62, 138, 0.12), 0 0 60px rgba(255, 62, 138, 0.04);
  --shadow-cyber: 0 0 30px rgba(0, 229, 255, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

::selection {
  background: rgba(255, 62, 138, 0.25);
  color: var(--text-primary);
}

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

img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Pixel Grid BG for body --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 62, 138, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 62, 138, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ============================================
   KANJI WATERMARK
   ============================================ */
.kanji-watermark {
  position: absolute;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 700;
  color: rgba(255, 62, 138, 0.03);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

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

.section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.section-label {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--neon-sakura);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 0 10px rgba(255, 62, 138, 0.5);
}

.section-label::before {
  content: '►';
  font-size: 0.5rem;
  animation: pixelBlink 1.5s step-end infinite;
}

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

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 48px;
  line-height: 1.2;
  position: relative;
}

/* Glitch underline */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-sakura);
  margin-top: 12px;
  box-shadow: 0 0 10px rgba(255, 62, 138, 0.4);
}

/* ============================================
   GLASS CARD — CYBERPUNK STYLE
   ============================================ */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Top neon accent line */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-sakura);
  transition: width 0.5s ease;
}

.glass-card:hover::before {
  width: 100%;
}

/* Corner pixel brackets */
.glass-card::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(255, 62, 138, 0.2);
  border-right: 2px solid rgba(255, 62, 138, 0.2);
  transition: all var(--transition-base);
  pointer-events: none;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sakura);
}

.glass-card:hover::after {
  border-color: var(--neon-sakura);
  box-shadow: 2px -2px 8px rgba(255, 62, 138, 0.2);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(7, 6, 13, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

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

.nav-logo {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--neon-sakura);
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(255, 62, 138, 0.5);
  position: relative;
}

.nav-logo-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-sakura);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon-sakura);
  text-shadow: 0 0 8px rgba(255, 62, 138, 0.4);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  box-shadow: 0 0 6px rgba(255, 62, 138, 0.4);
}

.nav-cta {
  padding: 7px 18px !important;
  border-radius: var(--radius-sm);
  background: var(--gradient-sakura) !important;
  color: white !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  border: none;
  font-family: var(--font-pixel) !important;
  font-size: 0.55rem !important;
  letter-spacing: 1px !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  box-shadow: 0 4px 25px rgba(255, 62, 138, 0.4) !important;
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--neon-sakura);
  border-radius: 0;
  transition: all var(--transition-base);
  transform-origin: center;
  box-shadow: 0 0 4px rgba(255, 62, 138, 0.5);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(255, 62, 138, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(157, 78, 221, 0.04) 0%, transparent 50%);
  z-index: 1;
}

/* Neon orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: orbFloat 10s ease-in-out infinite;
  z-index: 1;
}

.hero-orb-1 {
  width: 400px; height: 400px;
  background: rgba(255, 62, 138, 0.12);
  top: 5%; left: -8%;
}

.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(0, 229, 255, 0.08);
  top: 50%; right: -5%;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 250px; height: 250px;
  background: rgba(157, 78, 221, 0.07);
  bottom: 10%; left: 30%;
  animation-delay: -7s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -20px) scale(1.06); }
  66% { transform: translate(-20px, 15px) scale(0.94); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-greeting {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--neon-cyan);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.2s;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  letter-spacing: 2px;
}

.hero-name {
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: 6px;
  letter-spacing: -1px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.4s;
}

.hero-name-gradient {
  background: var(--gradient-sakura);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-name-jp {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 8px;
  margin-top: 4px;
  -webkit-text-fill-color: var(--text-muted);
  background: none;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.6s;
}

.hero-typewriter {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  color: var(--neon-mint);
  margin-bottom: 36px;
  min-height: 1.5em;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.8s;
}

.typewriter-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--neon-sakura);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s step-end infinite;
  box-shadow: 0 0 8px rgba(255, 62, 138, 0.6);
}

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

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 1s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
  position: relative;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gradient-sakura);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 62, 138, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(255, 62, 138, 0.45);
  transform: translateY(-3px);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.05);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--neon-amber);
  border: 1px solid rgba(255, 180, 68, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 180, 68, 0.05);
  border-color: var(--neon-amber);
  color: var(--neon-amber);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255, 180, 68, 0.15);
}

.btn-icon { font-size: 1rem; }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeInUp 0.6s ease forwards 1.4s;
  opacity: 0;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.about-avatar-wrapper {
  position: relative;
}

.about-avatar {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid rgba(255, 62, 138, 0.15);
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
  filter: saturate(0.9);
}

.about-avatar:hover {
  filter: saturate(1.1);
  border-color: var(--neon-sakura);
  box-shadow: 0 0 30px rgba(255, 62, 138, 0.2);
}

.about-avatar-glow {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, rgba(255, 62, 138, 0.1), rgba(0, 229, 255, 0.08));
  border-radius: var(--radius-lg);
  filter: blur(40px);
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* Pixel corner decorations */
.about-avatar-corners {
  position: absolute;
  inset: -8px;
  z-index: 2;
  pointer-events: none;
}

.about-avatar-corners::before,
.about-avatar-corners::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
}

.about-avatar-corners::before {
  top: 0; left: 0;
  border-top: 2px solid var(--neon-sakura);
  border-left: 2px solid var(--neon-sakura);
  box-shadow: -2px -2px 8px rgba(255, 62, 138, 0.3);
}

.about-avatar-corners::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
  box-shadow: 2px 2px 8px rgba(0, 229, 255, 0.3);
}

.about-text p {
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.about-highlight {
  color: var(--neon-sakura);
  font-weight: 600;
}

.about-highlight-cyan {
  color: var(--neon-cyan);
  font-weight: 600;
}

/* Stats row */
.about-stats {
  display: flex;
  gap: 28px;
  margin: 28px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-stat {
  text-align: center;
}

.about-stat-number {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: var(--neon-sakura);
  display: block;
  text-shadow: 0 0 10px rgba(255, 62, 138, 0.4);
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 12px;
  background: rgba(255, 62, 138, 0.04);
  border: 1px solid rgba(255, 62, 138, 0.1);
  border-radius: var(--radius-sm);
  color: var(--neon-sakura);
  font-weight: 500;
  transition: all var(--transition-base);
}

.tech-tag:hover {
  border-color: var(--neon-sakura);
  box-shadow: 0 0 15px rgba(255, 62, 138, 0.15);
  transform: translateY(-2px);
  background: rgba(255, 62, 138, 0.08);
}

.tech-tag.cyan {
  color: var(--neon-cyan);
  border-color: rgba(0, 229, 255, 0.1);
  background: rgba(0, 229, 255, 0.04);
}

.tech-tag.cyan:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
  background: rgba(0, 229, 255, 0.08);
}

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--neon-sakura),
    var(--neon-violet),
    var(--neon-cyan),
    transparent
  );
  box-shadow: 0 0 8px rgba(255, 62, 138, 0.2);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -42px;
  top: 28px;
  width: 10px;
  height: 10px;
  background: var(--neon-sakura);
  border: 2px solid var(--bg-void);
  box-shadow: 0 0 0 3px rgba(255, 62, 138, 0.2), 0 0 12px rgba(255, 62, 138, 0.4);
  z-index: 1;
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 6px rgba(255, 62, 138, 0.25), 0 0 20px rgba(255, 62, 138, 0.5);
  transform: scale(1.4);
}

.timeline-card { padding: 24px 28px; }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.timeline-company {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-duration {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--neon-mint);
  background: rgba(46, 255, 200, 0.06);
  padding: 5px 12px;
  border: 1px solid rgba(46, 255, 200, 0.12);
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(46, 255, 200, 0.3);
  letter-spacing: 0.5px;
}

.timeline-role {
  font-size: 0.9rem;
  color: var(--neon-sakura);
  font-weight: 500;
  margin-bottom: 3px;
}

.timeline-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.timeline-bullets li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--neon-sakura);
  font-size: 0.6rem;
  top: 4px;
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.skill-category { padding: 24px; }

.skill-category-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  display: inline-block;
}

.skill-category-title {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-item-dot {
  width: 5px;
  height: 5px;
  background: var(--neon-sakura);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(255, 62, 138, 0.5);
}

.skill-item-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 100px;
}

.skill-item-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  min-width: 40px;
}

.skill-item-fill {
  height: 100%;
  background: var(--gradient-sakura);
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px rgba(255, 62, 138, 0.3);
}

/* ============================================
   EDUCATION
   ============================================ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.education-card { padding: 28px; }

.education-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.education-degree {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.education-field {
  font-size: 0.88rem;
  color: var(--neon-sakura);
  font-weight: 500;
  margin-bottom: 4px;
}

.education-school {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.education-year {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--neon-mint);
  text-shadow: 0 0 4px rgba(46, 255, 200, 0.3);
  letter-spacing: 1px;
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.cert-card {
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cert-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 62, 138, 0.04);
  border: 1px solid rgba(255, 62, 138, 0.08);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.cert-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.cert-issuer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.cert-card:hover .cert-icon {
  background: var(--gradient-sakura);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(255, 62, 138, 0.3);
  transform: scale(1.1);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
  font-size: 0.92rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all var(--transition-base);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.contact-link:hover {
  color: var(--neon-sakura);
  background: rgba(255, 62, 138, 0.03);
  border-color: rgba(255, 62, 138, 0.1);
  transform: translateX(5px);
}

.contact-link-icon {
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 62, 138, 0.04);
  border: 1px solid rgba(255, 62, 138, 0.08);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.contact-link:hover .contact-link-icon {
  background: rgba(255, 62, 138, 0.1);
  box-shadow: 0 0 12px rgba(255, 62, 138, 0.15);
  border-color: rgba(255, 62, 138, 0.2);
}

.contact-form {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-sakura);
  box-shadow: 0 0 10px rgba(255, 62, 138, 0.3);
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--neon-sakura);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 62, 138, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--neon-sakura);
  box-shadow: 0 0 0 3px rgba(255, 62, 138, 0.06);
  background: rgba(255, 62, 138, 0.03);
}

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

.form-submit { width: 100%; margin-top: 6px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 25%; right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-sakura), transparent);
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.footer-text span {
  color: var(--neon-sakura);
}

.footer-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 62, 138, 0.2);
  margin-top: 6px;
  letter-spacing: 4px;
}

/* ============================================
   3D TILT
   ============================================ */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

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

/* ============================================
   GLITCH TEXT EFFECT
   ============================================ */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch:hover::before {
  animation: glitch1 0.3s linear;
  color: var(--neon-cyan);
  opacity: 0.7;
  z-index: -1;
}

.glitch:hover::after {
  animation: glitch2 0.3s linear;
  color: var(--neon-sakura);
  opacity: 0.7;
  z-index: -2;
}

@keyframes glitch1 {
  0% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  25% { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); }
  50% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 0); }
  75% { clip-path: inset(10% 0 70% 0); transform: translate(2px, 0); }
  100% { clip-path: inset(50% 0 20% 0); transform: translate(0); }
}

@keyframes glitch2 {
  0% { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); }
  25% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  50% { clip-path: inset(30% 0 40% 0); transform: translate(2px, 0); }
  75% { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 0); }
  100% { clip-path: inset(20% 0 50% 0); transform: translate(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root { --section-padding: 80px 0; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-avatar-wrapper {
    display: flex;
    justify-content: center;
  }

  .about-avatar { max-width: 220px; }
  .about-tech-stack { justify-content: center; }
  .about-stats { justify-content: center; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%; max-width: 300px;
    height: 100vh;
    background: rgba(7, 6, 13, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 90px 32px 40px;
    gap: 16px;
    transition: right var(--transition-base);
    border-left: 1px solid var(--border);
  }

  .nav-links.open { right: 0; }
  .nav-links a { font-size: 0.9rem; }
  .hamburger { display: flex; }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-scroll-indicator { display: none; }

  .timeline { padding-left: 24px; }
  .timeline-dot { left: -30px; }
  .timeline-card { padding: 18px; }
  .timeline-header { flex-direction: column; }

  .skills-grid { grid-template-columns: 1fr; }
  .education-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .section-title { margin-bottom: 28px; }
  .about-stats { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero { padding-top: 80px; }
  .glass-card { padding: 18px; }
}

/* --- Nav overlay --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(3px);
}

.nav-overlay.active { display: block; }
