/* ==========================================================================
   PORTFOLIO MODERN - MINIMALIST CLEAN WHITE
   Professional, editorial-grade light theme with crisp typography,
   subtle borders, refined floating navbar, and modern layout.
   Zero AI slop. Clean, authentic, and production-ready.
   ========================================================================== */

:root {
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --primary: #0f172a;        /* Deep slate for headings & primary buttons */
  --primary-hover: #1e293b;
  --accent: #2563eb;         /* Crisp royal blue accent */
  --accent-light: #eff6ff;   /* Soft blue tint */
  --accent-border: #bfdbfe;
  --accent-hover: #1d4ed8;
  --emerald-active: #10b981;

  --text-main: #0f172a;
  --text-dim: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #3b82f6;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.03);
  --shadow-nav: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-pill: 9999px;
  --radius-card: 16px;
  --radius-sm: 8px;

  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #bfdbfe;
  color: #1e3a8a;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Subtle background accent dot grid (ultra-clean, modern tech look) */
.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(#e2e8f0 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  opacity: 0.55;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.3) 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.3) 80%);
}

.site-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.text-accent {
  color: var(--accent);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.1rem;
}

.section-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald-active);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ==========================================================================
   FLOATING NAVBAR (MELAYANG DI TENGAH ATAS - CLEAN GLASS)
   ========================================================================== */
.floating-nav-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  padding: 0 1rem;
}

.floating-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem 0.45rem 1.3rem;
  box-shadow: var(--shadow-nav);
  transition: var(--transition-smooth);
}

.floating-nav:hover {
  border-color: #cbd5e1;
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.75rem;
}

.brand-name {
  color: var(--primary);
}

.brand-highlight {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary);
  background: var(--bg-subtle);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-cta-btn {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.35rem;
}

.mobile-menu-drawer {
  position: fixed;
  top: 4.8rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
  transform: translateY(-15px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.mobile-menu-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-greeting {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 1.1rem;
  letter-spacing: -0.035em;
}

.hero-typewriter-wrapper {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 1.3rem;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-typewriter-wrapper .prefix {
  color: var(--text-muted);
}

.typewriter-text {
  color: var(--accent);
  font-weight: 700;
}

.typewriter-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  animation: cursorBlink 0.9s infinite;
}

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

.hero-bio {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 530px;
  margin-bottom: 2.2rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background: var(--bg-main);
  color: var(--primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-socials-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-icon-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-smooth);
}

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

/* Hero Portrait Frame (Clean Minimalist Frame) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-portrait-card {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 28px;
  padding: 7px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.hero-portrait-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.floating-tech-badge {
  position: absolute;
  bottom: -12px;
  right: -10px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

/* ==========================================================================
   SECTION ABOUT ME
   ========================================================================== */
.about-section {
  padding: 6rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.about-photo-wrapper {
  display: flex;
  justify-content: center;
}

.about-photo-frame {
  position: relative;
  width: 300px;
  height: 350px;
  border-radius: 24px;
  background: #ffffff;
  padding: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.about-photo-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px -8px rgba(0, 0, 0, 0.12);
}

.about-photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.status-badge-floating {
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-active);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.about-details {
  display: flex;
  flex-direction: column;
}

.about-headline {
  font-size: clamp(1.75rem, 2.8vw, 2.2rem);
  margin-bottom: 1.1rem;
  line-height: 1.25;
  color: var(--primary);
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.about-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.3rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --- RIWAYAT PENDIDIKAN (CLEAN TIMELINE) --- */
.education-wrapper {
  margin-top: 4.5rem;
  margin-bottom: 4.5rem;
}

.sub-section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.sub-section-title i {
  color: var(--accent);
}

.cosmic-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 0;
}

.cosmic-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 2.2rem 2.2rem 2.2rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 2.8rem;
  padding-left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 2.8rem;
  padding-right: 0;
}

.timeline-node {
  position: absolute;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent);
  z-index: 2;
  box-shadow: 0 0 0 4px #eff6ff;
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-node {
  right: -7px;
}

.timeline-item:nth-child(even) .timeline-node {
  left: -7px;
}

.timeline-item:hover .timeline-node {
  transform: scale(1.3);
  background: var(--accent);
}

.timeline-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-period {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.65rem;
  margin-bottom: 0.5rem;
}

.timeline-degree {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.timeline-school {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-item:nth-child(odd) .timeline-school {
  justify-content: flex-end;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- STATISTIK INTERAKTIF (3 CARDS CLEAN) --- */
.stats-section-wrapper {
  margin-top: 4.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.stat-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
  display: inline-block;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.stat-sublabel {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION SKILLS
   ========================================================================== */
.skills-section {
  padding: 6.5rem 0;
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.skill-category-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
}

.category-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.05rem;
}

.category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.skill-item-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.skill-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-dim);
}

.skill-name i {
  color: var(--accent);
}

.skill-percentage {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.skill-progress-bar {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

/* ==========================================================================
   SECTION PROJECTS
   ========================================================================== */
.projects-section {
  padding: 6.5rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.projects-empty-state {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem auto;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.empty-state-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION CONTACT
   ========================================================================== */
.contact-section {
  padding: 6.5rem 0 8rem 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.2rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.15rem 1.35rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-smooth);
}

.contact-info-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-card-content {
  display: flex;
  flex-direction: column;
}

.contact-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-card-value {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--primary);
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.form-input, .form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

.form-feedback {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* ==========================================================================
   FOOTER & BACK TO TOP
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2.2rem 0;
  background: #ffffff;
  position: relative;
  z-index: 10;
}

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

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

.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-greeting, .hero-typewriter-wrapper {
    justify-content: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .about-info-grid {
    text-align: left;
  }

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

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

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

@media (max-width: 768px) {
  .floating-nav {
    padding: 0.4rem 0.85rem;
    gap: 0.8rem;
  }

  .nav-links, .nav-cta-btn {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-section {
    padding: 6.5rem 0 3.5rem 0;
  }

  .hero-portrait-card {
    width: 230px;
    height: 230px;
  }

  .cosmic-timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 45px !important;
    padding-right: 0 !important;
    text-align: left !important;
    left: 0 !important;
  }

  .timeline-node {
    left: 13px !important;
    right: auto !important;
  }

  .timeline-item:nth-child(odd) .timeline-school {
    justify-content: flex-start;
  }

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

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

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

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

/* ==========================================================================
   THEME OVERRIDE — DARK NATURE + BLUE GRADIENT (tema video referensi)
   Catatan: Hanya tema (warna/background/gradien) yang diubah.
   Struktur, konten, teks, foto, dan layout tetap sama persis.
   ========================================================================== */

:root {
  --bg-main: #0a0e14;
  --bg-subtle: #0d1119;
  --bg-card: #121826;
  --bg-card-hover: #161d2e;
  --bg-glass: rgba(10, 14, 20, 0.82);

  --primary: #ffffff;          /* heading putih di section gelap */
  --primary-hover: #e2e8f0;
  --accent: #3b82f6;
  --accent-light: rgba(59, 130, 246, 0.15);
  --accent-border: rgba(59, 130, 246, 0.4);
  --accent-hover: #2563eb;
  --emerald-active: #10b981;

  --text-main: #f1f5f9;
  --text-dim: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-focus: #3b82f6;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.5);
  --shadow-nav: 0 10px 32px rgba(0, 0, 0, 0.5);

  --grad-blue: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  --grad-blue-hover: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
}

/* Selection & scrollbar */
::selection { background: rgba(59, 130, 246, 0.35); color: #ffffff; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #334155; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Background: garis kontur ala video (menggantikan dot-grid) */
.bg-grid-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='500' viewBox='0 0 700 500'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.045' stroke-width='1'%3E%3Cpath d='M-50 80 Q 150 20 350 100 T 750 60'/%3E%3Cpath d='M-50 120 Q 150 60 350 140 T 750 100'/%3E%3Cpath d='M-50 160 Q 150 100 350 180 T 750 140'/%3E%3Cpath d='M-50 210 Q 160 150 360 230 T 750 190'/%3E%3Cpath d='M-50 260 Q 160 200 360 280 T 750 240'/%3E%3Cpath d='M-50 320 Q 170 260 370 340 T 750 300'/%3E%3Cpath d='M-50 380 Q 170 320 370 400 T 750 360'/%3E%3Cpath d='M-50 440 Q 180 380 380 460 T 750 420'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 700px 500px;
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
}

/* Aksen biru gradien pada kata penting */
.text-accent {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- NAV ---------- */
.floating-nav {
  background: var(--bg-glass);
  border-color: rgba(255, 255, 255, 0.12);
}
.floating-nav:hover { border-color: rgba(255, 255, 255, 0.25); }
.nav-link.active {
  background: var(--grad-blue);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}
.nav-cta-btn {
  background: var(--grad-blue);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.nav-cta-btn:hover { background: var(--grad-blue-hover); }
.mobile-menu-drawer {
  background: rgba(10, 14, 20, 0.97);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ---------- BUTTONS ---------- */
.btn-primary { background: var(--grad-blue); color: #ffffff; border-color: transparent; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4); }
.btn-primary:hover { background: var(--grad-blue-hover); }
.btn-secondary { background: rgba(255, 255, 255, 0.04); color: #ffffff; border-color: rgba(255, 255, 255, 0.15); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }

/* ---------- HERO: video background ---------- */
.hero-section {
  background: #05080d;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  min-width: 100%; min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.hero-section > .container {
  position: relative;
  z-index: 2;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(5, 8, 13, 0.15), rgba(5, 8, 13, 0.72) 78%),
    linear-gradient(to bottom, rgba(5, 8, 13, 0.6) 0%, rgba(5, 8, 13, 0.12) 42%, #0a0e14 100%),
    radial-gradient(circle at 5% 50%, rgba(8, 30, 18, 0.3), transparent 35%),
    radial-gradient(circle at 95% 50%, rgba(8, 30, 18, 0.3), transparent 35%);
}
.hero-portrait-card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.14); }
.hero-portrait-card:hover { box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.6); }
.floating-tech-badge { background: rgba(15, 23, 42, 0.92); border-color: rgba(255, 255, 255, 0.14); color: #f1f5f9; }
.social-icon-link { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.14); color: #cbd5e1; }
.social-icon-link:hover { color: #60a5fa; border-color: var(--accent-border); background: var(--accent-light); }

/* ---------- ABOUT (gelap) ---------- */
.about-section {
  background-color: var(--bg-subtle);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='500' viewBox='0 0 700 500'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.045' stroke-width='1'%3E%3Cpath d='M-50 80 Q 150 20 350 100 T 750 60'/%3E%3Cpath d='M-50 120 Q 150 60 350 140 T 750 100'/%3E%3Cpath d='M-50 160 Q 150 100 350 180 T 750 140'/%3E%3Cpath d='M-50 210 Q 160 150 360 230 T 750 190'/%3E%3Cpath d='M-50 260 Q 160 200 360 280 T 750 240'/%3E%3Cpath d='M-50 320 Q 170 260 370 340 T 750 300'/%3E%3Cpath d='M-50 380 Q 170 320 370 400 T 750 360'/%3E%3Cpath d='M-50 440 Q 180 380 380 460 T 750 420'/%3E%3C/g%3E%3C/svg%3E");
  border-color: rgba(255, 255, 255, 0.08);
}
.about-photo-frame,
.status-badge-floating,
.about-info-grid,
.timeline-card,
.timeline-node,
.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.timeline-node { background: var(--bg-subtle); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); }
.timeline-card:hover { border-color: var(--accent-border); }
.cosmic-timeline::before { background: rgba(255, 255, 255, 0.12); }
.timeline-item:hover .timeline-node { background: var(--accent); }

/* ---------- SKILLS (gelap) ---------- */
.skill-category-card { background: var(--bg-card); border-color: rgba(255, 255, 255, 0.1); }
.skill-category-card:hover { border-color: var(--accent-border); }
.category-header { border-bottom-color: rgba(255, 255, 255, 0.1); }
.skill-progress-bar { background: rgba(255, 255, 255, 0.08); }

/* ---------- LIGHT SECTIONS: Projects & Contact + Footer (ala video) ---------- */
#projects, #contact, .site-footer {
  background-color: #f4f5f7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='500' viewBox='0 0 700 500'%3E%3Cg fill='none' stroke='%231d4ed8' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M-50 80 Q 150 20 350 100 T 750 60'/%3E%3Cpath d='M-50 120 Q 150 60 350 140 T 750 100'/%3E%3Cpath d='M-50 160 Q 150 100 350 180 T 750 140'/%3E%3Cpath d='M-50 210 Q 160 150 360 230 T 750 190'/%3E%3Cpath d='M-50 260 Q 160 200 360 280 T 750 240'/%3E%3Cpath d='M-50 320 Q 170 260 370 340 T 750 300'/%3E%3Cpath d='M-50 380 Q 170 320 370 400 T 750 360'/%3E%3Cpath d='M-50 440 Q 180 380 380 460 T 750 420'/%3E%3C/g%3E%3C/svg%3E");
  color: #14161c;
  border-color: #e2e8f0;
}
#projects h1, #projects h2, #projects h3, #projects h4,
#contact h1, #contact h2, #contact h3, #contact h4,
#projects .section-title, #contact .section-title,
#projects .empty-state-title, #contact .contact-card-value,
.site-footer .nav-brand, .site-footer .brand-name {
  color: #14161c;
}
#projects p, #contact p, #projects .section-desc, #contact .section-desc,
#projects .empty-state-desc, .site-footer .footer-text {
  color: #64748b;
}
#projects .section-badge, #contact .section-badge {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}
#projects .projects-empty-state,
#contact .contact-info-card,
#contact .contact-form-card,
#contact .form-input,
#contact .form-textarea {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #14161c;
}
#contact .form-label { color: #475569; }
#contact .form-input::placeholder, #contact .form-textarea::placeholder { color: #94a3b8; }
#contact .form-input:focus, #contact .form-textarea:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
#contact .contact-card-icon, #projects .empty-state-icon { background: var(--accent-light); color: var(--accent); }
.site-footer .social-icon-link { background: #ffffff; border-color: #e2e8f0; color: #334155; }
.site-footer .social-icon-link:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-light); }
.back-to-top-btn { background: #ffffff; border-color: #e2e8f0; color: #14161c; }
.back-to-top-btn:hover { background: var(--grad-blue); color: #ffffff; }

/* Form feedback sukses tetap terang di section terang */
.form-feedback.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }

/* ---------- KARTU PROYEK (tema terang) ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 980px;
  margin: 0 auto;
}
.project-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.project-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 16px 36px rgba(20, 30, 60, 0.12);
  transform: translateY(-6px);
}
.project-thumb {
  position: relative;
  display: block;
  height: 290px;
  overflow: hidden;
  background: #ffffff;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.4s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--grad-blue);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.project-info { padding: 1.5rem; }
.project-title { font-size: 1.15rem; font-weight: 800; color: #14161c; margin-bottom: 0.5rem; }
.project-desc { font-size: 0.88rem; color: #64748b; line-height: 1.65; margin-bottom: 1.1rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.82rem; }

@media (max-width: 768px) {
  .project-thumb { height: 240px; }
}

/* ==========================================================================
   ANIMASI PROFESIONAL - scroll reveal, hero load, stagger kartu, progress
   ========================================================================== */

/* Progress bar scroll di bagian atas layar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.65);
  z-index: 9999;
  transition: width 0.15s linear;
  pointer-events: none;
}

/* --- HERO LOAD ANIMATION --- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

.hero-content > * {
  opacity: 0;
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.27s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.52s; }
.hero-content > *:nth-child(6) { animation-delay: 0.64s; }
.hero-content > *:nth-child(7) { animation-delay: 0.76s; }
.hero-content > *:nth-child(8) { animation-delay: 0.88s; }

@keyframes heroPortraitIn {
  from { opacity: 0; transform: translateX(48px) scale(0.93); }
  to { opacity: 1; transform: none; }
}

.hero-portrait-card {
  opacity: 0;
  animation: heroPortraitIn 1.05s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Floating badge melayang halus */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-tech-badge {
  animation: floatY 4.2s ease-in-out infinite;
}

/* Glow berdenyut pada CTA utama */
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35); }
  50% { box-shadow: 0 12px 36px rgba(59, 130, 246, 0.55); }
}

.hero-cta-group .btn-primary {
  animation: ctaGlow 2.8s ease-in-out infinite;
}

/* --- SCROLL REVEAL (IntersectionObserver, sekali jalan saat masuk viewport) --- */
.reveal,
.reveal-left,
.reveal-right,
.stagger-in {
  opacity: 0;
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal { transform: translateY(44px); filter: blur(6px); }
.reveal-left { transform: translateX(-46px); filter: blur(6px); }
.reveal-right { transform: translateX(46px); filter: blur(6px); }
.stagger-in { transform: translateY(34px); filter: blur(5px); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.stagger-in.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* --- SHIMMER pada progress bar skill (setelah terisi) --- */
.skill-progress-fill {
  position: relative;
  overflow: hidden;
}

.skill-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: skillShimmer 2.2s 1s ease 1;
  pointer-events: none;
}

@keyframes skillShimmer {
  to { left: 130%; }
}

/* --- SCROLL INDICATOR di dasar hero --- */
@keyframes scrollIndicatorIn {
  to { opacity: 1; }
}

@keyframes wheelDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  opacity: 0;
  animation: scrollIndicatorIn 0.7s 1.5s ease forwards;
  z-index: 5;
  transition: opacity 0.4s ease;
}

.scroll-indicator.hide {
  opacity: 0 !important;
  pointer-events: none;
}

.scroll-indicator-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  position: relative;
}

.scroll-indicator-mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: #3b82f6;
  animation: wheelDot 1.9s ease-in-out infinite;
}

.scroll-indicator-text {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .scroll-indicator { display: none; }
}

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

/* ==========================================================================
   REFINEMENT - animasi lebih halus & lebih hidup (easing, blur-in, glow, navbar)
   ========================================================================== */

/* Hero load: lebih halus dengan blur */
.hero-content > * {
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Progress fill skill: isi lebih panjang & melengkung halus */
.skill-progress-fill {
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Progress bar atas: GPU-accelerated */
.scroll-progress {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  transform-origin: left center;
  width: 100%;
}

/* Underline slide di nav-link */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  background: currentColor;
  border-radius: var(--radius-pill);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Sosial icons: spring hover */
.social-icon-link {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease;
}

.social-icon-link:hover {
  transform: translateY(-4px) scale(1.12);
}

/* Navbar: lebih padat & gelap saat discroll */
.floating-nav {
  transition: background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-nav.scrolled {
  background: rgba(10, 14, 20, 0.92);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), 0 0 24px rgba(59, 130, 246, 0.15);
}

/* Kartu proyek: hover glow halus */
.project-card {
  transition: border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(59, 130, 246, 0.3), 0 0 40px rgba(59, 130, 246, 0.12);
}

/* Tombol utama: hover lebih springy */
.btn-primary {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              box-shadow 0.4s ease;
}

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

/* Timeline cards: hover naik halus */
.timeline-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-card:hover {
  transform: translateY(-4px);
}

/* ==========================================================================
   ANIMASI PROFESIONAL v2 - scroll reveal IO, sentuhan developer, micro-interactions
   ========================================================================== */

/* --- Teks aksen: sheen berjalan halus (developer polish) --- */
.text-accent {
  background: linear-gradient(100deg, #60a5fa 0%, #3b82f6 35%, #bfdbfe 50%, #3b82f6 65%, #60a5fa 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: accentPan 7s ease-in-out infinite alternate;
}

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

/* --- Tombol: dukung magnetic translate (JS) tanpa mengganggu hover transform --- */
.btn-primary,
.btn-secondary,
.nav-cta-btn {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.4s ease,
              translate 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Focus keyboard yang jelas & elegan --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Micro-interactions: hover lift konsisten pada kartu --- */
.info-item {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              background 0.35s ease;
}
.info-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
}

.stat-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.skill-category-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}
.skill-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.contact-info-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              background 0.35s ease;
}
.contact-info-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: 0 14px 34px rgba(20, 30, 60, 0.14), 0 0 0 1px rgba(59, 130, 246, 0.18);
}

/* --- Sentuhan developer: code window melayang di atas foto About --- */
.code-window {
  position: absolute;
  top: -26px;
  right: -84px;
  width: 224px;
  z-index: 6;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  box-shadow: 0 20px 46px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(15, 23, 42, 0.6);
  overflow: hidden;
  animation: codeWindowFloat 5.6s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

.code-window-top {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-window-top .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }

.code-window-title {
  margin-left: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.code-window-body {
  margin: 0;
  padding: 10px 12px 12px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.65rem;
  line-height: 1.78;
  color: #e2e8f0;
  white-space: pre;
  overflow: hidden;
}

.tok-k { color: #c084fc; }
.tok-p { color: #93c5fd; }
.tok-s { color: #86efac; }
.tok-v { color: #f8fafc; }

@keyframes codeWindowFloat {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@media (max-width: 1200px) {
  .code-window { right: -46px; width: 204px; }
}

@media (max-width: 992px) {
  .code-window { display: none; }
}

/* --- Aksesibilitas: hormati prefers-reduced-motion (v2) --- */
@media (prefers-reduced-motion: reduce) {
  .code-window { animation: none; }
  .text-accent { animation: none; }
}
