/* Expressa Custom Styles & Animations - Modern Clean Aesthetic with Balanced Dark Mode */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* Light Mode Defaults */
:root {
  --primary-blue: #0066FF;
  --primary-hover: #0052CC;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  --dot-color: #CBD5E1;
  --navbar-bg: rgba(255, 255, 255, 0.92);
  --navbar-border: #E2E8F0;
}

/* Dark Mode Tokens (Comfortable Slate Navy, not pitch black) */
html.dark {
  --text-dark: #F8FAFC;
  --text-muted: #94A3B8;
  --bg-main: #131B2E;        /* Balanced deep slate navy */
  --bg-subtle: #182238;      /* Slightly elevated section bg */
  --bg-card: #1E293B;        /* Clean card bg */
  --border-color: #334155;    /* Soft slate border */
  --dot-color: rgba(255, 255, 255, 0.12);
  --navbar-bg: rgba(19, 27, 46, 0.92);
  --navbar-border: #334155;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  min-height: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Handwritten script font for accents */
.font-handwriting {
  font-family: 'Caveat', cursive, sans-serif;
}

/* Section Spacing (Comfortable, Breathable) */
.section-layer {
  position: relative;
  width: 100%;
  min-height: auto;
  padding-top: 80px;
  padding-bottom: 80px;
  box-sizing: border-box;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 768px) {
  .section-layer {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

/* Dot Pattern Accents */
.dot-pattern {
  background-image: radial-gradient(var(--dot-color) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}

.dot-pattern-dense {
  background-image: radial-gradient(var(--dot-color) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}

/* Minimalist Clean Cards */
.clean-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .clean-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.clean-card:hover {
  transform: translateY(-3px);
  border-color: #3B82F6;
  box-shadow: 0 12px 24px -6px rgba(0, 102, 255, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.05);
}

/* Framework Step Cards */
.framework-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.framework-step-card:hover {
  border-color: #0066FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 102, 255, 0.15);
}

html.dark .framework-step-card:hover {
  border-color: #3B82F6;
  box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.25);
}

.framework-step-num {
  font-family: monospace;
  font-weight: 800;
  font-size: 11px;
  color: #0066FF;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.25s ease;
}

html.dark .framework-step-num {
  color: #93C5FD;
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(59, 130, 246, 0.35);
}

/* Scroll Reveal Animations */
.reveal-init,
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.is-visible,
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.delay-1, .delay-100 { transition-delay: 100ms; }
.delay-2, .delay-200 { transition-delay: 200ms; }
.delay-3, .delay-300 { transition-delay: 300ms; }
.delay-4, .delay-400 { transition-delay: 400ms; }

/* Subtle Glows & Blends */
.hero-image-blend {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-vignette-mask {
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 50% 50%, black 75%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 88% at 50% 50%, black 75%, transparent 100%);
}

/* Logo Text Style */
.nav-logo-text {
  color: #0066FF !important;
}

html.dark .nav-logo-text {
  color: #3B82F6 !important;
}

/* ========================================== */
/* Dynamic Adaptive Navbar                    */
/* ========================================== */
#main-navbar {
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. At Top ("Mentok di Atas" - Over Dark Hero) */
#main-navbar.navbar-at-top {
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
  background-color: transparent !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#main-navbar.navbar-at-top .nav-logo-text {
  color: #60A5FA !important;
}

#main-navbar.navbar-at-top .nav-subtitle {
  color: #94A3B8 !important; /* slate-400 */
}

#main-navbar.navbar-at-top .nav-anchor {
  color: rgba(255, 255, 255, 0.85) !important;
}

#main-navbar.navbar-at-top .nav-anchor:hover {
  color: #FFFFFF !important;
}

#main-navbar.navbar-at-top .nav-anchor.active,
#main-navbar.navbar-at-top .nav-anchor.text-blue-600 {
  color: #60A5FA !important;
}

#main-navbar.navbar-at-top .nav-badge-new {
  background-color: rgba(59, 130, 246, 0.25) !important;
  color: #93C5FD !important;
  border-color: rgba(96, 165, 250, 0.35) !important;
}

#main-navbar.navbar-at-top #theme-toggle-btn {
  color: #CBD5E1 !important;
}

#main-navbar.navbar-at-top #theme-toggle-btn:hover {
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* 2. When Scrolled down in LIGHT MODE (Becomes White) */
html:not(.dark) #main-navbar.navbar-scrolled {
  padding-top: 0.9rem !important;
  padding-bottom: 0.9rem !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: #E2E8F0 !important;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.07), 0 2px 6px -2px rgba(0, 0, 0, 0.04) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html:not(.dark) #main-navbar.navbar-scrolled .nav-logo-text {
  color: #0066FF !important;
}

html:not(.dark) #main-navbar.navbar-scrolled .nav-subtitle {
  color: #64748B !important; /* slate-500 */
}

html:not(.dark) #main-navbar.navbar-scrolled .nav-anchor {
  color: #475569 !important; /* slate-600 */
}

html:not(.dark) #main-navbar.navbar-scrolled .nav-anchor:hover {
  color: #0066FF !important;
}

html:not(.dark) #main-navbar.navbar-scrolled .nav-anchor.active,
html:not(.dark) #main-navbar.navbar-scrolled .nav-anchor.text-blue-600 {
  color: #0066FF !important;
}

html:not(.dark) #main-navbar.navbar-scrolled .nav-badge-new {
  background-color: #EFF6FF !important;
  color: #0066FF !important;
  border-color: #BFDBFE !important;
}

html:not(.dark) #main-navbar.navbar-scrolled #theme-toggle-btn {
  color: #475569 !important;
}

html:not(.dark) #main-navbar.navbar-scrolled #theme-toggle-btn:hover {
  color: #0F172A !important;
  background-color: #F1F5F9 !important;
}

/* 3. When Scrolled down in DARK MODE (Remains Dark Slate Navy, never white) */
html.dark #main-navbar.navbar-scrolled {
  padding-top: 0.9rem !important;
  padding-bottom: 0.9rem !important;
  background-color: rgba(19, 27, 46, 0.94) !important;
  border-bottom-color: #334155 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.dark #main-navbar.navbar-scrolled .nav-logo-text {
  color: #3B82F6 !important;
}

html.dark #main-navbar.navbar-scrolled .nav-subtitle {
  color: #94A3B8 !important;
}

html.dark #main-navbar.navbar-scrolled .nav-anchor {
  color: #CBD5E1 !important;
}

html.dark #main-navbar.navbar-scrolled .nav-anchor:hover {
  color: #60A5FA !important;
}

html.dark #main-navbar.navbar-scrolled .nav-anchor.active,
html.dark #main-navbar.navbar-scrolled .nav-anchor.text-blue-600 {
  color: #60A5FA !important;
}

html.dark #main-navbar.navbar-scrolled .nav-badge-new {
  background-color: rgba(59, 130, 246, 0.25) !important;
  color: #93C5FD !important;
  border-color: rgba(96, 165, 250, 0.35) !important;
}

html.dark #main-navbar.navbar-scrolled #theme-toggle-btn {
  color: #CBD5E1 !important;
}

html.dark #main-navbar.navbar-scrolled #theme-toggle-btn:hover {
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Floating Overlap Container & Shift */
.overlap-shift-up {
  position: relative;
  z-index: 20;
  margin-top: -52px;
}

@media (min-width: 768px) {
  .overlap-shift-up {
    margin-top: -68px;
  }
}

/* Tab Switcher Button */
.service-tab-btn {
  transition: all 0.25s ease;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
}

.service-tab-btn.active {
  background-color: #0066FF;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}

/* Floating Badge Animation */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.animate-float-slow {
  animation: floatSlow 5s ease-in-out infinite;
}

/* Subtle curved shape divider */
.curved-bottom {
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}

@media (min-width: 768px) {
  .curved-bottom {
    border-bottom-left-radius: 3.5rem;
    border-bottom-right-radius: 3.5rem;
  }
}

/* ========================================== */
/* Infinite Marquee Ticker (Client Logos)     */
/* ========================================== */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}

.marquee-track:hover,
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-fade-edges {
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

/* ========================================== */
/* Framework Connected Sequence Pipeline       */
/* ========================================== */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pipeline-track {
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}
.pipeline-track:active {
  cursor: grabbing;
}

.framework-card {
  border: none !important;
  outline: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.framework-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.08) !important;
}

.step-wrapper {
  position: relative;
  transition: z-index 0.15s ease;
}

.step-wrapper.active,
.step-wrapper:hover {
  z-index: 35;
}

/* Step Popover (Small Popup attached directly to Card) */
.step-popover {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.96);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.step-wrapper.active .step-popover,
.step-wrapper:hover .step-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.step-wrapper.active .framework-card {
  border: none !important;
  outline: none !important;
  background-color: #FFFFFF !important;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 36px -6px rgba(37, 99, 235, 0.22) !important;
}

html.dark .step-wrapper.active .framework-card {
  border: none !important;
  outline: none !important;
  background-color: #1E293B !important;
  box-shadow: 0 16px 36px -6px rgba(59, 130, 246, 0.3) !important;
}

/* ─────────────────────────────────────────────────────────────
   THEME 2: CINEMATIC IMMERSIVE HERO (EXPRESSA)
   ───────────────────────────────────────────────────────────── */
.hero-cinematic-expressa {
  position: relative;
  width: 100%;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.hero-cinematic-expressa__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-cinematic-expressa__video,
.hero-cinematic-expressa__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-cinematic-expressa__yt-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-cinematic-expressa__yt-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.hero-cinematic-expressa__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 19, 43, 0.68) 0%, rgba(11, 19, 43, 0.88) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Carousel Slider in Cinematic Hero */
.hero-carousel-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
}

.hero-carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.hero-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-carousel-dot.active {
  width: 28px;
  background: #0066FF;
  border-color: #60A5FA;
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.6);
}

.hero-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0;
}

.hero-cinematic-expressa:hover .hero-carousel-nav {
  opacity: 1;
}

.hero-carousel-nav:hover {
  background: #0066FF;
  border-color: #0066FF;
  transform: translateY(-50%) scale(1.08);
}

.hero-carousel-nav--prev {
  left: 20px;
}

.hero-carousel-nav--next {
  right: 20px;
}


