/* ============================================================
   CV Portfolio – Design System & Styles
   Dark-mode first, mobile-first, single-page portfolio
   ============================================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

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

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

/* ============================================================
   VIDEO BACKGROUND
   ============================================================ */
.video-bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay gelap agar teks tetap terbaca */
.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 26, 0.72);
}

/* Di light mode, overlay lebih terang */
[data-theme="light"] .video-bg-overlay {
  background: rgba(255, 255, 255, 0.75);
}

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

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

ul {
  list-style: none;
}

/* ---------- Custom Properties – Dark (default) ---------- */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-tertiary: #16163a;
  --text-primary: #e8e8f0;
  --text-secondary: #9a9ab8;
  --accent: #4fc3f7;
  --accent-dark: #0288d1;
  --accent-glow: rgba(79, 195, 247, 0.2);
  --accent-glow-strong: rgba(79, 195, 247, 0.35);
  --card-bg: #13132e;
  --card-border: rgba(79, 195, 247, 0.08);
  --border: #1e1e48;
  --shadow: rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(10, 10, 26, 0.75);
  --glass-border: rgba(79, 195, 247, 0.1);
  --gradient-text: linear-gradient(135deg, #4fc3f7, #81d4fa, #b3e5fc);
  --gradient-accent: linear-gradient(135deg, #4fc3f7, #0288d1);
  --section-gap: clamp(60px, 10vw, 100px);
}

/* ---------- Custom Properties – Light ---------- */
[data-theme="light"] {
  --bg-primary: #f0f2f8;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8eaf0;
  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --accent: #0288d1;
  --accent-dark: #01579b;
  --accent-glow: rgba(2, 136, 209, 0.12);
  --accent-glow-strong: rgba(2, 136, 209, 0.22);
  --card-bg: #ffffff;
  --card-border: rgba(2, 136, 209, 0.1);
  --border: #d8d8e8;
  --shadow: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(240, 242, 248, 0.8);
  --glass-border: rgba(2, 136, 209, 0.12);
  --gradient-text: linear-gradient(135deg, #0288d1, #01579b);
  --gradient-accent: linear-gradient(135deg, #0288d1, #01579b);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  display: inline-block;
  position: relative;
  margin-bottom: 12px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-accent);
}

.section-header p {
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(10, 10, 26, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  background-clip: padding-box;
  transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

/* Gradient border bawah */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), #a78bfa, var(--accent), transparent);
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.navbar.scrolled {
  padding: 8px 0;
  background: rgba(10, 10, 26, 0.82);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.navbar.scrolled::after {
  opacity: 1;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.04);
}

/* Badge inisial AR */
.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6c63ff, #4fc3f7);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.5);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Kilap animasi di badge */
.logo-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-20deg);
  animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
  0%   { left: -60%; }
  30%  { left: 160%; }
  100% { left: 160%; }
}

.nav-logo:hover .logo-badge {
  box-shadow: 0 6px 22px rgba(108, 99, 255, 0.75);
  transform: rotate(-4deg) scale(1.08);
}

/* Teks nama */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-firstname {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.logo-lastname {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s, letter-spacing 0.3s;
}

.nav-logo:hover .logo-lastname {
  opacity: 1;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid transparent;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::before {
  opacity: 1;
  transform: scale(1);
  border-color: var(--glass-border);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::before {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(79, 195, 247, 0.25);
  background: var(--accent-glow-strong);
}

/* Dot aktif di bawah link */
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}


/* ---- Theme Toggle ---- */
.theme-toggle {
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1rem;
  margin-left: 6px;
  transition: border-color 0.3s, transform 0.4s, background 0.3s, box-shadow 0.3s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: rotate(25deg) scale(1.1);
  background: var(--accent-glow);
  box-shadow: 0 0 14px var(--accent-glow-strong);
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

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

.hamburger:hover span {
  background: var(--accent);
}
/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-badge span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  margin-bottom: 8px;
}

.hero h1 .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero-description {
  max-width: 560px;
  color: var(--text-secondary);
  margin:0 auto 32px;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---- Photo Frame ---- */
.about-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-frame {
  position: relative;
  width: 280px;
  height: 340px;
  flex-shrink: 0;
}

/* Gradient border via pseudo-element */
.photo-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 28px;
  background: linear-gradient(135deg, #6c63ff, #a78bfa, #06b6d4);
  z-index: 0;
}

.photo-frame::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 28px;
  background: linear-gradient(135deg, #6c63ff, #a78bfa, #06b6d4);
  filter: blur(18px);
  opacity: 0.4;
  z-index: -1;
}

.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 26px;
  display: block;
}

/* Dekorasi pojok */
.photo-decoration {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
}

.photo-dec-1 {
  width: 60px;
  height: 60px;
  top: -18px;
  right: -18px;
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  opacity: 0.7;
}

.photo-dec-2 {
  width: 36px;
  height: 36px;
  bottom: -12px;
  left: -12px;
  background: linear-gradient(135deg, #06b6d4, #6c63ff);
  opacity: 0.6;
}

/* Badge Available */
.photo-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--bg-secondary, #111128);
  border: 1px solid rgba(108, 99, 255, 0.4);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-primary, #fff);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Dot grid dekorasi */
.photo-dots {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(108,99,255,0.35) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  z-index: 0;
  pointer-events: none;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Warna tema tiap kategori */
.skill-category[data-theme="blue"]   { --sk-color: #4fc3f7; --sk-glow: rgba(79,195,247,0.15); --sk-grad: linear-gradient(135deg,#4fc3f7,#0288d1); }
.skill-category[data-theme="purple"] { --sk-color: #a78bfa; --sk-glow: rgba(167,139,250,0.15); --sk-grad: linear-gradient(135deg,#a78bfa,#7c3aed); }
.skill-category[data-theme="orange"] { --sk-color: #fb923c; --sk-glow: rgba(251,146,60,0.15);  --sk-grad: linear-gradient(135deg,#fb923c,#ea580c); }

.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Garis atas berwarna */
.skill-category::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sk-grad);
  border-radius: 20px 20px 0 0;
}

/* Glow blur di background */
.skill-card-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--sk-glow);
  filter: blur(40px);
  pointer-events: none;
  transition: transform 0.4s ease;
}

.skill-category:hover {
  transform: translateY(-6px);
  border-color: var(--sk-color);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px var(--sk-glow);
}

.skill-category:hover .skill-card-glow {
  transform: scale(1.4);
}

/* Header kartu */
.skill-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.skill-category-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sk-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--sk-glow);
}

.skill-category-icon svg {
  width: 26px;
  height: 26px;
  color: #fff;
  fill: #fff;
}

.skill-category h3 {
  margin: 0 0 2px;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.skill-card-sub {
  font-size: 0.75rem;
  color: var(--sk-color);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Skill tags */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  transition: all 0.25s ease;
  cursor: default;
}

.skill-tag:hover {
  background: var(--sk-glow);
  border-color: var(--sk-color);
  color: var(--sk-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--sk-glow);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ---- Card ---- */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), #a78bfa, transparent, transparent);
  -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;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(79,195,247,0.1);
}

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

/* ---- Image area ---- */
.project-card-image {
  position: relative;
  overflow: hidden;
  height: 210px;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,20,0.92) 0%, rgba(5,5,20,0.5) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

.project-overlay-btns {
  display: flex;
  gap: 10px;
  transform: translateY(12px);
  transition: transform 0.35s ease;
}

.project-card:hover .project-overlay-btns {
  transform: translateY(0);
}

.proj-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}

.proj-btn svg {
  width: 13px;
  height: 13px;
}

.proj-btn:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

.proj-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.proj-btn-primary:hover {
  background: #81d4fa;
  border-color: #81d4fa;
}

/* ---- Card body ---- */
.project-card-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #22c55e;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 3px 10px;
  border-radius: 999px;
}

.project-num {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  font-family: 'Courier New', monospace;
  transition: color 0.3s;
}

.project-card:hover .project-num {
  color: rgba(79,195,247,0.15);
}

.project-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.project-card-body > p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.project-features {
  margin-bottom: 16px;
  flex: 1;
}

.project-features li {
  color: var(--text-secondary);
  font-size: 0.83rem;
  padding: 3px 0 3px 18px;
  position: relative;
}

.project-features li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
}

.project-tech-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(79,195,247,0.07);
  color: var(--accent);
  border: 1px solid rgba(79,195,247,0.15);
  letter-spacing: 0.3px;
  transition: background 0.2s, border-color 0.2s;
}

.project-card:hover .project-tech-tag {
  background: rgba(79,195,247,0.12);
  border-color: rgba(79,195,247,0.3);
}
/* ============================================================
   EDUCATION
   ============================================================ */
.education-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 36px;
  align-items: flex-start;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.education-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79,195,247,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 40px rgba(79,195,247,0.06);
}

/* Gradient top border */
.education-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a78bfa, var(--accent));
  background-size: 200% 100%;
  animation: edu-border-shift 4s linear infinite;
}

@keyframes edu-border-shift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Dekorasi lingkaran background */
.edu-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.edu-deco-1 {
  width: 200px; height: 200px;
  top: -80px; right: -60px;
  background: radial-gradient(circle, rgba(79,195,247,0.08), transparent 70%);
}

.edu-deco-2 {
  width: 120px; height: 120px;
  bottom: -40px; left: 40px;
  background: radial-gradient(circle, rgba(167,139,250,0.08), transparent 70%);
}

/* ---- Kiri ---- */
.edu-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.edu-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(79,195,247,0.3);
  color: #fff;
}

.edu-year-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(79,195,247,0.1);
  border: 1px solid rgba(79,195,247,0.2);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
  text-align: center;
}

/* ---- Kanan ---- */
.edu-right {
  flex: 1;
  min-width: 0;
}

.edu-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 999px;
  padding: 4px 12px;
}

.edu-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: badge-pulse 2s ease-in-out infinite;
}

.edu-degree-type {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.education-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
}

.education-major {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.education-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
}

.education-detail {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.education-detail svg {
  color: var(--accent);
  fill: var(--accent);
  flex-shrink: 0;
}

/* Progress bar semester */
.edu-progress-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 16px;
}

.edu-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.edu-progress-val {
  color: var(--accent);
  font-weight: 700;
}

.edu-progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}

.edu-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  box-shadow: 0 0 12px rgba(79,195,247,0.5);
  animation: progress-grow 1.2s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.4s;
  width: 0;
}

@keyframes progress-grow {
  from { width: 0 !important; }
  to   { width: 50%; }
}

/* Responsive mobile */
@media (max-width: 600px) {
  .education-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
  }
  .edu-top-row { justify-content: center; }
  .education-major { justify-content: center; }
  .education-details { justify-content: center; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-content > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.contact-icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s, color 0.3s, border-color 0.3s;
}

.contact-icon-btn svg {
  width: 24px;
  height: 24px;
}

.contact-icon-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 24px var(--accent-glow-strong);
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.contact-cta {
  margin-top: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer .footer-heart {
  color: var(--accent);
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px var(--shadow);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

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

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

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

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-cta {
    flex-direction: column;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-photo {
    justify-content: center;
  }

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

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

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

  .education-card {
    padding: 28px 24px;
  }

  .education-details {
    flex-direction: column;
    gap: 12px;
  }

  .contact-icons {
    gap: 16px;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop enhancements */
@media (min-width: 1025px) {
  .hero-content {
    max-width: 680px;
  }
}

/* Nav overlay for mobile */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-overlay.show {
  display: block;
}

/* ============================================================
   MUSIC PLAYER – Floating card + toggle button
   ============================================================ */

/* Tombol toggle floating */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2d2d3a;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.music-btn:hover {
  transform: scale(1.1);
  background: #3a3a4d;
}

/* Card Player */
.music-player {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 999;
  width: 300px;
  background: #2b2b3b;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.music-player.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Tombol close */
.music-player-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.music-player-close:hover { color: #fff; }

/* Info lagu */
.music-player-info {
  margin-bottom: 16px;
  padding-right: 24px;
}
.music-player-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-player-artist {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 2px;
}

/* Progress bar */
.music-player-progress { margin-bottom: 14px; }

.music-seek {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
  background: linear-gradient(to right, #6c63ff 0%, #444 0%);
  outline: none;
  cursor: pointer;
  margin-bottom: 6px;
}
.music-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.music-player-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #aaa;
}

/* Controls row */
.music-player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Volume */
.music-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  flex: 1;
}
.music-volume-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
  background: linear-gradient(to right, #6c63ff 80%, #444 80%);
  outline: none;
  cursor: pointer;
}
.music-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* Play/Pause button */
.music-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.2s ease;
}
.music-play-btn:hover {
  transform: scale(1.08);
  background: #e0e0ff;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  object-fit: contain;
  cursor: default;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin: 0;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.1) rotate(90deg);
}

.lightbox-trigger {
  cursor: zoom-in;
}
