/* =========================================
   DICTO ADY PORTFOLIO — MAIN STYLESHEET
   ========================================= */

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

/* =========================================
   PARTICLE CONSTELLATION BACKGROUND
   ========================================= */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* =========================================
   LOADING SCREEN
   ========================================= */

/* Prevent flash of content while loading */
body.is-loading {
  overflow: hidden;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #05070B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---- Binary Rain Canvas ---- */
.binary-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  pointer-events: none;
}

/* ---- Center Content ---- */
.loading-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

/* ---- Logo ---- */
.loading-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: loadingLogoPulse 2s ease-in-out infinite;
}

.loading-logo-bracket {
  color: #3B82F6;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
}

.loading-logo-name {
  color: #F8FAFC;
  margin: 0 0.35em;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

@keyframes loadingLogoPulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px rgba(59,130,246,0.5)); }
  50%       { opacity: 0.8; filter: drop-shadow(0 0 24px rgba(59,130,246,0.9)); }
}

/* ---- Scan Bar (horizontal sweep line) ---- */
.loading-scan-bar {
  width: clamp(200px, 40vw, 360px);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.3) 20%,
    #3B82F6 50%,
    rgba(59, 130, 246, 0.3) 80%,
    transparent 100%
  );
  border-radius: 9999px;
  animation: scanSweep 1.8s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

@keyframes scanSweep {
  0%   { transform: scaleX(0.2); opacity: 0.3; }
  50%  { transform: scaleX(1);   opacity: 1;   }
  100% { transform: scaleX(0.2); opacity: 0.3; }
}

/* ---- Binary Bits Row ---- */
.loading-bits {
  display: flex;
  gap: 0.6rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 2.4rem;
  font-weight: 700;
  color: #3B82F6;
  letter-spacing: 0.2em;
}

.bit {
  display: inline-block;
  animation: bitFlicker 0.7s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.9);
}

.bit:nth-child(1) { animation-delay: 0s;    }
.bit:nth-child(2) { animation-delay: 0.08s; }
.bit:nth-child(3) { animation-delay: 0.16s; }
.bit:nth-child(4) { animation-delay: 0.24s; }
.bit:nth-child(5) { animation-delay: 0.32s; }
.bit:nth-child(6) { animation-delay: 0.40s; }
.bit:nth-child(7) { animation-delay: 0.48s; }
.bit:nth-child(8) { animation-delay: 0.56s; }

@keyframes bitFlicker {
  0%, 100% { opacity: 1;   color: #3B82F6; }
  30%       { opacity: 0.2; color: #60A5FA; }
  60%       { opacity: 0.9; color: #2563EB; }
}

/* ---- Multilingual Text ---- */
.loading-lang-wrap {
  position: relative;
  height: 3rem;
  width: 320px;
  overflow: hidden;
}

/* Language flag/label strip */
.loading-lang-labels {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.2rem;
}

.loading-lang-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.4s ease, transform 0.4s ease;
}

.loading-lang-dot.active {
  background: #3B82F6;
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(59,130,246,0.8);
}

.loading-lang {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  /* Exiting: slide up */
  transition: opacity 0.4s ease, transform 0.4s ease;
  white-space: nowrap;
  pointer-events: none;
}

.loading-lang.active {
  opacity: 1;
  transform: translateY(0);
}

/* Slide out upward when leaving */
.loading-lang.leaving {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.loading-lang[data-lang="jp"] {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: none;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
}

.loading-kana {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 400;
  letter-spacing: 0.06em;
  font-family: 'Inter', sans-serif;
  text-transform: none;
}

/* ---- Dot Ellipsis ---- */
.loading-dots {
  display: flex;
  gap: 0.4rem;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  background: #3B82F6;
  border-radius: 50%;
  animation: dotBounce 1.2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.7);
}

.loading-dots span:nth-child(1) { animation-delay: 0s;    }
.loading-dots span:nth-child(2) { animation-delay: 0.18s; }
.loading-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%            { transform: scale(1.3); opacity: 1;   }
}

/* ---- Progress Bar ---- */
.loading-progress-wrap {
  position: relative;
  width: clamp(200px, 40vw, 340px);
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563EB, #60A5FA, #2563EB);
  background-size: 200% 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
  animation: progressShimmer 1.5s linear infinite;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@keyframes progressShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.loading-progress-pct {
  position: absolute;
  right: 0;
  top: -1.4rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #3B82F6;
  letter-spacing: 0.08em;
}

/* ---- Status Line ---- */
.loading-status {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  color: #64748B;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: statusPulse 2s ease-in-out infinite;
}

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

/* ---- CSS DESIGN TOKENS — DARK MODE (default) ---- */
:root {
  /* Backgrounds */
  --bg-primary:      #05070B;
  --bg-secondary:    #0A0F18;
  --bg-card:         #0D1420;
  --bg-card-hover:   #111827;
  --border:          rgba(255, 255, 255, 0.07);
  --border-hover:    rgba(59, 130, 246, 0.4);

  /* Blue Palette */
  --accent-blue:     #2563EB;
  --blue-bright:     #3B82F6;
  --blue-light:      #60A5FA;
  --blue-glow:       rgba(59, 130, 246, 0.15);
  --blue-glow-sm:    rgba(59, 130, 246, 0.08);

  /* Text */
  --text-primary:    #F8FAFC;
  --text-secondary:  #94A3B8;
  --text-muted:      #64748B;

  /* Navbar overlay */
  --nav-bg:          rgba(5, 7, 11, 0.80);
  --nav-mobile-bg:   rgba(5, 7, 11, 0.97);

  /* Hero grid */
  --hero-grid-line:  rgba(255, 255, 255, 0.025);

  /* Typography */
  --font-sans:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:    'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --section-py:      clamp(5rem, 10vw, 8rem);
  --container-px:    clamp(1.25rem, 5vw, 2rem);
  --max-width:       1200px;

  /* Radius */
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       16px;
  --radius-xl:       24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-blue:       0 0 40px rgba(59, 130, 246, 0.12);
  --shadow-card:       0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(59, 130, 246, 0.1);
}

/* ---- LIGHT MODE TOKENS ---- */
[data-theme="light"] {
  --bg-primary:      #F0F4FF;
  --bg-secondary:    #E8EEFF;
  --bg-card:         #FFFFFF;
  --bg-card-hover:   #F5F7FF;
  --border:          rgba(59, 80, 150, 0.12);
  --border-hover:    rgba(37, 99, 235, 0.45);

  --accent-blue:     #1D4ED8;
  --blue-bright:     #2563EB;
  --blue-light:      #3B82F6;
  --blue-glow:       rgba(37, 99, 235, 0.12);
  --blue-glow-sm:    rgba(37, 99, 235, 0.06);

  --text-primary:    #0F172A;
  --text-secondary:  #475569;
  --text-muted:      #94A3B8;

  --nav-bg:          rgba(240, 244, 255, 0.85);
  --nav-mobile-bg:   rgba(240, 244, 255, 0.98);

  --hero-grid-line:  rgba(37, 99, 235, 0.06);

  --shadow-blue:       0 0 40px rgba(37, 99, 235, 0.08);
  --shadow-card:       0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-card-hover: 0 8px 48px rgba(15, 23, 42, 0.14), 0 0 24px rgba(37, 99, 235, 0.08);
}

/* ---- SMOOTH THEME TRANSITION ---- */
body, nav, section, footer, article, div, p, span, a, button, input {
  transition:
    background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color     0.35s cubic-bezier(0.4, 0, 0.2, 1),
    color            0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow       0.35s cubic-bezier(0.4, 0, 0.2, 1);
}


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

html {
  scroll-behavior: smooth;
  font-size: 12.8px; /* = 80% of 16px — matches Chrome 80% zoom feel */
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure page content renders above the fixed canvas background */
main, footer {
  position: relative;
  z-index: 1;
}


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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- UTILITY ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--blue-light);
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-blue { color: var(--blue-light); }
.text-muted { color: var(--text-muted); }

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition-base), border-color var(--transition-base), padding var(--transition-base), backdrop-filter var(--transition-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--border);
  padding: 0.875rem 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.nav-logo span {
  color: var(--blue-light);
}

.nav-logo:hover {
  color: var(--blue-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--accent-blue);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

/* ── Download CV Button ── */
.nav-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-light);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.06);
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
}

.nav-cv-btn svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.nav-cv-btn:hover {
  color: var(--text-primary);
  border-color: var(--blue-bright);
  background: rgba(59, 130, 246, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.nav-cv-btn:hover svg {
  transform: translateY(2px);
}

/* Mobile version */
.nav-cv-mobile {
  font-size: 1.1rem;
  padding: 0.75rem 2.5rem;
  margin-top: 0.5rem;
  border-radius: var(--radius-md);
}

/* Nav right group (toggle + hamburger) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Language Toggle Button ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.65rem;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.lang-toggle:hover {
  color: var(--blue-light);
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

.lang-label {
  color: var(--blue-light);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Page fade on language switch */
body.lang-transition main,
body.lang-transition footer {
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* ── Theme Toggle Button ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: var(--blue-bright);
  color: var(--blue-light);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.theme-toggle:active {
  transform: scale(0.92);
}

/* SVG icons base styling & spring transition */
.theme-toggle svg {
  position: absolute;
  width: 18px;
  height: 18px;
  transform-origin: center center;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.35s ease;
}

/* Sun icon: visible in dark mode */
.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.4));
}

.theme-toggle:hover .icon-sun {
  transform: rotate(45deg) scale(1.12);
}

/* Moon icon: hidden in dark mode */
.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-140deg) scale(0.2);
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

/* Light mode states */
[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(140deg) scale(0.2);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.4));
}

[data-theme="light"] .theme-toggle:hover .icon-moon {
  transform: rotate(-25deg) scale(1.12);
}

[data-theme="light"] .theme-toggle {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--blue-bright);
}

/* Hamburger — hidden on mobile (bottom nav replaces it) */
.nav-hamburger {\n  display: none;\n}

/* ============================================
   BOTTOM NAV — Mobile App Style
   ============================================ */
.bottom-nav {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {

  /* Hide desktop nav links & hamburger on mobile */
  .nav-links,
  .nav-cv-btn:not(.nav-cv-mobile),
  .nav-hamburger {
    display: none !important;
  }

  /* Slim down the top navbar on mobile — just logo */
  .navbar {
    padding: 0.85rem 0;
  }

  /* Extra bottom padding so content isn't hidden by bottom nav */
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  /* Ensure footer layout stacks into 1 full-width column on mobile */
  .footer-main {
    grid-template-columns: 1fr !important;
    gap: 2.25rem !important;
  }

  .footer-brand {
    grid-column: span 1 !important;
  }

  .footer-contact-link {
    font-size: 0.85rem;
    max-width: 100%;
  }

  .footer-bottom {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  /* ---- Bottom Nav Bar ---- */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(5, 7, 11, 0.85);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    align-items: stretch;
    justify-content: space-around;
  }

  /* Top border line — neutral */
  .bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  }

  /* ---- Each Tab Item ---- */
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 4px;
    padding: 8px 4px 4px;
    color: rgba(148, 163, 184, 0.7);
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  /* Active indicator pill — hidden */
  .bottom-nav-item::before {
    display: none;
  }

  .bottom-nav-item.active::before {
    display: none;
  }

  .bottom-nav-item.active {
    color: var(--text-primary);
  }

  .bottom-nav-item.active .bnav-icon {
    filter: none;
  }

  /* Tap ripple / scale effect */
  .bottom-nav-item:active {
    transform: scale(0.9);
  }

  /* ---- Icon ---- */
  .bnav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
  }

  .bottom-nav-item.active .bnav-icon {
    transform: translateY(-2px) scale(1.1);
  }

  /* ---- Label ---- */
  .bnav-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
  }

  .bottom-nav-item.active .bnav-label {
    opacity: 1;
    color: inherit;
  }

  /* Active icon background blob — removed */
  .bottom-nav-item.active::after {
    display: none;
  }
}

/* Light mode adjustments */
@media (max-width: 768px) {
  [data-theme="light"] .bottom-nav {
    background: rgba(240, 244, 255, 0.88);
    border-top-color: rgba(59, 80, 150, 0.12);
  }

  [data-theme="light"] .bottom-nav-item {
    color: rgba(71, 85, 105, 0.7);
  }

  [data-theme="light"] .bottom-nav-item.active {
    color: var(--text-primary);
  }

  [data-theme="light"] .bottom-nav-item.active .bnav-label {
    color: inherit;
  }

  [data-theme="light"] .bottom-nav-item.active .bnav-icon {
    filter: none;
  }

  [data-theme="light"] .bottom-nav-item::before {
    background: #2563EB;
  }

  [data-theme="light"] .bottom-nav-item.active::after {
    background: rgba(37, 99, 235, 0.08);
  }
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Subtle grid background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Animated gradient blob */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(37, 99, 235, 0.12) 0%,
    rgba(59, 130, 246, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: heroGlowPulse 8s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
  text-align: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 2rem;
}

.hero-label-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  animation: blink 2s ease infinite;
}

.hero-label-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.25);
  animation: ripple 2s ease infinite;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-heading .highlight {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-light) 60%, #a5c4fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.hero-subheading {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--accent-blue);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
  animation: blink 2s ease infinite;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.25);
  animation: ripple 2s ease infinite;
}

/* Hero scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-indicator {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--text-muted));
  animation: scrollLine 2s ease-in-out infinite;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about {
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-text .section-label {
  margin-bottom: 1rem;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

/* Heading + circular photo frame side by side */
.about-heading-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-heading-row .section-title {
  margin-bottom: 0;
  flex: 1;
}

/* Circular photo frame */
.about-photo-frame {
  --frame-size: clamp(110px, 14vw, 160px);
  flex-shrink: 0;
  width: var(--frame-size);
  height: var(--frame-size);
  border-radius: 50%;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.25);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.about-photo-frame:hover {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.14),
    0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Actual photo — hidden until src is set */
.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  transform: scale(1.18) translateY(8%);
  display: none; /* shown via JS when src is not empty */
}

.about-photo[src]:not([src=""]) {
  display: block;
}

/* Placeholder icon (visible when no photo) */
.about-photo-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48%;
  height: 48%;
  color: var(--text-muted);
  opacity: 0.5;
}

.about-photo[src]:not([src=""]) ~ .about-photo-placeholder {
  display: none;
}



.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  text-align: justify;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.about-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-blue);
  transform: translateX(4px);
}

.about-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.5rem;
}

.about-card-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ============================================
   TECH STACK SECTION — MARQUEE
   ============================================ */
.section-skills {
  padding: var(--section-py) 0;
}

.skills-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.skills-header .section-label {
  justify-content: center;
}

.skills-header .section-label::before {
  display: none;
}

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Flat horizontal centered layout (no animation) ── */
.skills-flat {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 0;
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-category-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Marquee wrapper (clips overflow + fade edges) ── */
.marquee-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  cursor: default;
}

/* Pause on hover */
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* ── Track (infinite flex strip) ── */
.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

/* Direction: kanan → kiri (standard) */
.marquee-to-left {
  animation: marqueeLeft 22s linear infinite;
}

/* Direction: kiri → kanan */
.marquee-to-right {
  animation: marqueeRight 22s linear infinite;
}

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-to-left,
  .marquee-to-right {
    animation: none;
  }
  .marquee-track {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
  }
}

/* ── Skill Card ── */
.skill-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 1.5rem 1.25rem;
  width: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: default;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base),
    background var(--transition-base);
}

/* Subtle top-center radial glow on hover */
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.09) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover {
  border-color: var(--border-hover);
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.15),
    0 8px 32px rgba(0,0,0,0.5),
    0 0 20px rgba(59,130,246,0.08);
  transform: translateY(-6px) scale(1.03);
  background: var(--bg-card-hover);
}

.skill-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), filter var(--transition-base);
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.skill-card:hover .skill-icon {
  transform: scale(1.15) translateY(-2px);
  filter: drop-shadow(0 4px 10px rgba(59,130,246,0.4));
}

.skill-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.skill-card:hover .skill-name {
  color: var(--text-primary);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.section-projects {
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
}

.projects-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover), 0 0 0 1px rgba(59,130,246,0.15);
  transform: translateY(-6px);
}

.project-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
}

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

.project-card:hover .project-image-wrap img {
  transform: scale(1.06);
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(13,20,32,0.8) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-card:hover .project-image-overlay {
  opacity: 1;
}

/* Number badge on image */
.project-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(5,7,11,0.7);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
  transition: color var(--transition-fast);
}

.project-card:hover .project-title {
  color: var(--blue-light);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-light);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.project-link:hover {
  color: var(--blue-light);
  gap: 0.75rem;
}

.project-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.project-link:hover svg {
  transform: translateX(3px);
}

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */
.section-experience {
  padding: var(--section-py) 0;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.experience-sidebar {
  position: sticky;
  top: 6rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), var(--border), transparent);
}

.timeline-item {
  padding-left: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}

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

.timeline-dot {
  position: absolute;
  left: -4px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1.5px solid var(--text-muted);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--blue-bright);
  background: var(--blue-bright);
  box-shadow: 0 0 12px rgba(59,130,246,0.5);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
  font-family: var(--font-display);
}

.timeline-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.timeline-company {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.875rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.timeline-tag {
  padding: 0.2rem 0.625rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ============================================
   CURRENTLY SECTION
   ============================================ */
.section-currently {
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
}

.currently-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.currently-header .section-label {
  justify-content: center;
}

.currently-header .section-label::before {
  display: none;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-blue);
  transform: translateY(-3px);
}

.bento-card:nth-child(1) { grid-column: span 2; }
.bento-card:nth-child(2) { grid-column: span 2; }
.bento-card:nth-child(3) { grid-column: span 2; }
.bento-card:nth-child(4) { grid-column: span 3; }
.bento-card:nth-child(5) { grid-column: span 3; }

.bento-emoji {
  font-size: 1.75rem;
  margin-bottom: 0.875rem;
  display: block;
}

.bento-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.bento-desc {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ============================================
   SYSTEM STATUS SECTION
   ============================================ */
.section-status {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.status-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.status-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.status-item-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-item-dot.green { background: #22c55e; animation: blink 3s ease infinite; }
.status-item-dot.blue  { background: var(--blue-bright); animation: blink 3s ease infinite 0.5s; }
.status-item-dot.amber { background: #f59e0b; animation: blink 3s ease infinite 1s; }

/* ============================================
   CONTACT SECTION
   ============================================ */
.section-contact {
  padding: var(--section-py) 0;
}

.contact-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.contact-title .dot {
  color: var(--blue-bright);
}

.contact-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.contact-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.contact-link svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-left .footer-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

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

.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
  .experience-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding-top: 5.5rem;
    padding-bottom: 4rem;
  }
  .hero-label {
    margin-bottom: 0.875rem;
    padding: 0.25rem 0.85rem;
    font-size: 0.7rem;
  }
  .hero-heading {
    font-size: clamp(1.6rem, 6.5vw, 2.5rem);
    margin-bottom: 0.75rem;
    line-height: 1.1;
  }
  .hero-subheading {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    max-width: 100%;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
  }
  .btn-primary, .btn-secondary {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    justify-content: center;
  }
  .hero-scroll {
    display: flex;
    bottom: 5.5rem; /* above bottom nav */
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Status */
  .status-widget {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .status-items {
    gap: 1rem;
  }

  /* Footer premium */
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-cta-heading {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  .skill-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .status-items {
    gap: 0.875rem;
  }

  /* Footer premium */
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ============================================
   FOOTER PREMIUM
   ============================================ */
.footer-premium {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Subtle top glow line */
.footer-glow-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border) 20%,
    rgba(59, 130, 246, 0.3) 50%,
    var(--border) 80%,
    transparent 100%
  );
}

/* CTA top area */
.footer-cta {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.footer-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
}

.footer-cta-label::before,
.footer-cta-label::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--blue-light);
  opacity: 0.5;
}

.footer-cta-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

.footer-cta-highlight {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-light) 60%, #a5c4fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-cta-btn {
  display: inline-flex;
}

/* Horizontal divider */
.footer-divider {
  height: 1px;
  background: var(--border);
}

/* Main 3-col grid */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

/* Brand column */
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-brand-dot {
  color: var(--blue-light);
}

.footer-brand-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.03em;
}

.footer-status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2.5s ease infinite;
}

/* Nav & Contact columns */
.footer-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-nav ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

.footer-main > * {
  min-width: 0;
}

.footer-contact,
.footer-contact ul,
.footer-contact li {
  min-width: 0;
  max-width: 100%;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  max-width: 100%;
  min-width: 0;
}

.footer-contact-text {
  min-width: 0;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.footer-contact-link:hover {
  color: var(--blue-light);
}

.footer-contact-link svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.footer-contact-link:hover svg {
  opacity: 1;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy,
.footer-made {
  font-size: 0.8rem;
  color: var(--text-muted);
}

