*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1a56db;
  --blue-dark: #1e3a8a;
  --blue-light: #dbeafe;
  --blue-mid: #3b82f6;
  --text-dark: #1e293b;
  --text-mid: #475569;
  --text-light: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 2px 16px rgba(30,58,138,0.08);
  --shadow-hover: 0 8px 32px rgba(30,58,138,0.16);
}

html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; 
  background: var(--bg); color: var(--text-dark); 
  transition: background .3s, color .3s; }

/* ─── DARK MODE ───────────────────────────────── */
body.dark {
  --blue: #60a5fa;
  --blue-dark: #93c5fd;
  --blue-light: #1e3a5f;
  --blue-mid: #3b82f6;
  --text-dark: #f1f5f9;
  --text-mid: #cbd5e1;
  --text-light: #94a3b8;
  --bg: #0f172a;
  --white: #1e293b;
  --border: #334155;
  --shadow: 0 2px 16px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.6);
}
body.dark nav { background: #1e293b; }
body.dark #beranda { background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #172554 100%); }
body.dark .about-card { background: #1e293b; }
body.dark .edu-card { background: #1e293b; }
body.dark .project-card { background: #1e293b; }
body.dark .address-card { background: #1e293b; }
body.dark .kontak-wrap { background: #1e293b; }
body.dark .kontak-wa { background: #1e293b; }
body.dark footer { background: #020617; }
body.dark .nav-toggle { background: #3b82f6; }

/* ─── NAVBAR ─────────────────────────────────── */
nav {
  position: sticky; top: 0; 
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(30,58,138,0.06);
}
.nav-inner {
  max-width: 1100px; 
  margin: auto;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-brand {
  font-size: 1.15rem; 
  font-weight: 700; 
  color: var(--blue);
  display: flex; 
  align-items: center; 
  gap: 8px;
}
.nav-logo {
  height: 48px; 
  width: 48px;
  object-fit: contain; 
  border-radius: 6px;
}
.nav-brand span.bracket { 
    color: var(--blue-dark); 
    font-size: 1.3rem; 
}
.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    list-style: none; 
}
.nav-links a {
  display: flex; 
  align-items: center; 
  gap: 6px;
  padding: 6px 14px; 
  border-radius: 6px;
  font-size: 0.875rem; 
  font-weight: 500; 
  color: var(--text-mid);
  text-decoration: none; 
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { 
    color: var(--blue); 
}
.nav-links a.active { 
    border-bottom: 2px solid var(--blue); 
    border-radius: 0; 
}
.nav-links a i { 
    font-size: 0.8rem; 
}
.nav-toggle {
  width: 38px; 
  height: 38px; 
  border-radius: 50%;
  background: var(--blue-dark); 
  color: var(--white);
  display: flex; 
  align-items: center; 
  justify-content: center;
  cursor: pointer; 
  border: none; 
  font-size: 0.95rem;
  transition: background .2s;
}
.nav-toggle:hover { 
    background: var(--blue); 
}

/* ─── HERO ────────────────────────────────────── */
#beranda {
  background: linear-gradient(135deg, #0f1f4b 0%, #1a3a8a 50%, #1e56db 100%);
  padding: 80px 24px; 
  position: relative; 
  overflow: hidden; 
  min-height: 90vh;
  display: flex; 
  align-items: center;
}
.hero-bg-shapes { 
  position: absolute; 
  inset: 0; 
  pointer-events: none; 
}
.shape { 
  position: absolute; 
  border-radius: 50%; 
  background: rgba(255,255,255,0.04); 
}
.shape-1 { 
  width: 500px; 
  height: 500px; 
  top: -150px; 
  right: -100px; 
}
.shape-2 { 
  width: 300px; 
  height: 300px; 
  bottom: -80px; 
  left: -80px; 
  background: rgba(255,255,255,0.03); 
}
.shape-3 { 
  width: 200px; 
  height: 200px; 
  top: 40%; right: 30%; 
  background: rgba(96,165,250,0.08); 
}

.hero-inner {
  max-width: 1100px; 
  margin: auto; 
  width: 100%;
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 48px;
  position: relative; 
  z-index: 1;
}
.hero-badge {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  background: rgba(255,255,255,0.12); 
  border: 1px solid rgba(255,255,255,0.2);
  color: #93c5fd; 
  padding: 6px 16px; 
  border-radius: 30px;
  font-size: 0.82rem; 
  font-weight: 600; 
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
}
.hero-text { 
  flex: 1;
 }
.hero-text h3 { 
  font-size: 1.1rem; 
  font-weight: 400; 
  color: #93c5fd; 
  margin-bottom: 4px; 
}
.hero-text h1 { 
  font-size: 3.2rem; 
  font-weight: 800; 
  color: white; 
  line-height: 1.1; 
  margin-bottom: 8px; 
}
.hero-text h1 .highlight {
  background-clip: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
}
.hero-text h2 { 
  font-size: 1rem; 
  font-weight: 500; 
  color: #bfdbfe; 
  margin-bottom: 16px; 
}
.hero-text p { 
  color: #cbd5e1; 
  font-size: 0.95rem; 
  line-height: 1.8; 
  max-width: 460px; 
  margin-bottom: 28px; 
}

.hero-btns { 
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap; 
  margin-bottom: 36px; 
}
.btn-primary {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(90deg, #3b82f6, #6366f1); color: white;
  border-radius: 8px; 
  font-size: 0.9rem; 
  font-weight: 600;
  text-decoration: none; 
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}
.btn-primary:hover { 
  opacity: .9; 
  transform: translateY(-2px); 
}
.btn-outline {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  padding: 13px 28px;
  border: 2px solid rgba(255,255,255,0.3); 
  color: white;
  border-radius: 8px; 
  font-size: 0.9rem; 
  font-weight: 600;
  text-decoration: none; 
  transition: background .2s, transform .15s;
}
.btn-outline:hover { 
  background: rgba(255,255,255,0.1); 
  transform: translateY(-2px); 
}

.hero-stats { 
  display: flex; 
  align-items: center; 
  gap: 24px; 
}
.stat { 
  text-align: center; 
}
.stat span { 
  display: block; 
  font-size: 1.5rem; 
  font-weight: 800; 
  color: #60a5fa; 
}
.stat small { 
  font-size: 0.75rem; 
  color: #94a3b8; 
}
.stat-divider { 
  width: 1px; 
  height: 36px; 
  background: rgba(255,255,255,0.15); 
}

.hero-photo-side { 
  position: relative; 
  flex-shrink: 0; 
  width: 300px; 
  height: 300px; 
}
.hero-photo-ring {
  width: 260px; 
  height: 260px; 
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #6366f1, #a78bfa);
  padding: 4px; 
  margin: 20px auto 0;
  box-shadow: 0 0 40px rgba(96,165,250,0.3);
}
.hero-photo-wrap {
  width: 100%; 
  height: 100%; 
  border-radius: 50%;
  overflow: hidden; 
  border: 4px solid #0f1f4b;
}
.hero-photo-wrap img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center 30%;
}

.hero-float {
  position: absolute; 
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px); 
  border: 1px solid rgba(255,255,255,0.2);
  color: white; 
  padding: 7px 14px; 
  border-radius: 20px;
  font-size: 0.78rem; 
  font-weight: 600; 
  display: flex; 
  align-items: center; 
  gap: 6px;
  animation: floatBadge 3s ease-in-out infinite;
}
.hero-float i { 
  font-size: 1rem; 
}
.hero-float-1 { 
  top: 10px; 
  left: -10px; 
  animation-delay: 0s; 
}
.hero-float-2 { 
  top: 10px; 
  right: -10px; 
  animation-delay: .7s; 
}
.hero-float-3 { 
  bottom: 30px; 
  left: -10px; 
  animation-delay: 1.4s; 
}
.hero-float-4 { 
  bottom: 30px; 
  right: -10px; 
  animation-delay: 2.1s; 
}
.hero-float-1 i { 
  color: #f97316; 
}
.hero-float-2 i { 
  color: #3b82f6; 
}
.hero-float-3 i { 
  color: #eab308; 
}
.hero-float-4 i { 
  color: #8b5cf6; 
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ─── SECTION COMMON ──────────────────────────── */
section { 
    padding: 72px 24px; 
}
.section-title { 
    text-align: center; 
    margin-bottom: 40px; 
}
.section-title h2 {
  font-size: 1.6rem; 
  font-weight: 700; 
  color: var(--text-dark);
  display: inline-flex; 
  align-items: center; 
  gap: 10px;
}
.section-title h2 i { 
    color: var(--blue); 
}
.section-title .underline {
  width: 50px; 
  height: 3px;
  background: var(--blue); 
  border-radius: 2px;
  margin: 10px auto 0;
}
.container { 
    max-width: 1100px; 
    margin: auto; 
}

/* ─── TENTANG SAYA ────────────────────────────── */
#tentang { 
  background: var(--bg); 
}
.about-wrap {
  display: grid; 
  grid-template-columns: 300px 1fr; 
  gap: 48px; 
  align-items: start;
}
.about-img-side { 
  text-align: center; 
}
.about-img-frame {
  width: 240px; 
  height: 280px; 
  margin: 0 auto 20px;
  border-radius: 20px; 
  overflow: hidden;
  border: 4px solid var(--blue);
  box-shadow: 0 8px 32px rgba(30,58,138,0.2);
  position: relative;
}
.about-img-frame::before {
  content: ''; 
  position: absolute; 
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(26,86,219,0.3));
  z-index: 1;
}
.about-img-frame img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}
.about-socials {
  display: flex; 
  justify-content: center; 
  gap: 12px; 
}
.soc-btn {
  width: 40px; 
  height: 40px; 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: white; 
  font-size: 0.9rem; 
  text-decoration: none;
  transition: transform .2s, opacity .2s;
}
.soc-btn:hover { 
  transform: translateY(-3px); 
  opacity: .85; 
}
.soc-fb { 
  background: #1877f2; 
}
.soc-ig { 
  background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); 
}
.soc-em { 
  background: #f59e0b; 
}

.about-content h3 {
  font-size: 1.6rem; 
  font-weight: 700; 
  color: var(--text-dark);
  margin-bottom: 14px; 
  position: relative; 
  padding-bottom: 12px;
}
.about-content h3::after {
  content: ''; 
  position: absolute; 
  bottom: 0; 
  left: 0;
  width: 48px; 
  height: 3px; 
  background: var(--blue); 
  border-radius: 2px;
}
.about-content > p { 
  color: var(--text-mid); 
  line-height: 1.9; 
  font-size: 0.95rem; 
  margin-bottom: 28px; 
}

.about-skills { 
  margin-bottom: 28px; 
  display: flex; 
  flex-direction: column; 
  gap: 14px; 
}
.skill-label { 
  display: flex; 
  justify-content: space-between; 
  font-size: 0.85rem; 
  font-weight: 600; 
  color: var(--text-dark); 
  margin-bottom: 6px; 
}
.skill-bar { 
  height: 8px; 
  background: var(--border); 
  border-radius: 10px; 
  overflow: hidden; 
}
.skill-fill {
  height: 100%; 
  border-radius: 10px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.about-info-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 14px; 
}
.info-item {
  display: flex; 
  align-items: center; 
  gap: 12px;
  background: var(--white); 
  border: 1px solid var(--border);
  border-radius: 10px; 
  padding: 12px 16px; 
  box-shadow: var(--shadow);
}
.info-item > i { 
  font-size: 1.1rem; 
  color: var(--blue); 
  flex-shrink: 0; 
}
.info-item div { 
  display: flex; 
  flex-direction: column; 
}
.info-item small { 
  font-size: 0.72rem; 
  color: var(--text-light); 
}
.info-item span { 
  font-size: 0.85rem; 
  font-weight: 600; 
  color: var(--text-dark); 
}

body.dark .info-item { 
  background: #1e293b; 
}

/* ─── PENDIDIKAN ──────────────────────────────── */
#pendidikan { 
    background: var(--bg); 
}
.edu-grid {
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px;
}
.edu-card {
  background: var(--white); 
  border: 1px solid var(--border);
  border-radius: 12px; 
  padding: 28px 20px;
  text-align: center; 
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.edu-card:hover { 
    box-shadow: var(--shadow-hover); 
    transform: translateY(-3px); 
}
.edu-logo {
  width: 80px; 
  height: 80px; 
  margin: 0 auto 14px;
  border-radius: 12px; 
  overflow: hidden; 
  border: 2px solid var(--border);
}
.edu-logo img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.edu-logo-placeholder {
  width: 100%; 
  height: 100%;
  background: linear-gradient(145deg, #93c5fd, #1e3a8a);
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 1.6rem; 
  color: white;
}
.edu-type {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 6px;
  font-weight: 700; 
  font-size: 1rem; 
  color: var(--text-dark); 
  margin-bottom: 10px;
}
.edu-type i { 
    color: var(--blue); 
}
.edu-card h4 { 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--text-dark); 
    margin-bottom: 4px; 
}
.edu-card p { 
    font-size: 0.82rem; 
    color: var(--text-light); 
    line-height: 1.5; 
}
.btn-maps {
  display: inline-flex; 
  align-items: center; 
  gap: 6px;
  margin-top: 12px; 
  padding: 7px 16px;
  background: var(--blue); 
  color: white;
  border-radius: 6px; 
  font-size: 0.78rem; 
  font-weight: 600;
  text-decoration: none; 
  transition: background .2s, transform .15s;
}
.btn-maps:hover { 
  background: var(--blue-dark); 
  transform: translateY(-1px); }

/* ─── PROJEK ──────────────────────────────────── */
#projek { 
    background: var(--white); 
}
.project-grid {
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px;
}
.project-card {
  background: var(--white); 
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); 
  transition: box-shadow .2s, transform .2s;
}
.project-card:hover { 
    box-shadow: var(--shadow-hover); 
    transform: translateY(-3px); 
}
.project-img {
  width: 100%; 
  height: 170px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 100%);
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: white; 
  font-size: 2.5rem;
}
.project-img img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.project-body { 
    padding: 20px; 
}
.project-title {
  display: flex; 
  align-items: center; 
  gap: 8px;
  font-size: 1rem; 
  font-weight: 700; 
  color: var(--text-dark); 
  margin-bottom: 8px;
}
.project-title i { 
    color: var(--blue); 
}
.project-body p { 
    font-size: 0.85rem; 
    color: var(--text-light); 
    line-height: 1.6; 
    margin-bottom: 14px; 
}
.btn-detail {
  display: inline-flex; 
  align-items: center; 
  gap: 6px;
  padding: 8px 20px; 
  border: 1.5px solid var(--blue);
  color: var(--blue); 
  border-radius: 7px; 
  font-size: 0.82rem; 
  font-weight: 600;
  text-decoration: none; 
  transition: background .2s, color .2s;
}
.btn-detail:hover { 
    background: var(--blue); 
    color: white; }

/* ─── ALAMAT ──────────────────────────────────── */
#alamat { 
  background: var(--bg); 
}
.address-wrap { 
  max-width: 900px; 
  margin: auto; 
}
.address-card {
  background: var(--white); 
  border: 1px solid var(--border);
  border-radius: 16px; 
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex; 
  flex-direction: column; 
  gap: 24px;
}
.address-info-grid {
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 16px;
}
.address-info-item {
  display: flex; 
  align-items: center; 
  gap: 14px;
  background: var(--bg); 
  border: 1px solid var(--border);
  border-radius: 12px; 
  padding: 14px 18px;
}
.addr-icon-wrap {
  width: 42px; 
  height: 42px; 
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: white; 
  font-size: 1rem; 
  flex-shrink: 0;
}
.address-info-item div { 
  display: flex; 
  flex-direction: column; 
}
.address-info-item small { 
  font-size: 0.72rem; 
  color: var(--text-light); 
  margin-bottom: 2px; 
}
.address-info-item span { 
  font-size: 0.88rem; 
  font-weight: 600; 
  color: var(--text-dark); 
}
 
.address-divider { 
  height: 1px; 
  background: var(--border); 
}
 
.map-label {
  display: flex; 
  align-items: center; 
  gap: 8px;
  font-size: 0.9rem; 
  font-weight: 600; 
  color: var(--text-dark);
}
.map-label i { 
  color: var(--blue); 
}
.map-open-btn {
  margin-left: auto; 
  display: inline-flex; 
  align-items: center; 
  gap: 6px;
  padding: 7px 16px; 
  background: var(--blue); 
  color: white;
  border-radius: 7px; 
  font-size: 0.8rem; 
  font-weight: 600;
  text-decoration: none; 
  transition: background .2s, transform .15s;
}
.map-open-btn:hover { 
  background: var(--blue-dark); 
  transform: translateY(-1px); 
}
 
.map-wrap {
  width: 100%; 
  height: 340px;
  border-radius: 12px; 
  overflow: hidden;
  border: 1px solid var(--border);
}
 
body.dark .address-info-item {
   background: #0f172a; 
}
body.dark .address-card { 
  background: #1e293b; 
}

/* ─── KONTAK ──────────────────────────────────── */
#kontak { 
    background: var(--white); 
}
.kontak-wrap {
  max-width: 900px; 
  margin: auto;
  display: flex; 
  align-items: center; 
  gap: 0;
  background: var(--white); 
  border: 1px solid var(--border);
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: var(--shadow);
}
.kontak-wa {
  flex-shrink: 0; 
  padding: 32px 40px;
  border-right: 1px solid var(--border);
}
.kontak-wa p { 
    font-size: 0.9rem; 
    color: var(--text-mid); 
    margin-bottom: 16px; }
.btn-wa {
  display: inline-flex; 
  align-items: center; 
  gap: 10px;
  padding: 13px 28px; 
  background: #25d366;
  color: white; 
  border-radius: 30px; 
  font-size: 0.95rem; 
  font-weight: 700;
  text-decoration: none; 
  transition: background .2s;
}
.btn-wa:hover { 
    background: #128c7e; 
}
.kontak-items {
  display: flex; 
  flex: 1;
  justify-content: space-around; 
  align-items: center;
  padding: 32px 24px; 
  gap: 16px; 
  flex-wrap: wrap;
}
.kontak-item {
    display: flex; 
    align-items: center; 
    gap: 12px; }
.kontak-item .k-icon {
  width: 42px; 
  height: 42px; 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 1.1rem; 
  color: white;
}
.k-fb { 
    background: #1877f2; 
}
.k-email { 
    background: #f59e0b; 
}
.k-ig { 
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.kontak-item .k-info span {
     display: block; 
     font-size: 0.85rem; 
     font-weight: 600; 
     color: var(--text-dark); 
    }
.kontak-item .k-info small {
     font-size: 0.78rem; 
     color: var(--text-light); 
    }
.k-divider { 
    width: 1px; 
    height: 40px; 
    background: var(--border); 
}

/* ─── FOOTER ──────────────────────────────────── */
footer {
  background: var(--blue-dark); 
  color: #cbd5e1;
  text-align: center; 
  padding: 28px 24px;
  font-size: 0.85rem; 
  line-height: 1.8;
}
footer span.heart { 
    color: #ef4444; 
}
.scroll-top {
  position: fixed; 
  bottom: 28px; 
  right: 28px;
  width: 44px; 
  height: 44px; 
  background: var(--blue-dark);
  color: white; 
  border-radius: 50%; 
  display: flex; 
  align-items: center;
  justify-content: center; 
  cursor: pointer; 
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(30,58,138,0.25);
  text-decoration: none; 
  transition: background .2s;
}
.scroll-top:hover {
     background: var(--blue); 
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .kontak-wrap { flex-direction: column; }
  .kontak-wa { border-right: none; 
    border-bottom: 1px solid var(--border); 
    width: 100%; text-align: center; }
}
@media (max-width: 600px) {
  .hero-inner { flex-direction: column; 
    text-align: center; }
  .hero-text h1 { font-size: 2rem; }
  .edu-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .address-card { flex-direction: column; 
    text-align: center; }
}
/* ═══════════════════════════════════════════════════
   ANIMASI GLOBAL
═══════════════════════════════════════════════════ */

/* ─── Keyframes ─── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(96,165,250,0.3); }
  50%       { box-shadow: 0 0 50px rgba(96,165,250,0.7), 0 0 80px rgba(99,102,241,0.4); }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes typingCursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes skillGrow {
  from { width: 0 !important; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.3); }
  50%  { opacity: 1; transform: scale(1.05); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes underlineGrow {
  from { width: 0; }
  to   { width: 50px; }
}
@keyframes cardFlip {
  0%   { opacity: 0; transform: rotateY(-15deg) translateY(20px); }
  100% { opacity: 1; transform: rotateY(0deg) translateY(0); }
}

/* ─── Scroll Reveal Base ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.reveal-left {
  transform: translateX(-50px);
}
.reveal.reveal-right {
  transform: translateX(50px);
}
.reveal.reveal-zoom {
  transform: scale(0.85);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* stagger delay untuk grid items */
.reveal-stagger:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger:nth-child(4) { transition-delay: 0.35s; }

/* ─── NAVBAR animasi ─── */
nav {
  animation: navSlideDown 0.6s ease forwards;
}
.nav-links a {
  position: relative;
  overflow: hidden;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* ─── HERO animasi ─── */
.hero-badge {
  animation: fadeInDown 0.6s ease 0.2s both;
}
.hero-text h3 {
  animation: fadeInLeft 0.6s ease 0.3s both;
}
.hero-text h1 {
  animation: fadeInLeft 0.7s ease 0.4s both;
}
.hero-text h2 {
  animation: fadeInLeft 0.6s ease 0.5s both;
}
.hero-text p {
  animation: fadeInLeft 0.6s ease 0.6s both;
}
.hero-btns {
  animation: fadeInUp 0.6s ease 0.7s both;
}
.hero-stats {
  animation: fadeInUp 0.6s ease 0.85s both;
}
.hero-photo-side {
  animation: fadeInRight 0.8s ease 0.4s both;
}
.hero-photo-ring {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* shimmer efek pada nama */
.hero-text h1 .highlight {
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #60a5fa);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* shape animasi */
.shape-1 { animation: rotateSlow 20s linear infinite; }
.shape-2 { animation: rotateSlow 15s linear infinite reverse; }
.shape-3 { animation: floatBadge 4s ease-in-out infinite; }

/* ─── SECTION TITLE animasi ─── */
.section-title .underline {
  animation: none;
}
.section-title.visible .underline {
  animation: underlineGrow 0.6s ease 0.3s both;
}

/* ─── TENTANG animasi ─── */
.about-img-frame {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-img-frame:hover {
  transform: scale(1.03) rotate(1deg);
  box-shadow: 0 16px 48px rgba(30,58,138,0.3);
}
.soc-btn {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
}
.soc-btn:hover {
  transform: translateY(-5px) scale(1.15);
  opacity: 1;
}
.info-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.info-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue);
}

/* skill bar animasi */
.skill-fill {
  width: 0 !important;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.skill-fill.animated {
  width: var(--target-width) !important;
}

/* ─── PENDIDIKAN animasi ─── */
.edu-card {
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease;
}
.edu-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(30,58,138,0.2);
  border-color: var(--blue);
}
.edu-logo img {
  transition: transform 0.4s ease;
}
.edu-card:hover .edu-logo img {
  transform: scale(1.1) rotate(3deg);
}
.btn-maps {
  transition: background 0.2s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
}
.btn-maps:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(26,86,219,0.35);
}

/* ─── PROJEK animasi ─── */
.project-card {
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(30,58,138,0.2);
}
.project-img {
  overflow: hidden;
}
.project-img img {
  transition: transform 0.5s ease;
}
.project-card:hover .project-img img {
  transform: scale(1.08);
}
.btn-detail {
  transition: background 0.25s, color 0.25s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
}
.btn-detail:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(26,86,219,0.3);
}

/* ─── ALAMAT animasi ─── */
.address-info-item {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.3s;
}
.address-info-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue);
}
.addr-icon-wrap {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.address-info-item:hover .addr-icon-wrap {
  transform: scale(1.15) rotate(-5deg);
}
.map-wrap {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.map-wrap:hover {
  box-shadow: 0 12px 36px rgba(30,58,138,0.2);
  transform: scale(1.005);
}

/* ─── KONTAK animasi ─── */
.btn-wa {
  transition: background 0.2s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
}
.btn-wa:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}
.k-icon {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s !important;
}
.kontak-item a.k-icon:hover {
  transform: translateY(-5px) scale(1.18) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* ─── SCROLL TOP animasi ─── */
.scroll-top {
  animation: bounceIn 0.6s ease 1s both;
  transition: background 0.2s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
}
.scroll-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(30,58,138,0.4);
}

/* ─── FOOTER animasi ─── */
footer {
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.6), transparent);
  animation: shimmer 3s linear infinite;
}

/* ─── PAGE LOADER ─── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #0f172a;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hide {
  opacity: 0; visibility: hidden;
}
.loader-ring {
  width: 56px; height: 56px; border-radius: 50%;
  border: 4px solid rgba(96,165,250,0.2);
  border-top-color: #60a5fa;
  animation: rotateSlow 0.8s linear infinite;
}
.loader-text {
  color: #93c5fd; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  animation: typingCursor 1s ease-in-out infinite;
}
