/* =========================================
   RESET & CSS VARIABLES
   ========================================= */

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

:root {
  --bg-primary: #06030e;
  --bg-secondary: #14082a;
  --bg-tertiary: #24114a;
  --accent: #c4b5fd;
  --accent-dim: rgba(196, 181, 253, 0.16);
  --accent-glow: rgba(167, 139, 250, 0.35);
  --purple: #7c3aed;
  --text-primary: #f8f5ff;
  --text-muted: #c4b5fd;
  --text-dim: #7c6fa0;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(196, 181, 253, 0.4);
  --glass-bg: rgba(18, 10, 38, 0.65);
  --glass-border: rgba(196, 181, 253, 0.1);
  --font-display: 'Cabinet Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-brand: 'Cormorant Garamond', serif;
  --font-impact: 'Bebas Neue', sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --max-w: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 84% 88%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 18%),
    radial-gradient(circle at 72% 54%, rgba(165, 110, 255, 0.28), rgba(165, 110, 255, 0) 24%),
    radial-gradient(circle at 66% 28%, rgba(53, 23, 255, 0.42), rgba(53, 23, 255, 0) 28%),
    radial-gradient(circle at 40% 72%, rgba(110, 88, 255, 0.26), rgba(110, 88, 255, 0) 26%),
    radial-gradient(circle at 18% 18%, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0) 22%),
    linear-gradient(145deg, #05020a 0%, #120521 34%, #1f0b44 62%, #6431dc 100%);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-dim);
  color: var(--accent);
}

.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.preloader-ring {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-canvas::before,
.bg-canvas::after {
  content: '';
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.bg-canvas::before {
  background:
    radial-gradient(circle at 75% 22%, rgba(79, 38, 255, 0.3), rgba(79, 38, 255, 0) 28%),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 18%),
    radial-gradient(circle at 36% 84%, rgba(144, 120, 255, 0.18), rgba(144, 120, 255, 0) 24%);
  filter: blur(30px);
  opacity: 0.72;
  animation: auroraDrift 22s ease-in-out infinite alternate;
}

.bg-canvas::after {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 28%, rgba(180, 162, 255, 0.08) 48%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(180deg, rgba(126, 87, 255, 0.08), rgba(126, 87, 255, 0));
  filter: blur(24px);
  opacity: 0.58;
  animation: mistShift 28s ease-in-out infinite;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
}

.orb-1 {
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(54, 18, 255, 0.78), rgba(54, 18, 255, 0) 64%);
  top: -240px;
  right: -180px;
  animation: orbFloat 15s ease-in-out infinite;
}

.orb-2 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(164, 108, 255, 0.54), rgba(164, 108, 255, 0) 66%);
  bottom: 6%;
  left: -160px;
  animation: orbFloat 19s ease-in-out infinite reverse;
}

.orb-3 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 58%);
  top: 58%;
  left: 54%;
  animation: orbFloat 22s ease-in-out infinite;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.038) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 0 0, 0 0, 30px 30px, 30px 30px;
  opacity: 0.42;
  animation: gridDrift 34s linear infinite;
}

.glass-card:not(.project-prism-card) {
  position: relative;
  background:
    radial-gradient(circle at 0% 0%, rgba(125, 211, 252, 0.12), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(196, 181, 253, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(56, 28, 108, 0.98), rgba(28, 16, 58, 0.98) 55%, rgba(20, 13, 45, 0.99));
  border: 1px solid rgba(196, 181, 253, 0.12);
  border-radius: 22px;
  box-shadow:
    0 16px 34px rgba(10, 6, 24, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.glass-card:not(.project-prism-card)::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.glass-card:not(.project-prism-card):hover {
  border-color: rgba(196, 181, 253, 0.24);
  box-shadow:
    0 20px 40px rgba(10, 6, 24, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: padding 0.3s var(--ease), transform 0.3s var(--ease);
}

.navbar.scrolled {
  padding: 12px 0;
}

.nav-container {
  max-width: fit-content;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  position: relative;
  overflow: hidden;
}

.nav-container::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 55%, rgba(255, 255, 255, 0.025));
  opacity: 0.7;
  pointer-events: none;
}

.nav-container::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 14px;
  right: 14px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  opacity: 0.22;
  pointer-events: none;
  filter: blur(10px);
}

.navbar.scrolled .nav-container {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(15, 23, 42, 0.16);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  position: relative;
  z-index: 1;
  justify-content: center;
  width: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.7);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  padding: 8px 0;
  text-shadow: 0 0 0 rgba(125, 211, 252, 0);
  transition: color 0.2s, opacity 0.2s, text-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.nav-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.82;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: rgba(255, 255, 255, 0.98);
  text-shadow:
    0 0 12px rgba(191, 248, 255, 0.5),
    0 0 26px rgba(125, 211, 252, 0.34),
    0 0 42px rgba(56, 189, 248, 0.24);
  filter:
    drop-shadow(0 0 10px rgba(103, 232, 249, 0.22))
    drop-shadow(0 0 18px rgba(56, 189, 248, 0.16));
}

.nav-link:hover .nav-link-icon,
.nav-link.active .nav-link-icon {
  opacity: 1;
  transform: translateY(-1px);
  filter:
    drop-shadow(0 0 10px rgba(191, 248, 255, 0.34))
    drop-shadow(0 0 20px rgba(56, 189, 248, 0.22));
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 1;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, var(--space-xl));
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(48px, 8vw, var(--space-4xl)) 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.label-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

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

.section-title.centered {
  text-align: center;
}

.accent-text {
  color: var(--accent);
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradientShift 4s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s var(--ease);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #818cf8);
  color: #fff;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.4);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: var(--accent-dim);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(100px, 12vw, 132px) clamp(16px, 4vw, var(--space-xl)) clamp(48px, 6vw, 72px);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: 32px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.hero-frame {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 24px 28px 22px;
  border: 2px solid rgba(149, 180, 255, 0.58);
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    0 18px 30px rgba(56, 108, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.frame-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(149, 180, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
}

.frame-top-left {
  top: -13px;
  left: -13px;
}

.frame-top-right {
  top: -13px;
  right: -13px;
}

.frame-bottom-left {
  bottom: -13px;
  left: -13px;
}

.frame-bottom-right {
  bottom: -13px;
  right: -13px;
}

.hero-promo-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-impact);
  font-size: clamp(4rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: rgba(248, 245, 255, 0.95);
  text-transform: uppercase;
}

.hero-promo-title em {
  display: inline-block;
  padding: 0.02em 0.16em 0.08em;
  font-style: normal;
  color: #f8f5ff;
  background: linear-gradient(180deg, #7c3aed, #5b21b6);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.35);
}

.hero-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-join-text {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #c4b5fd;
}

.hero-join-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 390px;
  padding: 8px 10px 8px 34px;
  border-radius: 18px;
  border: 2px solid rgba(118, 151, 232, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.46));
  color: rgba(248, 245, 255, 0.85);
  text-decoration: none;
  font-size: 1.6rem;
  box-shadow: 0 14px 28px rgba(56, 108, 255, 0.12);
}

.hero-join-arrow {
  width: 94px;
  height: 54px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #4f87ff, #2f6ef1);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 110, 241, 0.32);
}

.hero-join-arrow svg {
  width: 32px;
  height: 32px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-mini-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(248, 245, 255, 0.88);
  font-size: 1rem;
  font-weight: 500;
}

.hero-mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(180deg, #4e85ff, #2d68ea);
  box-shadow: 0 8px 16px rgba(45, 104, 234, 0.18);
}

.hero-mini-icon svg {
  width: 17px;
  height: 17px;
}

.hero-showcase {
  position: relative;
  min-height: 620px;
}

.hero-photo-stage {
  position: absolute;
  inset: 22px 38px 18px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.hero-photo-stage::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 6px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 6, 18, 0.42) 0%, rgba(10, 6, 18, 0.22) 38%, rgba(10, 6, 18, 0) 76%);
  filter: blur(22px);
  z-index: 0;
}

.hero-photo-stage::before {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -10px;
  height: 250px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(235, 239, 255, 0.22), rgba(235, 239, 255, 0) 34%),
    radial-gradient(ellipse at 28% 88%, rgba(151, 125, 255, 0.2), rgba(151, 125, 255, 0) 30%),
    radial-gradient(ellipse at 74% 84%, rgba(101, 118, 255, 0.22), rgba(101, 118, 255, 0) 32%),
    radial-gradient(ellipse at 50% 78%, rgba(22, 12, 36, 0.34), rgba(22, 12, 36, 0) 48%),
    linear-gradient(180deg, rgba(9, 5, 17, 0) 0%, rgba(9, 5, 17, 0.18) 36%, rgba(9, 5, 17, 0.48) 70%, rgba(9, 5, 17, 0.84) 100%);
  filter: blur(28px);
  z-index: 2;
  pointer-events: none;
}

.hero-photo-image {
  position: relative;
  z-index: 1;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 26px 32px rgba(12, 7, 22, 0.16))
    drop-shadow(0 52px 54px rgba(12, 7, 22, 0.18));
}

.hero-floating-app {
  position: absolute;
  min-width: 58px;
  height: 58px;
  padding: 0 14px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 14px 26px rgba(24, 28, 54, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
}

.floating-app-ae {
  top: 146px;
  left: 36px;
  background: linear-gradient(180deg, rgba(25, 18, 44, 0.96), rgba(14, 9, 26, 0.92));
  border-color: rgba(191, 166, 255, 0.28);
  box-shadow:
    0 16px 28px rgba(88, 64, 180, 0.22),
    inset 0 0 0 1px rgba(191, 166, 255, 0.18);
  color: #d8c4ff;
  transform: rotate(-8deg);
}

.floating-app-pr {
  top: 72px;
  right: 82px;
  background: linear-gradient(180deg, rgba(22, 18, 42, 0.96), rgba(12, 10, 26, 0.92));
  border-color: rgba(245, 171, 255, 0.26);
  box-shadow:
    0 16px 28px rgba(111, 67, 146, 0.2),
    inset 0 0 0 1px rgba(245, 171, 255, 0.15);
  color: #f4a2ff;
  transform: rotate(8deg);
}

.floating-app-ps {
  bottom: 118px;
  left: 118px;
  background: linear-gradient(180deg, rgba(10, 28, 50, 0.97), rgba(5, 16, 30, 0.94));
  border-color: rgba(103, 232, 249, 0.24);
  box-shadow:
    0 16px 28px rgba(24, 91, 166, 0.22),
    inset 0 0 0 1px rgba(103, 232, 249, 0.12);
  color: #7dd3fc;
  transform: rotate(-12deg);
}

.floating-app-ai {
  bottom: 44px;
  right: 68px;
  background: linear-gradient(180deg, rgba(36, 24, 16, 0.97), rgba(20, 13, 8, 0.94));
  border-color: rgba(251, 191, 36, 0.24);
  box-shadow:
    0 16px 28px rgba(165, 98, 24, 0.2),
    inset 0 0 0 1px rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  transform: rotate(12deg);
}

.hero-credit-tag {
  position: absolute;
  left: 82px;
  bottom: 6px;
  padding: 12px 22px;
  border-radius: 16px;
  border: 1px solid rgba(196, 181, 253, 0.2);
  background: rgba(18, 10, 38, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(248, 245, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: var(--space-xl);
  animation: badgePulse 3s ease-in-out infinite;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: var(--space-xl);
}

.hero-line {
  display: block;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-sub em {
  font-style: italic;
  color: var(--text-primary);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--text-dim);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-visual {
  flex-shrink: 0;
  width: 400px;
}

.hero-card {
  padding: var(--space-lg);
  animation: cardFloat 6s ease-in-out infinite;
}

.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone {
  width: 320px;
  padding: 12px;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(16, 10, 36, 0.58);
  box-shadow:
    0 22px 60px rgba(10, 4, 24, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.phone-camera {
  width: 82px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px auto 14px;
}

.phone-screen {
  min-height: 500px;
  border-radius: 28px;
  padding: 18px;
  background:
    radial-gradient(circle at 70% 28%, rgba(167, 139, 250, 0.18), rgba(167, 139, 250, 0) 32%),
    radial-gradient(circle at 28% 72%, rgba(96, 165, 250, 0.16), rgba(96, 165, 250, 0) 32%),
    rgba(8, 6, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-placeholder {
  height: 100%;
  min-height: 462px;
  border-radius: 22px;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(241, 245, 249, 0.72);
  text-align: center;
}

.photo-placeholder-icon {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(191, 219, 254, 0.86);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.photo-placeholder-text {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.hero-phone-tag {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(241, 245, 249, 0.82);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-visual-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-lg);
}

.about-img-wrap {
  position: relative;
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.about-content .section-title {
  margin-bottom: var(--space-lg);
}

.about-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.about-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.about-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  z-index: 2;
}

.about-app {
  position: absolute;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(19, 24, 38, 0.78), rgba(8, 10, 20, 0.66)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 58%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 24px rgba(4, 8, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -8px 14px rgba(3, 5, 12, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
  animation: aboutAppDrift 7.2s ease-in-out infinite;
}

.about-app::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 14px;
  background: radial-gradient(circle, var(--app-glow, rgba(125, 211, 252, 0.42)) 0%, transparent 72%);
  filter: blur(10px);
  opacity: 0.68;
  transform: scale(0.88);
  animation: aboutAppGlow 4.4s ease-in-out infinite;
}

.about-app::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.about-app svg {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1;
  display: block;
  filter:
    drop-shadow(0 0 8px var(--app-glow, rgba(125, 211, 252, 0.28)))
    drop-shadow(0 8px 14px rgba(10, 6, 24, 0.16));
}

.app-vscode {
  --app-glow: rgba(41, 182, 246, 0.48);
  top: 26px;
  left: -6px;
  animation-duration: 7.8s;
}

.app-figma {
  --app-glow: rgba(162, 89, 255, 0.4);
  top: -8px;
  right: 42px;
  animation-delay: 0.5s;
  animation-duration: 6.6s;
}

.app-canva {
  --app-glow: rgba(0, 196, 204, 0.44);
  top: 112px;
  right: -18px;
  animation-delay: 1s;
  animation-duration: 8.2s;
}

.app-ps {
  --app-glow: rgba(49, 168, 255, 0.44);
  bottom: 124px;
  left: -18px;
  animation-delay: 1.5s;
  animation-duration: 7s;
}

.app-ai {
  --app-glow: rgba(255, 154, 0, 0.44);
  bottom: 34px;
  right: -2px;
  animation-delay: 2s;
  animation-duration: 6.8s;
}

.app-pr {
  --app-glow: rgba(234, 119, 255, 0.42);
  bottom: 6px;
  left: 52px;
  animation-delay: 2.5s;
  animation-duration: 7.6s;
}

.tag-1 {
  bottom: -12px;
  left: -12px;
}

.tag-2 {
  top: -12px;
  right: -12px;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  font-size: 0.975rem;
  line-height: 1.75;
  text-align: justify;
}

@keyframes aboutAppDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate3d(4px, -8px, 0) rotate(-4deg) scale(1.03);
  }

  50% {
    transform: translate3d(-3px, -14px, 0) rotate(3deg) scale(1.06);
  }

  75% {
    transform: translate3d(-5px, -6px, 0) rotate(-2deg) scale(1.02);
  }
}

@keyframes aboutAppGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.84);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.skill-category {
  padding: var(--space-xl);
}

.skill-category > * {
  position: relative;
  z-index: 1;
}

.skill-category {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.skill-category:nth-child(1) {
  box-shadow:
    0 16px 34px rgba(10, 6, 24, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.skill-category:nth-child(2) {
  box-shadow:
    0 16px 34px rgba(10, 6, 24, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.skill-category:nth-child(3) {
  box-shadow:
    0 16px 34px rgba(10, 6, 24, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.skill-icon {
  width: 52px;
  height: 52px;
  background: rgba(18, 10, 38, 0.9);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.skill-category h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-name {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, #0ea5e9, #818cf8);
  border-radius: 4px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--ease) 0.3s;
}

.skill-fill.animated {
  transform: scaleX(1);
}

.skill-category.animate .skill-fill {
  animation: skillGrow 1s var(--ease) 0.4s both;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.project-card {
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.12);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-img-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, hsl(var(--hue), 80%, 30%) 0%, hsl(var(--hue), 60%, 10%) 60%, transparent 100%);
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.project-card:hover .project-img-bg {
  opacity: 0.9;
  transform: scale(1.05);
}

.project-num {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-lg);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.07);
  line-height: 1;
}

.project-body {
  padding: var(--space-lg);
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 100px;
  color: var(--accent);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

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

.project-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s var(--ease);
}

.project-link:hover {
  gap: 10px;
}

.project-gh {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.contact-intro {
  text-align: center;
  color: #ddd6fe;
  max-width: 500px;
  margin: 0 auto var(--space-3xl);
  font-size: 1rem;
}

.contact .section-title {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(125, 211, 252, 0.12);
}

.contact .section-title .accent-text {
  color: #7dd3fc;
  background: linear-gradient(135deg, #7dd3fc 0%, #67e8f9 45%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: var(--space-xl);
  align-items: start;
}

.contact-form {
  padding: var(--space-xl);
}

.contact-form > * {
  position: relative;
  z-index: 1;
}

.contact-form {
  box-shadow:
    0 16px 34px rgba(10, 6, 24, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: rgba(12, 7, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
  cursor: text;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(16, 10, 36, 0.9);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.08);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background:
    linear-gradient(135deg, rgba(18, 10, 38, 0.92), rgba(10, 24, 44, 0.9)),
    rgba(18, 10, 38, 0.88);
  border: 1px solid rgba(125, 211, 252, 0.14);
}

.contact-item > * {
  position: relative;
  z-index: 1;
}

.contact-item:nth-child(1) {
  box-shadow:
    0 16px 34px rgba(10, 6, 24, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-item:nth-child(2) {
  box-shadow:
    0 16px 34px rgba(10, 6, 24, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-item:nth-child(3) {
  box-shadow:
    0 16px 34px rgba(10, 6, 24, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(18, 10, 38, 0.9);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #93c5fd;
  margin-bottom: 2px;
}

.contact-val {
  font-size: 0.9rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a.contact-val:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease-bounce), background 0.2s;
  position: relative;
}

.social-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-glow);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-dim);
  transform: translateY(-2px) scale(1.05);
}

.social-link:hover::after {
  opacity: 0.15;
}

.footer {
  border-top: 1px solid rgba(125, 211, 252, 0.18);
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 4, 18, 0.12), rgba(8, 14, 30, 0.62)),
    rgba(8, 6, 18, 0.42);
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(20, 10, 42, 0.9), rgba(8, 24, 44, 0.88)),
    rgba(18, 10, 38, 0.88);
  box-shadow:
    0 16px 34px rgba(10, 6, 24, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #f8fbff;
}

.footer-copy {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.footer-top {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  text-decoration: none;
  background: rgba(12, 22, 40, 0.72);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease-bounce), background 0.2s;
}

.footer-top:hover {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(16, 34, 58, 0.88);
  transform: translateY(-3px);
}

.reveal-fade,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.92);
}

.reveal-fade.animate {
  animation: fadeIn 0.7s var(--ease) forwards;
}

.reveal-up.animate {
  animation: slideUp 0.7s var(--ease) forwards;
}

.reveal-left.animate {
  animation: slideLeft 0.7s var(--ease) forwards;
}

.reveal-right.animate {
  animation: slideRight 0.7s var(--ease) forwards;
}

.reveal-scale.animate {
  animation: scaleIn 0.6s var(--ease) forwards;
}

[data-delay="0"] {
  animation-delay: 0s;
}

[data-delay="100"] {
  animation-delay: 0.1s;
}

[data-delay="200"] {
  animation-delay: 0.2s;
}

[data-delay="300"] {
  animation-delay: 0.3s;
}

[data-delay="400"] {
  animation-delay: 0.4s;
}

[data-delay="500"] {
  animation-delay: 0.5s;
}

.page-ready .hero-badge {
  animation: fadeIn 0.6s var(--ease) 0.2s both;
}

.page-ready .hero-title {
  animation: slideUp 0.8s var(--ease) 0.35s both;
}

.page-ready .hero-sub {
  animation: fadeIn 0.7s var(--ease) 0.55s both;
}

.page-ready .hero-cta {
  animation: fadeIn 0.7s var(--ease) 0.7s both;
}

.page-ready .hero-scroll {
  animation: fadeIn 0.7s var(--ease) 0.9s both;
}

.page-ready .hero-visual {
  animation: slideRight 0.9s var(--ease) 0.4s both;
}

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

@keyframes cursorParticle {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.35);
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.4);
  }
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -40px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.97);
  }
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(-1%, -1%, 0) scale(1);
  }

  50% {
    transform: translate3d(2%, 1%, 0) scale(1.04);
  }

  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.02);
  }
}

@keyframes mistShift {
  0%, 100% {
    transform: translateX(-3%) translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateX(3%) translateY(-2%);
    opacity: 0.75;
  }
}

@keyframes gridDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(10px, -8px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes scrollPulse {
  0%, 100% {
    width: 32px;
    opacity: 1;
  }

  50% {
    width: 56px;
    opacity: 0.5;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes skillGrow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(56,189,248,0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(56,189,248,0.07);
  }
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 112px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-copy {
    align-items: flex-start;
  }

  .hero-frame {
    width: fit-content;
    max-width: 100%;
  }

  .hero-action-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-join-cta {
    min-width: min(420px, 100%);
    width: 100%;
  }

  .hero-stats-row {
    flex-wrap: wrap;
  }

  .hero-showcase {
    min-height: 560px;
  }

  .hero-photo-stage {
    inset: 28px 44px 18px 30px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-visual {
    max-width: 360px;
    margin: 0 auto;
  }

  .about-visual-column {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }

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

  .skill-category:last-child {
    grid-column: auto;
  }

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

  .project-card:last-child {
    grid-column: auto;
  }

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

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-item {
    flex: 1;
    min-width: 180px;
  }

  .social-links {
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 64px;
    --space-3xl: 40px;
    --space-xl: 20px;
  }

  body {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

  .nav-container {
    overflow: visible;
    max-width: calc(100% - 32px);
    justify-content: flex-end;
    padding: 10px 16px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100dvh;
    background:
      linear-gradient(160deg, rgba(20, 8, 42, 0.97), rgba(10, 4, 24, 0.98));
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 80px 36px 48px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(196, 181, 253, 0.12);
    box-shadow: -16px 0 48px rgba(2, 0, 14, 0.5);
    z-index: 999;
    border-radius: 0;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  /* Overlay backdrop */
  .nav-links.open::before {
    content: '';
    position: fixed;
    inset: 0;
    right: 280px;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    font-size: 1.05rem;
    color: rgba(248, 245, 255, 0.8);
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(196, 181, 253, 0.08);
  }

  .nav-link-icon {
    width: 18px;
    height: 18px;
  }

  .hamburger {
    display: flex;
    cursor: pointer;
    z-index: 1001;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(196, 181, 253, 0.08);
    border: 1px solid rgba(196, 181, 253, 0.15);
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    flex-shrink: 0;
  }

  .hero {
    padding: 100px 20px 56px;
    min-height: auto;
  }

  .hero-frame {
    padding: 22px 18px 18px;
  }

  .hero-promo-title {
    font-size: clamp(3rem, 12vw, 4.6rem);
  }

  .hero-join-text {
    font-size: 1.45rem;
  }

  .hero-join-cta {
    min-width: 0;
    padding-left: 20px;
    font-size: 1.28rem;
  }

  .hero-join-arrow {
    width: 72px;
    height: 46px;
  }

  .hero-showcase {
    min-height: 470px;
  }

  .hero-photo-stage {
    inset: 34px 36px 18px 24px;
  }

  .hero-floating-app {
    min-width: 50px;
    height: 50px;
    padding: 0 12px;
    font-size: 0.88rem;
    border-radius: 16px;
  }

  .floating-app-ae {
    left: 24px;
    top: 144px;
  }

  .floating-app-pr {
    right: 38px;
    top: 76px;
  }

  .floating-app-ps {
    left: 90px;
    bottom: 106px;
  }

  .floating-app-ai {
    right: 40px;
    bottom: 54px;
  }

  .hero-credit-tag {
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    font-size: 0.78rem;
    padding: 10px 16px;
    white-space: nowrap;
  }

  .hero-mini-stat {
    font-size: 0.88rem;
  }

  .hero-phone {
    width: min(320px, 100%);
  }

  .phone-screen,
  .photo-placeholder {
    min-height: 420px;
  }

  .section-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    margin-bottom: 32px;
  }

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

  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .about-stats {
    gap: var(--space-lg);
    flex-wrap: wrap;
  }

  .stat {
    min-width: 80px;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .about-tag {
    display: none;
  }

  .skill-category:last-child,
  .project-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .contact-info {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .orb-1 {
    width: 400px;
    height: 400px;
  }

  .orb-2 {
    width: 300px;
    height: 300px;
  }

  .orb-3 {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-promo-title {
    font-size: clamp(2.6rem, 14vw, 3.7rem);
  }

  .hero-action-row {
    gap: 16px;
  }

  .hero-stats-row {
    gap: 14px;
  }

  .hero-mini-stat {
    width: 100%;
  }

  .hero-showcase {
    min-height: 430px;
  }

  .hero-photo-stage {
    inset: 42px 22px 12px 22px;
  }

  .hero-photo-stage::before {
    height: 180px;
  }


  .hero-badge span:last-child {
    font-size: 0.72rem;
  }

  .glass-card {
    border-radius: 16px;
  }

  .project-img {
    height: 130px;
  }

  .social-links {
    justify-content: center;
  }

  .section {
    padding: 52px 0;
  }
}

/* =========================================
   HERO REFERENCE OVERRIDE
   ========================================= */

.hero-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.hero-copy {
  align-items: center;
  text-align: center;
  gap: 20px;
  width: 100%;
}

.hero-promo-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: 0.015em;
  color: rgba(252, 252, 255, 0.97);
}

.hero-promo-title em {
  padding: 0;
  color: #ffffff;
  background: none;
  box-shadow: none;
}

.hero-promo-title-centered {
  max-width: 100%;
}

.hero-reference-sub {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(238, 236, 255, 0.85);
}

.hero-web-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: center;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.hero-web-link-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.16);
}

.hero-web-link-icon svg {
  width: 10px;
  height: 10px;
}

.hero-web-link:hover {
  color: #7dd3fc;
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.07);
}

.hero-showcase-reference {
  display: none;
}

@media (max-width: 600px) {
  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero-action-row {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero-accent-shape {
  position: absolute;
  display: block;
  opacity: 0.92;
  filter: blur(1px);
}

.accent-left {
  top: 76px;
  left: -4px;
  width: 124px;
  height: 182px;
  background: linear-gradient(210deg, rgba(121, 255, 122, 0.98), rgba(121, 255, 122, 0) 72%);
  clip-path: polygon(8% 0%, 100% 18%, 72% 46%, 100% 100%, 0% 60%, 34% 34%);
  transform: rotate(10deg);
}

.accent-right {
  top: 94px;
  right: 8px;
  width: 124px;
  height: 120px;
  background: linear-gradient(220deg, rgba(255, 189, 120, 0.96), rgba(255, 132, 184, 0) 74%);
  clip-path: polygon(10% 70%, 100% 0%, 74% 44%, 100% 100%);
}

.hero-orbit {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  border: 2px solid rgba(255, 188, 171, 0.28);
  box-shadow:
    0 0 20px rgba(255, 188, 171, 0.1),
    inset 0 0 16px rgba(255, 188, 171, 0.05);
}

.orbit-one {
  top: 286px;
  width: 420px;
  height: 150px;
  transform: translateX(-50%) rotate(9deg);
}

.orbit-two {
  top: 338px;
  width: 400px;
  height: 162px;
  transform: translateX(-50%) rotate(-8deg);
}

.orbit-three {
  top: 392px;
  width: 380px;
  height: 148px;
  transform: translateX(-50%) rotate(11deg);
}

.hero-photo-stage-reference {
  left: 50%;
  bottom: 32px;
  width: 320px;
  height: 500px;
  inset: auto;
  transform: translateX(-50%);
}

.hero-ui-card {
  position: absolute;
  width: 172px;
  min-height: 112px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(63, 68, 106, 0.44), rgba(31, 24, 54, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 18px 30px rgba(13, 10, 32, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ui-card-top-left {
  top: 248px;
  left: 50%;
  transform: translateX(-215px) rotate(-10deg);
}

.ui-card-top-right {
  top: 214px;
  left: 50%;
  transform: translateX(75px) rotate(7deg);
}

.ui-card-bottom-left {
  bottom: 126px;
  left: 50%;
  transform: translateX(-205px) rotate(-8deg);
}

.ui-card-bottom-right {
  bottom: 92px;
  left: 50%;
  transform: translateX(78px) rotate(8deg);
}

.hero-ui-header {
  width: 72%;
  height: 8px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-ui-header.short {
  width: 54%;
}

.hero-ui-chart.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 58px;
}

.hero-ui-chart.bars span {
  width: 18px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(140, 227, 255, 0.95), rgba(196, 125, 255, 0.54));
}

.hero-ui-chart.bars span:nth-child(1) { height: 30px; }
.hero-ui-chart.bars span:nth-child(2) { height: 48px; }
.hero-ui-chart.bars span:nth-child(3) { height: 24px; }
.hero-ui-chart.bars span:nth-child(4) { height: 40px; }

.hero-ui-chart.line {
  height: 56px;
  position: relative;
}

.hero-ui-chart.line span {
  position: absolute;
  inset: 12px 0 4px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, transparent 0 16%, rgba(255, 165, 208, 0.84) 16% 24%, transparent 24% 34%, rgba(138, 201, 255, 0.82) 34% 44%, transparent 44% 56%, rgba(186, 131, 255, 0.86) 56% 68%, transparent 68%);
}

.hero-ui-footer {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(241, 242, 255, 0.94);
}

.floating-app-ae {
  top: 322px;
  left: 50%;
  transform: translateX(-252px);
}

.floating-app-pr {
  top: 344px;
  left: 50%;
  transform: translateX(198px);
}

.floating-app-ps {
  bottom: 96px;
  left: 50%;
  transform: translateX(-246px);
}

.floating-app-ai {
  bottom: 76px;
  left: 50%;
  transform: translateX(202px);
}

@media (max-width: 1024px) {
  .hero-showcase-reference {
    width: min(100%, 540px);
    min-height: 620px;
  }

  .hero-photo-stage-reference {
    width: 280px;
    height: 440px;
    bottom: 24px;
  }

  .orbit-one { width: 350px; }
  .orbit-two { width: 332px; }
  .orbit-three { width: 314px; }

  .ui-card-top-left { left: 50%; transform: translateX(-175px) rotate(-10deg); }
  .ui-card-top-right { left: 50%; transform: translateX(58px) rotate(7deg); }
  .ui-card-bottom-left { left: 50%; transform: translateX(-168px) rotate(-8deg); }
  .ui-card-bottom-right { left: 50%; transform: translateX(60px) rotate(8deg); }

  .floating-app-ae { left: 50%; transform: translateX(-210px); }
  .floating-app-pr { left: 50%; transform: translateX(164px); }
  .floating-app-ps { left: 50%; transform: translateX(-198px); }
  .floating-app-ai { left: 50%; transform: translateX(166px); }
}

@media (max-width: 768px) {
  .hero-promo-title {
    font-size: clamp(2.1rem, 8.8vw, 3rem);
  }

  .hero-reference-sub {
    font-size: 0.9rem;
  }

  .hero-showcase-reference {
    width: min(100%, 460px);
    min-height: 540px;
  }

  .hero-photo-stage-reference {
    width: 250px;
    height: 372px;
    bottom: 18px;
  }

  .hero-accent-shape {
    transform: scale(0.82);
  }

  .accent-left {
    left: -18px;
    top: 96px;
  }

  .accent-right {
    right: -8px;
    top: 122px;
  }

  .orbit-one {
    top: 274px;
    width: 320px;
    height: 108px;
  }

  .orbit-two {
    top: 318px;
    width: 302px;
    height: 118px;
  }

  .orbit-three {
    top: 362px;
    width: 280px;
    height: 108px;
  }

  .hero-ui-card {
    width: 118px;
    min-height: 84px;
    padding: 10px;
    border-radius: 14px;
  }

  .ui-card-top-left {
    top: 256px;
    left: 50%;
    transform: translateX(-150px) rotate(-10deg);
  }

  .ui-card-top-right {
    top: 224px;
    left: 50%;
    transform: translateX(44px) rotate(7deg);
  }

  .ui-card-bottom-left {
    bottom: 126px;
    left: 50%;
    transform: translateX(-144px) rotate(-8deg);
  }

  .ui-card-bottom-right {
    bottom: 96px;
    left: 50%;
    transform: translateX(48px) rotate(8deg);
  }

  .hero-ui-footer {
    font-size: 0.8rem;
  }

  .hero-floating-app {
    min-width: 46px;
    height: 46px;
    padding: 0 10px;
    font-size: 0.82rem;
    border-radius: 14px;
  }

  .floating-app-ae {
    left: 50%;
    top: 332px;
    transform: translateX(-182px);
  }

  .floating-app-pr {
    left: 50%;
    top: 344px;
    transform: translateX(136px);
  }

  .floating-app-ps {
    left: 50%;
    bottom: 72px;
    transform: translateX(-174px);
  }

  .floating-app-ai {
    left: 50%;
    bottom: 62px;
    transform: translateX(138px);
  }
}

@media (max-width: 480px) {
  .hero-promo-title {
    font-size: clamp(1.8rem, 10vw, 2.45rem);
  }

  .hero-reference-sub {
    font-size: 0.8rem;
  }

  .hero-showcase-reference {
    width: min(100%, 340px);
    min-height: 470px;
  }

  .hero-photo-stage-reference {
    width: 216px;
    height: 316px;
    bottom: 16px;
  }

  .ui-card-top-left {
    left: 50%;
    transform: translateX(-122px) rotate(-10deg);
  }

  .ui-card-top-right {
    left: 50%;
    transform: translateX(34px) rotate(7deg);
  }

  .ui-card-bottom-left {
    left: 50%;
    transform: translateX(-118px) rotate(-8deg);
  }

  .ui-card-bottom-right {
    left: 50%;
    transform: translateX(38px) rotate(8deg);
  }

  .floating-app-ae {
    left: 50%;
    transform: translateX(-146px);
  }

  .floating-app-pr {
    left: 50%;
    transform: translateX(108px);
  }

  .floating-app-ps {
    left: 50%;
    transform: translateX(-140px);
  }

  .floating-app-ai {
    left: 50%;
    transform: translateX(110px);
  }

  .hero-ui-card {
    width: 92px;
    min-height: 70px;
    padding: 8px;
  }

  .hero-ui-header {
    margin-bottom: 10px;
  }

  .hero-ui-footer {
    font-size: 0.64rem;
  }

  .accent-left,
  .accent-right {
    opacity: 0.72;
  }

  .orbit-one {
    width: 258px;
    height: 88px;
    top: 252px;
  }

  .orbit-two {
    width: 242px;
    height: 96px;
    top: 288px;
  }

  .orbit-three {
    width: 224px;
    height: 88px;
    top: 324px;
  }

  .ui-card-top-left {
    top: 242px;
    left: 2px;
  }

  .ui-card-top-right {
    top: 220px;
    right: 2px;
  }

  .ui-card-bottom-left {
    bottom: 116px;
    left: 10px;
  }

  .ui-card-bottom-right {
    bottom: 92px;
    right: 6px;
  }
}

@media (min-width: 1400px) {
  .hero {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-title {
    font-size: 6.5rem;
  }

  .projects-grid,
  .skills-grid {
    gap: 24px;
  }
}

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

  .bg-orb,
  .hero-card,
  .badge-dot,
  .scroll-line {
    animation: none;
  }

  .reveal-fade,
  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .navbar,
  .cursor,
  .cursor-follower,
  .preloader,
  .bg-canvas,
  .hero-scroll {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* =========================================
   CURSOR - DEFAULT BROWSER CURSOR
   ========================================= */

.cursor,
.cursor-follower {
  display: none !important;
}

* {
  cursor: auto;
}

a, button, .btn, .project-card, .skill-category, .social-link, input, textarea, .nav-link, .hamburger {
  cursor: pointer;
}

/* =========================================
   EDUCATION / TIMELINE
   ========================================= */

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3xl);
  margin-top: var(--space-xl);
}

.edu-col-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

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

/* Timeline dibuat sebagai list vertikal supaya item bisa ditambah banyak tanpa merusak layout. */
.timeline-item {
  padding: 0 0 22px 30px;
  position: relative;
  transition: color 0.3s, transform 0.3s var(--ease);
  border-bottom: 1px solid rgba(196, 181, 253, 0.1);
  margin-bottom: 22px;
}

.timeline-item > * {
  position: relative;
  z-index: 1;
}

.timeline-item:hover {
  transform: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  transform: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
}

.timeline-dot--past {
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  box-shadow: none;
}

.timeline-date {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

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

.timeline-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

.timeline-item:last-child,
.timeline-item[hidden] + .timeline-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-actions {
  margin-top: var(--space-lg);
}

.timeline-more-btn {
  min-width: 170px;
}

.timeline-more-btn[hidden] {
  display: none;
}

/* Activities */
.activities-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.activity-badge {
  display: block;
  min-height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: var(--glass-bg);
  box-shadow:
    0 16px 34px rgba(10, 6, 24, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.activity-badge > * {
  position: relative;
  z-index: 1;
}

.activity-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}

.activity-badge strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.activity-badge p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 2px 0 0;
  line-height: 1.6;
}

.activity-badge:last-child {
  border-bottom: 1px solid rgba(196, 181, 253, 0.1);
}

/* Achievements */
.achievements-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

/* Prestasi tetap grid modular: tinggal salin 1 item, card lain tidak ikut rusak. */
.achievement-card {
  display: block;
  padding: var(--space-lg) var(--space-xl);
  min-height: 108px;
  border: 1px solid rgba(125, 211, 252, 0.12);
  box-shadow:
    0 16px 34px rgba(10, 6, 24, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.achievement-card > * {
  position: relative;
  z-index: 1;
}

.achievement-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}

.achievement-card strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.achievement-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

/* =========================================
   RESPONSIVE ADDITIONS
   ========================================= */

@media (max-width: 768px) {
  .edu-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .activities-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.section-no-top {
  padding-top: 0;
}

.section-group {
  margin-top: var(--space-3xl);
}

.section-label-tight {
  margin-bottom: var(--space-lg);
}

.section-icon-inline {
  vertical-align: middle;
  margin-right: 8px;
}

.hero-reference-location {
  color: var(--accent);
  font-weight: 600;
}

.about-avatar {
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 36px rgba(5, 2, 10, 0.28);
}

.about-avatar-name {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
  display: inline-block;
}

.about-title-name {
  display: inline-block;
  opacity: 1;
  position: relative;
  padding-right: 0.04em;
  transform: none;
  filter: none;
  clip-path: none;
  will-change: auto;
  min-height: 1em;
  border-right: 2px solid rgba(125, 211, 252, 0.9);
  white-space: nowrap;
  vertical-align: bottom;
  animation: aboutTypingCaret 0.85s step-end infinite;
}

.about-title-name::after {
  content: none;
}

.about-title.reveal-up.animate .about-title-name {
  animation: none;
}

.about-title.reveal-up.animate .about-title-name::after {
  animation: none;
}

.about-title-name.typing-complete {
  border-right-color: transparent;
  animation: none;
}

@keyframes aboutTypingCaret {
  0%,
  49% {
    border-right-color: rgba(125, 211, 252, 0.9);
  }

  50%,
  100% {
    border-right-color: transparent;
  }
}

.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-img {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(10, 4, 24, 0.16));
}

.project-img--highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.2), rgba(56, 189, 248, 0.15));
}

.project-card--highlight {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(56, 189, 248, 0.08));
  border-color: rgba(167, 139, 250, 0.2);
}

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

.project-footer {
  margin-top: auto;
}

.project-link-muted {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.project-status {
  color: var(--accent);
  font-size: 0.8rem;
}

.project-img-bg-green {
  --hue: 160;
}

.project-img-bg-pink {
  --hue: 320;
}

.social-links-start {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
}

.hero-reference-sub {
  max-width: 34rem;
  text-align: center;
}

.hero-action-row {
  width: 100%;
  justify-content: flex-start;
}

.hero-stats-row {
  width: 100%;
  justify-content: center;
  gap: 14px;
}

.hero-mini-stat {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.hero-mini-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 181, 253, 0.28);
  background: rgba(196, 181, 253, 0.08);
}

.hero-mini-icon {
  width: 26px;
  height: 26px;
  background: linear-gradient(180deg, rgba(78, 133, 255, 0.9), rgba(45, 104, 234, 0.78));
}

.hero-mini-icon svg {
  width: 15px;
  height: 15px;
}

.contact-item {
  min-height: 92px;
}

.footer-inner {
  gap: var(--space-md);
  flex-wrap: wrap;
}

body.nav-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 10, 0.55);
  backdrop-filter: blur(4px);
  z-index: 990;
}

.navbar {
  z-index: 1001;
}

.nav-container,
.nav-links {
  position: relative;
  z-index: 1002;
}

@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-img-wrap {
    max-width: 420px;
    margin: 0 auto;
  }

  .about-visual-column {
    max-width: 420px;
  }

  .contact-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-links {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 56px;
  }

  .hero-frame {
    width: 100%;
    padding: 22px 20px 20px;
  }

  .hero-action-row,
  .hero-stats-row {
    justify-content: stretch;
  }

  .hero-action-row .btn,
  .hero-mini-stat {
    width: 100%;
    justify-content: center;
  }

  .hero-mini-stat {
    padding-inline: 16px;
  }

  .nav-links {
    width: min(320px, calc(100vw - 28px));
    padding: 92px 28px 36px;
  }

  .nav-link {
    padding: 14px 0;
  }

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

  .project-img {
    min-height: 200px;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy {
    gap: 18px;
  }

  .hero-reference-sub {
    font-size: 0.95rem;
  }

  .about-img-wrap {
    padding: 56px 20px 32px;
  }

  .about-tag {
    position: static;
    margin-bottom: 10px;
  }

  .about-app {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .about-app::before {
    inset: 8px;
    filter: blur(8px);
  }

  .about-app::after {
    inset: 4px;
    border-radius: 11px;
  }

  .about-app svg {
    width: 28px;
    height: 28px;
  }

  .app-vscode {
    top: 48px;
    left: 0;
  }

  .app-figma {
    top: 12px;
    right: 16px;
  }

  .app-canva {
    top: 110px;
    right: -2px;
  }

  .app-ps {
    bottom: 112px;
    left: -4px;
  }

  .app-ai {
    bottom: 34px;
    right: 6px;
  }

  .app-pr {
    bottom: 8px;
    left: 18px;
  }

  .about-img-placeholder {
    gap: 12px;
  }

  .about-action-row {
    flex-direction: column;
  }

  .about-action-row .btn {
    width: 100%;
    justify-content: center;
  }
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.projects-actions {
  margin-top: var(--space-2xl);
  display: flex;
  justify-content: center;
}

.projects-more-btn[hidden] {
  display: none;
}

.projects-more-btn {
  min-width: 180px;
}

.project-card.project-prism-card {
  --project-accent: #7dd3fc;
  --project-accent-soft: rgba(125, 211, 252, 0.34);
  --project-glow: rgba(56, 189, 248, 0.26);
  position: relative;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  perspective: 1600px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.project-card.project-prism-card:hover {
  box-shadow: none;
}

.project-prism-shell {
  position: relative;
  min-height: 372px;
  padding: 14px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--project-accent) 24%, transparent), transparent 28%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--project-accent) 18%, transparent), transparent 24%),
    linear-gradient(135deg, rgba(69, 38, 136, 0.96), rgba(34, 18, 72, 0.98) 56%, rgba(20, 13, 45, 0.99));
  border: 1px solid rgba(196, 181, 253, 0.16);
  box-shadow:
    0 24px 54px rgba(18, 8, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.project-prism-shell::before,
.project-prism-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.project-prism-shell::before {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%);
  opacity: 0.76;
}

.project-prism-shell::after {
  inset: 1px;
  border-radius: 23px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.06), transparent 22%, transparent 78%, color-mix(in srgb, var(--project-accent) 18%, transparent)),
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--project-accent) 20%, transparent), transparent 24%);
  opacity: 0.5;
}

.project-prism-card:hover .project-prism-shell {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 34px 70px rgba(31, 12, 74, 0.3),
    0 16px 38px rgba(36, 12, 80, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 36px var(--project-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.project-prism-aura,
.project-prism-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.project-prism-aura {
  background:
    radial-gradient(circle at 14% 18%, var(--project-accent-soft), transparent 22%),
    radial-gradient(circle at 88% 82%, var(--project-glow), transparent 18%);
  filter: blur(24px);
  opacity: 0.9;
}

.project-prism-grain {
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 12px 12px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 82%);
}

.project-prism-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(196px, 1fr) minmax(148px, auto);
  height: 100%;
  gap: 10px;
}

.project-prism-media,
.project-prism-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 30px rgba(0, 0, 0, 0.18);
}

.project-prism-media {
  min-height: 196px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--project-accent) 18%, transparent), transparent 26%),
    linear-gradient(135deg, rgba(89, 54, 168, 0.42), rgba(32, 18, 67, 0.72));
}

.project-prism-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--project-accent) 16%, transparent), transparent 26%),
    linear-gradient(135deg, rgba(79, 47, 150, 0.54), rgba(28, 16, 58, 0.9));
}

.project-prism-image,
.project-prism-placeholder {
  width: 100%;
  height: 100%;
}

.project-prism-image {
  display: block;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.06);
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.project-prism-card:hover .project-prism-image {
  transform: scale(1.11);
  filter: saturate(1.12) contrast(1.08);
}

.project-prism-placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 22% 24%, var(--project-accent-soft), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(54, 31, 108, 0.42)),
    rgba(56, 33, 116, 0.38);
  color: rgba(247, 243, 255, 0.9);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.project-prism-screen {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  opacity: 0.9;
}

.project-prism-screen--top {
  top: 14px;
}

.project-prism-screen--bottom {
  bottom: 16px;
}

.project-prism-number {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
  background: rgba(7, 4, 16, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.22),
    0 0 26px var(--project-glow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.project-prism-orbit {
  position: absolute;
  width: 136px;
  height: 136px;
  right: -22px;
  bottom: -42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  opacity: 0.7;
  transform: rotate(-16deg);
}

.project-prism-orbit::before,
.project-prism-orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.project-prism-orbit::before {
  inset: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.project-prism-orbit::after {
  width: 14px;
  height: 14px;
  top: 18px;
  right: 20px;
  background: var(--project-accent);
  box-shadow: 0 0 22px var(--project-glow);
}

.project-prism-head,
.project-prism-meta,
.project-prism-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-prism-kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--project-accent);
}

.project-prism-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f9f7ff;
}

.project-prism-status,
.project-prism-code {
  flex-shrink: 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-prism-status {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(240, 237, 251, 0.9);
}

.project-prism-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.54;
  color: rgba(228, 224, 241, 0.78);
}

.project-prism-meta {
  align-items: center;
}

.project-prism-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-prism-tag {
  --tag-bg: rgba(255, 255, 255, 0.06);
  --tag-border: rgba(255, 255, 255, 0.08);
  --tag-color: rgba(245, 243, 251, 0.86);
  --tag-glow: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--tag-color);
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 16px var(--tag-glow);
}

.project-prism-code {
  color: rgba(186, 179, 206, 0.7);
}

.project-prism-footer {
  align-items: center;
}

.project-prism-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--project-accent), color-mix(in srgb, var(--project-accent) 45%, white 18%));
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--project-accent) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.project-prism-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 14px 24px color-mix(in srgb, var(--project-accent) 42%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.project-prism-domain {
  color: rgba(180, 173, 202, 0.76);
  font-size: 0.74rem;
  text-align: right;
  max-width: 48%;
  word-break: break-word;
}


@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .project-prism-shell {
    min-height: 340px;
    padding: 12px;
    border-radius: 20px;
  }

  .project-prism-stage {
    grid-template-rows: minmax(176px, 1fr) auto;
    gap: 10px;
  }

  .project-prism-panel {
    padding: 12px;
    border-radius: 16px;
  }

  .project-prism-title {
    font-size: 1rem;
  }

  .project-prism-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-prism-domain {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .skills-grid,
  .projects-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 78vw);
    grid-template-columns: none;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    padding-inline: max(0px, calc((100% - min(280px, 78vw)) / 2));
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .skills-grid {
    grid-auto-columns: minmax(250px, 76vw);
    padding-inline: max(0px, calc((100% - min(250px, 76vw)) / 2));
  }

  .projects-grid {
    grid-auto-columns: minmax(294px, 82vw);
    padding-inline: 0;
  }

  .projects-grid::before,
  .projects-grid::after {
    content: '';
    width: max(0px, calc((100% - min(294px, 82vw)) / 2));
    height: 1px;
  }

  .skills-grid::-webkit-scrollbar,
  .projects-grid::-webkit-scrollbar {
    height: 8px;
  }

  .skills-grid::-webkit-scrollbar-thumb,
  .projects-grid::-webkit-scrollbar-thumb {
    background: rgba(125, 211, 252, 0.24);
    border-radius: 999px;
  }

  .skill-category,
  .project-card {
    scroll-snap-align: start;
  }

  .project-card {
    scroll-snap-align: center;
  }

  .skill-category {
    animation: mobileCardFloat 4.8s ease-in-out infinite;
  }

  .project-card {
    width: 100%;
    animation: none;
  }

  .skill-category:nth-child(2),
  .project-card:nth-child(2) {
    animation-delay: 0.6s;
  }

  .skill-category:nth-child(3),
  .project-card:nth-child(3) {
    animation-delay: 1.1s;
  }

  .project-prism-head,
  .project-prism-meta {
    flex-direction: column;
  }

  .project-prism-status,
  .project-prism-code {
    align-self: flex-start;
  }

}

/* =========================================
   MOBILE POLISH & MICRO-INTERACTIONS
   ========================================= */

.timeline-item,
.activity-badge,
.achievement-card,
.contact-item,
.social-link,
.footer-top {
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    background 0.28s var(--ease),
    color 0.28s var(--ease);
}

.timeline-item,
.activity-badge,
.achievement-card,
.contact-item {
  position: relative;
  overflow: hidden;
}

.timeline-item::after,
.activity-badge::after,
.achievement-card::after,
.contact-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(125, 211, 252, 0.1) 48%, transparent 100%);
  opacity: 0;
  transform: translateX(-18%);
  transition: opacity 0.28s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}

.timeline-dot {
  animation: dotPulseSoft 3.4s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
  .achievement-card:hover,
  .contact-item:hover {
    transform: translateY(-4px);
    border-color: rgba(125, 211, 252, 0.24);
    box-shadow:
      0 22px 44px rgba(12, 8, 30, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .achievement-card:hover::after,
  .contact-item:hover::after {
    opacity: 1;
    transform: translateX(0);
  }

  .timeline-item:hover,
  .activity-badge:hover {
    transform: none;
    border-color: rgba(196, 181, 253, 0.1);
    box-shadow: none;
  }

  .timeline-item:hover::after,
  .activity-badge:hover::after {
    opacity: 0;
    transform: translateX(-18%);
  }

  .timeline-item:hover .timeline-title,
  .activity-badge:hover strong {
    color: #ffffff;
  }

  .timeline-item:hover .timeline-sub,
  .activity-badge:hover p {
    color: #d7cff4;
  }

  .social-link:hover,
  .footer-top:hover {
    box-shadow:
      0 14px 28px rgba(12, 18, 34, 0.22),
      0 0 0 1px rgba(125, 211, 252, 0.08);
  }
}

@media (max-width: 768px) {
  .about-stats {
    width: 100%;
    justify-content: stretch;
    gap: 12px;
  }

  .stat {
    flex: 1 1 0;
    min-width: 0;
  }

  .timeline-item {
    padding: 0 0 18px 26px;
    margin-bottom: 18px;
  }

  .timeline-dot {
    left: 0;
  }

  .timeline-title {
    line-height: 1.35;
  }

  .timeline-actions,
  .projects-actions {
    width: 100%;
  }

  .timeline-more-btn,
  .projects-more-btn {
    width: 100%;
    min-width: 0;
  }

  .activity-badge,
  .contact-item {
    min-height: 0;
    padding: 16px 14px;
  }

  .activity-badge {
    border-radius: 16px;
  }

  .achievement-card {
    min-height: 0;
    padding: 18px;
    border-radius: 18px;
  }

  .contact-form,
  .social-links,
  .footer-inner {
    padding: 18px;
  }

  .contact-intro {
    margin-bottom: var(--space-2xl);
    padding-inline: 10px;
  }

  .footer-inner {
    width: 100%;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    width: calc(100vw - 20px);
    padding: 88px 22px 28px;
  }

  .hero-frame,
  .contact-form,
  .social-links,
  .footer-inner {
    padding: 16px;
  }

  .about-stats {
    flex-wrap: wrap;
  }

  .stat {
    min-width: calc(50% - 6px);
  }

  .timeline-item,
  .contact-item {
    padding: 14px 0;
  }

  .timeline-item {
    padding-left: 24px;
  }

  .timeline-dot {
    left: 0;
    width: 9px;
    height: 9px;
  }

  .achievement-card {
    padding: 16px;
  }

  .project-prism-shell {
    min-height: auto;
    padding: 10px;
  }

  .project-prism-stage {
    grid-template-rows: minmax(164px, auto) auto;
    gap: 8px;
  }

  .project-prism-media,
  .project-prism-panel {
    border-radius: 14px;
  }

  .project-prism-panel {
    padding: 11px;
  }

  .project-prism-link {
    width: 100%;
    justify-content: center;
  }

  .project-prism-domain {
    width: 100%;
    max-width: none;
  }

  .social-links {
    justify-content: space-between;
  }

  .footer-copy {
    line-height: 1.5;
  }
}

@keyframes dotPulseSoft {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.08);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
    transform: scale(1.08);
  }
}

@keyframes prismAuraDrift {
  0% {
    transform: translate3d(-2%, 0, 0) scale(1);
    opacity: 0.72;
  }

  100% {
    transform: translate3d(2%, -2%, 0) scale(1.05);
    opacity: 0.94;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 0 0;
  }

  .navbar.scrolled {
    padding: 8px 0 0;
  }

  .nav-container {
    width: min(calc(100% - 20px), 420px);
    max-width: none;
    margin: 0 auto;
    padding: 10px 12px;
    justify-content: space-between;
    border-radius: 18px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 20px));
    height: auto;
    max-height: calc(100dvh - 92px);
    padding: 14px;
    gap: 10px;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 22px;
    box-shadow:
      0 22px 50px rgba(2, 0, 14, 0.46),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition:
      opacity 0.24s var(--ease),
      transform 0.28s var(--ease),
      visibility 0.24s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-links.open::before {
    content: none;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(196, 181, 253, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    justify-content: flex-start;
    transition:
      color 0.24s var(--ease),
      border-color 0.24s var(--ease),
      background 0.24s var(--ease),
      transform 0.24s var(--ease);
  }

  .nav-link:last-child {
    border-bottom: 1px solid rgba(196, 181, 253, 0.08);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(125, 211, 252, 0.08);
    border-color: rgba(125, 211, 252, 0.2);
    transform: translateX(2px);
  }

  .hamburger {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
  }

}

@media (max-width: 480px) {
  .nav-container {
    width: calc(100% - 16px);
    padding: 9px 10px;
  }

  .nav-links {
    width: calc(100vw - 16px);
    padding: 12px;
    border-radius: 18px;
  }

  .nav-link {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.95rem;
    gap: 10px;
  }

  .nav-link-icon {
    width: 17px;
    height: 17px;
  }

  .hamburger {
    min-width: 42px;
    height: 42px;
  }
}

/* =========================================
   MOBILE FIXES: HERO / PROJECTS / CONTACT
   ========================================= */

@media (max-width: 768px) {
  .hero {
    padding: 118px 16px 56px;
  }

  .hero-shell {
    max-width: 100%;
    gap: 0;
  }

  .hero-copy {
    max-width: 100%;
    gap: 18px;
    align-items: center;
    text-align: center;
  }

  .hero-frame {
    width: 100%;
    max-width: 560px;
    padding: 22px 18px 18px;
  }

  .hero-reference-sub {
    max-width: 32rem;
    font-size: 0.95rem;
    text-align: center;
  }

  .hero-web-link {
    width: auto;
    max-width: min(100%, 320px);
    margin-top: 0;
    padding: 10px 14px;
    overflow-wrap: anywhere;
  }

  .hero-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-mini-stat {
    width: auto;
    min-width: 0;
    justify-content: center;
    padding: 12px 14px;
  }

  .skills-grid,
  .projects-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 78vw);
    grid-template-columns: none;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .skills-grid {
    grid-auto-columns: minmax(250px, 76vw);
  }

  .skills-grid::-webkit-scrollbar,
  .projects-grid::-webkit-scrollbar {
    height: 8px;
  }

  .skills-grid::-webkit-scrollbar-thumb,
  .projects-grid::-webkit-scrollbar-thumb {
    background: rgba(125, 211, 252, 0.24);
    border-radius: 999px;
  }

  .skill-category,
  .project-card {
    scroll-snap-align: start;
  }

  .project-prism-shell {
    min-height: auto;
  }

  .project-prism-stage {
    grid-template-rows: minmax(190px, auto) auto;
  }

  .project-prism-panel {
    display: grid;
    grid-template-rows: auto minmax(calc(1.54em * 3), auto) minmax(54px, auto) 72px;
    align-content: stretch;
    padding: 14px;
  }

  .project-prism-head,
  .project-prism-meta,
  .project-prism-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-prism-desc {
    min-height: 0;
  }

  .project-prism-meta {
    min-height: 0;
  }

  .project-prism-link,
  .project-prism-domain {
    width: 100%;
    max-width: none;
  }

  .project-prism-link {
    justify-content: center;
  }

  .project-prism-footer {
    margin-top: 0;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 0;
  }

  .project-prism-domain {
    display: block;
    text-align: center;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.82;
  }

  .contact-grid {
    gap: 16px;
  }

  .contact-form {
    padding: 18px;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .contact-item {
    min-height: 76px;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    align-items: flex-start;
  }

  .contact-item > div:last-child {
    min-width: 0;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .contact-label {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .contact-val {
    display: inline-block;
    font-size: 0.84rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .social-links {
    padding: 16px;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy {
    gap: 16px;
  }

  .hero-frame {
    padding: 18px 14px 16px;
  }

  .hero-promo-title {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .hero-reference-sub {
    font-size: 0.9rem;
  }

  .hero-web-link {
    width: auto;
    max-width: min(100%, 280px);
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .hero-mini-stat {
    width: auto;
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .skills-grid,
  .projects-grid {
    grid-auto-columns: minmax(252px, 84vw);
    gap: 12px;
    padding-inline: max(0px, calc((100% - min(252px, 84vw)) / 2));
  }

  .skills-grid {
    grid-auto-columns: minmax(228px, 82vw);
    padding-inline: max(0px, calc((100% - min(228px, 82vw)) / 2));
  }

  .projects-grid {
    grid-auto-columns: minmax(270px, calc(100vw - 32px));
    padding-inline: 0;
  }

  .projects-grid::before,
  .projects-grid::after {
    width: max(0px, calc((100% - min(270px, calc(100vw - 32px))) / 2));
  }

  .project-prism-stage {
    grid-template-rows: minmax(168px, auto) auto;
  }

  .project-prism-panel {
    grid-template-rows: auto minmax(calc(1.54em * 4), auto) minmax(58px, auto) 76px;
    padding: 12px;
  }

  .contact-form,
  .social-links {
    padding: 14px;
  }

  .contact-info {
    gap: 8px;
  }

  .contact-item {
    min-height: 70px;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 14px;
  }

  .contact-icon {
    width: 34px;
    height: 34px;
  }

  .contact-label {
    font-size: 0.6rem;
  }

  .contact-val {
    font-size: 0.8rem;
  }

  .project-prism-desc {
    min-height: 0;
  }

  .contact-item {
    padding: 14px;
    gap: 12px;
    border-radius: 16px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .social-link {
    width: 42px;
    height: 42px;
  }
}

@keyframes mobileCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-canvas::before,
  .bg-canvas::after,
  .bg-grid,
  .bg-orb {
    animation: none;
  }

  .skill-category,
  .project-card {
    animation: none;
  }
}

@media (max-width: 768px) {
  .projects .project-prism-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .projects .project-prism-link,
  .projects .project-prism-domain {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
  }

  .projects .project-prism-link {
    min-width: 0;
  }

  .projects .project-prism-domain {
    white-space: normal;
    text-wrap: balance;
  }

  .footer .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer .footer-logo,
  .footer .footer-copy,
  .footer .footer-top {
    margin-inline: auto;
    text-align: center;
  }
}

.projects .projects-carousel {
  margin-top: var(--space-xl);
}

.projects .projects-carousel-head {
  display: none;
}

.projects .projects-carousel-controls {
  position: absolute;
  inset: 50% 0 auto 0;
  z-index: 3;
  pointer-events: none;
}

.projects .projects-nav-btn {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(196, 181, 253, 0.16);
  background:
    linear-gradient(180deg, rgba(38, 22, 76, 0.92), rgba(19, 12, 40, 0.94)),
    rgba(31, 18, 63, 0.92);
  color: #f6f2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  pointer-events: auto;
  box-shadow:
    0 14px 28px rgba(11, 6, 24, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), opacity 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.projects .projects-nav-btn-prev {
  left: 16px;
  transform: translateY(-50%);
}

.projects .projects-nav-btn-next {
  right: 16px;
  transform: translateY(-50%);
}

.projects .projects-nav-btn > * {
  display: none;
}

.projects .projects-nav-btn::before {
  content: '';
  width: 11px;
  height: 11px;
  display: block;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.projects #projectsPrev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.projects #projectsNext::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

.projects .projects-nav-btn:hover:not(:disabled) {
  border-color: rgba(125, 211, 252, 0.28);
  box-shadow:
    0 18px 32px rgba(11, 6, 24, 0.22),
    0 0 24px rgba(125, 211, 252, 0.12);
}

.projects .projects-nav-btn-prev:hover:not(:disabled) {
  transform: translateY(calc(-50% - 2px));
}

.projects .projects-nav-btn-next:hover:not(:disabled) {
  transform: translateY(calc(-50% - 2px));
}

.projects .projects-nav-btn:disabled {
  opacity: 0.42;
}

.projects .projects-carousel-viewport {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 22px 76px 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(44, 22, 98, 0.26), rgba(98, 74, 181, 0.12));
}

.projects .projects-grid {
  position: relative;
  width: 100%;
  min-height: 624px;
  perspective: 1600px;
  transform-style: preserve-3d;
}

.projects .projects-grid::-webkit-scrollbar {
  display: none;
}

.projects .project-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 380px);
  margin: 0;
  opacity: 1;
  transform-origin: center center;
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.52s ease,
    filter 0.52s ease,
    z-index 0s linear 0.1s;
  will-change: transform, opacity, filter;
  pointer-events: none;
  opacity: 0;
  filter: blur(8px) saturate(0.7);
}

.projects .project-card.reveal-up,
.projects .project-card.reveal-fade,
.projects .project-card.reveal-left,
.projects .project-card.reveal-right,
.projects .project-card.reveal-scale,
.projects .project-card.animate {
  animation: none !important;
}

.projects .project-card .project-prism-shell {
  box-shadow:
    0 24px 48px rgba(18, 8, 42, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.projects .project-card.is-active {
  z-index: 5 !important;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto;
  transform: translate3d(-50%, -50%, 0) scale(1) !important;
}

.projects .project-card.is-active .project-prism-shell {
  box-shadow:
    0 34px 68px rgba(18, 8, 42, 0.32),
    0 12px 28px rgba(56, 189, 248, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.projects .project-card.is-prev,
.projects .project-card.is-next {
  z-index: 4;
  opacity: 0.72;
  filter: saturate(0.72);
}

.projects .project-card.is-prev {
  transform: translate3d(calc(-50% - 228px), -48%, -120px) rotateY(26deg) scale(0.88);
}

.projects .project-card.is-next {
  transform: translate3d(calc(-50% + 228px), -48%, -120px) rotateY(-26deg) scale(0.88);
}

.projects .project-card.is-prev-outer,
.projects .project-card.is-next-outer {
  z-index: 3;
  opacity: 0.28;
  filter: blur(1px) saturate(0.5);
}

.projects .project-card.is-prev-outer {
  transform: translate3d(calc(-50% - 344px), -46%, -240px) rotateY(34deg) scale(0.74);
}

.projects .project-card.is-next-outer {
  transform: translate3d(calc(-50% + 344px), -46%, -240px) rotateY(-34deg) scale(0.74);
}

.projects .project-card.is-hidden {
  z-index: 1;
  opacity: 0;
  transform: translate3d(-50%, -50%, -320px) scale(0.58);
}

.projects .projects-carousel-progress {
  position: relative;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.projects .projects-carousel-progress-bar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(0.16);
  background: linear-gradient(90deg, #7dd3fc, #c4b5fd);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.22);
}

@media (max-width: 768px) {
  .projects .projects-carousel-viewport {
    min-height: 620px;
    padding: 12px 46px 22px;
  }

  .projects .projects-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .projects .projects-grid {
    min-height: 550px;
  }

  .projects .project-card {
    width: min(100%, 292px);
  }

  .projects .project-card.is-prev {
    transform: translate3d(calc(-50% - 112px), -50%, -140px) scale(0.78);
  }

  .projects .project-card.is-next {
    transform: translate3d(calc(-50% + 112px), -50%, -140px) scale(0.78);
  }

  .projects .project-card.is-prev-outer,
  .projects .project-card.is-next-outer {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .projects .projects-carousel-viewport {
    min-height: 560px;
    padding: 10px 40px 18px;
  }

  .projects .projects-grid {
    min-height: 500px;
  }

  .projects .projects-nav-btn-prev {
    left: 2px;
  }

  .projects .projects-nav-btn-next {
    right: 2px;
  }

  .projects .project-card {
    width: min(100%, 248px);
  }

  .projects .project-card.is-prev,
  .projects .project-card.is-next,
  .projects .project-card.is-prev-outer,
  .projects .project-card.is-next-outer {
    opacity: 0;
    pointer-events: none;
  }

  .projects .project-card.is-prev {
    transform: translate3d(calc(-50% - 24px), -50%, -180px) scale(0.72);
  }

  .projects .project-card.is-next {
    transform: translate3d(calc(-50% + 24px), -50%, -180px) scale(0.72);
  }

  .projects .project-card.is-active {
    transform: translate3d(-50%, -50%, 0) scale(0.92) !important;
  }

  .projects .projects-carousel-progress {
    margin-top: 2px;
  }
}
