@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* Core Colors: Emerald Green Theme */
  --primary: #10b981;
  --primary-dark: #047857;
  --primary-light: #34d399;
  --primary-glow: rgba(16, 185, 129, 0.4);

  --secondary: #0f172a;
  --secondary-light: #1e293b;

  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --background: #f1f5f9;

  --text-main: #0f172a;
  --text-muted: #64748b;

  /* Borders & Shadows */
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.15);

  /* Layout */
  --nav-height: 80px;
}

html, body {
  overflow-x: hidden !important;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
  font-family: 'Poppins', sans-serif;
}

/* Glassmorphism Utilities */
.glass-nav {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
}

/* Base Overrides for Bootstrap Components */
.btn {
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline-light {
  border-width: 2px;
  backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary-dark);
}

.card {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.card-hover-zoom:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-float) !important;
}

.card-hover-zoom .card-img-top {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Nav Links */
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

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

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

/* Hero Section Awwwards Premium */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: white;
  padding-top: calc(var(--nav-height) + 2rem);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 39, 41, 0.8) 50%, rgba(4, 120, 87, 0.7) 100%);
  z-index: 1;
}

/* Dekoras animasi abstrak untuk efek elegan layaknya Awwwards */
.hero-abstract-shape {
  position: absolute;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
  animation: float-slow 15s ease-in-out infinite alternate;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  border-radius: 50%;
  top: -10%;
  right: -5%;
}

.shape-2 {
  width: 600px;
  height: 500px;
  background: #1e3a8a;
  /* deep blue */
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  bottom: -20%;
  left: -10%;
  animation-delay: -5s;
}

@keyframes float-slow {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) scale(1.1) rotate(15deg);
  }

  100% {
    transform: translateY(20px) scale(0.9) rotate(-10deg);
  }
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.premium-glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-radius: 24px;
}

/* Stat Item layout */
.stat-box {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.stat-box:hover::before {
  opacity: 1;
}

.stat-box:hover {
  transform: translateY(-8px);
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 10px 30px -10px var(--primary-glow);
}

/* Bento Grid */
.bento-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
}

.badge {
  padding: 0.5em 1em;
  border-radius: 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.bg-primary {
  background-color: var(--primary) !important;
}

/* Custom Inputs & Selects */
.form-control,
.form-select {
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.7rem 1.2rem;
  transition: all 0.2s;
  background-color: var(--surface-hover);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px var(--primary-glow);
  background-color: var(--surface);
}

/* Floating Sidebar for Catalog */
.floating-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  z-index: 10;
}

/* Social Icons */
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.social-icon-btn:hover {
  background: var(--primary);
  transform: translateY(-3px) scale(1.1);
  color: white;
  box-shadow: var(--shadow-glow);
}

/* Animations */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate-in {
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(30px) scale(0.98);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, transform, filter;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

/* Rich Text */
.rich-text-content ul,
.rich-text-content ol {
  padding-left: 2rem;
}

/* Turbo Transitions */
@keyframes turbo-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes turbo-fade-out {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

::view-transition-old(root) {
  animation: 300ms cubic-bezier(0.4, 0, 0.2, 1) both turbo-fade-out;
}

::view-transition-new(root) {
  animation: 300ms cubic-bezier(0.4, 0, 0.2, 1) both turbo-fade-in;
}

/* Footer Link Effects */
.footer-link {
  display: inline-flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.footer-link:hover {
  color: var(--primary-light) !important;
  transform: translateX(8px);
}

.footer-link i {
  transition: transform 0.3s ease;
}

.footer-link:hover i {
  transform: scale(1.15);
  color: var(--primary-light);
}

/* Detail Page Custom Design */
.detail-box {
  background: var(--surface-hover);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid var(--primary);
}

.detail-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
}

/* =============== RESPONSIVITAS MOBILE =============== */
@media (max-width: 991.98px) {
  /* Navbar Mobile Menu */
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Override fixed glass nav padding for mobile */
  .glass-nav {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  /* Katalog Floating Sidebar to Static Stacking */
  .floating-sidebar {
    position: relative;
    top: 0;
    z-index: 1;
    margin-bottom: 2rem;
  }
  
  /* Compact Stat Box on Mobile */
  .stat-box {
    padding: 1.5rem !important;
  }
  .stat-box .display-5 {
    font-size: 2.2rem;
  }
  
  /* Override body padding for mobile nav bar */
  body {
    padding-bottom: 75px !important;
  }
  
  /* Hide standard header elements on mobile app mode */
  .navbar-toggler, .navbar-collapse {
    display: none !important;
  }

  /* Custom Floating Mobile App-Style Bottom Nav */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
  }
  
  .mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 20%;
    padding-top: 5px;
  }
  
  .mobile-bottom-nav-item i {
    margin-bottom: 4px;
    font-size: 1.25rem;
    transition: transform 0.2s;
  }
  
  .mobile-bottom-nav-item.active {
    color: var(--primary);
  }
  
  .mobile-bottom-nav-item.active i {
    transform: translateY(-2px);
    /* Adding small glow indicator conceptually */
    filter: drop-shadow(0px 2px 4px var(--primary-glow));
  }
  
  /* Hero Section padding for small devices */
  .hero-section {
    padding-bottom: 3rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1.display-5 {
    font-size: 2.1rem;
  }
  .hero-abstract-shape.shape-1 {
    width: 250px;
    height: 250px;
  }
  .hero-abstract-shape.shape-2 {
    width: 300px;
    height: 250px;
  }
}