/* ==========================================================================
   VŨ VĂN TOÀN — DARK CYBER-STUDIO 3D PORTFOLIO (VIBRANT MULTI-COLOR EDITION)
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/Manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Core Dark Studio Surfaces */
  --bg-deep: #060913;
  --bg-surface: rgba(13, 20, 38, 0.68);
  --bg-surface-strong: rgba(16, 25, 48, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.22);

  /* High-Contrast Readable Text */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* Vibrant Multi-Color Accent Palette */
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.16);
  --cyan-glow: rgba(34, 211, 238, 0.35);

  --violet: #a855f7;
  --indigo: #818cf8;
  --violet-soft: rgba(168, 85, 247, 0.16);
  --violet-glow: rgba(168, 85, 247, 0.35);

  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.16);
  --emerald-glow: rgba(52, 211, 153, 0.35);

  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.16);
  --amber-glow: rgba(251, 191, 36, 0.35);

  --rose: #fb7185;
  --rose-soft: rgba(251, 113, 133, 0.16);
  --rose-glow: rgba(251, 113, 133, 0.35);

  /* Radii & Layout */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1220px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-deep);
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--cyan);
  color: #041018;
  font-weight: 700;
  border-radius: 999px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* Scroll Progress Rainbow Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: rgba(255, 255, 255, 0.05);
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--rose), var(--amber), var(--emerald));
  box-shadow: 0 0 14px var(--cyan-glow);
  transition: width 0.08s linear;
}

/* Ambient Vibrant Orbs & Cyber Grid */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
  will-change: transform;
}

.orb-cyan {
  width: 520px;
  height: 520px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-violet {
  width: 560px;
  height: 560px;
  top: 18%;
  right: -180px;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  animation: orbFloat 22s ease-in-out infinite alternate-reverse;
}

.orb-emerald {
  width: 440px;
  height: 440px;
  bottom: 15%;
  left: -100px;
  background: radial-gradient(circle, var(--emerald) 0%, transparent 70%);
  opacity: 0.22;
  animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb-amber {
  width: 420px;
  height: 420px;
  bottom: -120px;
  right: 10%;
  background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
  opacity: 0.2;
  animation: orbFloat 24s ease-in-out infinite alternate-reverse;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 35%, transparent 100%);
}

@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(45px, 35px, 0) scale(1.12); }
}

/* Three.js WebGL Canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform 0.35s var(--ease-out);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(10, 16, 32, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled .nav-wrap {
  background: rgba(8, 13, 26, 0.86);
  border-color: rgba(34, 211, 238, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--rose));
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}
.brand-text small {
  font-size: 0.74rem;
  color: var(--cyan);
  font-weight: 600;
}

#navigation {
  display: flex;
  align-items: center;
  gap: 6px;
}

#navigation a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease, background 0.2s ease;
}

#navigation a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

#navigation a.nav-cv {
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: #041018;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  box-shadow: 0 4px 18px rgba(34, 211, 238, 0.3);
}
#navigation a.nav-cv:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION + 3D PERSPECTIVE BROWSER STACK
   ========================================================================== */
.hero {
  position: relative;
  z-index: 2;
  padding: 132px 0 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.status-pill,
.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.status-pill {
  background: var(--emerald-soft);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.location-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.gradient-name {
  display: block;
  background: linear-gradient(100deg, var(--cyan) 0%, #60a5fa 32%, var(--violet) 68%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradientShift 7s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  margin: 0 0 14px;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.45;
}

.hero-subtitle strong {
  color: var(--cyan);
  font-weight: 700;
}

.hero-desc {
  margin: 0 0 28px;
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero-desc strong {
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #38bdf8 45%, var(--indigo));
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(251, 191, 36, 0.28);
  color: var(--amber);
}
.btn-ghost:hover {
  background: var(--amber-soft);
  border-color: var(--amber);
  transform: translateY(-2px);
}

/* Quick Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-chip {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}
.stat-chip:hover {
  transform: translateY(-3px);
}
.stat-chip strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}
.stat-chip span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.stat-cyan strong { color: var(--cyan); }
.stat-cyan:hover { border-color: rgba(34, 211, 238, 0.45); }
.stat-violet strong { color: var(--violet); }
.stat-violet:hover { border-color: rgba(168, 85, 247, 0.45); }
.stat-amber strong { color: var(--amber); }
.stat-amber:hover { border-color: rgba(251, 191, 36, 0.45); }
.stat-emerald strong { color: var(--emerald); }
.stat-emerald:hover { border-color: rgba(52, 211, 153, 0.45); }

/* 3D Perspective Browser Stage */
.hero-visual {
  position: relative;
  height: 460px;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--rose), var(--amber), var(--emerald), var(--cyan));
  filter: blur(85px);
  opacity: 0.28;
  animation: spinSlow 18s linear infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.browser-card {
  position: absolute;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
  background: #0d1426;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease, border-color 0.3s ease;
  text-align: left;
  transform-style: preserve-3d;
}

.browser-center {
  width: 74%;
  z-index: 3;
  transform: translate3d(0, 0, 40px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 35px rgba(34, 211, 238, 0.18);
}

.browser-left {
  width: 56%;
  left: -4%;
  top: 14%;
  z-index: 2;
  transform: rotateY(18deg) rotateZ(-4deg) translate3d(0, 12px, -30px);
  opacity: 0.92;
}

.browser-right {
  width: 56%;
  right: -4%;
  bottom: 10%;
  z-index: 2;
  transform: rotateY(-18deg) rotateZ(4deg) translate3d(0, 10px, -20px);
  opacity: 0.92;
}

.browser-card:hover {
  z-index: 10;
  border-color: var(--cyan);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.72), 0 0 40px rgba(34, 211, 238, 0.28);
}

.browser-bar,
.media-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #fb7185; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }

.browser-url,
.chrome-domain {
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-body {
  position: relative;
  aspect-ratio: 1440 / 1000;
  overflow: hidden;
}

.browser-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.browser-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.tag-cyan { background: rgba(6, 182, 212, 0.85); color: #041018; }
.tag-amber { background: rgba(251, 191, 36, 0.9); color: #1c1100; }
.tag-violet { background: rgba(168, 85, 247, 0.9); color: #fff; }

.float-badge {
  position: absolute;
  z-index: 6;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(10, 16, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.float-1 {
  top: 22px;
  right: 12px;
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.4);
  animation: bob 4.5s ease-in-out infinite;
}
.float-2 {
  bottom: 26px;
  left: 8px;
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.4);
  animation: bob 5.2s ease-in-out infinite 0.8s;
}
.float-3 {
  bottom: -6px;
  right: 18px;
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.4);
  animation: bob 4.8s ease-in-out infinite 1.4s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Marquee */
.tech-marquee {
  margin-top: 56px;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 16, 32, 0.45);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  white-space: nowrap;
}
.m-cyan { color: var(--cyan); border-color: rgba(34, 211, 238, 0.25) !important; }
.m-violet { color: #c084fc; border-color: rgba(168, 85, 247, 0.25) !important; }
.m-emerald { color: var(--emerald); border-color: rgba(52, 211, 153, 0.25) !important; }
.m-amber { color: var(--amber); border-color: rgba(251, 191, 36, 0.25) !important; }
.m-rose { color: var(--rose); border-color: rgba(251, 113, 133, 0.25) !important; }

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

/* ==========================================================================
   SECTIONS & TYPOGRAPHY
   ========================================================================== */
.section {
  position: relative;
  z-index: 2;
  padding: 96px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.section-header h2 {
  margin: 10px 0 0;
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-lead {
  margin: 0;
  max-width: 460px;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow-cyan { background: var(--cyan-soft); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.3); }
.eyebrow-violet { background: var(--violet-soft); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.eyebrow-emerald { background: var(--emerald-soft); color: var(--emerald); border: 1px solid rgba(52, 211, 153, 0.3); }
.eyebrow-amber { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.3); }
.eyebrow-rose { background: var(--rose-soft); color: var(--rose); border: 1px solid rgba(251, 113, 133, 0.3); }

.text-gradient {
  background: linear-gradient(100deg, var(--cyan), var(--indigo), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-alt {
  background: linear-gradient(100deg, #c084fc, var(--rose), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-green {
  background: linear-gradient(100deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-warm {
  background: linear-gradient(100deg, var(--amber), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   3D CARD SPOTLIGHT & SHARED GLASS STYLES
   ========================================================================== */
.tilt-3d {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    var(--spot-color, rgba(34, 211, 238, 0.16)),
    transparent 60%
  );
  z-index: 1;
}
.tilt-3d:hover .card-spotlight {
  opacity: 1;
}

/* ==========================================================================
   FEATURED PROJECTS GRID
   ========================================================================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.featured-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-cyan { --spot-color: rgba(34, 211, 238, 0.18); }
.card-cyan:hover { border-color: rgba(34, 211, 238, 0.45); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(34, 211, 238, 0.12); }

.card-amber { --spot-color: rgba(251, 191, 36, 0.18); }
.card-amber:hover { border-color: rgba(251, 191, 36, 0.45); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(251, 191, 36, 0.12); }

.card-violet { --spot-color: rgba(168, 85, 247, 0.2); }
.card-violet:hover { border-color: rgba(168, 85, 247, 0.45); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(168, 85, 247, 0.14); }

.card-emerald { --spot-color: rgba(52, 211, 153, 0.18); }
.card-emerald:hover { border-color: rgba(52, 211, 153, 0.45); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(52, 211, 153, 0.12); }

.featured-media {
  position: relative;
  z-index: 2;
  padding: 0;
  border: 0;
  background: #0a1020;
  width: 100%;
  text-align: left;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.media-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.media-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease-out);
}
.featured-card:hover .media-img-wrap img {
  transform: scale(1.05);
}

.featured-body {
  position: relative;
  z-index: 2;
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}
.pill-cyan { background: var(--cyan-soft); color: var(--cyan); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-violet { background: var(--violet-soft); color: #c084fc; }
.pill-emerald { background: var(--emerald-soft); color: var(--emerald); }
.pill-rose { background: var(--rose-soft); color: var(--rose); }

.role-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.featured-body h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.featured-body p {
  margin: 0 0 18px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 20px;
}

.stack-tags span {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.link-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan);
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-external:hover {
  gap: 9px;
  color: #67e8f9;
}

.btn-detail {
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-detail:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
}

/* ==========================================================================
   ARCHIVE 12 PROJECTS GRID & COLOR-CODED FILTERS
   ========================================================================== */
.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-out);
}
.filter:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.filter-all.active {
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  color: #041018;
  border-color: transparent;
  box-shadow: 0 6px 20px var(--cyan-glow);
}
.filter-business.active {
  background: var(--cyan);
  color: #041018;
  border-color: transparent;
  box-shadow: 0 6px 20px var(--cyan-glow);
}
.filter-hotel.active {
  background: var(--amber);
  color: #1c1100;
  border-color: transparent;
  box-shadow: 0 6px 20px var(--amber-glow);
}
.filter-product.active {
  background: var(--rose);
  color: #1f0409;
  border-color: transparent;
  box-shadow: 0 6px 20px var(--rose-glow);
}
.filter-event.active {
  background: var(--violet);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px var(--violet-glow);
}

.project-count {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  border-color: var(--card-accent, rgba(34, 211, 238, 0.45));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 24px var(--card-glow, rgba(34, 211, 238, 0.14));
}

.project-image {
  position: relative;
  z-index: 2;
  padding: 0;
  border: 0;
  background: #0b1224;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  width: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s var(--ease-out);
}

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

.image-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  padding: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  background: rgba(10, 16, 32, 0.9);
}
img.unavailable {
  opacity: 0;
}
img.unavailable + .image-fallback {
  display: grid;
}

.project-info {
  position: relative;
  z-index: 2;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.project-info h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
}
.project-info h3 button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  transition: color 0.2s ease;
}
.project-info h3 button:hover {
  color: var(--cyan);
}

.project-domain {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--card-accent, var(--cyan));
}
.project-open:hover {
  text-decoration: underline;
}

.project-detail-btn {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.project-detail-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
}

.projects-more {
  margin-top: 36px;
  text-align: center;
}

/* ==========================================================================
   SKILLS BENTO 3D GRID
   ========================================================================== */
.skills-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.skill-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-icon {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.skill-cyan { --spot-color: rgba(34, 211, 238, 0.18); }
.skill-cyan .skill-icon { background: var(--cyan-soft); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.35); }
.skill-cyan:hover { border-color: rgba(34, 211, 238, 0.45); }

.skill-violet { --spot-color: rgba(168, 85, 247, 0.2); }
.skill-violet .skill-icon { background: var(--violet-soft); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }
.skill-violet:hover { border-color: rgba(168, 85, 247, 0.45); }

.skill-emerald { --spot-color: rgba(52, 211, 153, 0.18); }
.skill-emerald .skill-icon { background: var(--emerald-soft); color: var(--emerald); border: 1px solid rgba(52, 211, 153, 0.35); }
.skill-emerald:hover { border-color: rgba(52, 211, 153, 0.45); }

.skill-amber { --spot-color: rgba(251, 191, 36, 0.18); }
.skill-amber .skill-icon { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.35); }
.skill-amber:hover { border-color: rgba(251, 191, 36, 0.45); }

.skill-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.skill-card p {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.skill-pills {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pills span {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: transform 0.2s ease, background 0.2s ease;
}
.skill-pills span:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
}

/* ==========================================================================
   GLOWING TIMELINE (EXPERIENCE & EDUCATION)
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: 44px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-rail {
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.timeline-progress {
  width: 100%;
  height: 100%;
  transform-origin: top center;
  transform: scaleY(0);
  background: linear-gradient(180deg, var(--cyan), var(--amber), var(--violet), var(--emerald));
  box-shadow: 0 0 16px var(--cyan-glow);
}

.timeline-item {
  position: relative;
}

.timeline-node {
  position: absolute;
  left: -38px;
  top: 28px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
  z-index: 2;
}

.item-amber .timeline-node { border-color: var(--amber); box-shadow: 0 0 16px var(--amber-glow); }
.item-violet .timeline-node { border-color: var(--violet); box-shadow: 0 0 16px var(--violet-glow); }
.item-emerald .timeline-node { border-color: var(--emerald); box-shadow: 0 0 16px var(--emerald-glow); }

.timeline-card {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.item-cyan .timeline-card { --spot-color: rgba(34, 211, 238, 0.16); }
.item-cyan .timeline-card:hover { border-color: rgba(34, 211, 238, 0.42); }
.item-amber .timeline-card { --spot-color: rgba(251, 191, 36, 0.16); }
.item-amber .timeline-card:hover { border-color: rgba(251, 191, 36, 0.42); }
.item-violet .timeline-card { --spot-color: rgba(168, 85, 247, 0.18); }
.item-violet .timeline-card:hover { border-color: rgba(168, 85, 247, 0.42); }
.item-emerald .timeline-card { --spot-color: rgba(52, 211, 153, 0.16); }
.item-emerald .timeline-card:hover { border-color: rgba(52, 211, 153, 0.42); }

.timeline-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.date-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-cyan { background: var(--cyan-soft); color: var(--cyan); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-violet { background: var(--violet-soft); color: #c084fc; }
.badge-emerald { background: var(--emerald-soft); color: var(--emerald); }

.type-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 4px;
  font-size: 1.24rem;
  font-weight: 800;
}

.timeline-role {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cyan);
}
.item-amber .timeline-role { color: var(--amber); }
.item-violet .timeline-role { color: #c084fc; }
.item-emerald .timeline-role { color: var(--emerald); }

.timeline-text {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.timeline-list {
  position: relative;
  z-index: 2;
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.93rem;
  display: grid;
  gap: 6px;
}

/* ==========================================================================
   CONTACT CTA & FOOTER
   ========================================================================== */
.contact-section {
  padding-bottom: 48px;
}

.contact-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  background: linear-gradient(145deg, rgba(14, 23, 46, 0.85), rgba(10, 15, 32, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.contact-glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.16), transparent 45%),
              radial-gradient(circle at 75% 70%, rgba(168, 85, 247, 0.18), transparent 45%),
              radial-gradient(circle at 50% 90%, rgba(251, 113, 133, 0.14), transparent 45%);
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-inline: auto;
}

.contact-content h2 {
  margin: 14px 0 14px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.contact-content p {
  margin: 0 auto 26px;
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.25rem, 2.8vw, 2.1rem);
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(168, 85, 247, 0.18));
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--text-primary);
  margin-bottom: 34px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.contact-email:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(34, 211, 238, 0.28);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.contact-chip {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  text-align: left;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, background 0.25s ease;
}
.contact-chip:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}
.chip-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-chip strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip-cyan:hover { border-color: var(--cyan); }
.chip-cyan strong { color: var(--cyan); }
.chip-violet:hover { border-color: var(--violet); }
.chip-violet strong { color: #c084fc; }
.chip-emerald:hover { border-color: var(--emerald); }
.chip-emerald strong { color: var(--emerald); }
.chip-amber:hover { border-color: var(--amber); }
.chip-amber strong { color: var(--amber); }

.site-footer {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand strong {
  color: var(--text-primary);
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--cyan);
}
.back-top:hover {
  color: #67e8f9;
}

/* ==========================================================================
   3D GLASSMORPHISM MODAL DIALOG
   ========================================================================== */
#project-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(920px, calc(100vw - 32px));
  width: 100%;
  color: var(--text-primary);
  overflow: visible;
}

#project-dialog::backdrop {
  background: rgba(3, 6, 15, 0.78);
  backdrop-filter: blur(10px);
}

.dialog-shell {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(11, 18, 36, 0.94);
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.75), 0 0 40px rgba(34, 211, 238, 0.14);
  overflow: hidden;
  animation: modalIn 0.32s var(--ease-out);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(6, 9, 19, 0.88);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: var(--text-primary);
  transition: transform 0.2s ease, background 0.2s ease;
}
.dialog-close svg {
  pointer-events: none;
}
.dialog-close:hover {
  background: var(--rose);
  color: #1f0409;
  transform: rotate(90deg);
}

.dialog-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.dialog-image {
  position: relative;
  background: #070c18;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 300px;
}
.dialog-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.dialog-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dialog-body h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
}
.dialog-body p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.dialog-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dialog-facts div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}
.dialog-facts span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.dialog-facts strong {
  font-size: 0.86rem;
  color: var(--text-primary);
}

.dialog-body h3 {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--cyan);
}

.dialog-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
}
.dialog-cta:hover {
  filter: brightness(1.08);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-visual {
    height: 390px;
    max-width: 640px;
    margin-inline: auto;
    width: 100%;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .section {
    padding: 72px 0;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .featured-grid,
  .skills-bento,
  .dialog-layout {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .menu-toggle {
    display: flex;
  }
  #navigation {
    position: fixed;
    top: 80px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(10, 16, 32, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  #navigation.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  #navigation a {
    padding: 12px 14px;
  }
  #navigation a.nav-cv {
    margin-left: 0;
    margin-top: 6px;
    justify-content: center;
  }
  .contact-card {
    padding: 36px 24px;
  }
}

@media (max-width: 580px) {
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 108px;
  }
  .hero-visual {
    height: 280px;
  }
  .browser-left,
  .browser-right,
  .float-3 {
    display: none;
  }
  .browser-center {
    width: 100%;
  }
  .timeline {
    padding-left: 30px;
  }
  .timeline-rail {
    left: 7px;
  }
  .timeline-node {
    left: -29px;
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
