/* ==========================================================================
   DukItan Modern Design System (2026)
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Color Palette */
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.82);
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.25);
  
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-light: rgba(226, 232, 240, 0.8);
  --border-focus: rgba(37, 99, 235, 0.4);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 40px -10px rgba(37, 99, 235, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --radius-squircle: 22.5%;
}

/* Base Overrides */
body {
  font-family: var(--font-sans) !important;
  color: var(--text-body) !important;
  background-color: var(--bg-main) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  letter-spacing: -0.025em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover, a:focus {
  color: var(--primary-hover);
  text-decoration: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

#top.top-bar-modern,
#top {
  background: #0f172a !important;
  color: #94a3b8 !important;
  padding: 8px 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative !important;
  z-index: 1001 !important;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
}

.top-bar-contact {
  display: flex;
  align-items: center;
}

.topbar-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1 !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.topbar-email-link i {
  color: var(--primary);
  font-size: 13px;
}

.topbar-email-link:hover {
  color: #ffffff !important;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8 !important;
  font-size: 13px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background: var(--primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.top-bar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
}

.top-lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.lang-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #94a3b8 !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.lang-pill:hover {
  color: #ffffff !important;
}

.lang-pill.active {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

@media (max-width: 767px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
  }
}

header {
  position: relative !important;
  z-index: 2000 !important;
}

.navbar-affixed-top, 
.navbar-affixed-top.affix-top {
  position: relative !important;
  top: 0 !important;
  margin-top: 0 !important;
  z-index: 2000 !important;
}

.navbar-affixed-top, .navbar-affixed, #navbar {
  position: relative !important;
  top: 0 !important;
  z-index: 2000 !important;
  background: var(--bg-glass) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.navbar-affixed-top.affix {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2000 !important;
}

/* Nav Scrolled Actions (All Socials + Language Switcher)
   HIDDEN when at the top of the page;
   APPEARS with a smooth animation ONLY when scrolled down. */
.nav-scrolled-actions {
  display: none !important;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Scrolled state: Reveal all socials and language toggle in sticky navbar */
.navbar-affixed-top.affix .nav-scrolled-actions,
.navbar-affixed-top.is-scrolled .nav-scrolled-actions,
body.page-scrolled .nav-scrolled-actions {
  display: flex !important;
  align-items: center !important;
  opacity: 1 !important;
  transform: translateX(0) !important;
  pointer-events: auto !important;
  padding: 18px 0 18px 20px !important;
  gap: 12px !important;
}

.nav-scrolled-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--text-muted) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13.5px !important;
  padding: 0 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}

.nav-icon-btn:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  border-color: transparent !important;
}

.nav-icon-btn.nav-icon-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
}

.nav-icon-btn.nav-icon-facebook:hover {
  background: #1877f2 !important;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.nav-icon-btn.nav-icon-twitter:hover {
  background: #0ea5e9 !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.nav-icon-btn.nav-icon-email:hover {
  background: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.nav-scrolled-divider {
  width: 1px;
  height: 20px;
  background: var(--border-light);
}

.nav-lang-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-full);
  padding: 3px;
}

.nav-lang-pill {
  padding: 4px 11px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  border-radius: var(--radius-full) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  display: inline-block !important;
}

.nav-lang-pill:hover {
  color: var(--primary) !important;
}

.nav-lang-pill.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

@media (max-width: 767px) {
  .nav-scrolled-actions,
  .navbar-affixed-top.affix .nav-scrolled-actions,
  .navbar-affixed-top.is-scrolled .nav-scrolled-actions,
  body.page-scrolled .nav-scrolled-actions {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    padding: 14px 15px !important;
    border-top: 1px solid var(--border-light);
    margin-top: 8px;
    justify-content: space-between;
  }
}

.navbar-default {
  background: transparent !important;
  border: none !important;
  margin-bottom: 0 !important;
}

.navbar-brand {
  padding: 12px 15px !important;
  height: auto !important;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  max-height: 44px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.04);
}

.navbar-nav > li > a {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  padding: 24px 16px !important;
  text-transform: none !important;
  transition: all 0.2s ease !important;
  position: relative;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
  color: var(--primary) !important;
  background: transparent !important;
}

.navbar-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.navbar-nav > li:hover > a::after,
.navbar-nav > li.active > a::after {
  transform: scaleX(1);
}

.navbar-nav > li.dropdown {
  position: relative;
}

/* Ensure navbar-collapse never clips dropdowns on desktop */
@media (min-width: 768px) {
  .navbar-affixed-top .navbar-collapse,
  .navbar-collapse,
  .navbar-default {
    overflow: visible !important;
    max-height: none !important;
  }

  /* 1. Default (hidden) state */
  .navbar-nav > li.dropdown > .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    pointer-events: none;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    min-width: 280px !important;
    margin-top: 0 !important;
  }

  /* 2. Open / Hover state MUST come AFTER and has !important */
  .navbar-nav > li.dropdown:hover > .dropdown-menu,
  .navbar-nav > li.dropdown.open > .dropdown-menu,
  .navbar-nav > li.dropdown:focus-within > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
}

/* Mobile dropdown support */
@media (max-width: 767px) {
  .navbar-nav > li.dropdown.open > .dropdown-menu {
    display: block !important;
    position: static !important;
    float: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    padding-left: 15px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    max-height: none !important;
  }
}

.dropdown-menu {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  padding: 8px !important;
  background: #ffffff !important;
  z-index: 999999 !important;
  max-height: calc(100vh - 100px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

.dropdown-menu::-webkit-scrollbar {
  width: 5px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Highlight and divider for the first item (Todos / All) */
.dropdown-menu > li:first-child {
  border-bottom: 1px solid var(--border-light) !important;
  margin-bottom: 6px !important;
  padding-bottom: 4px !important;
}

.dropdown-menu > li:first-child > a {
  font-weight: 700 !important;
  color: var(--primary) !important;
}

.dropdown-menu > li {
  list-style: none !important;
  border: none !important;
  margin: 2px 0 !important;
}

.dropdown-menu > li > a {
  padding: 10px 14px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
  color: var(--text-body) !important;
  transition: all 0.15s ease !important;
  display: block !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  padding-left: 18px !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-modern-section {
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-modern-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 46px !important;
  line-height: 1.18 !important;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

/* Store Badge Buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: #0f172a;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none !important;
}

.store-btn i, .store-btn svg {
  font-size: 24px;
  flex-shrink: 0;
}

.store-btn .btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.store-btn .btn-text small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.store-btn .btn-text strong {
  font-size: 14px;
  font-weight: 700;
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.3);
  background: #1e293b;
  color: #ffffff !important;
}

.store-btn.store-btn-google {
  background: #0f172a;
}

.store-btn.store-btn-google:hover {
  background: #1e293b;
}

/* Interactive Device Mockup in Hero */
.hero-device-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

/* Ambient glow behind hero device */
.hero-ambient-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(124, 58, 237, 0.12) 45%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { transform: scale(0.92) translate(-10px, -10px); opacity: 0.7; }
  100% { transform: scale(1.08) translate(10px, 10px); opacity: 1; }
}

.hero-device-frame {
  width: 290px;
  height: 580px;
  background: #0f172a;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 28px 70px -15px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
  animation: heroFloat 5s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.hero-device-frame:hover {
  transform: translateY(-12px) scale(1.01);
}

.hero-device-notch {
  width: 120px;
  height: 22px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-device-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #0f172a;
  position: relative;
}

/* Crossfading Screen Slides */
.hero-screen-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.hero-screen-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-screen-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-screen-overlay {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 90%;
  text-align: center;
}

.hero-screen-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

/* Floating App Badges around Mockup */
.floating-app-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  z-index: 3;
  animation: floatAnim 4.5s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

.floating-app-card.card-left {
  left: -20px;
  top: 18%;
  animation-delay: 0s;
}

.floating-app-card.card-right {
  right: -20px;
  bottom: 22%;
  animation-delay: 2.2s;
}

.floating-app-card img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-squircle);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.floating-app-card .app-meta h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.floating-app-card .app-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Interactive Pills Switcher below hero buttons */
.hero-showcase-pills-wrap {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.pills-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  outline: none;
}

.showcase-pill img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: cover;
}

.showcase-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.showcase-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.showcase-pill.active img {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Screenshot Preview Strip inside Flagship App Cards */
.app-card-screenshots-preview {
  display: flex;
  gap: 10px;
  margin: 16px 0 20px;
  overflow-x: auto;
  padding: 4px 0 6px;
  scrollbar-width: none;
}

.app-card-screenshots-preview::-webkit-scrollbar {
  display: none;
}

.screenshot-thumb {
  flex: 1;
  min-width: 80px;
  max-width: 130px;
  height: 155px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #0f172a;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  flex-shrink: 0;
}

.screenshot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.screenshot-thumb:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  border-color: rgba(37, 99, 235, 0.4);
}

.screenshot-thumb:hover img {
  transform: scale(1.06);
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   Flagship Apps Section
   ========================================================================== */

.section-flagship-apps {
  padding: 80px 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px !important;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

/* App Showcase Card */
.app-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: calc(100% - 30px);
  position: relative;
  overflow: hidden;
}

.app-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.25);
}

.app-card-modern:hover::before {
  opacity: 1;
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.app-icon-squircle {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-squircle);
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.16);
  flex-shrink: 0;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.app-card-modern:hover .app-icon-squircle {
  transform: scale(1.05);
}

.app-header-text {
  flex: 1;
}

.app-badge-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.app-card-title {
  font-size: 20px !important;
  margin: 0 0 4px !important;
  color: var(--text-dark);
}

.app-version-tag {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.app-card-body {
  flex: 1;
  margin-bottom: 24px;
}

.app-card-body p {
  color: var(--text-body);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.app-features-mini {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--text-body);
}

.app-features-mini li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.app-features-mini li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-emerald);
  font-weight: 700;
}

.app-card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.app-store-row {
  display: flex;
  gap: 8px;
}

.app-store-row .store-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  justify-content: center;
}

.app-store-row .store-btn i,
.app-store-row .store-btn svg {
  font-size: 18px;
}

.app-store-row .store-btn .btn-text strong {
  font-size: 12px;
}

.btn-view-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-view-details:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Metrics Banner
   ========================================================================== */

.metrics-banner {
  background: #0f172a;
  color: #ffffff;
  padding: 50px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-item {
  text-align: center;
  padding: 10px 15px;
}

.metric-number {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================================================
   App Detail Page Layout (/app/<id>/about, /screen, /policy)
   ========================================================================== */

.app-detail-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 50px 0 30px;
  border-bottom: 1px solid var(--border-light);
}

.app-detail-header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.app-detail-icon {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-squircle);
  box-shadow: var(--shadow-xl);
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.06);
}

.app-detail-info {
  flex: 1;
  min-width: 260px;
}

.app-detail-info h1 {
  font-size: 34px !important;
  margin: 0 0 6px !important;
  color: var(--text-dark);
}

.app-detail-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.app-detail-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.app-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
}

.app-tag.tag-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.app-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Modern Segmented Navigation Tabs */
.app-segmented-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 40px;
  padding-bottom: 0;
  list-style: none;
}

.app-segmented-tabs li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.app-segmented-tabs li a:hover {
  color: var(--primary);
}

.app-segmented-tabs li.active a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Screenshots Showcase Grid */
.screenshots-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.screenshot-item {
  border-radius: 28px;
  overflow: hidden;
  background: #0f172a;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.1);
}

.screenshot-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
}

/* Release notes box */
.release-notes-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 30px 0;
}

.release-notes-box h4 {
  font-size: 17px;
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
  background: #0b1120 !important;
  color: #94a3b8 !important;
  padding: 60px 0 40px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#footer h4 {
  color: #ffffff !important;
  font-size: 17px;
  margin-bottom: 20px;
}

#footer a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

#footer a:hover {
  color: #38bdf8;
}

#copyright {
  background: #070c18 !important;
  color: #64748b !important;
  padding: 24px 0 !important;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#copyright a {
  color: #94a3b8;
}

#copyright a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Section Headings & Bars
   ========================================================================== */

.bar {
  padding: 80px 0 !important;
}

.heading.text-center {
  margin-bottom: 50px !important;
}

.heading.text-center h2 {
  font-size: 36px !important;
  color: var(--text-dark) !important;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
  margin-bottom: 12px;
}

.heading.text-center h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.heading.text-center + .lead {
  font-size: 17px !important;
  color: var(--text-muted) !important;
  max-width: 650px;
  margin: 0 auto 40px !important;
  text-align: center;
}

/* Feature Boxes */
.box-simple {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  height: calc(100% - 30px);
}

.box-simple:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.25);
}

.box-simple .icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(6, 182, 212, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 26px;
  transition: all 0.3s ease;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.box-simple:hover .icon {
  transform: scale(1.1) rotate(4deg);
  background: var(--primary);
  color: #ffffff;
}

.box-simple h3 {
  font-size: 20px !important;
  margin-bottom: 12px !important;
}

.box-simple p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Testimonial Cards */
.testimonial {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-lg) !important;
  padding: 32px 28px !important;
  box-shadow: var(--shadow-md) !important;
  margin: 15px 10px !important;
  transition: all 0.3s ease;
}

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

.testimonial .text p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--text-body) !important;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial .bottom {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial .name-picture img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: 2px solid var(--primary-light);
}

.testimonial .name-picture h5 {
  margin: 0 0 2px !important;
  font-size: 15px !important;
  color: var(--text-dark) !important;
}

.testimonial .name-picture p {
  margin: 0 !important;
  font-size: 12px !important;
  color: var(--text-muted) !important;
}

/* See More Callout Section */
.background-image-fixed-2 {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  position: relative;
}

.background-image-fixed-2 h3 {
  color: #ffffff !important;
  font-size: 32px !important;
  margin-bottom: 16px;
}

.background-image-fixed-2 .lead {
  color: #cbd5e1 !important;
  max-width: 600px;
  margin: 0 auto 30px;
}

.background-image-fixed-2 .btn {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-full) !important;
  padding: 14px 34px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4) !important;
  transition: all 0.3s ease;
}

.background-image-fixed-2 .btn:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6) !important;
}

/* Responsive Utilities */
@media (max-width: 991px) {
  .hero-title {
    font-size: 34px !important;
  }
  .hero-device-wrapper {
    margin-top: 40px;
  }
  .floating-app-card {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-modern-section {
    padding: 40px 0 60px;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .store-btn {
    width: 100%;
    justify-content: center;
  }
  .app-detail-header {
    flex-direction: column;
    text-align: center;
  }
  .app-detail-actions {
    justify-content: center;
    width: 100%;
  }
}

/* ==========================================================================
   DukItan Lightbox Gallery (Ultra-Modern Glassmorphic Modal)
   ========================================================================== */

body.lightbox-open {
  overflow: hidden !important;
}

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  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;
  pointer-events: none;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px;
  box-sizing: border-box;
}

/* Lightbox Top Bar */
.lightbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 900px;
  margin: 0 auto 10px;
  width: 100%;
}

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

.lightbox-counter {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lightbox-title {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.lightbox-btn-icon:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.08);
}

/* Lightbox Stage */
.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  padding: 10px 0;
}

.lightbox-content {
  max-height: 100%;
  max-width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-wrapper {
  position: relative;
  max-height: calc(100vh - 210px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-active-img {
  max-height: calc(100vh - 210px);
  max-width: 90vw;
  width: auto;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15);
  object-fit: contain;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

/* Nav Arrows */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  outline: none;
}

.lightbox-nav-prev {
  left: 20px;
}

.lightbox-nav-next {
  right: 20px;
}

.lightbox-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
}

/* Bottom Thumbnails Ribbon */
.lightbox-thumbnails-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  max-width: 900px;
  margin: 0 auto;
  scrollbar-width: none;
}

.lightbox-thumbnails-bar::-webkit-scrollbar {
  display: none;
}

.lightbox-thumb-btn {
  width: 50px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s ease;
  flex-shrink: 0;
  outline: none;
}

.lightbox-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.lightbox-thumb-btn.active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
  transform: translateY(-3px) scale(1.05);
}

/* Screen Grid Hover Search Icon */
.screenshot-item {
  position: relative;
  cursor: zoom-in !important;
}

.screenshot-item::after {
  content: '\f00e';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.screenshot-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 767px) {
  .lightbox-nav-prev {
    left: 8px;
  }
  .lightbox-nav-next {
    right: 8px;
  }
  .lightbox-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }
  .lightbox-active-img {
    max-height: calc(100vh - 180px);
    border-radius: 16px;
  }
  .lightbox-title {
    max-width: 180px;
    font-size: 12px;
  }
}

