/* =====================================================
   SIMTARU Kota Jambi - Enterprise Frontend Styles
   ===================================================== */

/* ----- CSS Variables ----- */
:root {
  --primary: #0a4275;
  --primary-rgb: 10, 66, 117;
  --secondary: #10599c;
  --accent: #fbc02d;
  --accent-rgb: 251, 192, 45;
  --navy: #041f3d;
  --bg: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 25px 30px -5px rgba(0, 0, 0, 0.1), 0 15px 15px -5px rgba(0, 0, 0, 0.05);
  
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Base Styles ----- */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.font-outfit {
  font-family: 'Outfit', sans-serif;
}

.text-navy { color: var(--navy); }
.bg-navy { background-color: var(--navy); }
.tracking-wide { letter-spacing: 0.05em; }

/* ----- Navbar & Glassmorphism ----- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 1.25rem 0;
  transition: var(--transition);
}

.site-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 31, 61, 0.9) 0%, rgba(4, 31, 61, 0) 100%);
  z-index: -1;
  transition: var(--transition);
}

.site-nav.scrolled {
  padding: 0.75rem 0;
  background: rgba(4, 31, 61, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.site-nav.scrolled::before {
  opacity: 0;
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-nav .navlinks {
  display: flex;
  align-items: center;
}

.site-nav .navlinks .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.site-nav .navlinks .nav-link:hover {
  color: var(--accent);
}

/* ----- Custom Dropdown ----- */
.custom-dropdown {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 300px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 1000;
}

.custom-dropdown .dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: normal;
}

.custom-dropdown .dropdown-item:hover {
  background: var(--bg);
  transform: translateX(5px);
}

.custom-dropdown .dropdown-item strong {
  color: var(--navy);
}

.rotate-180 {
  transform: rotate(180deg);
}

/* ----- Hamburger Menu ----- */
.hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .site-nav .navlinks {
    position: absolute;
    top: calc(100% + 10px);
    left: 1rem;
    right: 1rem;
    background: rgba(4, 31, 61, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    display: none;
    align-items: stretch !important;
    gap: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .site-nav .navlinks.show {
    display: flex !important;
    animation: fadeInDown 0.3s ease forwards;
  }

  .site-nav .navlinks .nav-link {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
  }
  
  .site-nav .navlinks .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .custom-dropdown {
    position: static;
    transform: none;
    min-width: 100%;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
  }
  
  .custom-dropdown .dropdown-item {
    padding: 0.5rem 0.75rem;
  }

  .custom-dropdown .dropdown-item strong {
    color: #fff;
    font-size: 0.95rem;
  }
  .custom-dropdown .dropdown-item .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.8rem;
  }

  .auth-buttons {
    margin-top: 1rem !important;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Hero Modern ----- */
.hero-modern {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: -10%;
  background: url('wk.JPG') center/cover no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 31, 61, 0.85) 0%, rgba(10, 66, 117, 0.7) 100%);
  z-index: 2;
}

.custom-shape-divider-bottom-1689234850 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 3;
}

.custom-shape-divider-bottom-1689234850 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 90px;
}

.custom-shape-divider-bottom-1689234850 .shape-fill {
  fill: #f8fafc; /* Matches var(--bg) */
}

/* ----- UI Components ----- */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-hover-lift {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.btn-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover) !important;
}

.icon-square {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.icon-box-lg {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.icon-circle-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* ----- Bento Grid System ----- */
.bento-card {
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover) !important;
}

.bento-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.bento-card:hover .bento-bg {
  transform: scale(1.05);
}

.bento-action i {
  transition: transform 0.3s ease;
}

.bento-card:hover .bento-action i {
  transform: translateX(5px);
}

/* ----- Pulse Dot ----- */
.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #dc3545;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 rgba(220, 53, 69, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* ----- Floating Action Buttons (FAB) ----- */
.fab-group {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1020;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-decoration: none;
}

.fab:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* ----- Back to Top ----- */
.back-to-top {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1010;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--primary);
}

/* ----- Footer Mega ----- */
.site-footer {
  background: #041f3d url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  padding-top: 5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.btn-glass:hover {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.border-white-10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
