/* ═══════════════════════════════════════════════
   DESIGN TOKENS — LIGHT & DARK MODE
   ═══════════════════════════════════════════════ */

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --grid-color: rgba(0, 0, 0, 0.06);
  --grid-color-strong: rgba(0, 0, 0, 0.10);
  --bg-tertiary: #efefef;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-header: rgba(255, 255, 255, 0.72);
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-tertiary: #888888;
  --text-inverse: #ffffff;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --accent: #111111;
  --accent-hover: #333333;
  --accent-subtle: rgba(17, 17, 17, 0.06);
  --gradient-start: #111111;
  --gradient-end: #555555;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-header: 0 4px 30px rgba(0, 0, 0, 0.08);
  --overlay: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --grid-color: rgba(255, 255, 255, 0.04);
  --grid-color-strong: rgba(255, 255, 255, 0.07);
  --bg-tertiary: #1a1a1a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --bg-header: rgba(10, 10, 10, 0.72);
  --text-primary: #f1f1f1;
  --text-secondary: #a0a0a0;
  --text-tertiary: #666666;
  --text-inverse: #0a0a0a;
  --border: #222222;
  --border-light: #1c1c1c;
  --accent: #f1f1f1;
  --accent-hover: #cccccc;
  --accent-subtle: rgba(241, 241, 241, 0.06);
  --gradient-start: #f1f1f1;
  --gradient-end: #888888;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-header: 0 4px 30px rgba(0, 0, 0, 0.3);
  --overlay: rgba(0, 0, 0, 0.8);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dot {
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced Reveal for Cards */
.project-card.reveal,
.skill-card.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.reveal.revealed,
.skill-card.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s ease;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-inverse);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  border: 1.5px solid var(--border);
  color: var(--text-primary);
}

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

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

/* ═══════════════════════════════════════════════
   SECTION LAYOUT
   ═══════════════════════════════════════════════ */

.section {
  margin: 80px 15px;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  padding: 0;
  background: none;
  border-radius: 0;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

.section__title--hero {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1.0;
  margin-bottom: 0;
  color: var(--text-primary);
}

.section__title--muted {
  display: block;
  color: #b0b0b0;
  font-weight: 900;
}

[data-theme="dark"] .section__title--muted {
  color: #4d4d4d;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 20px auto 0;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   GRID BACKGROUND
   ═══════════════════════════════════════════════ */

.grid-bg {
  position: relative;
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.grid-bg>* {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 800px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-header);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.nav__logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav__menu {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
  list-style: none;
  margin: 0;
  padding: 14px 0;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.nav__menu::before {
  display: none;
}

.nav__menu li {
  pointer-events: auto;
}

.nav__link {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0px 5px;
  border-radius: 25px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  position: relative;
  width: 72px;
  height: 34px;
  border-radius: 34px;
  background: #e0e0e0;
  border: 1.5px solid #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease;
  flex-shrink: 0;
  overflow: hidden;
}

[data-theme="dark"] .theme-toggle {
  background: #1e1e1e;
  border-color: #333;
}

.theme-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #111111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s ease;
  z-index: 2;
  pointer-events: none;
}

[data-theme="dark"] .theme-toggle__knob {
  background: #f1f1f1;
  transform: translateX(38px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.theme-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.theme-toggle__icon--sun {
  color: #888;
  opacity: 1;
}

.theme-toggle__icon--moon {
  color: #666;
  opacity: 0.4;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 0.4;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  color: #aaa;
  opacity: 1;
}

[data-theme="light"] .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-subtle);
  transition: all 0.3s ease;
}

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

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__menu-backdrop {
  display: none;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 140px 24px 10px;
  position: relative;
  margin: 0 25px;
}

.hero__container {
  max-width: 1150px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.hero__content {
  padding-left: 0px;
}

.hero__greeting {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.hero__name {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(1.1rem, 2.5vw, 1.58rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ═══════════════════════════════════════════════
   HERO AVATAR
   ═══════════════════════════════════════════════ */

.hero__avatar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero__avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(128, 128, 128, 0.25);
  animation: spin 20s linear infinite;
}

.hero__avatar-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--text-primary);
  border-radius: 50%;
}

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

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

.hero__orbit-outer {
  position: absolute;
  inset: -52px;
  border-radius: 50%;
  border: 1px dashed rgba(128, 128, 128, 0.18);
  pointer-events: none;
}

.hero__orbit-mid {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px dashed rgba(128, 128, 128, 0.12);
  pointer-events: none;
}

.hero__avatar-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

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

.hero__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.hero__tech-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: default;
  z-index: 20;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.hero__tech-icon:hover {
  box-shadow: 0 0 0 3px var(--glow-color, rgba(100, 100, 100, 0.3)), 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 28px var(--glow-color, rgba(100, 100, 100, 0.25));
  border-color: transparent;
  z-index: 30 !important;
}

.hero__tech-icon:hover .hero__tech-icon-inner {
  transform: scale(1.15);
}

.hero__tech-icon[data-tech="html"] {
  --glow-color: rgba(228, 77, 38, 0.55);
}

.hero__tech-icon[data-tech="css"] {
  --glow-color: rgba(21, 114, 182, 0.55);
}

.hero__tech-icon[data-tech="js"] {
  --glow-color: rgba(240, 219, 79, 0.60);
}

.hero__tech-icon[data-tech="py"] {
  --glow-color: rgba(90, 159, 212, 0.55);
}

.hero__tech-icon-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero__tech-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.hero__tech-icon-label {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: 1;
}

.hero__tech-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--text-primary);
  color: var(--text-inverse);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  z-index: 100;
}

.hero__tech-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero__tech-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--glow-color, rgba(100, 100, 100, 0.4)) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.hero__tech-icon:hover::before {
  opacity: 1;
  animation: spinTrail 0.8s linear infinite;
}

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

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: floatUpDown 2s ease-in-out infinite;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-tertiary);
  border-radius: 12px;
  position: relative;
}

.mouse__wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--text-tertiary);
  border-radius: 3px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

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

@keyframes floatUpDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

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

/* ═══════════════════════════════════════════════
   ABOUT — DESKTOP DEFAULT (> 1024px)
   Grid: text (kiri) | image (kanan, span 2 baris)
         stats (kiri bawah)
   ═══════════════════════════════════════════════ */

.about {
  background: var(--bg-primary);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 0 40px;
  align-items: start;
}

/* Teks: kolom 1, baris 1 */
.about__text {
  grid-column: 1;
  grid-row: 1;
  font-weight: 500;
}

.about__text p {
  font-size: 1.15rem;
  text-align: justify;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.9;
  word-spacing: -2px;
  hyphens: auto;
  -webkit-hyphens: auto;

}

.stat {
  text-align: center;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.stat__plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-tertiary);
}

.stat__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 8px;
  font-weight: 500;
}

.about__image-frame {
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  border: none;
  background: none;
  position: relative;
  width: 400px;
  max-width: 100%;
  margin-left: 20px;
}


/* ═══════════════════════════════════════════════
   ABOUT IMAGE — AUTO FLIP ANIMATION
   ═══════════════════════════════════════════════ */

.about__image-frame {
  perspective: 1200px;
  transform: translateY(-30px);
}

.about__flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: autoFlip 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes autoFlip {
  0% {
    transform: rotateY(0deg);
  }

  5% {
    transform: rotateY(0deg);
  }

  42% {
    transform: rotateY(-180deg);
  }

  55% {
    transform: rotateY(-180deg);
  }

  95% {
    transform: rotateY(-360deg);
  }

  100% {
    transform: rotateY(-360deg);
  }
}

.about__flip-front,
.about__flip-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.about__flip-back {
  transform: rotateY(180deg);
}

.about__flip-front img,
.about__flip-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Shimmer sweep saat flip berlangsung */
.about__flip-front::after,
.about__flip-back::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 35%,
      rgba(255, 255, 255, 0.18) 50%,
      transparent 65%);
  opacity: 0;
  pointer-events: none;
  animation: shimmerFlip 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.about__flip-back::after {
  animation-delay: 3s;
}

@keyframes shimmerFlip {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }

  40% {
    opacity: 1;
    transform: translateX(100%);
  }

  41% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.about__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-weight: 500;
}

.about__img {
  width: 100%;
  height: 125%;
  object-fit: cover;
  object-position: center;
}



/* ═══════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════ */

.projects__filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.8s ease;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--text-tertiary);
}

.project-card__image {
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

.project-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}

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

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.project-card:hover .project-card__link {
  transform: scale(1);
}

.project-card__content {
  padding: 24px;
}

.project-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
}

.project-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 8px 0;
  letter-spacing: -0.3px;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

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

.project-card__tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-subtle);
  color: var(--text-secondary);
}

.project-card.reveal,
.skill-card.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.reveal.revealed,
.skill-card.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ═══════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════ */

.skills {
  background: var(--bg-primary);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.8s ease;
  text-align: center;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--text-tertiary);
}

.skill-card:hover .skill-card__icon {
  background: var(--accent);
  color: var(--text-inverse);
  transform: scale(1.05);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.skill-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.skill-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.skill-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   PROGRAMMING LANGUAGES
   ═══════════════════════════════════════════════ */

.languages {
  background: var(--bg-primary);
}

.orbit-stage {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed var(--border);
  pointer-events: none;
  animation: ringPulse 4s ease-in-out infinite;
}

.orbit-ring:nth-child(1) {
  width: 380px;
  height: 380px;
  opacity: 0.4;
  animation-delay: 0s;
}

.orbit-ring:nth-child(2) {
  width: 290px;
  height: 290px;
  opacity: 0.25;
  animation-delay: 0.8s;
}

@keyframes ringPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.02);
  }
}

.orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  animation: nucleusPulse 3s ease-in-out infinite;
  pointer-events: none;
}

.orbit-center::before {
  content: '</>';
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-tertiary);
  letter-spacing: -1px;
  font-family: monospace;
}

@keyframes nucleusPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-subtle);
  }

  50% {
    box-shadow: 0 0 0 14px transparent;
  }
}

.lang-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: 0;
  padding: 0;
  min-width: unset;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  z-index: 10;
  will-change: transform;
}

.lang-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.lang-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
  box-shadow: 0 0 0 4px var(--accent-subtle), 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 24px var(--glow-color, rgba(100, 100, 100, 0.3));
  z-index: 20;
}

.lang-card[data-lang="html"] {
  --glow-color: rgba(228, 77, 38, 0.4);
}

.lang-card[data-lang="css"] {
  --glow-color: rgba(21, 114, 182, 0.4);
}

.lang-card[data-lang="js"] {
  --glow-color: rgba(240, 219, 79, 0.4);
}

.lang-card[data-lang="py"] {
  --glow-color: rgba(90, 159, 212, 0.4);
}

.lang-card__icon {
  width: 38px;
  height: 38px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  margin: 0;
}

.lang-card:hover .lang-card__icon {
  transform: scale(1.15);
}

.lang-card__name {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.lang-card::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--text-primary);
  color: var(--text-inverse);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}

.lang-card:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════
   ROADMAP
   ═══════════════════════════════════════════════ */

.roadmap {
  background: var(--bg-primary);
}

.roadmap__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.roadmap__left {
  position: sticky;
  top: 140px;
}

.roadmap__heading {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 16px 0 24px;
}

.roadmap__heading--muted {
  color: var(--text-tertiary);
  display: block;
}

.roadmap__intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 320px;
}

.roadmap__right {
  position: relative;
  padding-top: 8px;
}

.roadmap__track {
  position: absolute;
  left: 34px;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: #d8d8d8;
  z-index: 0;
}

[data-theme="dark"] .roadmap__track {
  background: #2a2a2a;
}

.roadmap__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  margin-left: -0.5px;
  height: 0%;
  background: var(--text-primary);
  transition: height 0.04s linear;
}

.roadmap__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 64px;
  z-index: 1;
  opacity: 0;
  transform: translateX(48px);
  overflow: hidden;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.roadmap__item.revealed {
  opacity: 1;
  transform: translateX(0);
}

.roadmap__item[data-rm-index="0"] {
  transition-delay: 0.05s;
}

.roadmap__item[data-rm-index="1"] {
  transition-delay: 0.18s;
}

.roadmap__item[data-rm-index="2"] {
  transition-delay: 0.31s;
}

.roadmap__item[data-rm-index="3"] {
  transition-delay: 0.44s;
}

.roadmap__item:last-child {
  padding-bottom: 0;
}

.roadmap__num-wrap {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.roadmap__num {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid #d0d0d0;
  background: var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07), 0 6px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #000000;
  cursor: default;
  position: relative;
  z-index: 2;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .roadmap__num {
  border-color: #333333;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.2);
}

.roadmap__num:hover {
  border-color: var(--text-primary);
  color: var(--bg-primary);
  background: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 8px 32px rgba(0, 0, 0, 0.10);
}

.roadmap__body {
  flex: 1;
  padding-top: 16px;
  position: relative;
  overflow: hidden;
}

.roadmap__body::before {
  content: attr(data-watermark);
  position: absolute;
  padding-right: 10px;
  right: -4px;
  top: -12px;
  font-size: 8.5rem;
  font-weight: 900;
  letter-spacing: -6px;
  color: var(--text-primary);
  opacity: 0.032;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}

[data-theme="dark"] .roadmap__body::before {
  opacity: 0.048;
}

.roadmap__item:hover .roadmap__body::before {
  opacity: 0.07;
}

[data-theme="dark"] .roadmap__item:hover .roadmap__body::before {
  opacity: 0.10;
}

.roadmap__meta-row,
.roadmap__title,
.roadmap__org,
.roadmap__desc,
.roadmap__divider {
  position: relative;
  z-index: 1;
}

.roadmap__meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.roadmap__year-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.roadmap__badge--active {
  font-size: 0.62rem;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.5px;
  animation: activeDot 1.6s ease-in-out infinite;
}

@keyframes activeDot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.roadmap__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0px;
  position: relative;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.roadmap__title::after {
  content: '→';
  font-size: 0.65em;
  font-weight: 400;
  color: var(--text-tertiary);
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  margin-left: 10px;
  line-height: 1;
}

.roadmap__body:hover .roadmap__title {
  transform: translateX(8px);
}

.roadmap__body:hover .roadmap__title::after {
  opacity: 1;
  transform: translateX(0);
}

.roadmap__org {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
  display: block;
}

.roadmap__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 22px;
}

.roadmap__desc strong {
  color: var(--text-primary);
  font-weight: 700;
}

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

.roadmap__divider {
  width: 32px;
  height: 1.5px;
  background: #cccccc;
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s, background 0.4s ease;
}

[data-theme="dark"] .roadmap__divider {
  background: #333333;
}

.roadmap__item.revealed .roadmap__divider {
  width: 52px;
  background: #999999;
}

[data-theme="dark"] .roadmap__item.revealed .roadmap__divider {
  background: #555555;
}

/* ═══════════════════════════════════════════════
   CERTIFICATES V2 — TEXT-ONLY GLASSMORPHISM CARDS
   ═══════════════════════════════════════════════ */

.certificates__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cert-card-v2 {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  background: var(--bg-card);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.6s ease;
}

[data-theme="dark"] .cert-card-v2 {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cert-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .cert-card-v2:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Animated gradient border */
.cert-card-v2__border {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--border), var(--border));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.6s ease;
  z-index: 1;
}

.cert-card-v2:hover .cert-card-v2__border {
  background: linear-gradient(135deg, #1A3D64, #456882, #1A3D64, #456882);
  background-size: 300% 300%;
  animation: certBorderShift 3s ease infinite;
}

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

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

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

/* Glow effect on hover */
.cert-card-v2__glow {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  opacity: 0;
  background: linear-gradient(135deg, rgba(26, 61, 100, 0.2), rgba(69, 104, 130, 0.2));
  filter: blur(20px);
  transition: opacity 0.6s ease;
  z-index: 0;
}

.cert-card-v2:hover .cert-card-v2__glow {
  opacity: 1;
}

/* Inner content */
.cert-card-v2__inner {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 36px 28px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}

.cert-card-v2__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-primary);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.cert-card-v2__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1A3D64, #456882);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 16px;
}

.cert-card-v2:hover .cert-card-v2__icon {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(26, 61, 100, 0.3);
  color: #ffffff;
}

.cert-card-v2__icon svg {
  position: relative;
  z-index: 1;
}

.cert-card-v2:hover .cert-card-v2__icon::after {
  opacity: 1;
}

.cert-card-v2__issuer {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.cert-card-v2__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.cert-card-v2__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.cert-card-v2__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.cert-card-v2__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.cert-card-v2__credential {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-subtle);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.cert-card-v2:hover .cert-card-v2__credential {
  background: linear-gradient(135deg, rgba(26, 61, 100, 0.15), rgba(69, 104, 130, 0.15));
  color: var(--text-primary);
}

/* Enhanced Reveal for Cert Cards V2 */
.cert-card-v2.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-card-v2.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Certificate Grid — Responsive */
@media (max-width: 768px) {
  .certificates__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .certificates__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cert-card-v2__inner {
    padding: 20px 18px 18px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
  }

  .cert-card-v2__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 0;
    margin-right: 14px;
    flex-shrink: 0;
  }

  .cert-card-v2__icon svg {
    width: 22px;
    height: 22px;
  }

  .cert-card-v2__issuer {
    font-size: 0.6rem;
    letter-spacing: 2px;
    margin-bottom: 2px;
    width: calc(100% - 58px);
    padding-top: 10px;
  }

  .cert-card-v2__title {
    font-size: 0.95rem;
    padding-top: 12px;
    margin-bottom: 8px;
    width: calc(100% - 58px);
  }

  .cert-card-v2__desc {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 14px;
    width: 100%;
    margin-top: 10px;
  }

  .cert-card-v2__meta {
    width: 100%;
    padding-top: 12px;
  }

  .cert-card-v2__date {
    font-size: 0.72rem;
  }

  .cert-card-v2__credential {
    font-size: 0.58rem;
    padding: 3px 10px;
  }
}

/* ═══════════════════════════════════════════════
   TOOLS — INFINITE MARQUEE TICKER
   ═══════════════════════════════════════════════ */

.tools {
  background: var(--bg-primary);
}

.tools-marquee {
  overflow: hidden;
  position: relative;
  padding: 32px 0;
  margin: -32px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.tools-marquee+.tools-marquee {
  margin-top: 16px;
}

.tools-marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.tools-marquee--reverse .tools-marquee__track {
  animation: marqueeScrollReverse 35s linear infinite;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

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

  100% {
    transform: translateX(0);
  }
}

.tools-marquee__set {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 10px;
}

/* Tool chip — pill-shaped card */
.tool-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 60px;
  white-space: nowrap;
  cursor: default;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.tool-chip:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--border-light);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .tool-chip:hover {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Devicon font icon styling */
.tool-chip i {
  font-size: 28px;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* CDN image icon styling (Colab, Apps Script) */
.tool-chip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.tool-chip:hover i,
.tool-chip:hover img {
  transform: scale(1.2) rotate(-5deg);
}

/* GitHub icon dark mode fix */
[data-theme="dark"] .devicon-github-original {
  color: #f1f1f1;
}

.tool-chip span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

/* Tool glow colors */
.tool-chip[data-tool="vscode"] {
  --glow-color: rgba(0, 122, 204, 0.35);
}

.tool-chip[data-tool="bootstrap"] {
  --glow-color: rgba(121, 82, 179, 0.35);
}

.tool-chip[data-tool="colab"] {
  --glow-color: rgba(232, 113, 10, 0.35);
}

.tool-chip[data-tool="appsscript"] {
  --glow-color: rgba(66, 133, 244, 0.35);
}

.tool-chip[data-tool="github"] {
  --glow-color: rgba(140, 140, 140, 0.35);
}

.tool-chip[data-tool="git"] {
  --glow-color: rgba(243, 79, 41, 0.35);
}

.tool-chip[data-tool="wordpress"] {
  --glow-color: rgba(33, 117, 155, 0.35);
}

/* Tools responsive */
@media (max-width: 768px) {
  .tools-marquee__set {
    gap: 14px;
  }

  .tool-chip {
    padding: 10px 20px;
    gap: 10px;
  }

  .tool-chip i {
    font-size: 22px;
  }

  .tool-chip img {
    width: 22px;
    height: 22px;
  }

  .tool-chip span {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .tools-marquee+.tools-marquee {
    margin-top: 10px;
  }

  .tools-marquee__set {
    gap: 10px;
  }

  .tool-chip {
    padding: 8px 16px;
    gap: 8px;
    border-radius: 40px;
  }

  .tool-chip i {
    font-size: 20px;
  }

  .tool-chip img {
    width: 20px;
    height: 20px;
  }

  .tool-chip span {
    font-size: 0.75rem;
  }
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--text-primary);
  background: var(--bg-primary);
}

.form-group label {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 0.95rem;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: all 0.3s ease;
  background: transparent;
  padding: 0 4px;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
  top: -8px;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    background-color 0.4s ease,
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact__info-card:hover {
  border-color: var(--border-light);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .contact__info-card:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.16);
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-primary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.4s ease;
}

.contact__info-card:hover .contact__info-icon {
  transform: scale(1.08);
}

/* Availability card — green accent */
.contact__info-icon--available {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

[data-theme="dark"] .contact__info-icon--available {
  background: rgba(34, 197, 94, 0.12);
}

.contact__info-card--availability:hover {
  border-color: rgba(34, 197, 94, 0.35);
}

.contact__avail-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: contactAvailPulse 2s ease-in-out infinite;
}

@keyframes contactAvailPulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.06);
  }
}

.contact__info-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact__info-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contact__socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 420px;
  pointer-events: none;
}

.toast.toast--visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.toast__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.toast--success .toast__icon {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.toast--error .toast__icon {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

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

.toast__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast__message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.toast__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.toast__close:hover {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════
   CONTACT FORM SUBMIT BUTTON STATES
   ═══════════════════════════════════════════════ */

.btn__loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  animation: spinLoader 0.8s linear infinite;
}

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

/* When submitting: hide text + icon, show loader */
.btn--loading .btn__text,
.btn--loading .btn__icon {
  display: none;
}

.btn--loading .btn__loader {
  display: inline-flex !important;
}

.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Form success state */
.contact__form.form--sent .form-group input,
.contact__form.form--sent .form-group textarea {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.04);
}

/* ═══════════════════════════════════════════════
   FOOTER — DARK ROUNDED (ganti semua blok footer lama)
   ═══════════════════════════════════════════════ */

.footer {
  background: transparent;
  border: none;
  padding: 0 24px 24px;
}

/* Wrapper hitam dengan border melengkung */
.footer__inner-wrap {
  background: #0d0d0d;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .footer__inner-wrap {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Top section: 3-column grid ── */
.footer__top {
  padding: 56px 48px 44px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

/* ── Brand col ── */
.footer__logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
  max-width: 300px;
  margin-bottom: 24px;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* ── Sitemap col ── */
.footer__nav-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 0;
  display: inline-block;
  transition: all 0.25s ease;
  position: relative;
}

.footer__nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 1.5px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.footer__nav-link:hover {
  color: #ffffff;
}

.footer__nav-link:hover::after {
  width: 100%;
}

/* ── Availability col ── */
.footer__avail-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: border-color 0.3s ease;
}

.footer__avail-card:hover {
  border-color: rgba(34, 197, 94, 0.5);
}

.footer__avail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: availPulse 2s ease-in-out infinite;
}

@keyframes availPulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.06);
  }
}

.footer__avail-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer__avail-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

/* ── Bottom bar ── */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 48px;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__bottom-left {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer__bottom-left strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.footer__bottom-right {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   SCROLL TO TOP — FIXED
   ═══════════════════════════════════════════════ */

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

[data-theme="light"] .scroll-top {
  background: #111111;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: #222222;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════
   FOOTER RESPONSIVE
   ═══════════════════════════════════════════════ */

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

  .footer__top {
    padding: 48px 32px 36px;
  }

  .footer__bottom {
    padding: 18px 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__tagline {
    max-width: 100%;
  }
}

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

  .footer__inner-wrap {
    border-radius: 18px;
  }

  .footer__top {
    padding: 40px 24px 32px;
  }

  .footer__bottom {
    padding: 16px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .scroll-top {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .about__image-frame {
    transform: translateY(-15px);
    width: 285px;
  }
}

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

  .footer__inner-wrap {
    border-radius: 14px;
  }

  .footer__top {
    padding: 32px 20px 28px;
  }

  .footer__bottom {
    padding: 14px 20px;
  }

  .footer__nav-link {
    font-size: 0.95rem;
  }
}

/* ═══════════════════════════════════════════════
   SCROLL TO TOP — FIXED BUTTON
   ═══════════════════════════════════════════════ */

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-inverse);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ── Responsive Footer ── */

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__tagline {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .footer__top {
    padding: 48px 0 36px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .scroll-top {
    bottom: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .footer__nav-link {
    font-size: 0.95rem;
  }

  .scroll-top {
    bottom: 20px;
    right: 16px;
  }
}

/* ═══════════════════════════════════════════════
   LARGE DESKTOP (≥ 1400px)
   ═══════════════════════════════════════════════ */

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero__container {
    padding-left: 35px;
    max-width: 1320px;
  }

  .hero__title {
    font-size: clamp(1.1rem, 2.5vw, 1.58rem);
  }

  .hero__name {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: -1.3px;
  }

  .hero {
    padding: 160px 40px 80px;
  }

  .about__grid {
    gap: 0 70px;
  }

  .hero__avatar-wrapper {
    width: 360px;
    height: 360px;
  }

  .about__text {
    margin-left: 15px;
  }

  .section {
    margin: 100px 0;
  }

  .section__header {
    margin-bottom: 72px;
  }

  .projects__grid {
    gap: 32px;
  }

  .skills__grid {
    gap: 32px;
  }

  .orbit-stage {
    height: 360px;
  }

  .orbit-ring:nth-child(1) {
    width: 420px;
    height: 420px;
  }

  .orbit-ring:nth-child(2) {
    width: 320px;
    height: 320px;
  }

  .roadmap__layout {
    gap: 100px;
  }

  .roadmap__heading {
    font-size: 4.5rem;
  }

  .about__image-frame {
    transform: translateY(-50px);
  }

}

/* ═══════════════════════════════════════════════
   TABLET (769px – 1024px)
   About: flex column — Foto (1) → Stats (2) → Text (3)
   ═══════════════════════════════════════════════ */

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .about__text p {
    word-spacing: -1px;
  }

  .header {
    width: calc(100% - 40px);
    top: 16px;
  }

  .hero__scroll-indicator {
    bottom: 20px;
  }

  .hero {
    padding: 150px 24px;
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 70px;
    padding: 0;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 2;
  }

  .hero__desc {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: 1;
    justify-content: center;
  }

  .hero__avatar-wrapper {
    width: 260px;
    height: 260px;
  }

  .hero__tech-icon {
    width: 44px;
    height: 44px;
  }

  .hero__tech-icon svg {
    width: 22px;
    height: 22px;
  }

  /* ── ABOUT: flex column, urutan Foto → Stats → Text ── */
  .about__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .about__text {
    order: 3;
    width: 100%;
    padding: 0 30px;
  }

  .about__image-frame {
    max-width: 420px;
    margin: 0 auto;
    transform: translateY(-25px);
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .orbit-stage {
    height: 260px;
  }

  .orbit-ring:nth-child(1) {
    width: 310px;
    height: 310px;
  }

  .orbit-ring:nth-child(2) {
    width: 240px;
    height: 240px;
  }

  .lang-card {
    width: 72px;
    height: 72px;
  }

  .roadmap__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .roadmap__left {
    position: static;
  }

  .roadmap__intro {
    max-width: 100%;
  }

  .roadmap__track {
    left: 34px;
  }

  .roadmap__num {
    width: 68px;
    height: 68px;
  }

  .roadmap__num-wrap {
    width: 68px;
    height: 68px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section {
    margin: 100px 0;
  }

  .section__header {
    margin-bottom: 48px;
  }

}

/* ═══════════════════════════════════════════════
   MOBILE (≤ 768px)
   About: flex column — Foto (1) → Stats (2) → Text (3)
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
  .header {
    width: calc(100% - 32px);
    top: 12px;
  }

  .nav {
    padding: 9px 20px;
    border-radius: 40px;
  }

  .nav__logo {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
    width: 35px;
    height: 35px;
  }

  .theme-toggle {
    z-index: 1001;
  }

  .nav__menu {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 16px 20px 40px;
    opacity: 1;
    visibility: hidden;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
    z-index: 999;
    max-height: 85vh;
    overflow-y: auto;
  }

  .nav__menu.active {
    transform: translateY(0);
    visibility: visible;
  }

  .nav__menu::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--text-tertiary);
    border-radius: 4px;
    margin: 4px auto 16px;
    opacity: 0.5;
  }

  .nav__menu li {
    width: 100%;
    pointer-events: auto;
  }

  .nav__menu .nav__link {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 18px 24px;
    min-height: 56px;
    border-radius: 14px;
    color: var(--text-primary);
    transition: all 0.25s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: translateY(16px);
  }

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

  .nav__menu li:nth-child(1) .nav__link {
    transition-delay: 0.05s;
  }

  .nav__menu li:nth-child(2) .nav__link {
    transition-delay: 0.10s;
  }

  .nav__menu li:nth-child(3) .nav__link {
    transition-delay: 0.15s;
  }

  .nav__menu li:nth-child(4) .nav__link {
    transition-delay: 0.20s;
  }

  .nav__menu li:nth-child(5) .nav__link {
    transition-delay: 0.25s;
  }

  .nav__menu .nav__link:hover,
  .nav__menu .nav__link.active {
    background: var(--accent-subtle);
    color: var(--text-primary);
  }

  .nav__menu .nav__link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
  }

  .nav__menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav__menu-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .hero {
    padding: 135px 20px;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 70px;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 2;
  }

  .hero__visual {
    order: 1;
    justify-content: center;
  }

  .hero__avatar-wrapper {
    width: 240px;
    height: 240px;
  }

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

  .hero__tech-icon svg {
    width: 18px;
    height: 18px;
  }

  .hero__tech-icon-label {
    font-size: 0.42rem;
  }

  .hero__greeting {
    font-size: 0.85rem;
    letter-spacing: 2px;
  }

  .hero__name {
    letter-spacing: -1px;
  }

  .hero__title {
    margin-bottom: 16px;
  }

  .hero__desc {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .hero__actions {
    justify-content: center;
    gap: 12px;
  }

  .hero__scroll-indicator {
    bottom: 25px;
  }

  .hero__scroll-indicator .mouse {
    width: 20px;
    height: 32px;
  }

  .hero__scroll-indicator .mouse__wheel {
    width: 2px;
    height: 6px;
  }

  .section {
    margin: 100px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .section__tag {
    font-size: 0.65rem;
    letter-spacing: 2.5px;
  }

  .section__title--hero {
    font-size: clamp(2rem, 7vw, 2.8rem);
    letter-spacing: -1.5px;
  }

  .section__subtitle {
    font-size: 0.95rem;
  }

  /* ── ABOUT: flex column, urutan Foto → Stats → Text ── */
  .about__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .about__text {
    order: 2;
    width: 100%;
  }

  .about__text p {
    word-spacing: -1px;
    font-size: 0.95rem;
    padding: 0 4px;
  }

  .stat__number {
    font-size: 2rem;
  }

  .stat__label {
    font-size: 0.75rem;
  }

  .about__image-frame {
    max-width: 320px;
    margin: 0 auto;
  }

  .projects__filters {
    gap: 6px;
    margin-bottom: 32px;
  }

  .filter-btn {
    padding: 7px 18px;
    font-size: 0.8rem;
  }

  .projects__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card__content {
    padding: 20px;
  }

  .project-card__title {
    font-size: 1.05rem;
  }

  .project-card__desc {
    font-size: 0.85rem;
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .skill-card {
    padding: 28px 20px;
  }

  .skill-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .skill-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .skill-card__title {
    font-size: 1rem;
  }

  .skill-card__desc {
    font-size: 0.85rem;
  }

  .orbit-stage {
    height: 220px;
  }

  .orbit-ring:nth-child(1) {
    width: 270px;
    height: 270px;
  }

  .orbit-ring:nth-child(2) {
    width: 205px;
    height: 205px;
  }

  .lang-card {
    width: 64px;
    height: 64px;
  }

  .lang-card__icon svg {
    width: 28px;
    height: 28px;
  }

  .lang-card__name {
    font-size: 0.58rem;
  }

  .roadmap__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .roadmap__left {
    position: static;
  }

  .roadmap__heading {
    font-size: 2.4rem;
    letter-spacing: -1.5px;
  }

  .roadmap__intro {
    max-width: 100%;
    font-size: 0.9rem;
  }

  .roadmap__track {
    left: 28px;
  }

  .roadmap__item {
    gap: 18px;
    padding-bottom: 44px;
  }

  .roadmap__num {
    width: 56px;
    height: 56px;
    font-size: 0.78rem;
  }

  .roadmap__num-wrap {
    width: 56px;
    height: 56px;
  }

  .roadmap__title {
    font-size: 1.3rem;
  }

  .roadmap__desc {
    font-size: 0.85rem;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .form-group label {
    left: 16px;
    font-size: 0.9rem;
  }

  .form-group input:focus~label,
  .form-group input:not(:placeholder-shown)~label,
  .form-group textarea:focus~label,
  .form-group textarea:not(:placeholder-shown)~label {
    left: 12px;
  }

  .contact__info-card {
    padding: 16px 20px;
  }

  .contact__info-icon {
    width: 44px;
    height: 44px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.85rem;
  }

  .footer {
    padding: 32px 0;
  }

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

  .footer__logo {
    font-size: 1.1rem;
  }

  .footer__text {
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════
   DESKTOP NAVIGATION ENHANCEMENT (≥ 769px)
   ═══════════════════════════════════════════════ */
@media screen and (min-width: 769px) {
  .nav {
    padding: 12px 28px;
  }


}

/* ═══════════════════════════════════════════════
   SMALL MOBILE (≤ 480px)
   ═══════════════════════════════════════════════ */

@media (max-width: 480px) {
  .header {
    width: calc(100% - 24px);
  }

  .nav {
    padding: 7px 16px;
  }

  .hero {
    padding: 130px 16px;
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 70px;
  }

  .hero__avatar-wrapper {
    width: 200px;
    height: 200px;
  }

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

  .hero__tech-icon svg {
    width: 16px;
    height: 16px;
  }

  .hero__tech-icon-label {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

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

  .container {
    padding: 0 24px;
  }

  .section {
    margin: 75px 0;
  }

  /* ── ABOUT ≤480px: tetap Foto → Stats → Text ── */
  .about__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .about__text {
    order: 2;
    width: 100%;
  }

  .stat__number {
    font-size: 1.6rem;
  }

  .about__image-frame {
    max-width: 260px;
  }

  .skills__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .skill-card {
    padding: 20px 25px;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 0 16px;
    align-items: start;
  }

  .skill-card__icon {
    grid-column: 1;
    grid-row: 1/3;
    align-self: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .skill-card__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.875rem;
    margin-bottom: 4px;
    align-self: end;
  }

  .skill-card__desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.775rem;
    line-height: 1.5;
    align-self: start;
  }

  .orbit-stage {
    height: 190px;
  }

  .orbit-ring:nth-child(1) {
    width: 235px;
    height: 235px;
  }

  .orbit-ring:nth-child(2) {
    width: 178px;
    height: 178px;
  }

  .lang-card {
    width: 58px;
    height: 58px;
  }

  .lang-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .roadmap__track {
    left: 23px;
  }

  .roadmap__num {
    width: 46px;
    height: 46px;
    font-size: 0.72rem;
  }

  .roadmap__num-wrap {
    width: 46px;
    height: 46px;
  }

  .roadmap__item {
    gap: 14px;
  }

  .roadmap__title {
    font-size: 1.15rem;
  }

  .roadmap__desc {
    font-size: 0.82rem;
  }

  .nav__menu .nav__link {
    font-size: 1rem;
    padding: 14px 18px;
  }

  .nav__menu {
    padding: 12px 20px 32px;
  }

  .project-card__tags span {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .contact__socials {
    justify-content: center;
  }

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

/* ═══════════════════════════════════════════════
   THEME TRANSITION — SERENTAK
   ═══════════════════════════════════════════════ */

html,
body,
.nav,
.header,
.hero,
.section,
.about,
.projects,
.skills,
.languages,
.roadmap,
.contact,
.tools,
.cert-card-v2__inner,
.tool-chip,
.project-card__tags span,
.contact__info-card,
.contact__info-icon,
.form-group input,
.form-group textarea,
.about__image-frame,
.lang-card,
.orbit-center,
.roadmap__num,
.roadmap__body::before,
.hero__tech-icon,
.hero__avatar,
.filter-btn,
.social-link,
.nav__menu,
.section__title--muted,
.roadmap__track,
.roadmap__divider,
.btn--outline {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease !important;
}

/* ═══════════════════════════════════════════════
   SMOOTH HOVER — GPU ACCELERATION
   ═══════════════════════════════════════════════ */

.skill-card,
.contact__info-card,
.btn,
.filter-btn,
.social-link,
.footer__social-link,
.footer__nav-link,
.lang-card,
.hero__tech-icon,
.tool-chip,
.cert-card-v2 {
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}


/* ═══════════════════════════════════════════════
   SCROLL REVEAL — Motion In Animation
   ═══════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

/* Gallery items: larger offset + scale for dramatic entrance */
.gallery-item.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.94);
  transition:
    opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* ═══════════════════════════════════════════════
   PROJECT DETAIL PAGES
   ═══════════════════════════════════════════════ */

/* ——— Detail Header ——— */

.detail-header .nav {
  max-width: 900px;
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  transition: all 0.3s ease;
  text-decoration: none;
}

.detail-back-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background: var(--accent-subtle);
  transform: translateX(-2px);
}

.detail-back-btn svg {
  transition: transform 0.3s ease;
}

.detail-back-btn:hover svg {
  transform: translateX(-3px);
}

/* ——— Detail Hero ——— */

.detail-hero {
  padding: 140px 24px 40px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.detail-hero__container {
  max-width: 760px;
  margin: 0 auto;
}

.detail-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.detail-hero__breadcrumb a {
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}

.detail-hero__breadcrumb a:hover {
  color: var(--text-primary);
}

.detail-hero__breadcrumb-sep {
  display: flex;
  align-items: center;
  color: var(--text-tertiary);
  opacity: 0.5;
}

.detail-hero__breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

.detail-hero__tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.detail-hero__tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 30px;
  background: var(--accent-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.detail-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.detail-hero__title--muted {
  display: block;
  color: #b0b0b0;
  font-weight: 900;
}

[data-theme="dark"] .detail-hero__title--muted {
  color: #4d4d4d;
}

.detail-hero__desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ——— Detail Gallery ——— */

.detail-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 50px;
}

.detail-gallery__container {
  max-width: 1100px;
  margin: 0 auto;
}

.detail-gallery__header {
  text-align: center;
  margin-bottom: 48px;
}

.detail-gallery__heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 16px 0 12px;
  color: var(--text-primary);
}

.detail-gallery__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.detail-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.detail-gallery__grid.gallery-portrait {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 750px;
  margin: 0 auto;
}

/* ——— Gallery Item ——— */

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--text-tertiary);
}

.gallery-item__inner {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
}

.gallery-portrait .gallery-item__inner {
  aspect-ratio: 9/16;
}


.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-item__img {
  transform: scale(1.06);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  color: #ffffff;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__overlay svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transform: scale(0.8);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover .gallery-item__overlay svg {
  transform: scale(1);
}

.gallery-item__caption {
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
}

/* ——— Lightbox ——— */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox__img {
  transform: scale(1);
}

.lightbox__caption {
  margin-top: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* ——— Detail Footer CTA ——— */

.detail-footer-cta {
  padding: 20px 24px 60px;
}

.detail-footer-cta__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.detail-footer-cta__text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ——— Detail Footer ——— */

.detail-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.detail-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}


/* ═══════════════════════════════════════════════
   DETAIL PAGES — RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .detail-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .detail-hero {
    padding: 120px 20px 32px;
  }

  .detail-hero__title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    letter-spacing: -1.5px;
  }

  .detail-hero__desc {
    font-size: 0.98rem;
  }

  .detail-gallery {
    padding: 40px 16px 60px;
  }

  .detail-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-item__caption {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .detail-back-btn span {
    display: none;
  }

  .detail-back-btn {
    padding: 8px 10px;
    border-radius: 50%;
  }

  .detail-footer-cta__inner {
    padding: 36px 24px;
  }

  .detail-footer__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .detail-gallery__grid.gallery-portrait {
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .detail-gallery__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-gallery__grid.gallery-portrait {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .detail-hero {
    padding: 110px 16px 24px;
  }

  .detail-hero__breadcrumb {
    font-size: 0.75rem;
    gap: 5px;
  }

  .detail-hero__tags {
    gap: 6px;
  }

  .detail-hero__tag {
    font-size: 0.65rem;
    padding: 4px 12px;
  }

  .lightbox__img {
    max-width: 95vw;
    max-height: 75vh;
    border-radius: 8px;
  }

  .lightbox__close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}