/* ==========================================================================
   PORTFOLIO SISWA SMK TITL - MODERN DEVELOPER STYLESHEET
   Aesthetic: Dark Charcoal & Neon Lime Green Developer Portfolio
   Features: 
   - Anti-Gravity Floating Glowing Background Blobs (Continuous Random Float)
   - Liquid Glass Navbar (Strong Glassmorphism with Backdrop Blur)
   - Neon Lime Accents & Glow States
   - 3D Interactive Lanyard ID Card System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Dark Charcoal & Matte Black Palette */
  --bg-main: #111111;
  --bg-surface: #161616;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --bg-glass: rgba(17, 17, 17, 0.60);
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-lime: rgba(204, 255, 0, 0.22);
  --border-lime-hover: rgba(204, 255, 0, 0.60);
  
  /* Neon Lime Green Accents */
  --lime-neon: #ccff00;
  --lime-bright: #a3e635;
  --lime-light: #d9f99d;
  --lime-dark: #65a30d;
  --lime-glow: rgba(204, 255, 0, 0.25);
  --lime-glow-strong: rgba(204, 255, 0, 0.45);
  
  /* Text */
  --text-main: #f8fafc;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
}

html, body {
  height: 100vh;
  overflow: hidden;
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Page View Container (No-Scroll Multi-Page System) */
.page-view {
  display: none;
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100vh;
  margin-top: 0;
  padding-top: 24px;
  padding-bottom: 130px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.page-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Custom Scrollbar - Dark Charcoal & Neon Lime */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #111111;
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
  background: #ccff00;
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

/* Subtle Technical Grid Background */
.bg-tech-grid {
  background-size: 44px 44px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

/* ==========================================================================
   ANTI-GRAVITY GLOWING BACKGROUND (FLOATING NEON LIME BLOBS)
   ========================================================================== */
.antigravity-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.antigravity-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.22;
  will-change: transform;
  pointer-events: none;
}

.blob-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #ccff00 0%, #84cc16 40%, transparent 70%);
  top: -100px;
  left: 20%;
  animation: float-antigravity-1 22s ease-in-out infinite alternate;
}

.blob-2 {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, #a3e635 0%, #4d7c0f 45%, transparent 75%);
  top: 35%;
  right: -100px;
  animation: float-antigravity-2 28s ease-in-out infinite alternate;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ccff00 0%, #15803d 50%, transparent 70%);
  bottom: 2%;
  left: 22%;
  animation: float-antigravity-3 25s ease-in-out infinite alternate;
}

.blob-4 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #bef264 0%, #65a30d 40%, transparent 70%);
  top: 8%;
  right: 15%;
  animation: float-antigravity-4 32s ease-in-out infinite alternate;
}

@keyframes float-antigravity-1 {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(140px, 120px) scale(1.16); }
  66% { transform: translate(-80px, 200px) scale(0.92); }
  100% { transform: translate(70px, 60px) scale(1.08); }
}

@keyframes float-antigravity-2 {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(-180px, -130px) scale(1.14); }
  66% { transform: translate(-230px, 150px) scale(0.88); }
  100% { transform: translate(-90px, -70px) scale(1.05); }
}

@keyframes float-antigravity-3 {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(160px, -170px) scale(0.92); }
  66% { transform: translate(-140px, -90px) scale(1.16); }
  100% { transform: translate(80px, -130px) scale(1.02); }
}

@keyframes float-antigravity-4 {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(180px, 110px) scale(1.12); }
  66% { transform: translate(90px, -130px) scale(0.86); }
  100% { transform: translate(140px, -40px) scale(1.06); }
}

/* ==========================================================================
   SCROLL TEST LIQUID GLASS LIGHT SOURCE (CENTRAL NEON GREEN GLOW)
   ========================================================================== */
.scroll-test-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(650px, 90vw);
  height: min(650px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.45) 0%, rgba(163, 230, 53, 0.3) 40%, rgba(101, 163, 13, 0.15) 60%, transparent 75%);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
  animation: pulse-liquid-glow 6s ease-in-out infinite alternate;
}

@keyframes pulse-liquid-glow {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.75; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* ==========================================================================
   MODERN BOTTOM FLOATING DOCK (WITH ACTIVE SLIDING PILL CAPSULE)
   ========================================================================== */
.floating-dock-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 50px;
  max-width: calc(100vw - 32px);

  /* Heavy Liquid Glass */
  background: rgba(15, 15, 15, 0.45);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(204, 255, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(204, 255, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.15);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  user-select: none;
}

/* Glass Specular Top Highlight Reflection */
.floating-dock-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 30%, rgba(204, 255, 0, 0.5) 50%, rgba(255, 255, 255, 0.35) 70%, transparent 100%);
  border-radius: 50px;
  pointer-events: none;
}

/* The Sliding Active Background Capsule Pill */
.dock-active-pill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.16) 0%, rgba(204, 255, 0, 0.08) 100%);
  border: 1px solid rgba(204, 255, 0, 0.45);
  box-shadow: 0 0 16px rgba(204, 255, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), 
              width 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), 
              opacity 0.2s ease;
}

/* Dock Navigation Items */
.dock-item {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 40px;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-font-smoothing: antialiased;
}

.dock-item .dock-icon {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  transition: transform 0.25s ease, color 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
}

.dock-item .dock-label {
  position: relative;
  z-index: 2;
  transition: color 0.2s ease;
}

.dock-item:hover {
  color: #ffffff;
}
.dock-item:hover .dock-icon {
  color: #ffffff;
  transform: translateY(-1px) scale(1.08);
}

.dock-item.active {
  color: #ccff00;
  text-shadow: 0 0 12px rgba(204, 255, 0, 0.5);
}
.dock-item.active .dock-icon {
  color: #ccff00;
  filter: drop-shadow(0 0 6px rgba(204, 255, 0, 0.7));
  transform: scale(1.1);
}

/* Highlighted CTA style for KONTAK item */
.dock-item-cta {
  font-weight: 700;
}

/* Tactile Click Feedback */
.dock-item:active {
  transform: scale(0.92) !important;
}

/* Responsive Dock adjustments for mobile screens (HP: Hanya tampilkan icon, sembunyikan teks) */
@media (max-width: 767px) {
  .floating-dock-nav {
    bottom: 16px;
    padding: 6px 8px;
    gap: 4px;
    max-width: calc(100vw - 20px);
    border-radius: 50px;
  }

  .dock-active-pill {
    top: 5px;
    bottom: 5px;
    border-radius: 40px;
  }

  .dock-item {
    padding: 9px 12px;
    gap: 0;
    border-radius: 40px;
  }

  .dock-item .dock-icon {
    width: 18px;
    height: 18px;
  }

  /* Sembunyikan tulisan di HP */
  .dock-item .dock-label {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .floating-dock-nav {
    bottom: 12px;
    padding: 5px 6px;
    gap: 2px;
    max-width: calc(100vw - 12px);
  }

  .dock-active-pill {
    top: 4px;
    bottom: 4px;
  }

  .dock-item {
    padding: 8px 10px;
  }

  .dock-item .dock-icon {
    width: 17px;
    height: 17px;
  }
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(204, 255, 0, 0.08);
  border-color: rgba(204, 255, 0, 0.25);
  color: #ccff00;
}

/* Card Hover Lift & Neon Lime Glow */
.card-hover {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.25s ease, 
              box-shadow 0.25s ease, 
              background-color 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(204, 255, 0, 0.50);
  box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.9), 0 0 24px -3px rgba(204, 255, 0, 0.22);
  background-color: #1a1a1a;
}

/* Subtle Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Pulse Indicator for Status Badge */
@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 rgba(204, 255, 0, 0); }
  50% { opacity: 0.6; transform: scale(1.25); box-shadow: 0 0 12px rgba(204, 255, 0, 0.8); }
}
.pulse-dot {
  animation: status-pulse 2s infinite ease-in-out;
}

/* Skill Progress Bar Animation */
.skill-bar-fill {
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Lightbox Modal for Project Zoom */
.lightbox-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-modal.open .lightbox-content {
  transform: scale(1);
}

/* Toast Notification */
#toast {
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   3D LANYARD ID CARD STYLING (Dark Charcoal & Neon Lime)
   ========================================================================== */

.lanyard-container {
  perspective: 1200px;
  position: relative;
}

/* Lanyard Ribbon Strap */
.lanyard-strap {
  width: 38px;
  height: 65px;
  background: linear-gradient(180deg, #1c1c1c 0%, #111111 50%, #0d0d0d 100%);
  border: 1px solid rgba(204, 255, 0, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  position: relative;
  margin: 0 auto;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}

.lanyard-strap::after {
  content: '⚡ TITL • SMKN 1 PUNGGING';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 6.5px;
  font-weight: bold;
  color: #ccff00;
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 0.9;
}

/* Metallic Hook / Clip */
.lanyard-hook {
  width: 24px;
  height: 22px;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 50%, #475569 100%);
  border-radius: 4px;
  margin: -2px auto 0;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  z-index: 10;
}

.lanyard-ring {
  width: 14px;
  height: 14px;
  border: 3px solid #cbd5e1;
  border-radius: 50%;
  margin: -6px auto 0;
  position: relative;
  z-index: 9;
}

/* 3D Card Wrapper */
.id-card-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  min-height: 480px;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: grab;
  user-select: none;
}

.id-card-3d-wrapper:active {
  cursor: grabbing;
}

/* Card Flipper Inner */
.id-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.id-card-3d-wrapper.flipped .id-card-inner {
  transform: rotateY(180deg);
}

/* Front & Back Faces */
.id-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.id-card-back {
  transform: rotateY(180deg);
}

/* Transparent PVC Badge Holder Rim with Neon Lime Glow */
.badge-pouch-rim {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 2px solid rgba(204, 255, 0, 0.28);
  background: rgba(22, 22, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9),
              0 0 25px -4px rgba(204, 255, 0, 0.25),
              inset 0 1px 1px rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

/* Slot Hole at the top of the Badge Holder */
.badge-slot-hole {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 9px;
  background: #111111;
  border: 1.5px solid rgba(204, 255, 0, 0.3);
  border-radius: 5px;
  z-index: 20;
}

/* Dynamic Hologram Glare Reflection Layer */
.id-card-glare {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.22) 0%, rgba(204, 255, 0, 0.15) 35%, transparent 65%);
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 15;
  transition: opacity 0.3s ease;
  opacity: 0.85;
}

