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

/* iOS Purple-Blue Gradient Palette & Minimalist Tokens */
/* iOS Purple-Blue Gradient Palette & Minimalist Tokens */
:root {
  --primary: #5E5CE6;
  --primary-light: #5AC8FA;
  --primary-gradient: linear-gradient(135deg, #5E5CE6 0%, #5AC8FA 100%);
  --bg-color: #F2F2F7;
  --text-main: #1C1C1E;
  --text-muted: #8E8E93;
  --card-bg: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 16px 40px rgba(94, 92, 230, 0.2);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Legibility over smoke background */
h1,
h2,
h3,
h4 {
  /* text-shadow removed for clean iOS look */
}

p,
span,
li,
a {
  text-shadow: none;
}

.btn,
.btn *,
.badge,
.portfolio-badge,
.portfolio-overlay *,
.hero-carousel * {
  text-shadow: none !important;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons Minimalist */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(94, 92, 230, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(94, 92, 230, 0.4);
  filter: brightness(1.1);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
}

/* iOS 2080 Floating Navbar */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), inset 0 0 10px rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 16px;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.bottom-nav.nav-hidden {
  transform: translate(-50%, 150%);
  opacity: 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #8E8E93;
  text-decoration: none;
  font-size: 11px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 4px 8px;
  border-radius: 12px;
  gap: 4px;
}

.nav-item i {
  font-size: 26px;
  transition: transform 0.3s, filter 0.3s;
}

.nav-item span {
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.3s;
}

.nav-item:hover {
  background: rgba(94, 92, 230, 0.05);
  color: #5E5CE6;
}

.nav-item:hover i {
  transform: translateY(-3px) scale(1.05);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active i {
  color: var(--primary);
  filter: drop-shadow(0 4px 8px rgba(94, 92, 230, 0.5));
  transform: scale(1.1);
}

.nav-item.active span {
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chat-btn-center {
  position: relative;
}

.chat-icon-wrapper {
  background: var(--primary-gradient);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.chat-icon-wrapper i {
  margin: 0;
}

.chat-btn-center:hover .chat-icon-wrapper {
  transform: scale(1.1) translateY(-10px) !important;
  box-shadow: 0 10px 30px rgba(94, 92, 230, 0.8) !important;
}

/* Hero Section Minimalist */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 24px 40px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero p {
  font-size: clamp(16px, 4vw, 20px);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* HERO CAROUSEL */
.hero-carousel-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  height: 400px;
  background: #eee;
}

.hero-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(94, 92, 230, 0.8) 0%, rgba(0, 0, 0, 0) 80%);
  z-index: 2;
}

.carousel-content {
  position: relative;
  z-index: 3;
  color: white;
  text-align: left;
}

.carousel-content h3 {
  font-size: 32px;
  margin-bottom: 8px;
  font-weight: 500;
}

.carousel-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.carousel-indicators .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .hero-carousel-wrapper {
    height: 300px;
  }

  .carousel-slide {
    padding: 24px;
  }

  .carousel-content h3 {
    font-size: 24px;
  }
}

/* Labs / Keunggulan Grid */
.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: var(--text-main);
}

.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding-bottom: 40px;
}

.lab-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--glass-border);
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2;
}

.lab-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(94, 92, 230, 0.3);
}

.lab-card i {
  font-size: 40px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  display: block;
  font-weight: 300;
  text-shadow: none;
}

.lab-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  text-shadow: none;
}

.lab-card p {
  font-size: 15px;
  color: var(--text-muted);
  text-shadow: none;
}

/* HORIZONTAL MARQUEE PROCESS LOOP */
.process-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.process-marquee {
  display: flex;
  width: fit-content;
  animation: scrollMarquee 30s linear infinite;
}

.process-marquee:hover {
  animation-play-state: paused;
}

.process-group {
  display: flex;
  gap: 24px;
  padding-right: 24px;
  flex-shrink: 0;
}

.process-card {
  width: 320px;
  background: var(--bg-color);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
  white-space: normal;
  text-align: left;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.process-card:hover {
  transform: scale(1.02);
  border-color: var(--primary);
}

.process-number {
  font-size: 48px;
  font-weight: 300;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
  font-family: monospace;
}

.process-card h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.process-card p {
  font-size: 14px;
  color: var(--text-muted);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Interactive Visual Demo */
.interactive-demo {
  padding: 80px 24px;
  text-align: center;
}

.demo-window {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.demo-header {
  background: #F2F2F7;
  padding: 16px 20px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #E5E5EA;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #FF3B30;
}

.dot.yellow {
  background: #FFCC00;
}

.dot.green {
  background: #34C759;
}

.demo-body {
  padding: 40px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skeleton-block {
  background: #F2F2F7;
  border-radius: 12px;
  animation: pulse 2s infinite ease-in-out;
}

.header-skel {
  height: 48px;
  width: 60%;
  margin: 0 auto;
}

.skeleton-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.text-skel {
  height: 160px;
  flex: 2;
  min-width: 200px;
}

.img-skel {
  height: 160px;
  flex: 1;
  min-width: 200px;
  border-radius: 12px;
  opacity: 0.8;
}

.card-skel {
  height: 200px;
  flex: 1;
  min-width: 150px;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

/* Segment Control Minimalist */
.ios-segment-control {
  display: flex;
  background: #F2F2F7;
  border-radius: 16px;
  padding: 4px;
  max-width: 450px;
  margin: 0 auto 40px;
}

.segment-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.segment-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-soft);
}

/* 3x5 Grid for Services (Landscape 2:1) Minimalist */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  padding: 20px 0 80px;
}

.service-filter-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 240px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

@media (hover: hover) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--glass-border);
  display: flex;
}

/* Front Face */
.flip-card-front {
  flex-direction: row !important;
  align-items: stretch;
  overflow: hidden;
}

.card-img {
  width: 40%;
  height: 100%;
  object-fit: cover;
  background: #eee;
}

.card-content {
  width: 60%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-content h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text-main);
  line-height: 1.3;
}

.price-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.price-normal {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 12px;
}

.price-discount {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  font-size: 18px;
}

.promo-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-gradient);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  z-index: 10;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-soft);
}

/* Back Face */
.flip-card-back {
  flex-direction: column;
  transform: rotateY(180deg);
  background: #ffffff;
  padding: 24px;
  justify-content: center;
}

.flip-card-back h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-main);
  text-align: center;
}

.flip-card-back ul {
  list-style: none;
  flex-grow: 1;
  margin-bottom: 20px;
}

.flip-card-back ul li {
  margin-bottom: 10px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
}

.flip-card-back ul li i {
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.flip-card-back .btn {
  padding: 12px;
  font-size: 14px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(94, 92, 230, 0.3);
}

/* Owner Profile & About iOS Menu */
.owner-profile {
  text-align: center;
  margin: 40px 0;
}

.owner-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: var(--shadow-hover);
  border: 4px solid white;
}

.owner-profile h2 {
  font-size: 26px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.owner-profile p {
  color: var(--text-muted);
  font-size: 15px;
}

.ios-menu-list {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto 40px;
  max-width: 500px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--glass-border);
}

.ios-menu-item {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.2s ease;
}

.ios-menu-item:last-child {
  border-bottom: none;
}

.ios-menu-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.ios-menu-item .menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  margin-right: 16px;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ios-menu-item span {
  flex: 1;
  font-weight: 500;
  font-size: 16px;
}

.ios-menu-item .chevron {
  color: var(--text-muted);
  font-size: 18px;
}

.playstore-banner {
  text-align: center;
  margin-bottom: 80px;
}

.playstore-banner p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.playstore-banner img {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.playstore-banner img:hover {
  transform: scale(1.05);
}

/* iOS Popups */
.ios-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.ios-popup-content {
  background: var(--bg-color);
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.ios-popup-content h3 {
  margin-bottom: 16px;
  font-size: 22px;
  color: var(--text-main);
}

.ios-popup-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Splash & Offline */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary-light);
  background: var(--primary-gradient);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  transition: opacity 0.8s ease, visibility 0.8s;
}

#splash-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2;
}

.splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.typewriter h1 {
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  border-right: 2px solid #fff;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 2px;
  font-size: clamp(24px, 5vw, 40px);
  animation: typing 2s steps(30, end), blink-caret .75s step-end infinite;
}

.typewriter p {
  opacity: 0;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  animation: fadeInSplash 1s ease forwards;
  animation-delay: 2.2s;
}

#offline-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #050505;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden;
}

.eyes {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.eye {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.pupil {
  width: 15px;
  height: 15px;
  background: black;
  border-radius: 50%;
  animation: lookAround 4s infinite;
}

.flashlight {
  position: absolute;
  width: 200vh;
  height: 200vh;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.95) 15%, #050505 100%);
  animation: flashlightMove 6s infinite alternate ease-in-out;
  z-index: 1;
  pointer-events: none;
}

footer {
  text-align: center;
  padding: 40px 24px 100px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Top Header & Search */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(250, 250, 252, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
}

.header-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-main);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lang-toggle select {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  color: var(--text-main);
}

.search-toggle {
  font-size: 22px;
  cursor: pointer;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.search-toggle:hover {
  color: var(--primary);
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
}

.search-box {
  background: var(--bg-color);
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  animation: popIn 0.3s ease;
  border: 1px solid var(--glass-border);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 18px;
  outline: none;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
}

.search-box i {
  font-size: 24px;
  color: var(--text-muted);
}

/* Problem vs Solution Section */
.problem-solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  padding: 40px 0;
}

.ps-card {
  padding: 40px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2;
}

.ps-card.problem {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.ps-card.solution {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 252, 0.95) 100%);
  box-shadow: var(--shadow-hover);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.ps-card.solution::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  margin: -2px;
  border-radius: inherit;
  background: var(--primary-gradient);
}

.ps-card h3 {
  font-size: 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: none;
}

.ps-card.problem h3 {
  color: #FF3B30;
}

.ps-card.solution h3 {
  color: var(--primary);
}

.ps-card ul {
  list-style: none;
}

.ps-card ul li {
  margin-bottom: 16px;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  text-shadow: none;
}

.ps-card.problem ul li i {
  color: #FF3B30;
  font-size: 20px;
  flex-shrink: 0;
}

.ps-card.solution ul li i {
  color: #34C759;
  font-size: 20px;
  flex-shrink: 0;
}

/* Complete Website Build Demo */
.mock-browser {
  width: 70%;
  height: 180px;
  background: #fff;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Elements start gray, then get colored when robot drops them */
.mock-nav {
  width: 100%;
  height: 24px;
  border-radius: 6px;
  background: #F2F2F7;
  animation: buildNav 8s infinite ease-in-out;
}

.mock-hero {
  width: 100%;
  height: 60px;
  border-radius: 6px;
  background: #F2F2F7;
  animation: buildHero 8s infinite ease-in-out;
}

.mock-grid {
  display: flex;
  gap: 8px;
  height: 60px;
}

.mock-card {
  flex: 1;
  border-radius: 6px;
  background: #F2F2F7;
  animation: buildCard 8s infinite ease-in-out;
}

/* Robot Path */
.robot-arm {
  position: absolute;
  bottom: 20px;
  left: -50px;
  font-size: 36px;
  color: var(--primary);
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(94, 92, 230, 0.4));
  animation: robotBuild 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Drag Blocks flying from left */
.drag-block {
  position: absolute;
  background: var(--primary-gradient);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(94, 92, 230, 0.3);
  opacity: 0;
  z-index: 5;
}

.block-navbar {
  bottom: 20px;
  left: -50px;
  animation: dragNav 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.block-hero {
  bottom: 20px;
  left: -50px;
  animation: dragHero 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.block-grid {
  bottom: 20px;
  left: -50px;
  animation: dragGrid 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes robotBuild {
  0% {
    left: -50px;
    bottom: 20px;
  }

  10% {
    left: 40%;
    bottom: 180px;
  }

  /* Drop Nav */
  15% {
    left: -50px;
    bottom: 20px;
  }

  25% {
    left: 50%;
    bottom: 120px;
  }

  /* Drop Hero */
  30% {
    left: -50px;
    bottom: 20px;
  }

  45% {
    left: 40%;
    bottom: 50px;
  }

  /* Drop Grid */
  50% {
    left: -50px;
    bottom: 20px;
  }

  100% {
    left: -50px;
    bottom: 20px;
  }
}

@keyframes dragNav {
  0% {
    opacity: 0;
    left: -50px;
    bottom: 20px;
    transform: scale(1);
  }

  2% {
    opacity: 1;
  }

  10% {
    opacity: 1;
    left: 40%;
    bottom: 180px;
    transform: scale(0.5);
  }

  11% {
    opacity: 0;
    left: 40%;
    bottom: 180px;
  }

  100% {
    opacity: 0;
  }
}

@keyframes buildNav {

  0%,
  10% {
    background: #F2F2F7;
  }

  12%,
  90% {
    background: var(--primary-gradient);
  }

  100% {
    background: #F2F2F7;
  }
}

@keyframes dragHero {

  0%,
  15% {
    opacity: 0;
    left: -50px;
    bottom: 20px;
    transform: scale(1);
  }

  17% {
    opacity: 1;
  }

  25% {
    opacity: 1;
    left: 50%;
    bottom: 120px;
    transform: scale(0.5);
  }

  26% {
    opacity: 0;
    left: 50%;
    bottom: 120px;
  }

  100% {
    opacity: 0;
  }
}

@keyframes buildHero {

  0%,
  25% {
    background: #F2F2F7;
  }

  27%,
  90% {
    background: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?w=400&q=80') center/cover;
  }

  100% {
    background: #F2F2F7;
  }
}

@keyframes dragGrid {

  0%,
  30% {
    opacity: 0;
    left: -50px;
    bottom: 20px;
    transform: scale(1);
  }

  32% {
    opacity: 1;
  }

  45% {
    opacity: 1;
    left: 40%;
    bottom: 50px;
    transform: scale(0.5);
  }

  46% {
    opacity: 0;
    left: 40%;
    bottom: 50px;
  }

  100% {
    opacity: 0;
  }
}

@keyframes buildCard {

  0%,
  45% {
    background: #F2F2F7;
  }

  47%,
  90% {
    background: #34C759;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
  }

  100% {
    background: #F2F2F7;
  }
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.portfolio-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2;
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.portfolio-img-wrapper {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  background: #eee;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.8s ease;
}

.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(3px);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content {
  padding: 32px 24px;
  position: relative;
}

.portfolio-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--primary-gradient);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(94, 92, 230, 0.3);
  border: 2px solid #fff;
  text-shadow: none;
}

.portfolio-content h3 {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 8px;
  text-shadow: none;
}

.portfolio-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  text-shadow: none;
}

/* 2080 Style AI Chatbot */
.chatbot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.chatbot-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.chatbot-window {
  width: 100%;
  max-width: 420px;
  height: 650px;
  max-height: 90vh;
  background: rgba(15, 15, 20, 0.85);
  border: 1px solid rgba(94, 92, 230, 0.4);
  border-radius: 28px;
  box-shadow: 0 0 50px rgba(94, 92, 230, 0.25), inset 0 0 20px rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(60px) scale(0.9);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-overlay.active .chatbot-window {
  transform: translateY(0) scale(1);
}

.chatbot-header {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 16px;
}

.cb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  box-shadow: 0 0 20px rgba(94, 92, 230, 0.6);
  animation: pulseBot 3s infinite alternate;
}

@keyframes pulseBot {
  from {
    box-shadow: 0 0 10px rgba(94, 92, 230, 0.4);
  }

  to {
    box-shadow: 0 0 25px rgba(94, 92, 230, 0.8);
  }
}

.cb-title {
  flex: 1;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.5px;
}

.cb-title span {
  font-size: 11px;
  color: #34C759;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.cb-title span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #34C759;
  border-radius: 50%;
  box-shadow: 0 0 10px #34C759;
  animation: blink-caret 1s infinite alternate;
}

.cb-close {
  background: transparent;
  border: none;
  color: #8E8E93;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
}

.cb-close:hover {
  color: #FF3B30;
}

.chatbot-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.chatbot-body::-webkit-scrollbar {
  width: 4px;
}

.chatbot-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.cb-msg {
  display: flex;
  width: 100%;
  animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cb-msg.ai {
  justify-content: flex-start;
}

.cb-msg.user {
  justify-content: flex-end;
}

.msg-text {
  max-width: 85%;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
}

.cb-msg.ai .msg-text {
  background: rgba(255, 255, 255, 0.06);
  color: #E5E5EA;
  border-radius: 20px 20px 20px 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cb-msg.user .msg-text {
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 20px 20px 4px 20px;
  box-shadow: 0 8px 20px rgba(94, 92, 230, 0.3);
}

.chatbot-footer {
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 12px;
  align-items: center;
}

.chatbot-footer input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: 30px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}

.chatbot-footer input:focus {
  border-color: rgba(94, 92, 230, 0.8);
  box-shadow: 0 0 15px rgba(94, 92, 230, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.chatbot-footer input::placeholder {
  color: #8E8E93;
}

.cb-send {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: none;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(94, 92, 230, 0.5);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cb-send:hover {
  transform: scale(1.1);
}

/* Problem & Solution Cards (Modern iOS Animated) */
.problem-solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

@keyframes floatSmooth {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulseGlowGreen {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

/* PREMIUM PROBLEM-SOLUTION SECTION (ULTRA iOS) */
.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.ps-glass-card {
  background: var(--card-bg);
  border-radius: 36px;
  padding: 40px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(40px) saturate(180%);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ps-glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.08),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ps-glass-card:hover::before {
  opacity: 1;
}

.ps-glass-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.card-visual-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.visual-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.warning-pulse {
  background: rgba(255, 59, 48, 0.1);
  color: #FF3B30;
  box-shadow: 0 0 20px rgba(255, 59, 48, 0.2);
  animation: warningFloat 3s ease-in-out infinite;
}

.success-glow {
  background: linear-gradient(135deg, #34C759, #30D158);
  color: #fff;
  box-shadow: 0 10px 25px rgba(52, 199, 89, 0.4);
  animation: solutionRocket 4s ease-in-out infinite;
}

.visual-text h3 {
  font-size: 20px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.visual-text p {
  font-size: 13px;
  color: var(--text-muted);
}

.card-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ps-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-main);
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.ps-item:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: translateX(5px);
}

.ps-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ps-dot.red { background: #FF3B30; box-shadow: 0 0 8px rgba(255, 59, 48, 0.5); }
.ps-dot.green { background: #34C759; box-shadow: 0 0 8px rgba(52, 199, 89, 0.5); }

.card-visual-footer {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.status-badge {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-visual-footer.red .status-badge {
  background: rgba(255, 59, 48, 0.1);
  color: #FF3B30;
}

.card-visual-footer.green .status-badge {
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
}

.ps-vs-badge {
  width: 60px;
  height: 60px;
  background: var(--text-main);
  color: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 5;
  border: 4px solid var(--bg-color);
}

.ps-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(94, 92, 230, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.solution-card.active {
  border: 2px solid rgba(52, 199, 89, 0.3);
  background: linear-gradient(160deg, var(--card-bg) 0%, rgba(52, 199, 89, 0.05) 100%);
}

.card-inner-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(52, 199, 89, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Animations */
@keyframes warningFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-5deg); }
}

@keyframes solutionRocket {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.05); filter: brightness(1.1); }
}

@media (max-width: 992px) {
  .problem-solution-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ps-vs-badge {
    margin: -20px auto;
    transform: rotate(90deg);
  }
}

/* CONNECTING LINE LOOP ANIMATION */
.connecting-line-loop {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-50%);
  z-index: 1;
  overflow: hidden;
  border-radius: 2px;
}

.connecting-line-loop::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(94, 92, 230, 0) 20%, 
    rgba(94, 92, 230, 0.6) 50%, 
    rgba(94, 92, 230, 0) 80%, 
    transparent 100%
  );
  animation: lineGlowLoop 4s infinite linear;
}

@keyframes lineGlowLoop {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Specific adjustments for different sections */
.package-line { top: 50%; }
.order-line { top: 40%; }

@media (max-width: 1024px) {
  .labs-grid, .order-process-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .connecting-line-loop { display: none; }
}

@media (max-width: 768px) {
  .labs-grid, .order-process-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .labs-grid, .order-process-grid {
    grid-template-columns: 1fr !important;
  }
}