/* =========================
   DESIGN TOKENS (Lab style)
   ========================= */
:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-tertiary: #1A1A1A;
  --bg-surface: #161616;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-elevated: rgba(255, 255, 255, 0.12);

  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;

  --accent-cyan: #00E5FF;
  --accent-cyan-dim: #00B8D4;
  --accent-purple: #7B2FF7;

  --gradient-accent: linear-gradient(135deg, #00E5FF, #7B2FF7);
  --gradient-button: linear-gradient(135deg, #00E5FF, #00B8D4);
  --gradient-skill: linear-gradient(90deg, #00E5FF, #7B2FF7);

  --sc-d-cue: 620ms;
  --sc-d-skill: 1.2s;
  --sc-d-modal: 380ms;
  --sc-d-hover: 180ms;

  /* Refined spacing rhythm */
  --space-section: 7rem;
  --space-section-sm: 4.5rem;
  --radius-card: 16px;
  --radius-lg: 24px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.dark-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

body.dark {
  background: var(--bg-primary);
  color: var(--text-secondary);
}

body.dark .hero-content h1,
body.dark .hero-content p {
  color: var(--text-primary);
}

body.dark .hero-content span {
  color: var(--accent-cyan);
}

body.dark .hero {
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-tertiary));
}

body.dark .section {
  background: var(--bg-primary);
}

body.dark .project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.dark .progress-bar {
  background: var(--bg-tertiary);
}

header {
  position: fixed;
  width: 100%;
  background: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 300ms ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.project-actions .btn {
  flex: 1;
  min-width: 140px;
}
/* =========================
   LIVE PREVIEW MODAL
========================= */
.preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.preview-modal img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  animation: zoomIn var(--sc-d-modal, 380ms) ease;
}

.preview-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 34px;
  color: #fff;
  cursor: pointer;
}

/* Zoom animation */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   DARK MODE NAVIGATION
   ========================= */
body.dark header {
    background: rgba(17, 17, 17, 0.85);
}

body.dark nav ul li a {
    color: var(--text-secondary);
}

body.dark nav ul li a:hover {
    color: var(--accent-cyan);
}
body.dark nav ul {
    background: var(--bg-secondary);
}
body.dark nav ul li a {
  padding: 12px 0;
}
nav ul {
  list-style: none;
  display: flex;
}

nav ul li a {
  margin: 0 1rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color var(--sc-d-hover, 180ms) ease;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-tertiary));
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--text-primary);
}

.hero-content p {
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-content .btn {
  color: var(--bg-primary);
  background: var(--gradient-button);
  font-weight: 600;
}

/* =========================
   UNIVERSAL BUTTON STYLE
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 150px;
  padding: 12px 20px;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;

  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;

  background: var(--gradient-button);
  color: var(--bg-primary);

  transition:
    transform var(--sc-d-hover, 180ms) ease,
    box-shadow var(--sc-d-hover, 180ms) ease,
    background var(--sc-d-hover, 180ms) ease;
}

/* HOVER ANIMATION (SAMA SEMUA) */
.btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 229, 255, 0.35);
}

/* ACTIVE (KLIK) */
.btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 6px 12px rgba(0, 229, 255, 0.25);
}


.skills-list {
  max-width: 700px;
  margin: auto;
}

.skill {
  margin-bottom: 1.5rem;
}

.skill span {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  overflow: hidden;
}

.progress {
  width: 0;
  height: 100%;
  background: var(--gradient-skill);
  border-radius: 6px;
  transition: width var(--sc-d-skill, 1.2s) ease;
}

/* Section — hidden only when JS reveal is armed (.reveal-active) */
.section {
  padding: var(--space-section) 2rem;
}

.reveal-active .section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

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

/* Fade up animation */
.reveal-active .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-active .fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

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

.about-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.project-actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

/* Dark mode */
body.dark .btn-outline {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.social-links i {
  font-size: 30px;
}
body.dark .social-links i {
  color: var(--text-secondary);
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* =========================
   SOCIAL ICON BASE
   ========================= */
.social-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease, transform 0.3s ease;
}

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

/* =========================
   SOCIAL ICON ANIMATION
   ========================= */
.social-links a {
  font-size: 28px;
  color: var(--text-secondary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-8px);
}

/* BRAND COLORS */
.social-links a:hover .fa-whatsapp {
  color: #25d366;
}

.social-links a:hover .fa-instagram {
  color: #e1306c;
}

.social-links a:hover .fa-facebook {
  color: #1877f2;
}

.social-links a:hover .fa-linkedin {
  color: #0a66c2;
}

.social-links a:hover .fa-envelope {
  color: #d44638;
}

/* DARK MODE */
body.dark .social-links a {
  color: var(--text-secondary);
}

/* =========================
   CERTIFICATE MODAL
========================= */
.cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* GAMBAR */
.cert-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

/* ❌ TOMBOL CLOSE */
.cert-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;

  font-size: 36px;
  font-weight: bold;
  color: #fff;

  cursor: pointer;
  z-index: 10000; /* 🔥 INI PENTING */
}
/* =========================
   WHATSAPP ICON
========================= */
.social-links a.wa {
  color: #25D366;
}

.social-links a.wa:hover {
  color: #1ebe5d;
  transform: translateY(-6px) scale(1.05);
}

/* Dark mode fix */
body.dark .social-links a.wa {
  color: #25D366;
}

/* Optional text */
.contact-text {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  opacity: 0.85;
}


/* Peak Section — BangHeri Showcase */
.peak-section { background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary)); }
body.dark .peak-section { background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary)); }
.peak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.peak-img { width: 100%; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.35); margin-bottom: 1rem; border: 1px solid var(--border-subtle); }
body.dark .peak-img { box-shadow: 0 8px 25px rgba(0,0,0,0.5); }
.peak-info ul { line-height: 1.7; padding-left: 20px; }
.peak-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 15px; }

/* =========================
   STATS SECTION (Phase 1.1)
   ========================= */
.stats-section {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
body.dark .stats-section {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.stat-item {
  padding: 1.5rem 1rem;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}
body.dark .stat-number {
  color: var(--accent-cyan);
}
.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
}
body.dark .stat-label {
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .stat-number { font-size: 2.5rem; }
  .stats-grid { gap: 1rem; }
}

/* =========================
   MOBILE HAMBURGER MENU (Phase 1.2)
   ========================= */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  padding: 0.25rem 0.5rem;
}
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  nav ul {
    position: fixed;
    top: 70px;
    right: 0;
    width: 220px;
    height: calc(100vh - 70px);
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 1.5rem 1rem;
    box-shadow: -4px 0 12px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 240ms ease;
    z-index: 99;
    border-left: 1px solid var(--border-subtle);
  }
  body.dark nav ul {
    background: var(--bg-secondary);
    box-shadow: -4px 0 12px rgba(0,0,0,0.6);
  }
  nav ul.open {
    transform: translateX(0);
  }
  nav ul li a {
    display: block;
    padding: 0.75rem 0.5rem;
  }
}

/* =========================
   PARALLAX ORBS (Phase 1.3)
   ========================= */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.hero::before {
  width: 320px;
  height: 320px;
  background: rgba(0, 229, 255, 0.20);
  top: -80px;
  right: -60px;
}
.hero::after {
  width: 240px;
  height: 240px;
  background: rgba(123, 47, 247, 0.18);
  bottom: -60px;
  left: -40px;
}
.hero-content {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { transform: none !important; }
}

/* =========================
   HAMBURGER TOGGLE
   ========================= */
body.menu-open {
  overflow: hidden;
}

/* =========================
   GLASS CARD (Phase 2.1: Lab style)
   ========================= */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card, 16px);
  transition: border-color var(--sc-d-hover, 180ms) ease,
              transform var(--sc-d-hover, 180ms) ease,
              box-shadow var(--sc-d-hover, 180ms) ease;
}
.glass-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 8px 40px rgba(0, 229, 255, 0.08);
  transform: translateY(-4px);
}

/* =========================
   PROJECT CARD (redesign refinement)
   ========================= */
.project-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-card, 16px);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: border-color var(--sc-d-hover, 180ms) ease,
              transform var(--sc-d-hover, 180ms) ease,
              box-shadow var(--sc-d-hover, 180ms) ease;
}
.project-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(-6px);
}

/* =========================
   CERTIFICATE CARD (redesign refinement)
   ========================= */
.cert-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card, 16px);
  transition: border-color var(--sc-d-hover, 180ms) ease,
              transform var(--sc-d-hover, 180ms) ease,
              box-shadow var(--sc-d-hover, 180ms) ease;
}
.cert-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 8px 40px rgba(0, 229, 255, 0.08);
  transform: translateY(-4px);
}

/* =========================
   SKILL BAR (aligned with index.html)
   ========================= */
.skill-bar-bg {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gradient-skill);
  width: 0%;
  transition: width 1.2s ease-out;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .section, .fade-up, .progress, .skill-bar-fill { transition: none !important; opacity: 1 !important; transform: none !important; }
  .btn, .btn-outline, .glass-card, .project-card, .cert-card { transition: none !important; }
}

/* Responsive */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }

  /* Mobile peak: single column, larger images */
  .peak-grid {
    grid-template-columns: 1fr;
  }
  .peak-img {
    width: 100%;
    max-width: 100%;
  }

  /* Mobile section spacing refinement */
  .section { padding: var(--space-section-sm) 1.25rem; }

  /* Maintain mobile menu behavior */
  .menu-toggle { display: inline-flex; }
 }

/* Certificate Verify Button */
.btn-verify {
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  padding: 8px 16px;
  min-width: auto;
  margin-top: 10px;
}

.btn-verify:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

body.dark .btn-verify {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

body.dark .btn-verify:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}




