/* ==========================================================================
   CodeCraft Portfolio Stylesheet
   Modern Dark Glassmorphism with Neon Accents & Pop-up Transitions
   ========================================================================== */

:root {
  --bg-primary: #07080f;
  --bg-secondary: #0d0f1c;
  --bg-card: rgba(18, 20, 36, 0.72);
  --bg-card-hover: rgba(26, 29, 52, 0.85);
  --bg-glass: rgba(14, 16, 28, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.4);
  --border-cyan: rgba(56, 189, 248, 0.4);

  --accent-purple: #8b5cf6;
  --accent-purple-light: #a78bfa;
  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-pink: #ec4899;

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --glow-purple: 0 0 25px rgba(139, 92, 246, 0.35);
  --glow-blue: 0 0 25px rgba(59, 130, 246, 0.35);
  --glow-box: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'Fira Code', monospace;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  background-color: var(--bg-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Matrix Upward Rain Background Canvas (Very Back Layer, 30% Opacity) */
#matrix-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

/* Three.js Background Canvas */
#three-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#three-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Ambient Radial Glows */
.ambient-glow-1 {
  position: fixed;
  width: 650px;
  height: 650px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(59, 130, 246, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

.ambient-glow-2 {
  position: fixed;
  width: 700px;
  height: 700px;
  bottom: 10%;
  left: -200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(6, 182, 212, 0.06) 50%, transparent 70%);
  filter: blur(90px);
  z-index: 1;
  pointer-events: none;
}

/* App Container */
.app-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Pill Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
  margin-bottom: 16px;
}

.badge-pill-cyan {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: #67e8f9;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-main);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 40px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.header-nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 16px auto 32px;
  max-width: 1200px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(12, 14, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.nav-brand-logo {
  height: 38px;
  width: auto;
  display: block;
  transition: var(--transition-spring);
}

.nav-brand:hover .nav-brand-logo {
  transform: scale(1.04);
  filter: drop-shadow(0 0 12px rgba(0, 245, 255, 0.45));
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #c4b5fd;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  border-radius: 4px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-login {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-login:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.user-profile-badge {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  color: #6ee7b7;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.user-profile-badge.show {
  display: inline-flex;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 60px 0 80px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  min-height: calc(85vh - 100px);
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.tech-stack-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-stack-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.tech-icons-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-icon-item {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.tech-icon-item svg {
  width: 24px;
  height: 24px;
  transition: var(--transition);
}

.tech-icon-item:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

/* Tooltip on tech item */
.tech-icon-item::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
}

.tech-icon-item:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hero Visual / Avatar Side */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-wrapper {
  position: relative;
  width: 380px;
  height: 440px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Glowing Aura Behind Avatar */
.avatar-halo {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -10%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);
  box-shadow: 0 0 80px rgba(124, 58, 237, 0.45), 0 0 120px rgba(59, 130, 246, 0.3);
  z-index: 1;
  filter: blur(10px);
  animation: haloPulse 6s ease-in-out infinite alternate;
}

.avatar-image-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.avatar-img {
  width: 90%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 24px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
}

/* Floating Code Card */
.floating-code-card {
  position: absolute;
  bottom: 30px;
  right: -30px;
  z-index: 5;
  background: rgba(14, 17, 34, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 16px;
  font-family: var(--font-code);
  font-size: 0.78rem;
  width: 260px;
  animation: floatSlow 5s ease-in-out infinite;
}

.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-title {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.code-body {
  line-height: 1.5;
  color: #e2e8f0;
}
.code-keyword { color: #f43f5e; }
.code-var { color: #38bdf8; }
.code-prop { color: #fbbf24; }
.code-str { color: #34d399; }

/* Hand drawn arrow decoration */
.doodle-arrow {
  position: absolute;
  top: 15%;
  left: -20px;
  z-index: 4;
  opacity: 0.7;
  animation: floatSlow 4s ease-in-out infinite alternate;
}

/* ==========================================================================
   Stats & About Section
   ========================================================================== */
.about-section {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: 20px;
  transition: var(--transition-spring);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), var(--glow-purple);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Education Timeline Section (Riwayat Pendidikan)
   ========================================================================== */
.education-section {
  padding: 80px 0;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-purple) 0%, var(--accent-blue) 50%, rgba(255, 255, 255, 0.05) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 40px;
  transition: var(--transition);
}

.timeline-marker {
  position: absolute;
  left: 14px;
  top: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple-light);
  font-size: 0.85rem;
  z-index: 2;
  transition: var(--transition-spring);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.2);
  background: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.9);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  padding: 28px;
  border-radius: 20px;
  transition: var(--transition-spring);
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), var(--glow-purple);
}

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

.timeline-degree {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-school {
  font-size: 1rem;
  color: #a78bfa;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-year-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.timeline-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.achievement-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 8px;
}

/* ==========================================================================
   Skills Section (Keahlian & Skill)
   ========================================================================== */
.skills-section {
  padding: 80px 0;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}

.skill-bar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  padding: 20px 24px;
  border-radius: 18px;
  transition: var(--transition-spring);
}

.skill-bar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(139, 92, 246, 0.2);
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.skill-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.skill-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.skill-percent {
  font-family: var(--font-code);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.skill-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #38bdf8);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

/* Secondary Badges Grid */
.additional-skills {
  margin-top: 48px;
  background: rgba(14, 16, 30, 0.5);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 24px;
}

.additional-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skills-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2e8f0;
  transition: var(--transition);
}

.skill-pill:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Projects Section (Project yang Pernah Dibuat)
   ========================================================================== */
.projects-section {
  padding: 80px 0;
}

.projects-header {
  text-align: center;
  margin-bottom: 32px;
}

.projects-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-spring);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--glow-purple);
}

.project-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  background: #111322;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-badge-num {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 12, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.project-category-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.project-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
}

.project-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4b5fd;
  text-decoration: none;
  transition: var(--transition);
  margin-top: auto;
}

.project-card:hover .project-footer-link {
  color: #ffffff;
  transform: translateX(4px);
}

/* ==========================================================================
   Certificates Section (Sertifikat)
   ========================================================================== */
.certificates-section {
  padding: 80px 0;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px;
  transition: var(--transition-spring);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(56, 189, 248, 0.2);
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.cert-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cert-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
  margin-top: 4px;
}

.cert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cert-id {
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.btn-cert-preview {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a78bfa;
  font-weight: 600;
  font-size: 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cert-preview:hover {
  color: #ffffff;
}

/* ==========================================================================
   Testimonial & Contact Section
   ========================================================================== */
.contact-section {
  padding: 80px 0 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-card,
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  padding: 36px;
  border-radius: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-icon {
  font-size: 2.2rem;
  color: var(--accent-purple);
  margin-bottom: 12px;
}

.quote-text {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 24px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-purple);
}

.client-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.client-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.social-links-row {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-spring);
}

.social-icon-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-purple);
  color: #fff;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Footer */
.site-footer {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   POP-UP MODALS & ANIMATIONS
   ========================================================================== */

/* Modal Backdrop */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  padding: 20px;
}

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

/* Modal Content with Pop-up Spring */
.modal-box {
  background: rgba(15, 18, 35, 0.94);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(139, 92, 246, 0.25);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  position: relative;
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

/* Login Modal Specifics */
.login-header {
  padding: 32px 32px 16px;
  text-align: center;
}

.login-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #c4b5fd;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.login-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-form-body {
  padding: 0 32px 32px;
}

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

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

.form-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 1rem;
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.btn-login-submit {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

.demo-account-hint {
  text-align: center;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.demo-fill-btn {
  background: none;
  border: none;
  color: #a78bfa;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 4px;
}

/* Interactive Login Loading View */
.login-loading-view {
  display: none;
  padding: 48px 32px;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-loading-view.active {
  display: flex;
}

.cyber-spinner {
  width: 70px;
  height: 70px;
  position: relative;
  margin-bottom: 24px;
}

.cyber-spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent-purple);
  border-right-color: var(--accent-cyan);
  animation: spin 1s linear infinite;
}

.cyber-spinner-inner {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-bottom-color: var(--accent-pink);
  border-left-color: var(--accent-blue);
  animation: spinReverse 1.5s linear infinite;
}

.login-status-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.login-status-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.login-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.login-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #38bdf8);
  border-radius: 9999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

/* Success Checkmark in Loading view */
.login-success-checkmark {
  display: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid #10b981;
  color: #10b981;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

/* Project & Certificate Detail Modals */
.modal-box-large {
  max-width: 680px;
}

.modal-project-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.modal-project-body {
  padding: 28px;
}

/* Section Change Pop-up HUD Toast */
.section-pop-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px) scale(0.9);
  background: rgba(15, 18, 36, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(16px);
  padding: 10px 22px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.section-pop-toast.show {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

/* Slide Switcher Floating Controls */
.slide-navigator {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
  background: rgba(12, 14, 28, 0.6);
  padding: 12px 8px;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-spring);
  position: relative;
}

.slide-dot:hover,
.slide-dot.active {
  background: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple);
  transform: scale(1.4);
}

.slide-dot::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(10, 13, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.slide-dot:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Section Reveal / Pop-up Animation Classes */
.pop-reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.34, 1.45, 0.64, 1);
  transition-delay: 0s;
  will-change: opacity, transform;
}

.pop-reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
  transition-delay: 800ms !important; /* 800ms delay on scroll */
}

/* Home / Hero section opens without delay once preloader completes */
#home.pop-reveal.visible {
  transition-delay: 0s !important;
}

/* Staggered Pop-in for cards inside revealed sections */
.pop-reveal.visible .stat-card,
.pop-reveal.visible .timeline-item,
.pop-reveal.visible .skill-bar-card,
.pop-reveal.visible .project-card,
.pop-reveal.visible .cert-card,
.pop-reveal.visible .projects-empty-state {
  animation: cardPopIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.pop-reveal.visible .stat-card:nth-child(1),
.pop-reveal.visible .timeline-item:nth-child(1),
.pop-reveal.visible .project-card:nth-child(1),
.pop-reveal.visible .cert-card:nth-child(1),
.pop-reveal.visible .skill-bar-card:nth-child(1),
.pop-reveal.visible .projects-empty-state { 
  animation-delay: 800ms; /* 800ms delay */
}

.pop-reveal.visible .stat-card:nth-child(2),
.pop-reveal.visible .timeline-item:nth-child(2),
.pop-reveal.visible .project-card:nth-child(2),
.pop-reveal.visible .cert-card:nth-child(2),
.pop-reveal.visible .skill-bar-card:nth-child(2) { 
  animation-delay: 920ms; /* 800ms + 120ms */
}

.pop-reveal.visible .stat-card:nth-child(3),
.pop-reveal.visible .timeline-item:nth-child(3),
.pop-reveal.visible .project-card:nth-child(3),
.pop-reveal.visible .cert-card:nth-child(3),
.pop-reveal.visible .skill-bar-card:nth-child(3) { 
  animation-delay: 1040ms; /* 800ms + 240ms */
}

.pop-reveal.visible .stat-card:nth-child(4),
.pop-reveal.visible .timeline-item:nth-child(4),
.pop-reveal.visible .project-card:nth-child(4),
.pop-reveal.visible .cert-card:nth-child(4),
.pop-reveal.visible .skill-bar-card:nth-child(4) { 
  animation-delay: 1160ms; /* 800ms + 360ms */
}

.pop-reveal.visible .project-card:nth-child(5),
.pop-reveal.visible .cert-card:nth-child(5),
.pop-reveal.visible .skill-bar-card:nth-child(5) { 
  animation-delay: 1280ms; /* 800ms + 480ms */
}

.pop-reveal.visible .project-card:nth-child(6),
.pop-reveal.visible .cert-card:nth-child(6),
.pop-reveal.visible .skill-bar-card:nth-child(6) { 
  animation-delay: 1400ms; /* 800ms + 600ms */
}

@keyframes cardPopIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Keyframes */
@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
  100% { transform: rotate(-360deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes haloPulse {
  0% { transform: translate(-50%, -10%) scale(0.95); opacity: 0.8; }
  100% { transform: translate(-50%, -10%) scale(1.08); opacity: 1; }
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .tech-stack-wrap {
    align-items: center;
  }
  .tech-icons-row {
    justify-content: center;
  }
  .about-section {
    grid-template-columns: 1fr;
  }
  .skills-grid,
  .projects-grid,
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .slide-navigator {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-brand-logo {
    height: 32px;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .skills-grid,
  .projects-grid,
  .certificates-grid,
  .stats-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }
  .avatar-wrapper {
    width: 300px;
    height: 360px;
  }
  .floating-code-card {
    right: -10px;
    bottom: 10px;
    width: 220px;
    font-size: 0.7rem;
  }
}


/* ==========================================================================
   Interactive Animation Enhancements
   ========================================================================== */
@keyframes sectionPop {
  0% { transform: scale(0.96) translateY(20px); opacity: 0.8; }
  60% { transform: scale(1.015) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.pop-active {
  animation: sectionPop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Mobile Nav Drawer state */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 75px;
  left: 0;
  right: 0;
  background: rgba(12, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.2);
  z-index: 200;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}


/* ==========================================================================
   Language Switcher Styles
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 6px;
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  gap: 3px;
  transition: var(--transition);
}

.lang-switch:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.45);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 300;
  user-select: none;
}


/* ==========================================================================
   Cinematic Preloader Entrance Animation Styles
   ========================================================================== */
.entrance-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(ellipse at center, #0d1024 0%, #06070d 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.95s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease, visibility 0.95s;
}

/* Slide Curtain Upward with Glowing Neon Edge */
.entrance-preloader.loaded {
  transform: translateY(-100%);
  opacity: 0.98;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 30px 80px rgba(0, 245, 255, 0.45), 0 10px 40px rgba(139, 92, 246, 0.4);
}

/* Central Stage Pop-Up Zoom as Preloader Exits */
.entrance-preloader.loaded .preloader-center {
  animation: preloaderPopOut 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes preloaderPopOut {
  0% { transform: scale(1) translateY(0); opacity: 1; }
  50% { transform: scale(1.12) translateY(-20px); opacity: 0.85; }
  100% { transform: scale(1.22) translateY(-50px); opacity: 0; }
}

/* Website content entrance pop-up animation */
.entrance-content-pop {
  animation: entranceAppPop 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes entranceAppPop {
  0% {
    transform: scale(0.93) translateY(35px);
    opacity: 0;
    filter: blur(8px);
  }
  60% {
    transform: scale(1.015) translateY(-5px);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

.preloader-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Ambient Pulsing Glow Orb */
.preloader-energy-orb {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.22) 0%, rgba(139, 92, 246, 0.16) 45%, transparent 70%);
  filter: blur(45px);
  animation: preloaderOrbBreathe 3s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

/* Cosmic Orbital Rings (Inspired by Planetary Ring Video Dynamics) */
.preloader-ring {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.preloader-ring-1 {
  width: 380px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top: 2.5px solid rgba(0, 245, 255, 0.85);
  border-bottom: 2px solid rgba(139, 92, 246, 0.65);
  transform: rotate(-22deg);
  animation: preloaderOrbitRing 8s linear infinite;
  filter: drop-shadow(0 0 12px rgba(0, 245, 255, 0.7));
}

.preloader-ring-2 {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  border: 1.5px dashed rgba(168, 85, 247, 0.3);
  animation: preloaderOrbitRingReverse 14s linear infinite;
}

/* Preloader Logo Graphic */
.preloader-logo-wrapper {
  position: relative;
  z-index: 5;
  margin-bottom: 8px;
}

.preloader-svg-logo {
  width: 320px;
  max-width: 86vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(0, 245, 255, 0.3));
}

/* Logo Stroke Animations */
.anim-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.anim-u-path {
  animation: preloaderDrawStroke 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

.anim-base-path {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: preloaderDrawStroke 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.85s;
}

.anim-arrow-shaft {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: preloaderDrawStroke 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.35s;
}

.anim-arrow-head {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: preloaderDrawStroke 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.75s;
}

.anim-singularity-dot {
  opacity: 0;
  transform-origin: 73px 8px;
  animation: preloaderDotPop 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 2.2s;
}

/* Typography Reveal Animations */
.anim-text-name {
  opacity: 0;
  animation: preloaderTextName 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards 2.6s;
}

.anim-text-sub {
  opacity: 0;
  animation: preloaderTextSub 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards 3.0s;
}

/* Progress Tracker */
.preloader-progress-wrap {
  width: 280px;
  max-width: 80vw;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preloader-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.preloader-percent {
  color: #38bdf8;
  font-weight: 700;
}

.preloader-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00f5ff, #8b5cf6, #ec4899);
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.8);
  transition: width 0.08s ease-out;
}

/* Skip Button */
.preloader-skip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  margin-top: 22px;
  transition: var(--transition);
}

.preloader-skip-btn span {
  font-family: var(--font-code);
  color: #a78bfa;
}

.preloader-skip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.4);
}

/* Keyframes for Preloader */
@keyframes preloaderOrbBreathe {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes preloaderOrbitRing {
  0% { transform: rotate(-22deg) rotateZ(0deg); }
  100% { transform: rotate(-22deg) rotateZ(360deg); }
}

@keyframes preloaderOrbitRingReverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes preloaderDrawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes preloaderDotPop {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.6); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes preloaderTextName {
  0% { opacity: 0; letter-spacing: 10px; transform: translateY(6px); }
  100% { opacity: 1; letter-spacing: 4px; transform: translateY(0); }
}

@keyframes preloaderTextSub {
  0% { opacity: 0; letter-spacing: 9px; transform: translateY(4px); }
  100% { opacity: 1; letter-spacing: 5.5px; transform: translateY(0); }
}


/* ==========================================================================
   Projects Empty State Styles
   ========================================================================== */
.projects-empty-state {
  background: var(--bg-card);
  border: 1px dashed rgba(139, 92, 246, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 64px 28px;
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(139, 92, 246, 0.1);
  transition: var(--transition-spring);
}

.projects-empty-state:hover {
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 245, 255, 0.2);
  transform: translateY(-4px);
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
  margin-bottom: 20px;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
  animation: floatSlow 4s ease-in-out infinite;
}

.empty-state-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.empty-state-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.6;
}
