:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --surface: #172033;
  --surface-strong: #1f2a44;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --primary: #22d3ee;
  --primary-strong: #0891b2;
  --accent: #8b5cf6;
  --accent-strong: #6d5dfc;
  --warning: #c084fc;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --header-height: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(34, 211, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(139, 92, 246, 0.14), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

body.light-mode {
  --bg: #f8fafc;
  --bg-soft: #eef2f7;
  --surface: #ffffff;
  --surface-strong: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.12);
  --primary: #0891b2;
  --primary-strong: #0e7490;
  --accent: #7c3aed;
  --accent-strong: #6d28d9;
  --shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(circle at 10% 8%, rgba(8, 145, 178, 0.12), transparent 24rem),
    radial-gradient(circle at 88% 20%, rgba(124, 58, 237, 0.12), transparent 22rem),
    var(--bg);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 64%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.25s ease;
}

.scroll-dock {
  position: fixed;
  top: 50%;
  left: 22px;
  z-index: 990;
  display: grid;
  gap: 12px;
  padding: 12px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
}

.light-mode .scroll-dock {
  background: rgba(255, 255, 255, 0.78);
}

.scroll-dock button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--muted);
  cursor: pointer;
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.scroll-dock button:hover,
.scroll-dock button.active {
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.14);
  opacity: 1;
  transform: scale(1.35);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.55);
  outline-offset: 3px;
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(124, 58, 237, 0.38), transparent 18rem),
    radial-gradient(circle at 50% 48%, rgba(34, 211, 238, 0.12), transparent 24rem),
    #030014;
  perspective: 1200px;
}

#loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1.2px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.6px);
  background-position: 0 0, 36px 58px;
  background-size: 92px 92px, 132px 132px;
  opacity: 0.65;
  animation: starDrift 18s linear infinite;
}

.door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.14), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 74px),
    linear-gradient(145deg, #0f172a, #10253a);
  border: 1px solid rgba(34, 211, 238, 0.16);
  box-shadow: inset 0 0 80px rgba(34, 211, 238, 0.08);
  transition: transform 1s cubic-bezier(0.68, -0.02, 0.22, 1);
}

.door-left {
  left: 0;
  transform-origin: left center;
}

.door-right {
  right: 0;
  transform-origin: right center;
}

#loader.open .door-left {
  transform: rotateY(-105deg);
}

#loader.open .door-right {
  transform: rotateY(105deg);
}

.loader-brand {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
  justify-items: center;
  color: var(--text);
  transition: opacity 0.35s ease, transform 0.35s ease;
  text-align: center;
}

.welcome-avatar {
  width: min(240px, 52vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: #020617;
  box-shadow: 0 0 70px rgba(124, 58, 237, 0.58), 0 0 0 14px rgba(124, 58, 237, 0.1);
  animation: welcomePulse 2.8s ease-in-out infinite;
}

.welcome-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.loader-brand h2 {
  max-width: 620px;
  padding-inline: 22px;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.22;
  letter-spacing: 0;
}

.loader-brand h2 span {
  display: block;
  color: #8b5cf6;
}

#enter-site {
  min-width: min(420px, calc(100vw - 44px));
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#111827, #111827) padding-box,
    linear-gradient(135deg, var(--accent), var(--primary), var(--accent-strong)) border-box;
  color: #ffffff;
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.32), inset 0 0 22px rgba(124, 58, 237, 0.24);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#enter-site:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 56px rgba(34, 211, 238, 0.45), inset 0 0 28px rgba(124, 58, 237, 0.3);
}

.welcome-icons {
  display: inline-flex;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(14px);
}

.welcome-icons i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  color: #c084fc;
  background: rgba(255, 255, 255, 0.04);
}

#loader.open .loader-brand {
  opacity: 0;
  transform: scale(0.92);
}

@keyframes starDrift {
  to {
    background-position: 92px 184px, 168px 264px;
  }
}

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

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

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--warning));
}

.site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--header-height);
  overflow: visible;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 7%;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.06), transparent 24%, transparent 76%, rgba(139, 92, 246, 0.08)),
    rgba(15, 23, 42, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: min-height 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.58), rgba(139, 92, 246, 0.42), transparent);
  opacity: 0.42;
  pointer-events: none;
}

.site-header.is-scrolled {
  min-height: 68px;
  padding-block: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.light-mode .site-header {
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 26%, transparent 74%, rgba(139, 92, 246, 0.08)),
    rgba(248, 250, 252, 0.9);
}

.light-mode .iky-home {
  background:
    linear-gradient(145deg, rgba(236, 254, 255, 0.96), rgba(241, 245, 249, 0.9)) padding-box,
    linear-gradient(135deg, rgba(8, 145, 178, 0.55), rgba(124, 58, 237, 0.42)) border-box;
}

.light-mode #theme-toggle,
.light-mode #menu-toggle,
.light-mode #scrollTopBtn {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(226, 232, 240, 0.76));
}

.logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  justify-self: start;
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.1));
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(34, 211, 238, 0.08);
  transition: width 0.25s ease, height 0.25s ease, border-radius 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}

.logo:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.62);
}

.site-header.is-scrolled .logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.iky-home {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 4px;
  min-width: 76px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(8, 47, 73, 0.9), rgba(49, 46, 129, 0.72)) padding-box,
    linear-gradient(135deg, rgba(34, 211, 238, 0.65), rgba(139, 92, 246, 0.5)) border-box;
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, border-radius 0.22s ease;
}

.iky-home::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 20%, rgba(34, 211, 238, 0.34), transparent 64%);
  opacity: 0.8;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.iky-home span {
  display: inline-block;
  background: linear-gradient(135deg, #ffffff, var(--primary), var(--accent-strong));
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 28px rgba(34, 211, 238, 0.3);
  transition: transform 0.22s ease;
}

.iky-home:hover,
.iky-home.active {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(34, 211, 238, 0.58);
  border-radius: 20px;
  box-shadow: 0 20px 46px rgba(34, 211, 238, 0.22), 0 0 28px rgba(139, 92, 246, 0.18);
}

.iky-home:hover::before,
.iky-home.active::before {
  opacity: 1;
  transform: scale(1.08);
}

.iky-home:hover span:nth-child(1) {
  transform: translateY(-2px) rotate(-5deg);
}

.iky-home:hover span:nth-child(2) {
  transform: translateY(2px);
}

.iky-home:hover span:nth-child(3) {
  transform: translateY(-2px) rotate(5deg);
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: center;
}

nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

nav a:hover,
nav a.active {
  background: rgba(34, 211, 238, 0.12);
  color: var(--primary);
}

.nav-home-link {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

#theme-toggle,
#menu-toggle,
#scrollTopBtn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.72));
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#theme-toggle:hover,
#menu-toggle:hover,
#scrollTopBtn:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 12px 26px rgba(34, 211, 238, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#menu-toggle {
  display: none;
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 54px;
  padding: 138px 7% 74px;
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.09);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.14);
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 1;
  letter-spacing: 0;
  animation: heroRise 0.8s ease both;
}

.hero h2 {
  min-height: 44px;
  margin-top: 16px;
  color: var(--primary);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
}

.hero p {
  max-width: 700px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
  animation: heroRise 0.8s 0.12s ease both;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #06202a;
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.22);
}

.btn-secondary {
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(34, 211, 238, 0.08);
  color: var(--text);
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  max-width: 520px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.profile-panel {
  position: relative;
  display: grid;
  justify-items: center;
  perspective: 1100px;
  align-self: start;
  padding-top: 104px;
}

.id-card {
  --card-x: 0px;
  --card-y: 0px;
  --card-rotate: 0deg;
  --strap-skew: 0deg;
  --pull-distance: 0px;
  --strap-extra: 0px;
  position: relative;
  width: min(235px, 100%);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.id-card *,
.id-card img {
  -webkit-user-drag: none;
  user-select: none;
}

body.is-pulling-card {
  overscroll-behavior: none;
}

.id-card-body {
  position: relative;
  width: 100%;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 9px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(34, 211, 238, 0.14), rgba(139, 92, 246, 0.1)),
    rgba(23, 32, 51, 0.82);
  box-shadow: var(--shadow);
  transform-origin: top center;
  transform-style: preserve-3d;
  transform: translate3d(var(--card-x), var(--card-y), 0) rotate(var(--card-rotate));
  transition: transform 0.55s cubic-bezier(0.18, 1.18, 0.22, 1), box-shadow 0.25s ease;
}

.id-card.is-drag-ready .id-card-body {
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 24px 70px rgba(139, 92, 246, 0.26), var(--shadow);
}

.id-card.is-dragging {
  cursor: grabbing;
}

.id-card.is-dragging .id-card-body {
  transition: none;
}

.id-card.snap-back .id-card-body {
  animation: cardJumpBack 0.72s cubic-bezier(0.2, 1.2, 0.24, 1) both;
}

.light-mode .id-card-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 34%),
    linear-gradient(145deg, rgba(8, 145, 178, 0.12), rgba(124, 58, 237, 0.1)),
    rgba(255, 255, 255, 0.9);
}

.id-card-body::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 50px;
  height: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  transform: translateX(-50%);
}

.light-mode .id-card-body::before {
  background: rgba(255, 255, 255, 0.75);
}

.id-lanyard {
  position: absolute;
  top: -178px;
  left: 50%;
  width: 56px;
  height: calc(173px + var(--card-y) + var(--strap-extra));
  border-inline: 5px solid rgba(34, 211, 238, 0.62);
  border-bottom: 0;
  border-radius: 0 0 40px 40px;
  transform: translateX(-50%) skewX(var(--strap-skew));
  transform-origin: top center;
  transition: height 0.48s cubic-bezier(0.18, 1, 0.22, 1), transform 0.48s cubic-bezier(0.18, 1, 0.22, 1);
}

.id-lanyard::before,
.id-lanyard::after {
  content: "";
  position: absolute;
  top: -18px;
  width: 5px;
  height: 24px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
}

.id-lanyard::before {
  left: -5px;
}

.id-lanyard::after {
  right: -5px;
}

.id-clip {
  position: absolute;
  top: -5px;
  left: 50%;
  z-index: 2;
  width: 32px;
  height: 15px;
  border: 1px solid rgba(34, 211, 238, 0.48);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.18);
  transform: translateX(-50%);
}

.id-card.drop-in {
  animation: idCardDrop 1.15s cubic-bezier(0.18, 0.86, 0.28, 1.14) both;
}

.profile-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  justify-self: center;
  margin-top: 8px;
  padding: 5px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.14), rgba(139, 92, 246, 0.1));
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.profile-card {
  width: 100%;
  justify-self: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(23, 32, 51, 0.82);
  backdrop-filter: blur(16px);
  animation: floatCard 5s ease-in-out infinite;
  text-align: center;
}

.light-mode .profile-card {
  background: rgba(255, 255, 255, 0.88);
}

.profile-label {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-card h3 {
  margin-top: 4px;
  font-size: 15px;
}

.profile-role {
  display: inline-flex;
  margin-top: 5px;
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 800;
}

.profile-tags,
.chip-list,
.project-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tags {
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
}

.profile-tags span,
.chip-list span,
.project-topline span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-tags span {
  padding: 5px 8px;
  font-size: 9.5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0 7% 68px;
}

.stat-card,
.about-card,
.skill-card,
.timeline-item,
.project-card,
.certificate-card,
.recruiter-card,
.education-card {
  border: 1px solid var(--line);
  background: rgba(23, 32, 51, 0.86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  will-change: transform;
}

.scroll-animate {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 28px, 0) scale(0.985);
  transform-origin: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform, filter;
}

.scroll-animate.in-view {
  opacity: 1;
  filter: blur(0);
  animation: scrollRise 0.72s var(--delay, 0ms) cubic-bezier(0.18, 1, 0.22, 1) both;
}

.scroll-animate.anim-heading {
  filter: blur(6px);
  transform: translate3d(0, 22px, 0);
}

.scroll-animate.anim-heading.in-view {
  animation-name: scrollHeading;
}

.scroll-animate.anim-timeline {
  transform: translate3d(-22px, 20px, 0) scale(0.99);
}

.scroll-animate.anim-timeline.in-view {
  animation-name: scrollTimeline;
}

.scroll-animate.anim-scale {
  transform: translate3d(0, 30px, 0) scale(0.955);
}

.scroll-animate.anim-scale.in-view {
  animation-name: scrollScaleIn;
}

@keyframes scrollRise {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 28px, 0) scale(0.985);
  }

  70% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, -4px, 0) scale(1.004);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes scrollHeading {
  0% {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, 22px, 0);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scrollTimeline {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(-22px, 20px, 0) scale(0.99);
  }

  72% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(4px, -3px, 0) scale(1.002);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes scrollScaleIn {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 30px, 0) scale(0.955);
  }

  72% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, -3px, 0) scale(1.01);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .scroll-animate.anim-heading,
  .scroll-animate.anim-timeline,
  .scroll-animate.anim-scale,
  .scroll-animate.in-view {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
}

.light-mode .stat-card,
.light-mode .about-card,
.light-mode .skill-card,
.light-mode .timeline-item,
.light-mode .project-card,
.light-mode .certificate-card,
.light-mode .recruiter-card,
.light-mode .education-card {
  background: rgba(255, 255, 255, 0.9);
}

.stat-card {
  position: relative;
  min-height: 176px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px 20px;
  padding: 26px 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 16% 18%, rgba(34, 211, 238, 0.13), transparent 30%),
    radial-gradient(circle at 82% 26%, rgba(139, 92, 246, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(20, 33, 58, 0.94), rgba(25, 29, 66, 0.9));
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-7px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 24px 70px rgba(76, 29, 149, 0.22);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.1), transparent 78%);
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 0.3s ease, transform 0.65s ease;
}

.stat-card:hover::before {
  opacity: 1;
  transform: translateX(70%);
}

.stat-card > i {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  grid-row: span 3;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.22));
  color: #f8fafc;
  font-size: 26px;
}

.stat-card strong {
  justify-self: end;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1;
}

.stat-card span {
  grid-column: 2;
  color: #d7d9ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card p {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.stat-card a {
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.stat-card a i {
  width: auto;
  height: auto;
  display: inline;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.stat-card a:hover {
  color: #ffffff;
  transform: translate(2px, -2px);
}

.section {
  padding: 92px 7%;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading h2 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
}

.section-heading p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.8;
}

#projects {
  padding-top: 84px;
}

#projects .section-heading {
  max-width: 1080px;
  margin-bottom: 30px;
}

#projects .section-heading h2 {
  max-width: 980px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.12;
}

#projects .section-heading p {
  max-width: 980px;
  font-size: 16px;
  line-height: 1.75;
}

#experience .section-heading {
  max-width: 900px;
  margin-inline: 0;
  text-align: left;
}

#about {
  padding-top: 74px;
  padding-bottom: 28px;
}

#experience {
  padding-top: 28px;
}

#about + #experience {
  margin-top: 0;
}

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

#about .section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

#about .section-heading h2 {
  max-width: 760px;
  font-size: clamp(32px, 4.4vw, 52px);
}

#about .section-heading p {
  max-width: 860px;
}

.about-card,
.skill-card,
.recruiter-card {
  min-height: 205px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.about-card:hover,
.skill-card:hover,
.recruiter-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
}

.about-card i,
.skill-icon,
.recruiter-card i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--primary);
  font-size: 20px;
}

.about-card h3,
.skill-card h3,
.recruiter-card h3,
.certificate-card h3,
.project-card h3,
.education-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.about-card p,
.skill-card p,
.recruiter-card p,
.certificate-card p,
.project-card p,
.education-card p,
.timeline-item p,
.timeline-item li {
  color: var(--muted);
  line-height: 1.75;
}

.chip-list {
  margin-top: 18px;
}

.skill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: var(--primary);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.skill-toggle:hover {
  border-color: rgba(34, 211, 238, 0.48);
  background: rgba(34, 211, 238, 0.14);
  transform: translateY(-2px);
}

.skill-toggle i {
  transition: transform 0.25s ease;
}

.skill-card.is-open .skill-toggle i {
  transform: rotate(180deg);
}

.skill-detail {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.32);
  animation: skillDetailIn 0.28s ease both;
}

.light-mode .skill-detail {
  background: rgba(248, 250, 252, 0.7);
}

@keyframes skillDetailIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

.career-tabs {
  --career-active: 0;
  position: relative;
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0 auto 30px;
  padding: 7px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(23, 17, 55, 0.92), rgba(15, 23, 42, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 55px rgba(76, 29, 149, 0.16);
}

.career-tabs::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 7px;
  width: calc((100% - 21px) / 2);
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.42), 0 0 28px rgba(168, 85, 247, 0.28);
  transform: translateX(calc(var(--career-active) * (100% + 7px)));
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.35s ease;
}

.career-tab {
  position: relative;
  z-index: 1;
  min-height: 64px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.22s ease, transform 0.22s ease;
}

.career-tab:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.career-tab.active {
  color: #ffffff;
  transform: translateY(-1px);
}

.career-tab i {
  font-size: 17px;
}

.light-mode .career-tabs {
  background: rgba(255, 255, 255, 0.9);
}

.career-panel {
  animation: careerPanelIn 0.36s ease both;
}

.career-panel[hidden] {
  display: none;
}

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

.education-card {
  position: relative;
  min-height: 245px;
  padding: 26px;
  border-radius: var(--radius);
  overflow: hidden;
}

.education-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.1), transparent 78%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-75%);
  transition: opacity 0.3s ease, transform 0.65s ease;
}

.education-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.5);
}

.education-card:hover::before {
  opacity: 1;
  transform: translateX(75%);
}

.education-card i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 15px;
  background: rgba(139, 92, 246, 0.16);
  color: #a78bfa;
  font-size: 20px;
}

.education-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes careerPanelIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin-inline: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 15px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--accent));
  opacity: 0.22;
}

.timeline::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 15px;
  width: 2px;
  height: var(--timeline-progress, 0%);
  border-radius: 999px;
  background: linear-gradient(var(--primary), var(--accent));
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.55);
  transition: height 0.12s linear;
}

.timeline-item {
  position: relative;
  margin-left: 46px;
  padding: 24px;
  border-radius: var(--radius);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -38px;
  width: 14px;
  height: 14px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--primary);
}

.timeline-date {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 20px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 24px;
}

.portfolio-tabs {
  --portfolio-active: 0;
  position: relative;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 auto 28px;
  padding: 7px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(23, 17, 55, 0.92), rgba(15, 23, 42, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 55px rgba(76, 29, 149, 0.2);
}

.portfolio-tabs::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 7px;
  width: calc((100% - 28px) / 3);
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.42), 0 0 28px rgba(168, 85, 247, 0.28);
  transform: translateX(calc(var(--portfolio-active) * (100% + 7px)));
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.35s ease;
}

.portfolio-tab {
  position: relative;
  z-index: 1;
  min-height: 64px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.22s ease, transform 0.22s ease;
}

.portfolio-tab i {
  font-size: 17px;
}

.portfolio-tab:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.portfolio-tab.active {
  color: #ffffff;
  transform: translateY(-1px);
}

.portfolio-tab:active {
  transform: translateY(0) scale(0.98);
}

.portfolio-panel {
  animation: portfolioPanelIn 0.36s ease both;
}

.portfolio-panel[hidden] {
  display: none;
}

.light-mode .portfolio-tabs {
  background: rgba(255, 255, 255, 0.9);
}

@keyframes portfolioPanelIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

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

.filter-btn {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: rgba(34, 211, 238, 0.44);
  background: rgba(34, 211, 238, 0.12);
  color: var(--primary);
}

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

.project-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.project-card:hover {
  transform: translateY(-7px) rotateX(var(--tilt-x, 1deg)) rotateY(var(--tilt-y, 0deg));
  border-color: rgba(34, 211, 238, 0.42);
}

.project-card::before,
.skill-card::before,
.about-card::before,
.recruiter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.1), transparent 80%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-70%);
  transition: opacity 0.3s ease, transform 0.6s ease;
}

.project-card,
.skill-card,
.about-card,
.recruiter-card {
  position: relative;
}

.project-card:hover::before,
.skill-card:hover::before,
.about-card:hover::before,
.recruiter-card:hover::before {
  opacity: 1;
  transform: translateX(70%);
}

.project-card.is-hidden {
  display: none;
}

.project-card img {
  width: 100%;
  height: 218px;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.project-card:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

.project-content {
  padding: 22px;
}

.project-topline {
  margin-bottom: 14px;
}

.project-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-actions a,
.project-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.project-detail-btn:hover,
.project-actions a:hover {
  color: var(--accent);
}

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

.certificate-card {
  padding: 22px;
  border-radius: var(--radius);
}

.certificate-preview {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.certificate-card img {
  width: 100%;
  height: 260px;
  margin-bottom: 18px;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.certificate-preview:hover img {
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.035);
}

.recruiter-section {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08));
  border-block: 1px solid var(--line);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 26px;
  align-items: stretch;
}

.contact-copy {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.14), rgba(139, 92, 246, 0.08));
}

.contact-copy h3 {
  font-size: 26px;
  line-height: 1.25;
}

.contact-copy p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.8;
}

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

.social-card {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
}

.social-card i {
  font-size: 28px;
}

.linkedin i,
.jobstreet i {
  color: #38bdf8;
}

.github i {
  color: var(--text);
}

.instagram i {
  color: #f472b6;
}

footer {
  position: relative;
  z-index: 1;
  padding: 42px 7%;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.5);
  text-align: center;
}

.light-mode footer {
  background: rgba(248, 250, 252, 0.72);
}

footer p,
.footer-year {
  margin-top: 8px;
  color: var(--muted);
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1002;
  min-width: 240px;
  max-width: calc(100vw - 32px);
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: center;
  font-weight: 700;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(124, 58, 237, 0.32);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 6%, rgba(34, 211, 238, 0.16), transparent 32%),
    radial-gradient(circle at 85% 88%, rgba(168, 85, 247, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(8, 13, 31, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48), 0 0 80px rgba(76, 29, 149, 0.16);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.modal.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.light-mode .modal-dialog {
  border-color: rgba(14, 165, 233, 0.22);
  background:
    radial-gradient(circle at 14% 6%, rgba(34, 211, 238, 0.12), transparent 32%),
    radial-gradient(circle at 85% 88%, rgba(139, 92, 246, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.16);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
  color: var(--text);
  cursor: pointer;
}

.light-mode .modal-close {
  background: rgba(248, 250, 252, 0.8);
}

.modal-image {
  width: 100%;
  max-height: 62vh;
  margin-bottom: 18px;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.42);
}

.modal.is-project .modal-image {
  width: calc(100% + 68px);
  max-height: 390px;
  margin: -34px -34px 28px;
  border-radius: 28px 28px 18px 18px;
  object-fit: cover;
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
}

.modal.is-certificate .modal-image {
  max-height: 68vh;
}

.modal-kicker {
  display: inline-flex;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-dialog h3 {
  margin-top: 8px;
  max-width: 640px;
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.modal-accent {
  display: block;
  width: 120px;
  height: 7px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.38), 0 0 22px rgba(139, 92, 246, 0.34);
}

.modal-description {
  margin-top: 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.44);
}

.modal-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.38);
}

.modal-stat i {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.24));
  color: var(--primary);
  font-size: 18px;
}

.modal-stat strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.modal-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.light-mode .modal-stats,
.light-mode .modal-stat {
  background: rgba(248, 250, 252, 0.82);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.modal-actions[hidden],
.modal-stats[hidden],
.modal-features[hidden],
.modal-subtitle[hidden],
.modal-stack[hidden] {
  display: none;
}

.modal-features {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.28);
}

.modal-features h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 20px;
}

.modal-features h4 i {
  color: var(--primary);
}

.modal-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-feature-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 13px;
  background: rgba(30, 41, 59, 0.34);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.modal-feature-list i {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--primary);
  font-size: 10px;
}

.light-mode .modal-features,
.light-mode .modal-feature-list span {
  background: rgba(248, 250, 252, 0.82);
}

.modal-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  color: var(--text);
  font-size: 22px;
}

.modal-subtitle i {
  color: var(--primary);
}

.modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.modal-stack span {
  padding: 10px 13px;
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 800;
}

.light-mode .modal-stack span {
  background: rgba(14, 165, 233, 0.1);
  color: #075985;
}

.modal-link,
.modal-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(124, 58, 237, 0.14));
  color: #c7d2fe;
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.modal-link[hidden],
.modal-github[hidden] {
  display: none;
}

.modal-github {
  border-color: rgba(168, 85, 247, 0.32);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(236, 72, 153, 0.12));
}

.modal-link:hover,
.modal-github:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.58);
}

.light-mode .modal-link,
.light-mode .modal-github {
  color: #0f172a;
  background: rgba(248, 250, 252, 0.88);
}

.floating-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #25d366;
  color: #ffffff;
  font-size: 28px;
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.28);
  transition: transform 0.2s ease;
}

.floating-wa:hover,
.floating-wa.pulse {
  transform: translateY(-3px) scale(1.04);
}

#scrollTopBtn {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 999;
  display: none;
  background: var(--surface);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

@keyframes idCardDrop {
  0% {
    opacity: 0;
    transform: translateY(-140vh) rotateX(34deg) rotateZ(-10deg) scale(0.92);
  }
  58% {
    opacity: 1;
    transform: translateY(18px) rotateX(-7deg) rotateZ(4deg) scale(1.02);
  }
  74% {
    transform: translateY(-10px) rotateX(5deg) rotateZ(-2deg) scale(1);
  }
  88% {
    transform: translateY(5px) rotateX(-2deg) rotateZ(1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) rotateZ(0);
  }
}

@keyframes cardJumpBack {
  0% {
    transform: translate3d(var(--card-x), var(--card-y), 0) rotate(var(--card-rotate));
  }

  45% {
    transform: translate3d(0, -18px, 0) rotate(-2deg);
  }

  68% {
    transform: translate3d(0, 8px, 0) rotate(1.2deg);
  }

  84% {
    transform: translate3d(0, -5px, 0) rotate(-0.6deg);
  }

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

@media (max-width: 1180px) {
  #projects .section-heading h2 {
    font-size: clamp(32px, 5.2vw, 52px);
  }

  .portfolio-tabs {
    width: min(680px, 100%);
  }

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

@media (max-width: 980px) {
  .cursor-glow,
  .scroll-dock {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding-inline: 5%;
  }

  .site-header::after {
    left: 5%;
    right: 5%;
  }

  .iky-home {
    justify-self: center;
  }

  nav {
    position: fixed;
    top: var(--header-height);
    left: 5%;
    right: 5%;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .light-mode nav {
    background: rgba(255, 255, 255, 0.96);
  }

  nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  nav a {
    width: 100%;
    border-radius: 12px;
  }

  #menu-toggle {
    display: inline-grid;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-inline: 5%;
    text-align: center;
    gap: 46px;
  }

  .hero-content,
  .section-heading {
    margin-inline: auto;
  }

  .profile-panel {
    padding-top: 30px;
  }

  .eyebrow,
  .section-kicker,
  .hero-actions,
  .hero-meta {
    justify-content: center;
    margin-inline: auto;
  }

  .stats,
  .about-grid,
  .skills-layout,
  .recruiter-grid,
  .certificate-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .stats,
  .section {
    padding-inline: 5%;
  }

  #projects .section-heading {
    text-align: center;
  }

  #projects .section-heading h2,
  #projects .section-heading p {
    margin-inline: auto;
  }

  #about {
    padding-top: 58px;
    padding-bottom: 26px;
  }

  #experience {
    padding-top: 26px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .loader-brand {
    width: 100%;
    gap: 14px;
    padding: 0 18px;
  }

  .welcome-avatar {
    width: 138px;
    box-shadow: 0 0 36px rgba(124, 58, 237, 0.42), 0 0 0 8px rgba(124, 58, 237, 0.1);
  }

  .loader-brand h2 {
    max-width: 320px;
    padding-inline: 0;
    font-size: 30px;
    line-height: 1.22;
  }

  #enter-site {
    min-width: 0;
    width: min(100%, 320px);
    min-height: 54px;
    gap: 12px;
    padding: 12px 18px;
    font-size: 15px;
  }

  .welcome-icons {
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .welcome-icons i {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 14px;
  }

  .site-header {
    top: 0;
    min-height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    gap: 8px;
    padding: calc(9px + env(safe-area-inset-top, 0px)) 4% 9px;
  }

  .site-header.is-scrolled {
    min-height: calc(62px + env(safe-area-inset-top, 0px));
    padding-block: calc(8px + env(safe-area-inset-top, 0px)) 8px;
  }

  .logo {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 14px;
  }

  .iky-home {
    min-width: 64px;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 14px;
    font-size: 14px;
    letter-spacing: 0.13em;
    box-shadow: 0 10px 24px rgba(34, 211, 238, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  #theme-toggle,
  #menu-toggle,
  #scrollTopBtn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
  }

  nav {
    left: 4%;
    right: 4%;
    padding: 8px;
    border-radius: 14px;
  }

  nav a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) 88px;
    align-items: start;
    padding: 82px 4% 36px;
    gap: 12px;
    text-align: left;
  }

  .hero-content {
    display: contents;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin-inline: 0;
  }

  .profile-panel {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: start;
    padding-top: 8px;
  }

  .hero h1 {
    font-size: clamp(27px, 8.8vw, 36px);
    max-width: 100%;
    line-height: 1.08;
  }

  .hero h2 {
    min-height: 26px;
    margin-top: 8px;
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.25;
  }

  .hero p {
    max-width: 100%;
    margin-top: 10px;
    font-size: 11.4px;
    line-height: 1.55;
  }

  .eyebrow,
  .section-kicker {
    gap: 7px;
    margin-bottom: 14px;
    padding: 6px 9px;
    font-size: 10.2px;
  }

  .hero .eyebrow {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-inline: 0;
    text-align: left;
  }

  .eyebrow-extra {
    display: none;
  }

  .hero h1,
  .hero h2,
  .hero p {
    grid-column: 1;
  }

  .status-dot {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
  }

  .hero-actions,
  .contact-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-inline: 0;
  }

  .hero-actions .btn-ghost {
    min-height: 36px;
    opacity: 0.92;
  }

  .hero-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 7px;
    max-width: 100%;
    margin-top: 16px;
    margin-bottom: 4px;
    margin-inline: 0;
  }

  .hero-meta span {
    padding: 6px 8px;
    font-size: 10.8px;
  }

  .btn,
  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 12px;
    font-size: 12px;
  }

  .id-card {
    width: 82px;
  }

  .id-card-body {
    gap: 4px;
    padding: 5px;
    border-radius: 12px;
  }

  .id-card-body::before {
    top: 5px;
    width: 28px;
    height: 5px;
  }

  .id-lanyard {
    top: -118px;
    width: 24px;
    height: calc(115px + var(--card-y) + var(--strap-extra));
    border-inline-width: 3px;
    border-radius: 0 0 14px 14px;
  }

  .id-lanyard::before,
  .id-lanyard::after {
    top: -12px;
    width: 3px;
    height: 16px;
  }

  .id-clip {
    top: -3px;
    width: 20px;
    height: 9px;
    border-radius: 5px;
  }

  .profile-photo {
    width: 100%;
    margin-top: 5px;
    padding: 3px;
    border-radius: 9px;
  }

  .profile-photo img {
    border-radius: 6px;
  }

  .profile-card {
    width: 100%;
    padding: 5px;
    border-radius: 8px;
    animation: none;
  }

  .profile-label {
    display: none;
  }

  .profile-card h3 {
    margin-top: 0;
    font-size: 7px;
    line-height: 1.15;
  }

  .profile-role {
    margin-top: 2px;
    font-size: 5.8px;
    line-height: 1.2;
  }

  .profile-tags {
    display: none;
  }

  .profile-tags span,
  .chip-list span,
  .project-topline span {
    padding: 3px 5px;
    font-size: 6.2px;
  }

  .stats,
  .project-grid,
  .social-container {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 24px;
    padding: 10px 4% 46px;
  }

  .stat-card {
    min-height: 170px;
    gap: 10px 18px;
    padding: 24px;
    border-radius: 15px;
  }

  .stat-card > i {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 25px;
  }

  .stat-card strong {
    font-size: 38px;
  }

  .stat-card span {
    font-size: 12px;
  }

  .stat-card p {
    font-size: 12px;
  }

  .stat-card a {
    right: 24px;
    bottom: 20px;
  }

  .section {
    padding: 46px 4%;
  }

  #about {
    padding-top: 42px;
    padding-bottom: 22px;
  }

  #experience {
    padding-top: 22px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  #about .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: 24px;
    line-height: 1.22;
  }

  #about .section-heading h2 {
    font-size: 26px;
  }

  .section-heading p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
  }

  .about-card,
  .skill-card,
  .timeline-item,
  .recruiter-card,
  .contact-copy,
  .certificate-card,
  .education-card {
    min-height: auto;
    padding: 14px;
    border-radius: 14px;
  }

  .about-card i,
  .skill-icon,
  .recruiter-card i {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 16px;
  }

  .about-card h3,
  .skill-card h3,
  .recruiter-card h3,
  .certificate-card h3,
  .project-card h3,
  .education-card h3 {
    margin-bottom: 7px;
    font-size: 17px;
  }

  .about-card p,
  .skill-card p,
  .recruiter-card p,
  .certificate-card p,
  .project-card p,
  .education-card p,
  .timeline-item p,
  .timeline-item li {
    font-size: 12px;
    line-height: 1.58;
  }

  .chip-list {
    gap: 6px;
    margin-top: 12px;
  }

  .skill-toggle {
    margin-top: 12px;
    padding: 8px 10px;
    font-size: 11.5px;
  }

  .skill-detail {
    margin-top: 10px;
    padding: 11px;
    border-radius: 12px;
  }

  .career-tabs {
    width: 100%;
    margin-bottom: 18px;
    padding: 5px;
    border-radius: 18px;
  }

  .career-tabs::before {
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc((100% - 15px) / 2);
    border-radius: 13px;
    transform: translateX(calc(var(--career-active) * (100% + 5px)));
  }

  .career-tab {
    min-height: 52px;
    gap: 7px;
    border-radius: 14px;
    font-size: 12.5px;
  }

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

  .education-card {
    min-height: auto;
  }

  .education-card i {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 15px;
  }

  .education-card span {
    font-size: 10.5px;
  }

  .timeline::before {
    left: 9px;
  }

  .timeline::after {
    left: 9px;
  }

  .timeline-item {
    margin-left: 32px;
    padding: 15px;
  }

  .timeline-item::before {
    left: -31px;
    width: 11px;
    height: 11px;
    border-width: 3px;
  }

  .timeline-date {
    margin-bottom: 7px;
    font-size: 11px;
  }

  .timeline-item ul {
    gap: 6px;
    margin-top: 10px;
  }

  .filter-bar {
    gap: 7px;
    margin-bottom: 16px;
  }

  .portfolio-tabs {
    gap: 5px;
    margin-bottom: 16px;
    padding: 5px;
    border-radius: 16px;
  }

  .portfolio-tabs::before {
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc((100% - 20px) / 3);
    border-radius: 12px;
    transform: translateX(calc(var(--portfolio-active) * (100% + 5px)));
  }

  .portfolio-tab {
    min-height: 52px;
    gap: 6px;
    border-radius: 12px;
    font-size: 11px;
  }

  .portfolio-tab i {
    font-size: 14px;
  }

  .filter-btn {
    padding: 8px 10px;
    font-size: 11.5px;
  }

  .project-card {
    border-radius: 14px;
  }

  .project-card img {
    height: 150px;
  }

  .project-content {
    padding: 15px;
  }

  .project-topline {
    gap: 6px;
    margin-bottom: 10px;
  }

  .project-actions {
    margin-top: 12px;
    gap: 10px;
  }

  .project-actions a,
  .project-detail-btn {
    font-size: 12.5px;
  }

  .certificate-card img {
    height: 165px;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .certificate-preview {
    border-radius: 10px;
  }

  .modal {
    padding: 14px;
  }

  .modal-dialog {
    max-height: 84vh;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .modal-image {
    max-height: 54vh;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .modal.is-project .modal-image {
    width: calc(100% + 36px);
    max-height: 230px;
    margin: -22px -18px 18px;
    border-radius: 18px 18px 12px 12px;
  }

  .modal.is-certificate .modal-image {
    max-height: 58vh;
  }

  .modal-dialog h3 {
    padding-right: 34px;
    font-size: 28px;
    line-height: 1.3;
  }

  .modal-accent {
    width: 88px;
    height: 5px;
    margin-top: 16px;
  }

  .modal-description {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.75;
  }

  .modal-stats {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 18px;
    padding: 9px;
    border-radius: 15px;
  }

  .modal-stat {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
    border-radius: 13px;
  }

  .modal-stat i {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 14px;
  }

  .modal-stat strong {
    font-size: 24px;
  }

  .modal-stat span {
    font-size: 11px;
  }

  .modal-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .modal-features {
    margin-top: 18px;
    padding: 13px;
    border-radius: 14px;
  }

  .modal-features h4 {
    margin-bottom: 10px;
    font-size: 17px;
  }

  .modal-feature-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-feature-list span {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 12px;
  }

  .modal-link,
  .modal-github {
    flex: 1 1 130px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 13px;
    font-size: 13px;
  }

  .modal-subtitle {
    margin-top: 24px;
    font-size: 18px;
  }

  .modal-stack {
    gap: 8px;
    margin-top: 14px;
  }

  .modal-stack span {
    padding: 8px 10px;
    font-size: 11.5px;
  }

  .contact-panel {
    gap: 16px;
  }

  .contact-copy h3 {
    font-size: 20px;
  }

  .contact-copy p {
    font-size: 13px;
  }

  .social-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .social-card {
    min-height: 66px;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 13px;
    font-size: 12px;
  }

  .social-card i {
    font-size: 18px;
  }

  footer {
    padding: 28px 4%;
  }

  footer h3 {
    font-size: 17px;
  }

  footer p,
  .footer-year {
    font-size: 11.5px;
  }

  #toast {
    bottom: 18px;
    min-width: 0;
    padding: 11px 13px;
    font-size: 12px;
  }

  .floating-wa {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 22px;
  }

  #scrollTopBtn {
    right: 16px;
    bottom: 72px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero h2 {
    font-size: 14.5px;
  }

  .hero p,
  .section-heading p,
  .contact-copy p {
    font-size: 11.5px;
  }

  .id-card {
    width: 76px;
  }

  .profile-photo {
    width: 100%;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .social-card {
    min-height: 58px;
    font-size: 11px;
  }

  .social-card i {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow,
  .scroll-dock {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
