/* ================================================
   theme-dark-neon.css — Dark Mode + Neon Green
   Portfolio Priscianus Mikael Kia Mado
   ================================================ */

/* --- Import Font Modern --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700;800&display=swap');

/* ---- RESET & VARIABLES ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Dark background palette */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2333;
  --bg-input: #0d1117;

  /* Neon Green accents */
  --neon: #00ff88;
  --neon-dark: #00cc66;
  --neon-deeper: #00994d;
  --neon-glow: 0 0 12px rgba(0, 255, 136, 0.4);
  --neon-glow-lg: 0 0 25px rgba(0, 255, 136, 0.6);

  /* Text colors */
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --border: #30363d;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-xl: 0 12px 36px rgba(0,0,0,0.6);

  /* Spacing */
  --drawer-w: 320px;
  --header-h: 72px;
  --side-pad: 1.5rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

/* ---- HEADER ---- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
  height: var(--header-h);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ---- LOGO ---- */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--neon);
  padding: 2px;
  background: var(--bg-card);
  transform-origin: center;
}

.site-logo:hover {
  transform: scale(1.08);
  box-shadow: var(--neon-glow);
}

.logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--neon);
  font-size: 1.35rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover {
  color: var(--neon);
  text-shadow: var(--neon-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hamburger .bar,
.hamburger .bar::before,
.hamburger .bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--neon);
  border-radius: 2px;
  position: relative;
  transition: 0.25s ease;
  transform-origin: center;
}

.hamburger .bar::before {
  position: absolute;
  top: -7px;
  left: 0;
}

.hamburger .bar::after {
  position: absolute;
  top: 7px;
  left: 0;
}

.hamburger[aria-expanded="true"] .bar {
  background: transparent;
}

.hamburger[aria-expanded="true"] .bar::before {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- MOBILE DRAWER ---- */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(90vw, var(--drawer-w));
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-title {
  font-weight: 800;
  color: var(--neon);
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
}

.mobile-links a {
  display: block;
  padding: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.mobile-links a:hover {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon);
}

.mobile-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* ---- MAIN LAYOUT ---- */
main {
  padding-top: var(--header-h);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

section {
  padding: 5rem 0;
}

/* ---- PARALLAX HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(0,255,136,0.08) 0%, transparent 50%),
              url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300ff88' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed; /* Efek parallax ringan */
  background-size: auto, 60px 60px;
  z-index: 0;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: left;
  font-weight: 700;
}

.highlight {
  color: var(--neon);
  text-shadow: var(--neon-glow);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--neon);
}

.cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  justify-content: flex-start;
}

/* ---- BUTTONS (Neon Green + Ripple) ---- */
.btn {
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-deeper), var(--neon-dark));
  color: #0d1117;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,255,136,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,255,136,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--neon);
  border: 2px solid var(--neon);
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--neon);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--neon-glow);
}

/* ---- STATS ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: left;
}

.stat .n {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--neon);
}

.stat .l {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ---- PROFILE BOX ---- */
.profile-box {
  width: min(340px, 90%);
  justify-self: center;
  border: 3px solid var(--neon);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0,255,136,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(0,255,136,0.5);
}

.profile-box img {
  width: 100%;
  display: block;
}

/* ---- ABOUT SECTION ---- */
.about-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: left;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: left;
  font-size: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: justify;
}

/* ---- SKILLS ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.skill {
  background: rgba(0,255,136,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.3s ease;
  text-align: left;
}

.skill:hover {
  transform: translateY(-5px);
  background: rgba(0,255,136,0.1);
  border-color: var(--neon);
  box-shadow: var(--neon-glow);
}

.skill h4 {
  color: var(--neon);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.skill p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ---- PROJECTS SECTION ---- */
#projects {
  position: relative;
}

.filter-menu {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2.5rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  background: transparent;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.filter-btn:hover {
  border-color: var(--neon);
  color: var(--neon);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--neon);
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: var(--neon-glow);
  font-weight: 700;
}

/* Grid proyek menjadi 2 kolom pada layar lebar */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 kolom */
  gap: 2rem;
  margin-top: 0.5rem;
}

.project {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project:hover {
  transform: translateY(-8px);
  border-color: var(--neon);
  box-shadow: 0 10px 30px rgba(0,255,136,0.25);
}

.project-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1117, #1c2333);
  font-size: 3rem;
  transition: all 0.4s ease;
  border-bottom: 1px solid var(--border);
}

.project:hover .project-thumb {
  background: linear-gradient(135deg, var(--neon-deeper), var(--neon-dark));
  color: #0d1117;
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tag {
  display: inline-block;
  background: rgba(0,255,136,0.15);
  color: var(--neon);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  flex: 1;
  text-align: justify;
}

.techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech {
  background: rgba(0,255,136,0.1);
  color: var(--neon);
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.project-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.project-links a {
  text-decoration: none;
  color: var(--neon);
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.project-links a:hover {
  color: #ffffff;
  text-shadow: var(--neon-glow);
  transform: translateX(3px);
}

/* ---- TIMELINE SECTION ---- */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--neon), rgba(0,255,136,0.1));
}

.t-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.t-dot {
  position: absolute;
  left: -9px;
  top: 0.7rem;
  width: 16px;
  height: 16px;
  background: var(--bg-primary);
  border: 3px solid var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,255,136,0.5);
}

.t-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  text-align: left;
}

.t-card:hover {
  transform: translateX(8px);
  border-color: var(--neon);
  box-shadow: var(--shadow-md);
}

.t-date {
  color: var(--neon);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.t-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.t-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: justify;
}

/* ---- CERTIFICATIONS SECTION ---- */
.certs-wrap {
  margin-bottom: 1.5rem;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 0.5rem;
}

.cert {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cert:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,255,136,0.2);
  border-color: var(--neon);
}

.cert-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cert-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,255,136,0.15);
  color: var(--neon);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cert-info {
  flex: 1;
}

.cert-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.cert-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.badge-soft {
  background: rgba(0,255,136,0.2);
  color: var(--neon);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.btn-mini {
  border: 2px solid var(--neon);
  color: var(--neon);
  background: transparent;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-mini:hover {
  background: var(--neon);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.subsection-title {
  font-weight: 700;
  color: var(--neon);
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  text-align: left;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--neon);
  display: inline-block;
}

/* ---- CONTACT SECTION ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.contact-info {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  text-align: left;
}

.form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.info {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  text-align: left;
}

.icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,255,136,0.1);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.info:hover .icon {
  background: var(--neon);
  color: var(--bg-primary);
}

.info h3 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.info p a {
  color: var(--neon);
  text-decoration: none;
  transition: color 0.2s ease;
}

.info p a:hover {
  color: #fff;
  text-decoration: underline;
}

.map-wrapper {
  width: 100%;
  margin-top: 0.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 200px;
  border: none;
  filter: grayscale(30%) brightness(0.8);
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: rgba(0,255,136,0.1);
  color: var(--neon);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.map-link:hover {
  background: var(--neon);
  color: var(--bg-primary);
}

/* Form elements */
.fg {
  margin-bottom: 1rem;
  text-align: left;
}

.fg label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.fg input,
.fg textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: var(--bg-input);
  color: var(--text-primary);
  text-align: left;
}

.fg input:focus,
.fg textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 8px rgba(0,255,136,0.2);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

#submitBtn {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--neon-deeper), var(--neon-dark));
  color: var(--bg-primary);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

#submitBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,255,136,0.4);
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-wrap {
  text-align: center;
}

.social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.social a:hover {
  background: var(--neon);
  color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: var(--neon-glow);
}

.foot-note {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- MODAL (jika dipakai) ---- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---- ANIMATIONS (scroll reveal, hover effects) ---- */
[data-anim] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.reveal-text span {
  display: inline-block;
  animation: textUp 0.6s forwards;
}

.floating {
  animation: float 4s ease-in-out infinite;
}

@keyframes textUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Glow pulse untuk elemen interaktif */
@keyframes neonPulse {
  0% { text-shadow: 0 0 4px var(--neon); }
  50% { text-shadow: 0 0 15px var(--neon); }
  100% { text-shadow: 0 0 4px var(--neon); }
}

.highlight {
  animation: neonPulse 3s infinite;
}

/* ---- BACK TO TOP BUTTON (default: hidden, muncul via JS) ---- */
.back-to-top {
  background: var(--neon) !important;
  color: var(--bg-primary) !important;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0,255,136,0.4);
}

.back-to-top:hover {
  background: #00cc66 !important;
  box-shadow: 0 6px 20px rgba(0,255,136,0.7);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: 1fr; /* jadi 1 kolom di tablet */
    gap: 1.5rem;
  }
  
  .certs-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-wrap h1 {
    text-align: center;
  }
  
  .cta {
    justify-content: center;
  }
  
  .stats {
    text-align: center;
  }
  
  .section-title,
  .section-subtitle,
  .subsection-title {
    text-align: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-box {
    order: -1;
    margin: 0 auto;
  }
  
  .filter-menu {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --side-pad: 1rem;
    --header-h: 64px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    gap: 1.5rem;
  }
  
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-thumb {
    height: 180px;
    font-size: 2.5rem;
  }
  
  .project-body {
    padding: 1.25rem;
  }
  
  .hero {
    min-height: 80vh;
  }
  
  .filter-btn {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
  }
  
  .subsection-title {
    display: block;
    text-align: center;
  }
  
  .site-logo {
    width: 32px;
    height: 32px;
  }
  
  .logo-wrapper {
    gap: 0.5rem;
  }
  
  .logo {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.7rem 1.3rem;
    font-size: 0.85rem;
  }
  
  .about-card {
    padding: 1.5rem;
  }
  
  .project-thumb {
    height: 160px;
    font-size: 2rem;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
  
  .project-desc {
    font-size: 0.8rem;
  }
  
  .filter-menu {
    gap: 0.5rem;
  }
  
  .map-wrapper iframe {
    height: 160px;
  }
  
  .cert {
    padding: 1rem;
  }
  
  .cert-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  .site-logo {
    width: 28px;
    height: 28px;
  }
  
  .logo {
    font-size: 1rem;
  }
}

/* ---- ADDITIONAL SMOOTH SCROLL OFFSET ---- */
section[id] {
  scroll-margin-top: var(--header-h);
}

/* Focus ring untuk aksesibilitas */
*:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

/* Custom Scrollbar (Webkit) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--neon-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon);
}

/* Reduce motion for accessibility */
@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;
  }
}

/* ---- TECH ANIMATED BACKGROUNDS ---- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(0, 255, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridMove 25s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100h80v-40h40v80h-40v-20H0' fill='none' stroke='%2300ff88' stroke-width='0.8' opacity='0.12'/%3E%3Ccircle cx='180' cy='60' r='3' fill='%2300ff88' opacity='0.1'/%3E%3C/svg%3E");
  background-size: 200px;
  animation: circuitMove 20s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 80px 80px, 0 0; }
}

@keyframes circuitMove {
  0% { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}

/* ===== PERBAIKAN ANIMASI BACKGROUND DI MOBILE ===== */

/* 1. Matikan parallax fixed di perangkat sentuh agar animasi lain lancar */
@media (hover: none) and (pointer: coarse) {
  .hero::before {
    background-attachment: scroll !important;
  }
}

/* 2. Aktifkan GPU acceleration untuk animasi background */
body::before,
body::after {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

/* 3. Ubah posisi fixed menjadi absolute agar lebih stabil di mobile, 
   dengan syarat body memiliki posisi relative dan min-height */
body {
  position: relative;
  min-height: 100vh;
}

body::before,
body::after {
  position: absolute;  /* menggantikan fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Pastikan main tidak menutupi animasi */
main {
  position: relative;
  z-index: 1;
}