/* ==========================================================================
   MUHAMMAD FARREL (NOEL) - 潮風のポートフォリオ
   Anime Pastel Seaside Theme • Style.css
   Author: Muhammad Farrel (Noel)
   ========================================================================== */

/* --- 1. CSS VARIABLES & THEMES --- */
:root {
  /* Default: Daylight Soft Pastel (昼 - Hiruma) */
  --bg-base: #f4f8fc;
  --bg-surface: rgba(255, 255, 255, 0.78);
  --bg-surface-solid: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-pill: rgba(241, 245, 249, 0.85);

  --border-soft: rgba(203, 213, 225, 0.75);
  --border-card: rgba(226, 232, 240, 0.85);
  --border-focus: #38bdf8;

  --text-main: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-white: #ffffff;

  /* Pastel Palette Tokens */
  --pastel-sky: #0ea5e9;
  --pastel-sky-soft: #e0f2fe;
  --pastel-sky-border: #bae6fd;

  --pastel-pink: #ec4899;
  --pastel-pink-soft: #fce7f3;
  --pastel-pink-border: #fbcfe8;

  --pastel-mint: #0d9488;
  --pastel-mint-soft: #ccfbf1;
  --pastel-mint-border: #99f6e4;

  --pastel-sand: #d97706;
  --pastel-sand-soft: #fef3c7;
  --pastel-sand-border: #fde68a;

  --hanko-red: #e11d48;
  --hanko-bg: rgba(225, 29, 72, 0.08);

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(100, 116, 139, 0.08);
  --shadow-card: 0 12px 32px -8px rgba(100, 116, 139, 0.14);
  --shadow-hover: 0 20px 40px -12px rgba(14, 165, 233, 0.2);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-jp: 'Zen Maru Gothic', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-height: 72px;
  --container-width: 1140px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sunset Twilight Theme (夕 - Yūgata) */
[data-theme="sunset"] {
  --bg-base: #faf2f4;
  --bg-surface: rgba(255, 245, 247, 0.82);
  --bg-surface-solid: #fff5f7;
  --bg-card: rgba(255, 248, 250, 0.88);
  --bg-card-hover: #ffffff;
  --bg-pill: rgba(254, 226, 226, 0.7);

  --border-soft: rgba(244, 194, 203, 0.75);
  --border-card: rgba(251, 207, 216, 0.85);
  --border-focus: #f43f5e;

  --text-main: #271822;
  --text-muted: #573a4b;
  --text-dim: #7a586c;

  --pastel-sky: #f43f5e;
  --pastel-sky-soft: #ffe4e6;
  --pastel-sky-border: #fecdd3;

  --pastel-pink: #d946ef;
  --pastel-pink-soft: #fae8ff;
  --pastel-pink-border: #f5d0fe;

  --pastel-mint: #ea580c;
  --pastel-mint-soft: #ffedd5;
  --pastel-mint-border: #fed7aa;

  --pastel-sand: #d97706;
  --pastel-sand-soft: #fef3c7;
  --pastel-sand-border: #fde68a;

  --shadow-card: 0 12px 32px -8px rgba(190, 75, 110, 0.16);
  --shadow-hover: 0 20px 40px -12px rgba(244, 63, 94, 0.22);
}

/* Moonlit Night Coast Theme (夜 - Yoru) */
[data-theme="night"] {
  --bg-base: #0b1329;
  --bg-surface: rgba(15, 23, 42, 0.82);
  --bg-surface-solid: #0f172a;
  --bg-card: rgba(23, 33, 58, 0.85);
  --bg-card-hover: #1e293b;
  --bg-pill: rgba(30, 41, 59, 0.85);

  --border-soft: rgba(51, 65, 85, 0.75);
  --border-card: rgba(71, 85, 105, 0.7);
  --border-focus: #38bdf8;

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;

  --pastel-sky: #38bdf8;
  --pastel-sky-soft: rgba(56, 189, 248, 0.16);
  --pastel-sky-border: rgba(56, 189, 248, 0.35);

  --pastel-pink: #f472b6;
  --pastel-pink-soft: rgba(244, 114, 182, 0.16);
  --pastel-pink-border: rgba(244, 114, 182, 0.35);

  --pastel-mint: #2dd4bf;
  --pastel-mint-soft: rgba(45, 212, 191, 0.16);
  --pastel-mint-border: rgba(45, 212, 191, 0.35);

  --pastel-sand: #fbbf24;
  --pastel-sand-soft: rgba(251, 191, 36, 0.16);
  --pastel-sand-border: rgba(251, 191, 36, 0.35);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 20px 40px -10px rgba(56, 189, 248, 0.28);
}

/* --- 2. GLOBAL RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- 3. ATMOSPHERIC BACKDROP & SKY ART --- */
.sky-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.sky-gradient-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #d8ecf8 0%, #ebf5fb 40%, #f7f9fc 70%, var(--bg-base) 100%);
  transition: background 0.6s ease;
}

[data-theme="sunset"] .sky-gradient-layer {
  background: linear-gradient(180deg, #ffd3b6 0%, #ffaaa5 35%, #ffd3b6 70%, var(--bg-base) 100%);
}

[data-theme="night"] .sky-gradient-layer {
  background: linear-gradient(180deg, #090e1f 0%, #0f1936 45%, #131d3d 75%, var(--bg-base) 100%);
}

.sky-anime-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 65vh;
  background-size: cover;
  background-position: center top;
  opacity: 0.38;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 50%, rgba(0,0,0,0) 100%);
  filter: saturate(1.15) brightness(1.05);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

[data-theme="sunset"] .sky-anime-art {
  opacity: 0.32;
  filter: sepia(0.35) hue-rotate(-20deg) saturate(1.4) brightness(0.95);
}

[data-theme="night"] .sky-anime-art {
  opacity: 0.20;
  filter: hue-rotate(180deg) saturate(0.9) brightness(0.7);
}

.sky-overlay-blend {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  mix-blend-mode: soft-light;
}

/* Falling Sakura & Sea Breeze Particle Canvas */
.petal-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* --- 4. NAVBAR --- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 8px 24px -6px rgba(100, 116, 139, 0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  position: relative;
  transition: transform 0.25s ease;
  user-select: none;
  flex-shrink: 0;
}

.brand-portfolio-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-brand:hover .brand-portfolio-logo {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.28);
}

.brand-hanko {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--hanko-red);
  color: #ffffff;
  font-family: var(--font-jp);
  font-size: 1.25rem;
  font-weight: 900;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.8);
  user-select: none;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-subtitle {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-link .nav-jp {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  opacity: 0.75;
}

.nav-link:hover, .nav-link.active {
  color: var(--pastel-sky);
  background: var(--pastel-sky-soft);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Audio Synthesizer Button */
.coastal-audio-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.coastal-audio-btn:hover {
  background: var(--pastel-sky-soft);
  border-color: var(--pastel-sky-border);
  color: var(--pastel-sky);
  transform: translateY(-1px);
}

.coastal-audio-btn.playing {
  background: var(--pastel-sky-soft);
  border-color: var(--pastel-sky-border);
  color: var(--pastel-sky);
}

.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.audio-bars .bar {
  width: 3px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
  transition: height 0.2s ease;
}

.coastal-audio-btn.playing .bar-1 {
  animation: audioWave 0.8s ease-in-out infinite alternate;
}
.coastal-audio-btn.playing .bar-2 {
  animation: audioWave 0.8s 0.25s ease-in-out infinite alternate;
}
.coastal-audio-btn.playing .bar-3 {
  animation: audioWave 0.8s 0.5s ease-in-out infinite alternate;
}

@keyframes audioWave {
  0% { height: 4px; }
  100% { height: 14px; }
}

/* Atmosphere Switcher */
.atmosphere-bar {
  display: flex;
  align-items: center;
  background: var(--bg-pill);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.atmo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.atmo-btn .atmo-kanji {
  font-family: var(--font-jp);
  font-weight: 700;
}

.atmo-btn:hover {
  color: var(--text-main);
}

.atmo-btn.active {
  background: var(--bg-surface-solid);
  color: var(--pastel-sky);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.hamburger {
  display: none;
  font-size: 1.25rem;
  color: var(--text-main);
  padding: 0.4rem;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 99;
  padding: 1.5rem;
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
}

.mobile-link .nav-jp {
  font-family: var(--font-jp);
  color: var(--pastel-sky);
  font-size: 0.9rem;
}

/* --- 5. HERO SECTION --- */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.eyebrow-stamp {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 0.78rem;
  background: var(--hanko-bg);
  color: var(--hanko-red);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.eyebrow-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.greeting-jp {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pastel-sky);
}

.greeting-id {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
}

.hero-name {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.pastel-gradient-name {
  background: linear-gradient(135deg, var(--pastel-sky) 0%, var(--pastel-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-ruby-name {
  display: block;
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.hero-tagline-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}

.tagline-bullet {
  color: var(--pastel-sky);
}

.typed-cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background-color: var(--pastel-sky);
  vertical-align: middle;
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-pastel-primary {
  background: linear-gradient(135deg, var(--pastel-sky) 0%, #38bdf8 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(14, 165, 233, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-pastel-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(14, 165, 233, 0.45);
}

.btn-pastel-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.btn-pastel-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--pastel-sky);
  color: var(--pastel-sky);
  transform: translateY(-2px);
}

.hero-quick-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-pill);
  border: 1px solid var(--border-soft);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pastel-mint);
  box-shadow: 0 0 6px var(--pastel-mint);
}

/* Polaroid Visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.polaroid-wrapper {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.washi-tape {
  position: absolute;
  width: 100px;
  height: 26px;
  background: rgba(254, 240, 138, 0.65);
  border: 1px dashed rgba(234, 179, 8, 0.5);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.washi-top {
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
}

.washi-bottom {
  bottom: -10px;
  right: 15px;
  width: 80px;
  transform: rotate(4deg);
}

.polaroid-card {
  background: #ffffff;
  padding: 1rem 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 16px 40px -10px rgba(100, 116, 139, 0.22);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transform: rotate(1.5deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="night"] .polaroid-card {
  background: #1e293b;
  border-color: #334155;
}

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.polaroid-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pastel-sky-soft);
  margin-bottom: 1rem;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img {
  transform: scale(1.05);
}

.polaroid-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.polaroid-caption {
  text-align: center;
}

.caption-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.15rem;
  color: #0f172a;
}

[data-theme="night"] .caption-title {
  color: #f8fafc;
}

.caption-sub {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: #64748b;
  margin-top: 0.15rem;
}

.caption-quote {
  font-family: var(--font-jp);
  font-size: 0.82rem;
  color: var(--pastel-sky);
  margin-top: 0.4rem;
  font-weight: 500;
}

/* --- 6. FLOWING REALISTIC OCEAN WAVES SECTION --- */
.waves-showcase-section {
  padding: 3rem 0 4.5rem;
  position: relative;
}

.waves-section-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.badge-kanji {
  font-family: var(--font-jp);
  color: var(--pastel-sky);
}

.section-heading {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.section-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

.wave-canvas-viewport {
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--border-card);
  background: #eef6fc;
}

[data-theme="sunset"] .wave-canvas-viewport {
  background: #ffebe8;
}

[data-theme="night"] .wave-canvas-viewport {
  background: #091224;
}

.ocean-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.wave-controls-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.wave-stat-pill, .wave-hint-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

[data-theme="night"] .wave-stat-pill, 
[data-theme="night"] .wave-hint-pill {
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
}

.wave-indicator-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* --- 7. ABOUT SECTION --- */
.about-section {
  padding: 4.5rem 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.about-story-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.card-ribbon-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--pastel-pink-soft);
  color: var(--pastel-pink);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.story-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.story-paragraphs p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.japanese-quote-box {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border-left: 4px solid var(--pastel-sky);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-kanji {
  display: block;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pastel-sky);
  margin-bottom: 0.35rem;
}

.quote-id {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Bento Stats */
.about-stats-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pastel-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pastel-stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.box-blue {
  border-top: 4px solid var(--pastel-sky);
  background: linear-gradient(180deg, var(--pastel-sky-soft) 0%, var(--bg-card) 60%);
}

.box-pink {
  border-top: 4px solid var(--pastel-pink);
  background: linear-gradient(180deg, var(--pastel-pink-soft) 0%, var(--bg-card) 60%);
}

.box-mint {
  border-top: 4px solid var(--pastel-mint);
  background: linear-gradient(180deg, var(--pastel-mint-soft) 0%, var(--bg-card) 60%);
}

.box-sand {
  border-top: 4px solid var(--pastel-sand);
  background: linear-gradient(180deg, var(--pastel-sand-soft) 0%, var(--bg-card) 60%);
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.stat-unit {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
}

.stat-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* --- 8. SKILLS SECTION --- */
.skills-section {
  padding: 4.5rem 0;
  position: relative;
}

.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.skill-category-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.skill-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-focus);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-soft);
}

.category-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--pastel-sky-soft);
  color: var(--pastel-sky);
}

.category-titles {
  display: flex;
  flex-direction: column;
}

.category-title-main {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.category-title-jp {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.skill-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  transition: var(--transition);
}

.skill-chip i {
  color: var(--pastel-sky);
  font-size: 0.95rem;
}

.skill-chip:hover {
  background: var(--pastel-sky-soft);
  border-color: var(--pastel-sky-border);
  color: var(--pastel-sky);
  transform: translateY(-2px);
}

/* --- 9. PROJECTS SECTION --- */
.projects-section {
  padding: 4.5rem 0;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pastel-sky), var(--pastel-pink));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-focus);
}

.project-card:hover::before {
  opacity: 1;
}

.project-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.project-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pastel-sky);
  background: var(--pastel-sky-soft);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.project-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--pastel-sky);
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-preview-frame {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  position: relative;
}

.project-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  display: block;
}

.project-card:hover .project-preview-img {
  transform: scale(1.03);
}

.project-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-challenge-box {
  background: var(--bg-surface);
  border-left: 3px solid var(--pastel-sky);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.project-challenge-box .challenge-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pastel-sky);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

.project-challenge-box .challenge-text {
  display: block;
  color: var(--text-muted);
}

.project-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-pill);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.project-btn-primary {
  background: var(--pastel-sky-soft);
  color: var(--pastel-sky);
  border: 1px solid var(--pastel-sky-border);
}

.project-btn-primary:hover {
  background: var(--pastel-sky);
  color: #ffffff;
}

.project-btn-outline {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

.project-btn-outline:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

/* --- 10. JOURNEY / TIMELINE SECTION --- */
.journey-section {
  padding: 4.5rem 0;
  position: relative;
}

.journey-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 820px;
  margin: 2.5rem auto 0;
  position: relative;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--pastel-sky) 0%, var(--pastel-pink) 50%, var(--pastel-mint) 100%);
  opacity: 0.65;
}

.timeline-node {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
}

.timeline-indicator {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-solid);
  border: 2px solid var(--pastel-sky);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.indicator-icon {
  font-size: 1.1rem;
  color: var(--pastel-sky);
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  flex-grow: 1;
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateX(4px);
  border-color: var(--border-focus);
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pastel-sky);
}

.timeline-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  background: var(--pastel-pink-soft);
  color: var(--pastel-pink);
  border-radius: var(--radius-full);
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.timeline-place {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- 11. CONTACT SECTION --- */
.contact-section {
  padding: 4.5rem 0;
  position: relative;
}

.contact-card {
  max-width: 780px;
  margin: 2.5rem auto 0;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.ichigo-ichie-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.kanji-seal {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--hanko-red);
  border: 2px solid var(--hanko-red);
  padding: 0.25rem 1.25rem;
  border-radius: 8px;
  letter-spacing: 0.15em;
  background: var(--hanko-bg);
}

.seal-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-style: italic;
}

.contact-email-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.email-visual-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.email-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pastel-sky-soft);
  color: var(--pastel-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.email-text-info {
  display: flex;
  flex-direction: column;
}

.email-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

.email-address {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.email-actions-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-copy, .btn-mailto {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-copy {
  background: var(--pastel-sky);
  color: #ffffff;
}

.btn-copy:hover {
  background: #0284c7;
}

.btn-mailto {
  background: var(--bg-pill);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}

.btn-mailto:hover {
  border-color: var(--pastel-sky);
  color: var(--pastel-sky);
}

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.social-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: var(--transition);
  text-align: left;
}

.social-tile:hover {
  transform: translateY(-3px);
  border-color: var(--pastel-sky);
  box-shadow: var(--shadow-sm);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--pastel-sky);
}

.social-meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.social-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.social-handle {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.social-arrow {
  font-size: 0.85rem;
  color: var(--text-dim);
  opacity: 0.6;
}

/* --- 12. FOOTER --- */
.footer {
  padding: 3rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand-side {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo-box {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  flex-shrink: 0;
}

.footer-portfolio-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease;
}

.footer-logo-box:hover .footer-portfolio-logo {
  transform: translateY(-2px);
}

.footer-hanko {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--hanko-red);
  color: #ffffff;
  font-family: var(--font-jp);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.footer-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
}

.footer-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-quote-side {
  text-align: right;
}

.footer-quote-side code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--pastel-sky);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

/* Back-to-Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--transition);
  z-index: 90;
}

.back-to-top-jp {
  font-family: var(--font-jp);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--pastel-sky);
  line-height: 1;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--pastel-sky);
  color: #ffffff;
  border-color: var(--pastel-sky);
  transform: translateY(-3px);
}

.back-to-top:hover .back-to-top-jp {
  color: #ffffff;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--text-main);
  color: var(--bg-base);
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast i {
  color: #10b981;
}

/* --- 13. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .skills-categories-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Global viewport fix */
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .container {
    padding: 0 1rem;
  }

  /* Compact Navbar for mobile */
  .navbar {
    padding: 0;
  }

  .nav-container {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .nav-brand {
    gap: 0.5rem;
  }

  .brand-logo-container {
    width: 34px;
    height: 34px;
  }

  .brand-portfolio-logo {
    width: 30px;
    height: 30px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  /* Compact audio button on mobile */
  .coastal-audio-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
    min-height: 38px;
  }

  .coastal-audio-btn .audio-text {
    display: none;
  }

  /* Atmosphere bar: icons only on mobile */
  .atmosphere-bar {
    padding: 2px;
    gap: 1px;
  }

  .atmo-btn {
    padding: 0.35rem 0.5rem;
    min-width: 32px;
    min-height: 32px;
    justify-content: center;
  }

  .atmo-btn .atmo-kanji {
    display: none;
  }

  /* Touch-friendly hamburger */
  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    background: var(--bg-pill);
    border: 1px solid var(--border-soft);
  }

  /* Mobile Drawer full-bleed and safe */
  .mobile-drawer {
    display: block;
    width: 100vw;
    max-width: 100%;
    left: 0;
    right: 0;
    box-sizing: border-box;
    padding: 1rem;
  }

  .mobile-link {
    min-height: 44px;
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
  }

  /* Sections vertical rhythm */
  .hero-section {
    padding: 2.25rem 0 2rem;
  }

  .waves-showcase-section,
  .about-section,
  .skills-section,
  .projects-section,
  .journey-section,
  .contact-section {
    padding: 2.75rem 0;
  }

  .hero-name {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    line-height: 1.2;
  }

  .hero-ruby-name {
    font-size: 0.9rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.85rem;
  }

  .hero-bio {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .btn {
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  .polaroid-wrapper {
    max-width: 260px;
  }

  .section-heading {
    font-size: 1.55rem;
  }

  .section-subtext {
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
  }

  .wave-canvas-viewport {
    height: 240px;
  }

  .wave-controls-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    bottom: 8px;
    left: 8px;
    right: 8px;
  }

  .wave-stat-pill,
  .wave-hint-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  /* Cards & Bento */
  .about-story-card {
    padding: 1.25rem;
  }

  .about-stats-bento {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pastel-stat-box {
    padding: 1rem 1.25rem;
  }

  .skills-categories-grid {
    gap: 1.25rem;
  }

  .skill-category-card {
    padding: 1.25rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    padding: 1.25rem;
  }

  .project-preview-frame {
    height: 175px;
    margin-bottom: 1rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  .project-challenge-box {
    font-size: 0.84rem;
    padding: 0.6rem 0.85rem;
    margin-bottom: 1rem;
  }

  /* Timeline on mobile */
  .timeline-node {
    gap: 1rem;
  }

  .timeline-indicator {
    width: 42px;
    height: 42px;
  }

  .indicator-icon {
    font-size: 0.95rem;
  }

  .journey-timeline::before {
    left: 20px;
  }

  .timeline-card {
    padding: 1.25rem;
  }

  .timeline-title {
    font-size: 1.1rem;
  }

  .timeline-desc {
    font-size: 0.88rem;
  }

  /* Contact on mobile */
  .contact-card {
    padding: 1.75rem 1.25rem;
  }

  .contact-social-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .contact-email-wrapper {
    padding: 1rem;
    gap: 1rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-quote-side {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-tagline-wrapper {
    width: 100%;
    font-size: 0.88rem;
    padding: 0.45rem 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .contact-email-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .email-visual-group {
    width: 100%;
  }

  .email-address {
    font-size: 0.92rem;
    word-break: break-all;
  }

  .email-actions-group {
    width: 100%;
  }

  .btn-copy, .btn-mailto {
    flex: 1;
    justify-content: center;
    min-height: 44px;
  }

  .project-actions {
    gap: 0.5rem;
  }

  .project-btn {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 360px) {
  .nav-container {
    padding: 0 0.5rem;
    gap: 0.25rem;
  }

  .brand-logo-container {
    width: 28px;
    height: 28px;
  }

  .brand-portfolio-logo {
    width: 24px;
    height: 24px;
  }

  .brand-title {
    font-size: 0.84rem;
  }

  .nav-actions {
    gap: 0.25rem;
  }

  .coastal-audio-btn {
    padding: 0.3rem 0.45rem;
  }

  .atmosphere-bar {
    padding: 1px;
    gap: 0;
  }

  .atmo-btn {
    padding: 0.25rem 0.35rem;
    min-width: 28px;
    min-height: 28px;
    font-size: 0.72rem;
  }

  .hamburger {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .hero-name {
    font-size: 1.75rem;
  }
}
