body {
  /* Tumpukan Font Native Sistem (Sangat Cepat & Tajam) */
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, 'Lucida Grande', Arial, Ubuntu, Cantarell, 'Fira Sans', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cloak {
  display: none !important;
}

/* Matikan animasi fade bawaan browser untuk View Transition */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
:root.dark::view-transition-new(root) { z-index: 9999; }
:root.dark::view-transition-old(root) { z-index: 1; }
:root:not(.dark)::view-transition-old(root) { z-index: 9999; }
:root:not(.dark)::view-transition-new(root) { z-index: 1; }

/* Efek Mac Dock untuk Footer */
@media (hover: hover) and (pointer: fine) {
  .footer-nav-btn:not(.active-nav):hover {
    transform: scale(1.25) translateY(-6px);
    color: #2563eb;
  }
  .dark .footer-nav-btn:not(.active-nav):hover {
    color: #60a5fa;
  }
}

@keyframes pop-bounce {
  0% { transform: scale(1) translateY(0); }
  40% { transform: scale(1.25) translateY(-6px); }
  100% { transform: scale(1) translateY(0); }
}

.animate-pop {
  animation: pop-bounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.footer-nav-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ================================================================= */
/* MAC DOCK ANIMATIONS & BOTTOM SHEET                                */
/* ================================================================= */

/* 1. Efek membesar HANYA untuk kursor Laptop (Hover) */
@media (hover: hover) and (pointer: fine) {
  .footer-nav-btn:not(.active-nav):hover {
    transform: scale(1.25) translateY(-6px);
    color: #2563eb; 
  }
  .dark .footer-nav-btn:not(.active-nav):hover {
    color: #60a5fa; 
  }
}

/* 2. Keyframe Kedutan (Pop) saat diklik */
@keyframes pop-bounce {
  0% { transform: scale(1) translateY(0); }
  40% { transform: scale(1.25) translateY(-6px); }
  100% { transform: scale(1) translateY(0); }
}

.animate-pop {
  animation: pop-bounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Matikan delay tap 300ms di mobile */
.footer-nav-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ================================================================= */
/* SPLASH SCREEN STYLES (SOFT EDGE AMBIENT GLOW - GEMINI STYLE)      */
/* ================================================================= */
#splash-screen {
  position: fixed; 
  inset: 0; 
  z-index: 9999;
  background-color: #ffffff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, 'Lucida Grande', Arial, Ubuntu, Cantarell, 'Fira Sans', sans-serif;
  
  overflow: hidden;
}
.dark #splash-screen {
  background-color: #0f172a;
}
#splash-screen.hide-splash { 
  opacity: 0; 
  visibility: hidden; 
  pointer-events: none; 
}

.edge-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at 50% 120%, rgba(162, 218, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(circle at 0% 100%, rgba(178, 222, 255, 0.5) 0%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(circle at 100% 100%, rgba(178, 222, 255, 0.5) 0%, rgba(255, 255, 255, 0) 50%);
  animation: ambientBreathe 5s ease-in-out infinite alternate;
}

.splash-content {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.splash-logo {
  height: 120px; object-fit: contain; margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite, fadeIn 1s ease-out forwards;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.04));
}
.splash-text-main { 
  font-size: 1.75rem; font-weight: 800; color: #1e293b; 
  margin: 0 0 0.5rem 0; opacity: 0; 
  animation: fadeUp 0.8s ease-out 0.3s forwards; letter-spacing: -0.5px; 
}
.dark .splash-text-main { color: #f8fafc; }

.splash-text-sub { 
  font-size: 1.05rem; font-weight: 500; color: #64748b; 
  margin: 0; opacity: 0; 
  animation: fadeUp 0.8s ease-out 0.5s forwards; 
}
.dark .splash-text-sub { color: #94a3b8; }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ambientBreathe { 
  0% { opacity: 0.7; transform: scale(1); } 
  100% { opacity: 1; transform: scale(1.05); } 
}