/* ==========================================================================
   PORTFOLIO - NAZAR ALFARIJA
   Style: Clean, Bright, High-Contrast Modern Light Theme (Navy & Blue Accents)
   Typography: Justified body paragraphs, left-aligned headings & labels,
               Fluid & Fully Responsive across Mobile (360px-480px), Tablet (768px), and Desktop (1024px+)
   ========================================================================== */

/* --- CSS Variables & Theme Tokens --- */
:root {
  /* Primary & Accent Palette */
  --primary: #1F4E79;             /* Navy Blue Utama */
  --primary-light: #2563EB;       /* Royal Blue Cerah */
  --primary-hover: #173E60;       /* Navy Gelap untuk Hover */
  --accent: #3B82F6;              /* Blue Accent */
  --accent-light: #60A5FA;
  --accent-gold: #D97706;         /* Gold/Amber untuk Prestasi & HKI */
  --accent-green: #059669;        /* Status Active / Open to Work */

  /* Light Theme Surfaces (Pure White & Very Soft Slate) */
  --bg-body: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-alt: #F8FAFC;             /* Abu sangat muda untuk section selang-seling */
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-input: #FFFFFF;

  /* Typography Colors (High-Contrast & Sharp Readability) */
  --text-main: #0F172A;          /* Hitam / Slate Sangat Gelap untuk Headings */
  --text-body: #334155;          /* Slate Gelap untuk Paragraf Utama */
  --text-muted: #475569;         /* Slate Sedang untuk Keterangan */
  --text-light: #64748B;         /* Slate Ringan untuk Sub-label */
  --text-white: #FFFFFF;

  /* Borders & Shadows */
  --border-color: #E2E8F0;       /* Garis border tipis abu muda */
  --border-light: #F1F5F9;
  --border-focus: #1F4E79;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 16px 32px -4px rgba(31, 78, 121, 0.12), 0 6px 14px -2px rgba(31, 78, 121, 0.06);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Layout */
  --container-max: 1180px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dark Theme Variables (Opsional Toggle) --- */
[data-theme="dark"] {
  --bg-body: #0B132B;
  --bg-surface: #111B33;
  --bg-alt: #0F172A;
  --bg-card: #15223E;
  --bg-glass: rgba(17, 27, 51, 0.92);
  --bg-input: #15223E;

  --text-main: #F8FAFC;
  --text-body: #E2E8F0;
  --text-muted: #94A3B8;
  --text-light: #64748B;

  --border-color: #1E293B;
  --border-light: #1E293B;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px rgba(56, 189, 248, 0.12);
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-body);
  background-color: var(--bg-body);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Paragraph Typography: Justified for clean block reading */
p {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.75;
  word-spacing: normal;
}

/* Headings: Left-aligned, tight line-height, never justified */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.3;
  font-weight: 700;
  text-align: left;
  word-spacing: normal;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
}

/* --- Container & Sections --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 56px;
  padding-bottom: 56px;
  position: relative;
}

.bg-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Background Ambient Orbs */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

.shape-1 {
  top: -80px;
  left: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(31, 78, 121, 0.22) 0%, rgba(37, 99, 235, 0.04) 70%);
}

.shape-2 {
  top: 45%;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(31, 78, 121, 0.03) 70%);
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 32px;
}

.text-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: #EBF3FA;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  margin-bottom: 0;
  border: 1px solid #D1E3F5;
  text-align: center;
  box-shadow: 0 2px 6px rgba(31, 78, 121, 0.06);
}

[data-theme="dark"] .section-tag {
  color: var(--accent-light);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 14px;
  color: var(--text-main);
  letter-spacing: -0.3px;
  text-align: center;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 78, 121, 0.25);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: #F1F5F9;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .btn-secondary {
  color: var(--accent-light);
  border-color: #334155;
  background-color: var(--bg-card);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(31, 78, 121, 0.2);
}

[data-theme="dark"] .btn-outline {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

[data-theme="dark"] .btn-outline:hover {
  background-color: var(--accent-light);
  color: #0B132B;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-align: left;
  white-space: nowrap;
}

.badge-hki {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

[data-theme="dark"] .badge-hki {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.4);
}

.badge-award {
  background: #EDE9FE;
  color: #5B21B6;
  border: 1px solid #C4B5FD;
}

[data-theme="dark"] .badge-award {
  background: rgba(139, 92, 246, 0.2);
  color: #C4B5FD;
  border-color: rgba(139, 92, 246, 0.4);
}

.badge-primary {
  background: #EBF3FA;
  color: var(--primary);
  border: 1px solid #C5DBF0;
}

[data-theme="dark"] .badge-primary {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-light);
  border-color: rgba(56, 189, 248, 0.3);
}

.badge-neutral {
  background: #F1F5F9;
  color: var(--text-body);
  border: 1px solid var(--border-color);
}

.badge-live {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.badge-live i {
  font-size: 8px;
  animation: pulse-ring 2s infinite;
}

[data-theme="dark"] .badge-live {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

/* ==========================================================================
   NAVBAR (LIGHT THEME & RESPONSIVE)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-color);
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(31, 78, 121, 0.25);
  flex-shrink: 0;
}

.logo-text strong {
  color: var(--primary);
  margin-left: 2px;
}

[data-theme="dark"] .logo-text strong {
  color: var(--accent-light);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
  text-align: left;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

[data-theme="dark"] .nav-link::after {
  background-color: var(--accent-light);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: var(--accent-light);
}

.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn,
.menu-toggle-btn,
.drawer-close-btn {
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle-btn:hover,
.menu-toggle-btn:hover,
.drawer-close-btn:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.menu-toggle-btn {
  display: none;
}

/* --- Mobile Navigation Drawer --- */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background-color: var(--bg-surface);
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.18);
  z-index: 999;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
}

.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-body);
  transition: all var(--transition-fast);
  text-align: left;
}

.drawer-link i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: var(--primary);
  flex-shrink: 0;
}

[data-theme="dark"] .drawer-link i {
  color: var(--accent-light);
}

.drawer-link:hover,
.drawer-link.active {
  background-color: #EBF3FA;
  color: var(--primary);
}

[data-theme="dark"] .drawer-link:hover,
[data-theme="dark"] .drawer-link.active {
  background-color: rgba(56, 189, 248, 0.12);
  color: var(--accent-light);
}

.drawer-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 48px;
  padding-bottom: 56px;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ECFDF5;
  color: #047857;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid #A7F3D0;
  text-align: left;
}

[data-theme="dark"] .hero-badge {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.6);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.9; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.hero-title {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
  line-height: 1.18;
  color: var(--text-main);
  text-align: left;
}

.text-highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

[data-theme="dark"] .text-highlight {
  color: var(--accent-light);
}

.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
  min-height: 32px;
  text-align: left;
}

.typing-text {
  color: var(--primary-light);
}

[data-theme="dark"] .typing-text {
  color: #93C5FD;
}

.hero-desc {
  font-size: 15.5px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 30px;
  max-width: 580px;
  text-align: justify;
  text-justify: inter-word;
  word-spacing: normal;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-right: 4px;
  text-align: left;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 17px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.social-icon:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Hero Avatar & Visual Card */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-avatar-card {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.avatar-glow {
  position: absolute;
  inset: -15px;
  background: linear-gradient(135deg, rgba(31, 78, 121, 0.25) 0%, rgba(59, 130, 246, 0.25) 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  filter: blur(30px);
  z-index: 1;
  animation: morphShape 8s ease-in-out infinite alternate;
}

@keyframes morphShape {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.avatar-inner {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #FFFFFF;
  padding: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.hero-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: calc(var(--radius-lg) - 6px);
  transition: transform var(--transition-normal);
  display: block;
}

.hero-avatar-card:hover .hero-img {
  transform: scale(1.03);
}

/* Floating Badges on Hero */
.hero-floating-badge {
  position: absolute;
  z-index: 3;
  background: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatSlow 4s ease-in-out infinite alternate;
  text-align: left;
  white-space: nowrap;
}

.hero-floating-badge i {
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

[data-theme="dark"] .hero-floating-badge i {
  color: var(--accent-light);
}

.hero-floating-badge strong {
  display: block;
  font-size: 13px;
  font-family: var(--font-heading);
  color: var(--text-main);
  text-align: left;
}

.hero-floating-badge span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-align: left;
}

.badge-gpa {
  top: -15px;
  left: -20px;
}

.badge-tech {
  bottom: -15px;
  right: -20px;
  animation-delay: 2s;
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   2. TENTANG SAYA
   ========================================================================== */
.about-content-wrapper {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.about-heading {
  font-size: clamp(20px, 3vw, 26px);
  margin-bottom: 18px;
  color: var(--text-main);
  line-height: 1.35;
  text-align: left;
}

.about-text {
  font-size: 15.5px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 18px;
  text-align: justify;
  text-justify: inter-word;
  word-spacing: normal;
}

.info-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
  padding: 24px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.info-meta-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: #EBF3FA;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid #D1E3F5;
}

[data-theme="dark"] .info-icon {
  background-color: rgba(56, 189, 248, 0.12);
  color: var(--accent-light);
  border-color: rgba(56, 189, 248, 0.25);
}

.meta-label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 2px;
  text-align: left;
}

.meta-value {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
}

/* --- Certifications Subsection in About Me --- */
.certifications-block {
  margin: 28px 0 32px 0;
}

.certifications-title {
  font-size: 17px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.certifications-title i {
  color: var(--primary);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cert-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #CBD5E1;
}

.cert-img-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #F1F5F9;
  border: 1px solid var(--border-color);
  aspect-ratio: 16 / 10;
  width: 100%;
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-normal);
  display: block;
}

.cert-card:hover .cert-img {
  transform: scale(1.04);
}

.cert-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  backdrop-filter: blur(2px);
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

.cert-zoom-btn {
  background-color: #FFFFFF;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
  transform: translateY(6px);
  transition: transform var(--transition-fast);
  white-space: nowrap;
}

.cert-card:hover .cert-zoom-btn {
  transform: translateY(0);
}

.cert-info {
  padding-top: 12px;
  padding-left: 2px;
  padding-right: 2px;
  text-align: left;
}

.cert-name {
  font-size: 15px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
  line-height: 1.35;
  text-align: left;
}

.cert-issuer {
  display: block;
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.4;
  text-align: left;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

/* ==========================================================================
   3. KEMAMPUAN / SKILLS
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.skill-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #CBD5E1;
}

.skill-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  text-align: left;
}

.skill-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.laravel-icon { background-color: #FEE2E2; color: #DC2626; border-color: #FECACA; }
.php-icon { background-color: #EDE9FE; color: #7C3AED; border-color: #DDD6FE; }
.mysql-icon { background-color: #E0F2FE; color: #0284C7; border-color: #BAE6FD; }
.html-icon { background-color: #FFEDD5; color: #EA580C; border-color: #FED7AA; }
.js-icon { background-color: #FEF9C3; color: #CA8A04; border-color: #FEF08A; }
.office-icon { background-color: #DCFCE7; color: #16A34A; border-color: #BBF7D0; }
.ai-icon { background-color: #F3E8FF; color: #9333EA; border-color: #E9D5FF; }

[data-theme="dark"] .laravel-icon { background-color: rgba(239, 68, 68, 0.2); color: #F87171; }
[data-theme="dark"] .php-icon { background-color: rgba(124, 58, 237, 0.2); color: #A78BFA; }
[data-theme="dark"] .mysql-icon { background-color: rgba(2, 132, 199, 0.2); color: #38BDF8; }
[data-theme="dark"] .html-icon { background-color: rgba(234, 88, 12, 0.2); color: #FB923C; }
[data-theme="dark"] .js-icon { background-color: rgba(202, 138, 4, 0.2); color: #FDE047; }
[data-theme="dark"] .office-icon { background-color: rgba(22, 163, 74, 0.2); color: #4ADE80; }
[data-theme="dark"] .ai-icon { background-color: rgba(147, 51, 234, 0.2); color: #C084FC; }

.skill-name {
  font-size: 17px;
  margin-bottom: 3px;
  color: var(--text-main);
  text-align: left;
}

.skill-badge {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  text-align: left;
}

.skill-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 0;
  flex: 1;
  text-align: justify;
  text-justify: inter-word;
  word-spacing: normal;
}

.skill-progress-wrap {
  margin-top: auto;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-align: left;
}

.progress-val {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
}

[data-theme="dark"] .progress-val {
  color: var(--accent-light);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .progress-fill {
  background: linear-gradient(90deg, #2563EB 0%, #38BDF8 100%);
}

.progress-fill.animated {
  width: var(--target-width);
}

/* ==========================================================================
   4. PROYEK PERKULIAHAN
   ========================================================================== */
.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #CBD5E1;
}

.project-img-wrap {
  position: relative;
  overflow: hidden;
  background-color: #F1F5F9;
  border-bottom: 1px solid var(--border-color);
  aspect-ratio: 16 / 10;
  width: 100%;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  display: block;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.card-top-decoration {
  padding: 20px 24px 0 24px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card-body {
  padding: 20px 24px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-icon-header {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #EBF3FA;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  border: 1px solid #D1E3F5;
  flex-shrink: 0;
}

[data-theme="dark"] .project-icon-header {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-light);
  border-color: rgba(56, 189, 248, 0.25);
}

.project-title {
  font-size: 19px;
  margin-bottom: 12px;
  line-height: 1.35;
  color: var(--text-main);
  text-align: left;
}

.project-desc {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 20px;
  flex: 1;
  text-align: justify;
  text-justify: inter-word;
  word-spacing: normal;
}

.tech-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-tag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  background-color: #F1F5F9;
  color: var(--text-body);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  text-align: left;
  white-space: nowrap;
}

.project-card-footer {
  padding: 14px 24px;
  background-color: #F8FAFC;
  border-top: 1px solid var(--border-color);
}

.project-achievement {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #B45309;
  text-align: left;
}

[data-theme="dark"] .project-achievement {
  color: #FCD34D;
}

/* ==========================================================================
   5. PROYEK WEB YANG SUDAH DIKERJAKAN
   ========================================================================== */
.featured-web-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
}

.web-project-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.web-project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #CBD5E1;
}

/* Browser Mockup Window Header */
.web-project-preview {
  background-color: #F8FAFC;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.browser-mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background-color: #EDF2F7;
  border-bottom: 1px solid var(--border-color);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.browser-dot.red { background-color: #EF4444; }
.browser-dot.yellow { background-color: #F59E0B; }
.browser-dot.green { background-color: #10B981; }

.browser-address {
  margin-left: 10px;
  font-family: monospace;
  font-size: 11px;
  color: var(--text-muted);
  background-color: #FFFFFF;
  padding: 3px 12px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 65px);
  border: 1px solid var(--border-color);
  text-align: left;
}

.web-preview-body {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: #F1F5F9;
}

.web-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.web-project-card:hover .web-project-img {
  transform: scale(1.05);
}

.web-project-details {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.web-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.web-project-title {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.35;
  color: var(--text-main);
  text-align: left;
}

.web-project-desc {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 20px;
  flex: 1;
  text-align: justify;
  text-justify: inter-word;
  word-spacing: normal;
}

.web-action-btns {
  margin-top: 20px;
}

/* ==========================================================================
   6. PENGALAMAN KERJA (TIMELINE VERTICAL)
   ========================================================================== */
.timeline-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(31, 78, 121, 0.2) 100%);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 76px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 2.5px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 0 6px var(--bg-body);
  z-index: 2;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.timeline-item:hover .timeline-dot {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: scale(1.12);
}

.timeline-card {
  background-color: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  text-align: left;
}

.timeline-tag {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: #EBF3FA;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  border: 1px solid #D1E3F5;
  text-align: left;
}

.timeline-role {
  font-size: 18px;
  margin-bottom: 2px;
  color: var(--text-main);
  text-align: left;
}

.timeline-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
}

.timeline-company i {
  color: var(--primary);
  margin-right: 4px;
}

.timeline-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: #F1F5F9;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.timeline-desc {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 14px;
  text-align: justify;
  text-justify: inter-word;
  word-spacing: normal;
}

.timeline-points {
  padding-left: 20px;
  list-style: disc;
}

.timeline-points li {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 8px;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  word-spacing: normal;
}

.timeline-points li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   7. KONTAK SAYA
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: start;
}

.contact-info-panel {
  background-color: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-info-title {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-main);
  text-align: left;
}

.contact-info-desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 24px;
  text-align: justify;
  text-justify: inter-word;
  word-spacing: normal;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: left;
}

.contact-card:not(.static-card):hover {
  border-color: var(--primary);
  transform: translateX(4px);
  background-color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.email-bg { background-color: #FEE2E2; color: #DC2626; border-color: #FECACA; }
.wa-bg { background-color: #DCFCE7; color: #16A34A; border-color: #BBF7D0; }
.status-bg { background-color: #E0F2FE; color: #0284C7; border-color: #BAE6FD; }

.contact-card-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.card-label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-align: left;
}

.card-val {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  font-family: var(--font-heading);
  word-break: break-word;
  text-align: left;
}

.card-hint {
  display: block;
  font-size: 12px;
  color: var(--primary);
  margin-top: 2px;
  font-weight: 600;
  text-align: left;
}

.contact-cv-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #EBF3FA;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--primary);
  text-align: left;
}

.contact-cv-box strong {
  font-size: 14px;
  display: block;
  color: var(--text-main);
  text-align: left;
}

.contact-cv-box p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: left;
}

/* Contact Form */
.contact-form-panel {
  background-color: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--text-main);
  text-align: left;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
  text-align: left;
}

.required {
  color: #EF4444;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-light);
  font-size: 15px;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.textarea-wrap .input-icon {
  top: 16px;
}

.form-control {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background-color: #F8FAFC;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-main);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  background-color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.15);
}

.form-control:focus + .input-icon,
.input-wrap:focus-within .input-icon {
  color: var(--primary);
}

.form-error {
  display: block;
  font-size: 12px;
  color: #EF4444;
  margin-top: 4px;
  min-height: 16px;
  font-weight: 500;
  text-align: left;
}

.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.3s ease;
  text-align: left;
}

.form-feedback.success {
  background-color: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.form-feedback.hidden {
  display: none;
}

/* ==========================================================================
   MODAL DETAIL PROYEK
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title-wrap {
  text-align: left;
}

.modal-title-wrap h3 {
  font-size: 19px;
  margin-top: 6px;
  color: var(--text-main);
  text-align: left;
}

.modal-close-btn {
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background-color: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
}

.modal-body {
  padding: 22px 26px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-preview-img-wrap {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background-color: #F1F5F9;
}

.modal-preview-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.modal-highlight-box {
  background-color: #EBF3FA;
  border: 1px solid #D1E3F5;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--text-main);
  font-size: 14px;
}

.modal-highlight-box i {
  color: var(--primary);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.modal-highlight-box div {
  text-align: left;
}

.modal-highlight-box p {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;
  margin-top: 4px;
}

.modal-body h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text-main);
  text-align: left;
}

.modal-feature-list {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 18px;
}

.modal-feature-list li {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 8px;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}

.modal-tech-stack {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-family: var(--font-heading);
  text-align: left;
}

.modal-footer {
  padding: 16px 26px;
  background-color: #F8FAFC;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   CERTIFICATE LIGHTBOX MODAL
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.lightbox-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform var(--transition-normal);
}

.lightbox-backdrop.active .lightbox-container {
  transform: scale(1);
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background-color: #EF4444;
  border-color: #EF4444;
  transform: scale(1.1);
}

.lightbox-content {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  max-height: 85vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.lightbox-img {
  max-height: 75vh;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.lightbox-caption {
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  background-color: #F8FAFC;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.footer {
  background-color: #F8FAFC;
  color: var(--text-body);
  padding-top: 64px;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  text-align: left;
}

.footer-logo strong {
  color: var(--primary);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
  text-align: left;
}

.footer-nav h4,
.footer-contact h4 {
  color: var(--text-main);
  font-size: 16px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
  text-align: left;
}

.footer-nav h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
  text-align: left;
}

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

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 12px;
  text-align: left;
}

.footer-contact a {
  color: var(--text-body);
  font-weight: 500;
}

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

.footer-contact i {
  color: var(--primary);
  width: 16px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  background-color: #F1F5F9;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-inner strong {
  color: var(--text-main);
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   FLOATING SCROLL TO TOP
   ========================================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 14px rgba(31, 78, 121, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(31, 78, 121, 0.45);
}

/* ==========================================================================
   SCROLL ANIMATIONS (Fade In Up)
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.appear {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

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

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & MEDIA QUERIES
   ========================================================================== */

/* --- Tablet / Medium Screen (max-width: 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --header-height: 68px;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .nav-menu {
    gap: 18px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    order: 1;
  }

  .hero-image-wrapper {
    order: 2;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title,
  .hero-subtitle {
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    text-justify: inter-word;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-social-links {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* --- Mobile / Tablet Portabel (max-width: 768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .section-tag {
    font-size: 13.5px;
    padding: 7px 18px;
  }

  /* Navbar Mobile */
  .nav-menu {
    display: none;
  }

  .menu-toggle-btn {
    display: flex;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 36px;
    padding-bottom: 44px;
    min-height: auto;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 17px;
    min-height: auto;
  }

  .hero-avatar-card {
    max-width: 290px;
  }

  .badge-gpa {
    top: -10px;
    left: -8px;
    padding: 8px 12px;
  }

  .badge-tech {
    bottom: -10px;
    right: -8px;
    padding: 8px 12px;
  }

  /* Tentang Saya & Info Grid */
  .info-meta-grid {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 14px;
  }

  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Skills & Projects */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-web-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .web-preview-body {
    height: 200px;
  }

  /* Timeline Pengalaman */
  .timeline-track {
    left: 20px;
  }

  .timeline-item {
    padding-left: 56px;
    margin-bottom: 32px;
  }

  .timeline-dot {
    left: 2px;
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .timeline-card {
    padding: 18px 20px;
  }

  /* Contact */
  .contact-info-panel,
  .contact-form-panel {
    padding: 24px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 36px;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Scroll To Top */
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

/* --- Mobile HP Standar & Kecil (max-width: 480px) --- */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-tag {
    font-size: 13px;
    padding: 6px 16px;
    letter-spacing: 1px;
  }

  /* Navbar */
  .nav-logo {
    font-size: 16px;
    gap: 8px;
  }

  .logo-badge {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .nav-actions {
    gap: 8px;
  }

  .theme-toggle-btn,
  .menu-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  /* Hero */
  .hero-section {
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .hero-badge {
    font-size: 11.5px;
    padding: 5px 12px;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .hero-title {
    font-size: 27px;
    line-height: 1.22;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 22px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-buttons .btn {
    width: 100%;
    min-height: 46px;
    font-size: 14px;
  }

  .hero-social-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .social-icon {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .hero-avatar-card {
    max-width: 250px;
    margin-top: 10px;
  }

  .badge-gpa {
    top: -8px;
    left: -4px;
    padding: 6px 10px;
    gap: 8px;
  }

  .badge-gpa i {
    font-size: 16px;
  }

  .badge-gpa strong {
    font-size: 11.5px;
  }

  .badge-gpa span {
    font-size: 10px;
  }

  .badge-tech {
    bottom: -8px;
    right: -4px;
    padding: 6px 10px;
    gap: 8px;
  }

  .badge-tech i {
    font-size: 16px;
  }

  .badge-tech strong {
    font-size: 11.5px;
  }

  .badge-tech span {
    font-size: 10px;
  }

  /* Tentang Saya */
  .about-heading {
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .about-text {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 14px;
  }

  .info-meta-grid {
    padding: 16px;
    gap: 12px;
    margin: 20px 0;
  }

  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .meta-value {
    font-size: 14px;
  }

  .cert-card {
    padding: 10px;
  }

  .cert-name {
    font-size: 14px;
  }

  .cert-issuer {
    font-size: 12px;
  }

  .about-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .about-actions .btn {
    width: 100%;
    min-height: 46px;
  }

  /* Skills */
  .skill-card {
    padding: 18px 16px;
  }

  .skill-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .skill-name {
    font-size: 15.5px;
  }

  .skill-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  /* Proyek Perkuliahan */
  .card-top-decoration {
    padding: 16px 16px 0 16px;
  }

  .project-card-body {
    padding: 16px;
  }

  .project-icon-header {
    width: 42px;
    height: 42px;
    font-size: 19px;
    margin-bottom: 12px;
  }

  .project-title {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .project-desc {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 16px;
  }

  .project-card-footer {
    padding: 12px 16px;
  }

  /* Proyek Web */
  .browser-mockup-header {
    padding: 8px 12px;
  }

  .browser-address {
    font-size: 10px;
    padding: 2px 8px;
  }

  .web-preview-body {
    height: 180px;
  }

  .web-project-details {
    padding: 18px 16px;
  }

  .web-project-title {
    font-size: 17.5px;
    margin-bottom: 10px;
  }

  .web-project-desc {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 16px;
  }

  .web-action-btns .btn {
    width: 100%;
    min-height: 46px;
  }

  /* Timeline Pengalaman */
  .timeline-track {
    left: 14px;
    width: 2px;
  }

  .timeline-item {
    padding-left: 42px;
    margin-bottom: 24px;
  }

  .timeline-dot {
    left: 0;
    width: 30px;
    height: 30px;
    font-size: 12px;
    box-shadow: 0 0 0 4px var(--bg-body);
  }

  .timeline-card {
    padding: 16px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 4px;
  }

  .timeline-role {
    font-size: 16px;
  }

  .timeline-company {
    font-size: 13.5px;
  }

  .timeline-date {
    font-size: 11.5px;
    padding: 2px 8px;
    margin-top: 4px;
  }

  .timeline-desc {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 12px;
  }

  .timeline-points li {
    font-size: 13.5px;
    line-height: 1.68;
    margin-bottom: 6px;
  }

  /* Kontak */
  .contact-info-panel,
  .contact-form-panel {
    padding: 18px 16px;
  }

  .contact-info-title,
  .form-title {
    font-size: 19px;
    margin-bottom: 10px;
  }

  .contact-info-desc {
    font-size: 14.5px;
    line-height: 1.75;
    margin-bottom: 18px;
  }

  .contact-card {
    padding: 12px;
    gap: 12px;
  }

  .contact-card-icon {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .card-val {
    font-size: 13.5px;
  }

  .contact-cv-box {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    text-align: center;
  }

  .contact-cv-box p {
    text-align: center;
  }

  .contact-cv-box .btn {
    width: 100%;
    min-height: 44px;
  }

  /* Form controls (16px avoids mobile auto-zoom) */
  .form-control {
    font-size: 16px;
    padding: 11px 14px 11px 40px;
  }

  .form-control + .input-icon,
  .input-wrap .input-icon {
    left: 14px;
    font-size: 14px;
  }

  /* Modals */
  .modal-card {
    max-width: 96vw;
    border-radius: 14px;
  }

  .modal-header {
    padding: 16px 18px;
  }

  .modal-title-wrap h3 {
    font-size: 17px;
  }

  .modal-body {
    padding: 16px 18px;
  }

  .modal-highlight-box {
    padding: 12px;
    font-size: 13.5px;
    gap: 10px;
  }

  .modal-feature-list li {
    font-size: 13.5px;
  }

  .modal-footer {
    padding: 14px 18px;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .modal-footer .btn {
    width: 100%;
    min-height: 44px;
  }

  .lightbox-container {
    max-width: 96vw;
  }

  .lightbox-close-btn {
    top: -42px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* --- Ultra-Small Mobile (max-width: 360px) --- */
@media (max-width: 360px) {
  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-avatar-card {
    max-width: 220px;
  }

  .badge-gpa,
  .badge-tech {
    font-size: 10px;
    padding: 4px 8px;
  }

  .badge-gpa i,
  .badge-tech i {
    font-size: 13px;
  }
}
