:root {
  --bg-main: #07090E;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 56, 0.9);
  
  --accent-purple: #8B5CF6;
  --accent-pink: #EC4899;
  --accent-amber: #F59E0B;
  --accent-emerald: #10B981;
  --accent-cyan: #06B6D4;
  
  --vibrant-gradient: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #F59E0B 100%);
  --glow-purple: rgba(139, 92, 246, 0.3);
  
  --text-main: #F8FAFC;
  --text-sub: #94A3B8;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 45%);
  background-attachment: fixed;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(10, 10, 18, 0.85); /* Background gelap transparan agar isi bawahnya tidak tabrakan */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* PENTING: Beri jarak atas pada elemen setelah navbar agar tidak tertutup */
body {
  padding-top: 80px; /* Menyesuaikan tinggi navbar agar konten tidak ketutup di awal scroll */
}

/* Logo */
.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  font-family: serif;
}

.nav-logo span {
  color: #ec4899;
}

.logo-name {
    font-size: 32px;
    font-weight: 700;
}

.location {
    font-size: 11px;
    color: #a0a0b5;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #c084fc, #ec4899);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-nav-contact,
.nav-btn {
  padding: 0.65rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #a855f7, #ec4899, #f97316);
  background-size: 200% 200%;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.35);
  transition: all 0.4s ease;
}

.btn-nav-contact:hover,
.nav-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.6);
  background-position: right center;
}

/* SECTIONS */
section {
  padding: 6rem 2rem;
  max-width: 1150px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #FFFFFF 20%, #C084FC 60%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.35));
}

.line,
.title-underline {
  width: 65px;
  height: 4px;
  background: var(--vibrant-gradient);
  margin: 0.8rem auto 0;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
}

.section-icon {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-block;
  vertical-align: middle;
  color: var(--accent-purple);
  margin-right: 0.6rem;
  transition: transform 0.3s ease;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 7rem;
}

.profile-avatar-wrapper {
  position: relative;
  margin-bottom: 2rem;
  animation: floatGoyang 4s ease-in-out infinite;
}

.profile-avatar-wrapper::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background: var(--vibrant-gradient);
  border-radius: 50%;
  z-index: 1;
  filter: blur(8px);
  opacity: 0.7;
}

/* 1. Atur Wrapper agar glow berada di luar (luar ring), bukan di belakang isi foto */
.profile-avatar-wrapper {
  position: relative;
  margin-bottom: 2rem;
  animation: floatGoyang 4s ease-in-out infinite;
  display: inline-block;
}

/* Hilangkan piringan warna di belakang foto, ubah jadi efek aura glow luar saja */
.profile-avatar-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.6), 0 0 15px rgba(236, 72, 153, 0.4);
  z-index: 1;
  pointer-events: none;
}

/* 2. Atur Avatar agar fotonya tampil bersih, jelas, dan di atas layer glow */
.profile-avatar {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #121826;/* <-- Bagian ini */
  position: relative;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
}

.badge-icon {
  width: 16px;
  height: 16px;
}

.hero-icon {
  width: 2rem;
  height: 2rem;
  display: inline-block;
  vertical-align: middle;
  color: #C084FC;
  margin-left: 0.4rem;
  filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.7));
  transition: transform 0.3s ease, filter 0.3s ease;
}

@keyframes floatGoyang {
  0% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(0deg); }
  75% { transform: translateY(-8px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.badge {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-glow);
  color: #C084FC;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.card-header-status h3 {
  margin-bottom: 0;
}

.status-badge.intro {
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  display: inline-block;
}

.learning-note {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 4px;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  clear: both;
}

.tag.exposure {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
}

.tag.exposure:hover {
  border-color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h2 {
  font-size: 1.2rem;
  color: var(--accent-amber);
  margin-bottom: 1.2rem;
  font-weight: 600;
  max-width: 750px;
}

.hero p {
  max-width: 650px;
  color: var(--text-sub);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* HERO BUTTONS (DIPERBARUI) */
.hero-btns {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* 1. Tombol Utama (View My Projects) */
.btn-primary {
  background: var(--vibrant-gradient);
  color: var(--text-main);
  border: none;
  box-shadow: 0 4px 20px var(--glow-purple);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

/* 2. Tombol Kedua (Download CV) */
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-purple);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(-1px);
}

/* ABOUT & CARDS */
.about-card {
  background: linear-gradient(135deg, rgba(20, 27, 45, 0.8) 0%, rgba(12, 16, 28, 0.9) 100%);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(139, 92, 246, 0.12);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(236, 72, 153, 0.2);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--vibrant-gradient);
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
}

.about-card p {
  margin-bottom: 1.4rem;
  color: #CBD5E1;
  font-size: 1.05rem;
  line-height: 1.8;
  letter-spacing: 0.2px;
}

.about-card p:last-child { 
  margin-bottom: 0; 
}

/* PROJECTS GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--vibrant-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.15);
}

.card:hover::before {
  opacity: 1;
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.card h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-click-icon {
  font-size: 0.85rem;
  color: var(--accent-purple);
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.card:hover .card-click-icon {
  opacity: 1;
  transform: translateX(0);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* MODAL POPUP */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0F172A;
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(139, 92, 246, 0.2);
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(236, 72, 153, 0.3);
}

.modal-tag {
  font-size: 0.8rem;
  color: var(--accent-pink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.modal-project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-light);
}

.modal-body {
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.modal-highlights {
  margin-bottom: 1.8rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border-left: 3px solid var(--accent-purple);
}

.modal-highlights h4 {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.modal-highlights ul {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.modal-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-btn {
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
}

.modal-link-icon {
  width: 16px;
  vertical-align: middle;
}

/* SKILLS */
.skills-section {
  padding: 4rem 8%;
  color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.skill-card {
  position: relative;
  background: #121324;
  padding: 1.8rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #ec4899, #f97316);
  opacity: 0.6;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

.skill-card:hover .card-accent {
  opacity: 1;
  height: 4px;
}

.skill-card h3 {
  font-size: 0.85rem;
  letter-spacing: 1.2px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.2rem;
}

.tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #e2e8f0;
  transition: all 0.25s ease;
}

.tag:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

.tag.highlight {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
}

.tag.highlight:hover {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.2);
}

.tag.lang {
  border-color: rgba(236, 72, 153, 0.3);
  background: rgba(236, 72, 153, 0.08);
}

.tag.lang:hover {
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.2);
}

/* EDUCATION */
.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--vibrant-gradient);
}

.education-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.15);
}

.edu-logo-wrapper {
  width: 85px;
  height: 85px;
  padding: 0.5rem;
  border-radius: 16px;
  background: #ffffff; 
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.edu-info {
  flex: 1;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-header h3 {
  font-size: 1.35rem;
  color: var(--text-main);
  font-weight: 700;
}

.education-card .degree {
  color: var(--accent-amber);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.2rem;
}

.edu-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.coursework-wrapper {
  margin-top: 1rem;
}

.coursework-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-tag {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: #E2E8F0;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.course-tag:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: #FFF;
}

/* CONTACT */
.contact-wrapper {
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.95) 0%, rgba(10, 14, 23, 0.95) 100%);
  border: 1px solid var(--border-glow);
  padding: 3.5rem 2.5rem;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.contact-wrapper h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.contact-wrapper p {
  color: var(--text-sub);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.contact-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.icon-box {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.brand-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.contact-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
}

.contact-text span {
  font-size: 0.9rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.contact-text strong {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-item:hover .brand-icon {
  transform: scale(1.15);
}

.contact-item.gmail:hover {
  border-color: #EA4335;
  box-shadow: 0 10px 25px rgba(234, 67, 53, 0.25);
}
.contact-item.gmail:hover .icon-box {
  background: rgba(234, 67, 53, 0.2);
  border-color: #EA4335;
}

.contact-item.whatsapp:hover {
  border-color: #25D366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
}
.contact-item.whatsapp:hover .icon-box {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25D366;
}

.contact-item.instagram:hover {
  border-color: #E4405F;
  box-shadow: 0 10px 25px rgba(228, 64, 95, 0.25);
}
.contact-item.instagram:hover .icon-box {
  background: rgba(228, 64, 95, 0.2);
  border-color: #E4405F;
}

.contact-item.linkedin:hover {
  border-color: #0A66C2;
  box-shadow: 0 10px 25px rgba(10, 102, 194, 0.25);
}
.contact-item.linkedin:hover .icon-box {
  background: rgba(10, 102, 194, 0.2);
  border-color: #0A66C2;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-sub);
  border-top: 1px solid var(--border-light);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .navbar { 
    padding: 0.9rem 1.2rem; 
  }

  .nav-links { 
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  section { 
    padding: 3.5rem 1.2rem; 
  }

  .hero {
    padding-top: 6rem;
    min-height: auto;
  }

  .hero h1 { 
    font-size: 2.2rem; 
  }

  .hero h2 {
    font-size: 1.05rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 0.8rem;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .education-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    gap: 1.2rem;
  }

  .edu-header {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .course-tags {
    justify-content: center;
  }

  .card-header-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  section { 
    padding: 2.8rem 0.9rem; 
  }

  .profile-avatar {
    width: 130px;
    height: 130px;
  }

  .hero h1 { 
    font-size: 1.75rem; 
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .about-card {
    padding: 1.5rem 1.2rem;
  }

  .edu-logo-wrapper {
    width: 70px;
    height: 70px;
    padding: 0.4rem;
  }

  .course-tag, .tag {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }

  .modal-content {
    padding: 1.5rem 1rem;
  }
}

/* Tombol Hamburger (Titik 3 / Garis 3 untuk Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
}

/* Munculkan khusus di layar HP (<= 768px) */
@media (max-width: 768px) {
  .hamburger {
    display: flex !important; /* Memaksa tombol tampil di mobile */
  }
}

/* Animasi Tombol Hamburger Menjadi Silang (X) ketika aktif */
.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Menu Links Desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
}

/* Tombol Hubungi Saya */
.nav-btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* ========================================= */
/* KUSTOMISASI BAGIAN SERTIFIKAT (PERBAIKAN) */
/* ========================================= */

/* Mengatur bentuk kartu sertifikat agar selalu vertikal ke bawah */
.card.certificate-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.35s ease;
  cursor: pointer;
  
  /* KUNCI UTAMA: Menyusun elemen anak dari atas ke bawah */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

/* Efek Hover pada Kartu */
.card.certificate-card:hover {
  border-color: #ec4899;
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2);
}

/* Mengatur posisi teks "View Certificate" agar konsisten di bawah */
.view-certificate {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c084fc;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  transition: color 0.3s ease, gap 0.3s ease;
}

.card.certificate-card:hover .view-certificate {
  color: #f472b6;
  gap: 0.7rem;
}