@font-face {
  font-family: "jetbrains";
  src: url(../font/JetBrainsMonoNL-Regular.ttf);
}
@font-face {
  font-family: "jetbrainsBold";
  src: url(../font/JetBrainsMono-Bold.ttf);
}
@font-face {
  font-family: "lato";
  src: url(../font/Lato-Regular.ttf);
}
@keyframes slide {
  from{
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
:root{
  --bg: #ffffff;
  --primary: #0e6ef5; /* biru utama */
  --accent: #0b2b4a;  /* biru gelap / hitam kebiruan */
  --muted: #6b7280;
  --soft: #f4f7fb;
  --radius: 12px;
  --container: 1100px;
  --gap: 24px;
  --shadow: 0 6px 18px rgba(11,43,74,0.08);
  --glass: rgba(255,255,255,0.6);
}

/* Reset sederhana */
*{box-sizing:border-box}
html,body{
  scroll-behavior: smooth;
  height:100%
}
body{
  margin:0;
  padding-top: 70px; /* ruang untuk navbar fixed */
  font-family: 'Poppins', Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;

  color: #0d1b2a;
  transition: background-color 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(14,110,245,0.5); }
  50% { box-shadow: 0 0 20px rgba(14,110,245,0.8), 0 0 30px rgba(14,110,245,0.6); }
  100% { box-shadow: 0 0 5px rgba(14,110,245,0.5); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-bounce-in {
  animation: bounceIn 1s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-glow {
  animation: glow 2s infinite;
}

/* Initial hidden state for animations */
.section, .hero-left, .hero-right, .portfolio-item, .certificate-item, .gallery-item, .card, .test-card, .contact-form, .edu-item, .edu-stat {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.animate, .hero-left.animate, .hero-right.animate, .portfolio-item.animate, .certificate-item.animate, .gallery-item.animate, .card.animate, .test-card.animate, .contact-form.animate, .edu-item.animate, .edu-stat.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Container */
.container{
  width: calc(100% - 48px);
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 0;
}

/* Header — navbar fixed mengikuti scroll */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header .container{
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header.scrolled{
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(11, 43, 74, 0.1);
}
body.dark-mode .site-header.scrolled{
  background: rgba(13, 23, 41, 0.9);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* Brand & nav */
.brand{
  font-weight:800;
  font-size:1.4rem;
  letter-spacing:2px;
}
.nav{
  display:flex;
  gap:18px;
  align-items:center;
  transition: all 0.3s ease;
}
.nav.open{
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  box-shadow: var(--shadow);
}
.nav a{
  text-decoration:none;
  color:var(--accent);
  font-weight:600;
  padding:8px 12px;
  border-radius:8px;
  transition: all 0.3s ease;
}
.nav a:hover{background:rgba(14,110,245,0.08); transform: translateY(-2px);}

.hamburger{
  display:none;
  width:40px;height:36px;border:none;background:transparent;cursor:pointer;
  transition: all 0.3s ease;
}
.hamburger span{display:block;height:3px;background:var(--accent);margin:6px 0;border-radius:2px;width:22px; transition: all 0.3s ease;}
.hamburger:hover span{ background: var(--primary); }
.hamburger.active span:nth-child(1){transform: rotate(-45deg) translate(-5px, 5px);}
.hamburger.active span:nth-child(2){opacity: 0;}
.hamburger.active span:nth-child(3){transform: rotate(45deg) translate(-5px, -5px);}

/* HERO */
.hero{
  padding: 60px 0 40px;
  min-height: calc(100vh - 80px);
  display:flex;
  align-items:center;
  background: var(--soft);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(14,110,245,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(14,110,245,0.1)"/><circle cx="50" cy="50" r="0.5" fill="rgba(11,43,74,0.05)"/><circle cx="10" cy="90" r="0.8" fill="rgba(14,110,245,0.08)"/><circle cx="90" cy="10" r="0.6" fill="rgba(11,43,74,0.06)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:40px;
  align-items:center;
  position: relative;
  z-index: 1;
}
.hero-left .hi{color:var(--primary);font-weight:700;margin:0 0 6px; font-size:1.2rem; text-transform:uppercase; letter-spacing:2px; cursor:pointer; transition: all 0.3s ease;}
.hero-left .hi:hover{color: var(--accent); transform: translateY(-2px);}
.hero-left .name{font-size:2.4rem;margin:0 0 8px;letter-spacing:0.6px; color: var(--primary); font-weight:800; text-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: all 0.3s ease; white-space: nowrap;}
.hero-left .name.blinking { border-right: 3px solid var(--primary); animation: blink 1s infinite; }
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.cursor {
  animation: blink 1s infinite;
  color: #000;
  font-weight: 800;
  display: inline-block;
}
.hero-left .name:hover{transform: scale(1.02); text-shadow: 0 4px 8px rgba(0,0,0,0.2);}
.hero-left .role{font-weight:700;color:var(--accent);margin-bottom:12px; font-size:1.1rem; opacity:0.9; transition: all 0.3s ease;}
.hero-left .role:hover{opacity:1; transform: translateX(5px);}
.hero-left .desc{color:var(--muted);max-width:640px; font-weight:400; line-height:1.6; transition: all 0.3s ease;}
.hero-left .desc:hover{color: var(--accent);}
.hero-cta{margin-top:18px;display:flex;gap:12px; flex-wrap:wrap;}
.socials{
  margin-top:20px;
}
.socials p{color:var(--muted);font-size:0.9rem;margin-bottom:8px;}
.socials .icons{
  display:flex;gap:12px;
}

.socials .icons a{
  display:inline-block;
  width:40px;
  height:40px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius:50%;
  text-decoration:none;
  color:var(--primary);
  font-weight:700;
  text-align:center;
  line-height:40px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14,110,245,0.2);
  position: relative;
}
.socials .icons a:hover{
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(14,110,245,0.3);
  color: white;
  background: var(--primary);
}
.social-link::after {
  content: attr(data-platform);
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  color: var(--accent);
  padding: 0;
  border-radius: 0;
  font-size: 0.6rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  white-space: nowrap;
  z-index: 10;
}
.social-link:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: -30px;
}
.social-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.btn{
  display:inline-block;padding:10px 16px;border-radius:10px;text-decoration:none;font-weight:700;cursor:pointer;border:2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn:hover::before {
  left: 100%;
}
.btn-primary{
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(14,110,245,0.3);
}
.btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(14,110,245,0.4);
}
.btn-primary:disabled{background: var(--muted); cursor: not-allowed; transform: none; box-shadow: none;}
.btn-primary:disabled:hover{transform: none; box-shadow: none;}
.btn-outline{background:transparent;color:var(--primary);border-color:var(--primary)}
.btn-outline:hover{background:var(--primary); color: white; transform: translateY(-3px);}

/* profile card right */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.profile-card{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:14px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius:20px;
  padding:26px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  transition: all 0.3s ease;
  animation: float 6s ease-in-out infinite;
}
.profile-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(14,110,245,0.2);
  animation-play-state: paused;
  background: rgba(255,255,255,0.9);
}
.profile-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  max-width:300px;
  height:300px;
  border-radius: 50%;
}
.profile-photo img{
  width: 400px;
  height:400px;
  object-fit:cover;
  
  border-radius:50%;
  border:8px solid white;
  box-shadow:0 10px 30px rgba(14,110,245,0.08); 
}
.profile-badge{
  font-weight:700;color:var(--accent);background:var(--soft);padding:6px 12px;border-radius:999px;font-size:0.9rem;
}

/* SECTIONS */
.section{
  padding:80px 0;
  background:transparent;
}
.section h2{
  margin:0 0 18px;
  font-size:1.6rem;
  color:var(--accent);
  letter-spacing:1px;
}

/* Teks intro/note di bawah judul section */
.section-intro{
  text-align:center;
  opacity:0.7;
  margin-top:-30px;
}
.section-note{
  text-align:center;
  opacity:0.7;
}

/* ABOUT */
.about {
  background: linear-gradient(135deg, rgba(244, 247, 251, 0.8), rgba(255, 255, 255, 0.9));
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="about-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(14,110,245,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(14,110,245,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(11,43,74,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23about-pattern)"/></svg>');
  pointer-events: none;
}

.about .container {
  position: relative;
  z-index: 1;
}

.section-grid{
  display:flex; gap:28px; align-items:center; flex-wrap:wrap;
}
.section-grid .side{
  flex: 0 0 200px;
  text-align:center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-grid .content{flex: 1; min-width: 0;}
.round-photo {
  width:200px;
  height:200px;
  border-radius:20px;
  box-shadow:var(--shadow);
  border:6px solid white;
  transition: all 0.3s ease;
  overflow: hidden;
}
.round-photo > img {
  width: 100%;
  height: 100%;
  position: relative;
  left: 0%;
  top: 0%;
}
.round-photo:hover{transform: scale(1.05); box-shadow: 0 15px 35px rgba(11,43,74,0.2);}

/* ABOUT list */
.about-list{margin:14px 0 8px 0;padding-left:18px;color:var(--muted);line-height:1.6}
.about-list li{margin-bottom:6px}

/* STATS */
.stats{display:flex;gap:18px;margin-top:18px}
.stat{background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); padding:14px;border-radius:12px;min-width:110px;text-align:center; box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);}
.stat .num{font-weight:800;color:var(--primary);font-size:1.2rem}
.stat .label{color:var(--muted);font-size:0.9rem}

/* RESUME */
.resume {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(244, 247, 251, 0.75));
  position: relative;
}

.resume::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="resume-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.2" fill="rgba(11,43,74,0.02)"/><circle cx="70" cy="70" r="1" fill="rgba(14,110,245,0.02)"/><circle cx="10" cy="80" r="0.8" fill="rgba(11,43,74,0.01)"/><circle cx="90" cy="20" r="0.6" fill="rgba(14,110,245,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23resume-pattern)"/></svg>');
  pointer-events: none;
}

.resume .container {
  position: relative;
  z-index: 1;
}

.resume-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}
.card{background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); padding:18px;border-radius:12px; box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37); transition: all 0.3s ease;}
.card:hover{transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11,43,74,0.2);}

/* EDUCATION */
.education {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(244, 247, 251, 0.8));
  position: relative;
}

.education::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="education-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="35" r="1" fill="rgba(14,110,245,0.03)"/><circle cx="80" cy="65" r="1" fill="rgba(14,110,245,0.03)"/><circle cx="50" cy="15" r="0.6" fill="rgba(11,43,74,0.02)"/><circle cx="15" cy="85" r="0.8" fill="rgba(11,43,74,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23education-pattern)"/></svg>');
  pointer-events: none;
}

.education .container {
  position: relative;
  z-index: 1;
}

.edu-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 45px;
}

.edu-stat {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 22px 14px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  transition: all 0.3s ease;
}

.edu-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(14, 110, 245, 0.2);
}

.edu-stat .num {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.9rem;
  line-height: 1.2;
}

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

.edu-subtitle {
  margin-bottom: 24px !important;
  text-align: left !important;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.edu-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 8px 30px rgba(11, 43, 74, 0.08);
  transition: all 0.3s ease;
}

.edu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(14, 110, 245, 0.15);
  border-color: rgba(14, 110, 245, 0.25);
}

.edu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.edu-subject {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1.3;
}

.edu-score {
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.edu-bar {
  height: 8px;
  background: rgba(14, 110, 245, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.edu-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #6db3ff);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.education.animate .edu-fill {
  width: var(--w);
}

.edu-meta {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.edu-sem {
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(14, 110, 245, 0.08);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 500;
}

/* EDUCATION — semester chart */
.edu-chart-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 22px 24px 18px;
  box-shadow: 0 10px 35px rgba(11, 43, 74, 0.08);
  margin-bottom: 45px;
}

.edu-chart-title {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.edu-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: end;
}

.edu-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.edu-chart-value {
  font-weight: 800;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.edu-chart-track {
  width: 100%;
  max-width: 120px;
  height: 180px;
  background-color: rgba(14, 110, 245, 0.04);
  background-image: linear-gradient(to top, rgba(14, 110, 245, 0.08) 1px, transparent 1px);
  background-size: 100% 20%;
  border-radius: 12px 12px 4px 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.edu-chart-fill {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 10px 10px 2px 2px;
  transition: height 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fill-pink   { background: linear-gradient(180deg, #f472b6, #db2777); }
.fill-orange { background: linear-gradient(180deg, #fb923c, #ea580c); }
.fill-green  { background: linear-gradient(180deg, #34d399, #059669); }
.fill-indigo { background: linear-gradient(180deg, #818cf8, #4f46e5); }

.education.animate .edu-chart-fill {
  height: var(--h);
}

.edu-chart-label {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

.edu-chart-label small {
  color: rgba(107, 114, 128, 0.8);
  font-weight: 500;
}

/* certificate */
#showCertificates {
  position: fixed;
  z-index: 99;
  height: 100vh;
  width: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showImages {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 92vw;
  max-height: 88vh;
  padding: 10px;
}
.showImages img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}
.close-lightbox {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.close-lightbox:hover {
  background: #fff;
  transform: scale(1.08);
}
#showCertificates::before {
  content: '';
  position: absolute;
  background-color: black;
  opacity: 50%;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100%;
}
/* PORTFOLIO */
.portfolio {
  background: linear-gradient(135deg, rgba(244, 247, 251, 0.8), rgba(255, 255, 255, 0.9));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.portfolio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="portfolio-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(11,43,74,0.04)"/><circle cx="85" cy="85" r="1" fill="rgba(11,43,74,0.04)"/><circle cx="45" cy="55" r="0.8" fill="rgba(14,110,245,0.03)"/><circle cx="65" cy="25" r="0.6" fill="rgba(11,43,74,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23portfolio-pattern)"/></svg>');
  pointer-events: none;
}

 .container h2 {
  color: var(--accent);
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

 .container h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.portfolio-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(11, 43, 74, 0.15);
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portfolio-item img { width: 100%; max-width: 128px; height: 128px; }

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(11, 43, 74, 0.05), transparent);
  transition: left 0.6s ease;
}

.portfolio-item:hover::before {
  left: 100%;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(11, 43, 74, 0.25);
  border-color: rgba(14, 110, 245, 0.3);
}

.portfolio-item img {
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
}

.portfolio-item a:hover p {
  color: var(--primary);
}

.portfolio-item p {
  font-size: 1rem;
  color: inherit;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

/* ============================================================
   PORTFOLIO — PROJECT CARD + CAROUSEL FOTO (auto-slide)
   Foto tiap project: folder img/project/project1|2|3/
   (nama file: 1.webp, 2.webp, 3.webp, ... — lihat komentar di index.html)
   ============================================================ */
.project-card {
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}

.project-slides {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.slides-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s ease;
  will-change: transform;
}

.project-card .project-slide {
  flex: 0 0 100%;
  height: 100%;
}

.project-card .project-slide img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  display: block;
}

/* Latar cadangan (kelihatan saat foto belum diganti / gagal dimuat) */
.project-card:nth-child(1) .project-slide { background: linear-gradient(135deg, #d7e7ff 0%, #aecdf5 100%); }
.project-card:nth-child(2) .project-slide { background: linear-gradient(135deg, #d9f4ec 0%, #a8e3cd 100%); }
.project-card:nth-child(3) .project-slide { background: linear-gradient(135deg, #ebe3ff 0%, #cbb8f2 100%); }
body.dark-mode .project-card:nth-child(1) .project-slide { background: linear-gradient(135deg, #24354f 0%, #182642 100%); }
body.dark-mode .project-card:nth-child(2) .project-slide { background: linear-gradient(135deg, #1d3a33 0%, #14261f 100%); }
body.dark-mode .project-card:nth-child(3) .project-slide { background: linear-gradient(135deg, #322454 0%, #201538 100%); }

/* Panah kiri / kanan */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(11, 43, 74, 0.45);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 2;
}

.slide-arrow.prev { left: 10px; }
.slide-arrow.next { right: 10px; }

.project-slides:hover .slide-arrow,
.slide-arrow:focus-visible {
  opacity: 1;
}

.slide-arrow:hover {
  background: rgba(14, 110, 245, 0.85);
}

/* Layar sentuh (HP): panah selalu kelihatan */
@media (hover: none) {
  .slide-arrow { opacity: 1; }
}

/* Titik indikator */
.slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.slide-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 3px rgba(11, 43, 74, 0.4);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.slide-dot.active {
  width: 22px;
  border-radius: 4px;
  background: #fff;
}

/* Kartu yang isinya cuma 1 foto: sembunyikan panah & titik */
.project-slides.single .slide-arrow,
.project-slides.single .slide-dots {
  display: none;
}

/* Isi kartu di bawah gambar */
.project-body {
  width: 100%;
  padding: 16px 18px 20px;
  box-sizing: border-box;
  text-align: center;
}

.project-card .project-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
}

.project-card .project-title a {
  display: inline;
  color: var(--accent);
  /* garis bawah titik-titik = penanda jelas bahwa judul ini link */
  text-decoration: underline dotted;
  text-decoration-color: rgba(14, 110, 245, 0.5);
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.project-card .project-title a:hover {
  color: var(--primary);
  text-decoration-style: solid;
  text-decoration-color: var(--primary);
}

.project-card .project-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(14, 110, 245, 0.08);
  border: 1px solid rgba(14, 110, 245, 0.22);
  border-radius: 999px;
}

.project-card .project-desc {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: #5a6b82;
  line-height: 1.5;
}

body.dark-mode .project-card .project-desc {
  color: #b8c4d6;
}

/* Tombol "Lihat Project" — sederhana & modern: ghost pill tipis,
   saat hover terisi warna primary + panah meluncur (class .project-link saja di HTML) */
.project-card .project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--primary);
  background: rgba(14, 110, 245, 0.06);
  border: 1.5px solid rgba(14, 110, 245, 0.35);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card .project-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 110, 245, 0.25);
}

.project-card .project-link .link-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.project-card .project-link:hover .link-arrow {
  transform: translate(2px, -2px);
}

/* TESTIMONIALS */
.testimonials {
  background: linear-gradient(135deg, rgba(14, 110, 245, 0.03), rgba(11, 43, 74, 0.04));
  padding: 80px 0;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="testimonials-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.5" fill="rgba(14,110,245,0.02)"/><circle cx="70" cy="70" r="1" fill="rgba(11,43,74,0.03)"/><circle cx="10" cy="80" r="0.8" fill="rgba(14,110,245,0.02)"/><circle cx="90" cy="20" r="0.6" fill="rgba(11,43,74,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23testimonials-pattern)"/></svg>');
  pointer-events: none;
}

.testimonials .container h2 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 50px;
  margin-top: 50px;
  font-size: 2.5rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.testimonials .container h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.test-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.test-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(31, 38, 135, 0.1);
  color: var(--muted);
  font-style: italic;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.test-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 4rem;
  color: rgba(14, 110, 245, 0.1);
  font-family: serif;
  line-height: 1;
}

.test-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(14, 110, 245, 0.15);
  background: rgba(255, 255, 255, 0.95);
}
/* GALLERY */
.gallery .images {
  margin-bottom: 26px;
}

.gallery .images h3 {
  text-align: left;
  margin-bottom: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0 auto 45px;
  position: relative;
  z-index: 1;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(11, 43, 74, 0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(14, 110, 245, 0.2);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* SHOW MORE / SHOW LESS — shared by certificates, portfolio, gallery */
.certificate-item.grid-hidden,
.certificate-category.grid-hidden,
.portfolio-item.grid-hidden,
.gallery-item.grid-hidden,
.edu-item.grid-hidden {
  display: none !important;
}

.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.show-more-btn {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.show-more-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(14, 110, 245, 0.25);
}
/* CONTACT */
.contact {
  background: linear-gradient(135deg, rgba(14, 110, 245, 0.06), rgba(11, 43, 74, 0.05));
  padding: 80px 0;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-bg-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(14,110,245,0.03)"/><circle cx="80" cy="80" r="1" fill="rgba(14,110,245,0.03)"/><circle cx="50" cy="50" r="0.5" fill="rgba(14,110,245,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-bg-pattern)"/></svg>');
  pointer-events: none;
}

.contact .container h2 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.contact .container h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-info {
  padding: 6px 0 0;
  max-width: 560px;
}

.contact-info p {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-method:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(14, 110, 245, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.contact-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-details h4 {
  margin: 0 0 5px 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-details a, .contact-details span {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-details a:hover {
  color: var(--primary);
}

.contact-availability {
  background: rgba(14, 110, 245, 0.05);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.contact-availability h4 {
  margin: 0 0 8px 0;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
}

.contact-availability p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 20px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.contact-list a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.contact-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.contact-list a:hover::after {
  width: 100%;
}

.contact-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(31, 38, 135, 0.15);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(14, 110, 245, 0.05), transparent);
  transition: left 0.6s ease;
}

.contact-form:hover::before {
  left: 100%;
}

.contact-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(14, 110, 245, 0.2);
  border-color: rgba(14, 110, 245, 0.2);
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h3 {
  margin: 0 0 10px 0;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.form-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-row {
  margin-bottom: 20px;
}

.form-group {
  width: 100%;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid rgba(14, 110, 245, 0.1);
  margin-bottom: 0;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  resize: vertical;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: rgba(13, 27, 42, 0.5);
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 110, 245, 0.1);
  background: rgba(255, 255, 255, 1);
}

.contact-form input.error, .contact-form textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.form-actions .btn {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  position: relative;
  overflow: hidden;
}

.form-actions .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  transition: left 0.4s ease;
}

.form-actions .btn:hover::before {
  left: 0;
}

.form-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(14, 110, 245, 0.3);
}

.form-message {
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
  animation: fadeIn 0.3s ease;
  font-weight: 500;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(135deg, var(--accent), #0a1a2e);
  color: rgba(255, 255, 255, 0.9);
  padding: 80px 0 50px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="90" cy="90" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="20" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}

.footer-links h4, .footer-social h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-links h4::after, .footer-social h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.social-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-copyright p, .footer-attribution p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copyright #year {
  color: var(--primary);
  font-weight: 700;
}

.footer-attribution p {
  font-style: italic;
}

/* CONTACT INFO */
.contact-info-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.contact-info-content p {
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: var(--muted);
}

/* CONTACT */
.contact-form {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  transition: all 0.3s ease;
  max-width: 500px;
  margin: 0 auto;
}
.contact-form:hover {
  box-shadow: 0 15px 35px rgba(11,43,74,0.2);
}
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--accent);
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #e6eefc;
  margin-bottom: 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,110,245,0.1);
}
.contact-form input.error, .contact-form textarea.error {
  border-color: #ef4444;
}
.form-actions{display:flex;justify-content:flex-end}
.form-message{margin-top:10px;padding:8px;border-radius:6px;font-size:0.9rem;display:none; animation: fadeIn 0.3s ease;}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-message.success{background:#d1fae5;color:#065f46;}
.form-message.error{background:#fee2e2;color:#991b1b;}

/* Form kontak — elemen tambahan */
.contact-form label .req {
  color: #ef4444;
}
.contact-form label small {
  color: var(--muted);
  font-weight: 500;
}

.contact-form select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #e6eefc;
  margin-bottom: 16px;
  font-size: 1rem;
  font-family: inherit;
  color: #0d1b2a;
  background-color: rgba(255, 255, 255, 0.8);
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%230e6ef5" d="M6 8L0 0h12z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.contact-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,110,245,0.1);
}
.contact-form select.error {
  border-color: #ef4444;
}
.contact-form select:required:invalid {
  color: rgba(13, 27, 42, 0.5);
}
.contact-form select option {
  color: #0d1b2a;
}

/* Penghitung kata kolom pesan */
.word-count {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  font-weight: 500;
  transition: color 0.25s ease;
}
.word-count.ok {
  color: #16a34a;
}
.word-count.low {
  color: #ef4444;
}

/* Spinner loading pada tombol kirim */
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-actions .btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
}

/* CERTIFICATES */
.certificates {
  background: linear-gradient(135deg, rgba(244, 247, 251, 0.7), rgba(255, 255, 255, 0.8));
  padding: 80px 0;
  position: relative;
}

.certificates::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(14,110,245,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(14,110,245,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(14,110,245,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.container h3 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 50px;
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.certificates-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.certificate-category {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(11, 43, 74, 0.1);
  transition: all 0.4s ease;
}

.certificate-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(11, 43, 74, 0.15);
}

.certificates .certificate-category h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
}



.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
  gap: 22px;
}

.certificate-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(31, 38, 135, 0.15);
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.certificate-item .zoom-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.75);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(14, 110, 245, 0.35);
  z-index: 2;
}

.certificate-item:hover .zoom-hint,
.certificate-item:focus-visible .zoom-hint {
  opacity: 1;
  transform: scale(1);
}

.certificate-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(14, 110, 245, 0.1), transparent);
  transition: left 0.5s ease;
}

.certificate-item:hover::before {
  left: 100%;
}

.certificate-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(14, 110, 245, 0.2);
  border-color: rgba(14, 110, 245, 0.3);
}

.certificate-item img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.certificate-item:hover img {
  transform: scale(1.05);
}

.certificate-item p {
  font-size: 1rem;
  color: var(--accent);
  margin: auto 0 0;
  padding-top: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* #showCertificates {
  position: fixed;
  background-color: black;
  z-index: 9999;
  height: 100vh;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 50%;
} */

/* Responsive */
@media (max-width:1100px){
  .hero-grid{grid-template-columns: 1fr 360px}
  .portfolio-grid{grid-template-columns:repeat(3,1fr)}
  .resume-grid{grid-template-columns:repeat(2,1fr)}
  .gallery-grid{grid-template-columns: repeat(2, 1fr);}
  .certificates .container h2{font-size: 2rem;}
  .certificate-category{padding: 25px;}
}
@media (max-width:1024px){
  .hero-grid{gap:30px;}
  .hero-left .name{font-size:2.1rem;}
  .profile-photo img{width:240px; height:240px;}
  .gallery-grid{grid-template-columns: repeat(2, 1fr);}
  .certificate-category h3{font-size: 1.3rem;}

  /* FOOTER RESPONSIVE */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    max-width: none;
  }
}
@media (max-width:900px){
  .container{padding:18px}
  .nav{display:none}
  .hamburger{display:block}
  .hero-grid{grid-template-columns:1fr}
  .hero-right{order:-1;margin-bottom:18px}
  .hero-left{text-align:center;}
  .hero-cta{justify-content:center;}
  .section-grid{flex-direction:column; gap:12px; align-items:flex-start;}
  .section-grid .content{width:100%; max-width:100%;}
  .portfolio-grid{grid-template-columns:repeat(2,1fr)}
  .resume-grid{grid-template-columns:1fr}
  .test-grid{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns: repeat(2, 1fr);}
  .contact-grid{grid-template-columns:1fr; gap:30px;}
  .contact-form{width:100%; max-width:560px; margin:0 auto;}
  .icons {
    display: flex;
    justify-content: center;
  }
  .edu-summary{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:480px){
  .portfolio-grid{grid-template-columns:1fr}
  .edu-summary{gap:12px}
  .edu-chart{gap:10px}
  .edu-chart-track{height:140px}
  .edu-chart-card{padding:16px 14px 14px}
  .edu-stat{padding:16px 10px}
  .edu-stat .num{font-size:1.4rem}
  .edu-item{padding:14px 16px}
  .brand{font-size:1.1rem}
  .hero-left .name{font-size:1.6rem; white-space: normal; word-wrap: break-word;}
  .profile-photo img{width:180px;height:180px}
  .round-photo{width:120px;height:120px}
  .gallery-grid{grid-template-columns: 1fr;}
  .certificate-grid{grid-template-columns: repeat(auto-fit, minmax(150px, 200px));}
  .gallery-item img{aspect-ratio: 16/10;}
  .show-more-btn{padding:9px 22px; font-size:0.9rem;}
  .contact-form{padding:15px;}
  .contact-info p{font-size:0.9rem;}

  /* FOOTER RESPONSIVE */
  .site-footer {
    padding: 30px 0 20px;
  }
  
  .footer-content {
    gap: 25px;
  }
  
  .footer-logo {
    font-size: 1.5rem;
  }
  
  .footer-tagline {
    font-size: 0.8rem;
  }
  
  .footer-description {
    font-size: 0.9rem;
  }
  
  .footer-links h4, .footer-social h4 {
    font-size: 1rem;
  }
  
  .social-link {
    padding: 10px 12px;
  }
  
  .social-text {
    font-size: 0.9rem;
  }
}

/* ============================================================
   TOMBOL DARK MODE
   ============================================================ */
#dark-mode-toggle {
  border: none;
  background: rgba(14, 110, 245, 0.08);
  color: var(--accent);
  font-size: 1.15rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#dark-mode-toggle:hover {
  transform: rotate(-20deg) scale(1.1);
  background: rgba(14, 110, 245, 0.18);
}

/* ============================================================
   DARK MODE — tema gelap menyeluruh
   Diaktifkan lewat tombol 🌙/☀️ (tersimpan di localStorage)
   ============================================================ */
body.dark-mode {
  background-color: #0a1120;
  color: #dbe4f0;
}

/* Latar section */
body.dark-mode .hero,
body.dark-mode .about,
body.dark-mode .resume,
body.dark-mode .education,
body.dark-mode .portfolio,
body.dark-mode .certificates,
body.dark-mode .gallery,
body.dark-mode .contact {
  background: linear-gradient(160deg, #0d1729 0%, #0a1120 100%);
}

/* Navigasi & hero */
body.dark-mode .nav a { color: #cfe0f5; }
body.dark-mode .nav a:hover { background: rgba(90, 167, 255, 0.12); }
body.dark-mode .hamburger span { background: #cfe0f5; }
body.dark-mode .nav.open { background: rgba(13, 23, 41, 0.97); }
body.dark-mode .hero-left .hi { color: #5aa7ff; }
body.dark-mode .hero-left .name { color: #5aa7ff; text-shadow: none; }
body.dark-mode .hero-left .role { color: #a9c6ea; }
body.dark-mode .hero-left .desc { color: #93a5bd; }
body.dark-mode .socials p { color: #93a5bd; }
body.dark-mode .socials .icons a {
  background: rgba(23, 36, 61, 0.9);
  color: #5aa7ff;
  border-color: rgba(90, 167, 255, 0.15);
}
body.dark-mode .profile-card { background: rgba(19, 30, 52, 0.92); }
body.dark-mode .profile-badge { background: #16233d; color: #cfe0f5; }

/* Judul & teks umum */
body.dark-mode .section h2,
body.dark-mode .container h2 { color: #cfe0f5; }
body.dark-mode .container h3 { color: #5aa7ff; }
body.dark-mode .section-intro,
body.dark-mode .section-note { color: #93a5bd; }

/* About & resume */
body.dark-mode .card { background: rgba(19, 30, 52, 0.92); border-color: rgba(90, 167, 255, 0.14); }
body.dark-mode .card h3 { color: #5aa7ff; }
body.dark-mode .stat { background: rgba(19, 30, 52, 0.92); border-color: rgba(90, 167, 255, 0.14); }
body.dark-mode .stat .num { color: #5aa7ff; }
body.dark-mode .stat .label { color: #93a5bd; }

/* Education */
body.dark-mode .edu-stat,
body.dark-mode .edu-item,
body.dark-mode .edu-chart-card {
  background: rgba(19, 30, 52, 0.92);
  border-color: rgba(90, 167, 255, 0.14);
}
body.dark-mode .edu-stat .num { color: #5aa7ff; }
body.dark-mode .edu-stat .label,
body.dark-mode .edu-sem,
body.dark-mode .edu-chart-value,
body.dark-mode .edu-chart-label { color: #93a5bd; }
body.dark-mode .edu-chart-track {
  background-color: rgba(90, 167, 255, 0.06);
  background-image: linear-gradient(to top, rgba(90, 167, 255, 0.12) 1px, transparent 1px);
}
body.dark-mode .edu-bar { background: rgba(90, 167, 255, 0.16); }
body.dark-mode .edu-subject { color: #dbe4f0; }
body.dark-mode .edu-fill { background: linear-gradient(90deg, #2f7fe8, #7db8ff); }

/* Certificates / Portfolio / Gallery */
body.dark-mode .certificate-category,
body.dark-mode .certificate-item,
body.dark-mode .portfolio-item,
body.dark-mode .gallery-item {
  background: rgba(19, 30, 52, 0.92);
  border-color: rgba(90, 167, 255, 0.14);
}
body.dark-mode .certificate-item p,
body.dark-mode .portfolio-item p { color: #dbe4f0; }
body.dark-mode .certificate-item:hover,
body.dark-mode .portfolio-item:hover,
body.dark-mode .gallery-item:hover {
  box-shadow: 0 20px 60px rgba(47, 127, 232, 0.25);
  border-color: rgba(90, 167, 255, 0.35);
}

/* Contact */
body.dark-mode .contact .container h2 { color: #5aa7ff; }
body.dark-mode .contact-info p { color: #93a5bd; }
body.dark-mode .contact-method { background: rgba(19, 30, 52, 0.92); border-color: rgba(90, 167, 255, 0.14); }
body.dark-mode .contact-details h4 { color: #cfe0f5; }
body.dark-mode .contact-details a,
body.dark-mode .contact-details span { color: #93a5bd; }
body.dark-mode .contact-availability { background: rgba(90, 167, 255, 0.07); }
body.dark-mode .contact-availability h4 { color: #5aa7ff; }
body.dark-mode .contact-availability p { color: #93a5bd; }
body.dark-mode .contact-form {
  background: rgba(19, 30, 52, 0.95);
  border-color: rgba(90, 167, 255, 0.16);
}
body.dark-mode .form-header h3 { color: #cfe0f5; }
body.dark-mode .form-header p { color: #93a5bd; }
body.dark-mode .contact-form label { color: #cfe0f5; }
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea,
body.dark-mode .contact-form select {
  background: rgba(10, 17, 32, 0.9);
  border-color: rgba(90, 167, 255, 0.18);
  color: #e2e8f0;
}
body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder { color: #64748b; }
body.dark-mode .contact-form select option { color: #e2e8f0; background: #101a2e; }
body.dark-mode .form-actions .btn { background: linear-gradient(135deg, #2f7fe8, #123a63); }

/* Tombol show-more, project-link & lightbox */
body.dark-mode .show-more-btn { color: #5aa7ff; border-color: #2f7fe8; }
body.dark-mode .show-more-btn:hover { background: #2f7fe8; color: #fff; }
body.dark-mode .project-card .project-link {
  color: #5aa7ff;
  background: rgba(47, 127, 232, 0.14);
  border-color: rgba(90, 167, 255, 0.45);
}
body.dark-mode .project-card .project-link:hover {
  background: #2f7fe8;
  border-color: #2f7fe8;
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 127, 232, 0.35);
}
body.dark-mode .close-lightbox { background: rgba(19, 30, 52, 0.95); color: #cfe0f5; }

/* Footer */
body.dark-mode .site-footer { background: linear-gradient(135deg, #0a1322, #070d18); }

/* Toggle button saat mode gelap */
body.dark-mode #dark-mode-toggle {
  background: rgba(90, 167, 255, 0.14);
  color: #ffd166;
}

/* Kontras teks tambahan dark mode */
body.dark-mode { color-scheme: dark; }
body.dark-mode .brand { color: #cfe0f5; }
body.dark-mode .lead { color: #b8c7dc; }
body.dark-mode .about-list { color: #93a5bd; }
body.dark-mode .about-list strong { color: #dbe4f0; }
body.dark-mode .section-intro strong { color: #e2e8f0; }
body.dark-mode .round-photo { border-color: #16233d; }
body.dark-mode .profile-photo img { border-color: #16233d; }
body.dark-mode .cursor { color: #5aa7ff; }
body.dark-mode .gallery-item img { filter: brightness(0.92); }
body.dark-mode .form-message.success {
  background: #0f2e22;
  color: #6ee7b7;
  border-color: #14532d;
}
body.dark-mode .form-message.error {
  background: #331414;
  color: #fca5a5;
  border-color: #7f1d1d;
}
