[v-cloak] {
  display: none !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #c5a059; /* Luxury Gold */
  --bg-deep: #0a0a0c;
  --bg-card: rgba(22, 22, 26, 0.8);
  --text-main: #f5f5f7;
  --text-dim: #a1a1aa;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

.progress-bar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #e2c08d);
  transition: width 0.1s ease-out;
}

a {
  text-decoration: none;
  color: inherit;
}

.app {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.bg-soft {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(197, 160, 89, 0.05), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(30, 41, 59, 0.2), transparent 50%);
  z-index: -3;
}

.bg-lines {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 98%, rgba(255, 255, 255, 0.02)),
    linear-gradient(90deg, transparent 98%, rgba(255, 255, 255, 0.02));
  background-size: 100px 100px;
  animation: linesMove 20s linear infinite;
  z-index: -4;
}

.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.parallax-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  perspective: 1200px;
  transform-style: preserve-3d;
  z-index: -5;
}

.parallax-layer {
  position: absolute;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.03);
  transform: translate3d(0, calc(var(--scroll, 0px) * var(--depth, 0.15)), 0)
    translateZ(var(--z, -100px));
  transition: transform 0.1s linear;
}

.parallax-layer.layer-accent {
  background: rgba(197, 160, 89, 0.06);
}

.webgl-wrap {
  position: fixed;
  inset: 0;
  z-index: -6;
  pointer-events: none;
}

.webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.45;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.5);
  animation: floatUp 10s linear infinite;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.particle:nth-child(odd) {
  width: 4px;
  height: 4px;
  background: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 8vw; /* Increased padding */
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.nav.scrolled {
  padding: 18px 8vw; /* Shrink on scroll */
  background: rgba(10, 10, 12, 0.95);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 20px;
  color: var(--text-main);
}

.logo-img {
  width: 48px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.3));
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 16px; /* Unified to 16px */
  font-weight: 500;
  letter-spacing: 1px;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--text-dim);
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  font-weight: 700; /* Bold when selected or hovered */
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 1005;
}

.lang-switcher:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 120px;
  background: #16161a;
  border: 1px solid var(--primary);
  border-radius: 4px;
  margin-top: 5px;
  display: none;
  flex-direction: column;
  z-index: 1010;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.lang-switcher:hover .lang-dropdown {
  display: flex;
}

/* Add an invisible bridge to keep dropdown open during hover transition */
.lang-switcher::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

.lang-option {
  padding: 12px 15px;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-dim);
}

.lang-option:hover {
  background: rgba(197, 160, 89, 0.15);
  color: var(--primary);
}

.lang-option.active {
  color: var(--primary);
  font-weight: 700;
  background: rgba(197, 160, 89, 0.05);
}

.nav-contact-item {
  position: relative;
  font-size: 16px; /* Unified to 16px */
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-contact-item:hover {
  color: var(--primary);
}

.nav-contact-item .qr-popup {
  position: absolute;
  top: 100%;
  right: 0;
  width: 150px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: 8px;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.nav-contact-item:hover .qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.qr-popup img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.nav-cta {
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  padding: 8px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

/* Carousel Styles */
.carousel-section {
  position: relative;
  width: 100%;
  height: 85vh;
  margin-top: 0; /* Will be handled by padding-top on app or hero */
  overflow: hidden;
  background: #000;
}

.carousel-container {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 10vw;
}

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.slide-content h2 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  margin-bottom: 20px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease 0.2s;
}

.slide-content p {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 30px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease 0.4s;
}

.active-slide .slide-content h2,
.active-slide .slide-content p {
  transform: translateY(0);
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.dot {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  width: 60px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero {
  padding: 140px 8vw 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: center;
  gap: 60px;
  scroll-snap-align: start;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.1;
  font-weight: 800;
  background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.6;
  max-width: 560px;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.primary-btn {
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  background: var(--primary);
  color: #000;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
}

.ghost-btn {
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ghost-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.hero-metrics {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.metric {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.metric .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.metric .label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.glass-card {
  padding: 30px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.section {
  padding: 100px 8vw;
  scroll-snap-align: start;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
}

.section-title p {
  margin-top: 15px;
  color: var(--text-dim);
  font-size: 16px;
}

.grid-3, .grid-4, .case-grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.case-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card, .case-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.card:hover, .case-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px) scale(1.02);
  background: rgba(22, 22, 26, 0.95);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Service Card Image (Top Right) */
.card-image-wrap {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.card:hover .card-image-wrap {
  opacity: 1;
  transform: scale(1.1);
  border-color: var(--primary);
}

.card-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Case Card Image (Top Center) */
.case-image-box {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.case-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-thumb {
  transform: scale(1.1);
}

/* Case Card Mobile Mockup Styles */
.case-card-mobile {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.case-card-mobile:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.mobile-mockup {
  position: relative;
  width: 100%;
  height: 400px;
  background: #111;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s linear;
}

.case-card-mobile:hover .mobile-screen {
  transform: translateY(calc(-100% + 400px));
}

.case-info-detailed {
  padding: 24px;
}

.case-problem {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--primary);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.case-grid-detailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.case-tag {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}

.process-list {
  display: grid;
  gap: 20px;
}

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 30px;
  align-items: center;
}

.process-index {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.split {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contact-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 16px;
  border-radius: 4px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  background: rgba(255, 255, 255, 0.05);
}

.footer {
  text-align: center;
  padding: 60px 0;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Partner 3D Orbit */
.partner-cloud-wrap {
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
  perspective: 2000px; /* Enhanced perspective */
}

.partner-cloud {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  /* Removed CSS animation to handle in JS for better billboarding */
  transition: opacity 0.5s ease;
}

.partner-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 70px;
  margin-top: -35px;
  margin-left: -70px;
  transform-style: preserve-3d;
  transition: transform 0.1s linear, opacity 0.3s ease; /* Smooth position updates */
  cursor: pointer;
  z-index: 1;
}

.partner-inner {
  width: 100%;
  height: 100%;
  background: rgba(22, 22, 26, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Force it to always face front by default */
  transform: rotateX(0deg) rotateY(0deg);
  backface-visibility: hidden;
}

/* Pause and Zoom effect */
.partner-item:hover {
  z-index: 1000;
}

.partner-item:hover .partner-inner {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--primary);
  transform: scale(1.4) translateZ(100px); /* Significant pop out */
  box-shadow: 0 25px 60px rgba(197, 160, 89, 0.4);
}

.partner-item img {
  max-width: 100%;
  max-height: 100%;
  filter: grayscale(1) brightness(1.2);
  transition: all 0.4s ease;
  object-fit: contain;
}

.partner-item:hover img {
  filter: grayscale(0) brightness(1);
}

@keyframes orbitRotate {
  0% { transform: rotateX(-5deg) rotateY(0deg); }
  100% { transform: rotateX(-5deg) rotateY(360deg); }
}

/* Case Detail Layout */
.case-detail-hero {
  padding: 180px 8vw 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.case-detail-info h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--primary);
}

.case-detail-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-dim);
}

.mobile-frame-wrap {
  position: relative;
  width: 320px;
  height: 640px;
  margin: 0 auto;
  background: #000;
  border: 12px solid #222;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8), 0 0 0 4px #333;
}

.mobile-frame-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #222;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

.mobile-frame-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: scrollMobile 15s linear infinite alternate;
}

@keyframes scrollMobile {
  0% { transform: translateY(0); }
  100% { transform: translateY(-60%); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.21, 0.6, 0.35, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-line {
  height: 2px;
  width: 80px;
  background: var(--primary);
  margin-top: 30px;
}

@keyframes linesMove {
  from { transform: translateY(0); }
  to { transform: translateY(100px); }
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-40px); opacity: 0.8; }
  100% { transform: translateY(-80px); opacity: 0; }
}

@media (max-width: 900px) {
  .nav { padding: 15px 5vw; }
  .nav-links { display: none; } /* Hide links on mobile for simplicity in this demo */
  .hero { padding: 100px 5vw 60px; }
  .section { padding: 60px 5vw; }
}
