/* ========================================
   TEAM91 — AI-Powered Global Production
   ======================================== */

:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --surface: #1a1a24;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #e4e4ec;
  --text-dim: #8888a0;
  --text-bright: #ffffff;
  --accent: #9b2d6b;
  --accent2: #00cec9;
  --gradient-1: #9b2d6b;
  --gradient-2: #d4448a;
  --gradient-3: #00cec9;
  --glow: rgba(155, 45, 107, 0.15);
  --glow-2: rgba(212, 68, 138, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========= PRELOADER ========= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050508;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.preloader-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: preloaderLogoIn 0.8s ease 0.2s forwards;
}

@keyframes preloaderLogoIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.preloader-counter {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -3px;
  line-height: 1;
  opacity: 0;
  animation: preloaderLogoIn 0.5s ease 0.4s forwards;
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: preloaderLogoIn 0.5s ease 0.4s forwards;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  border-radius: 2px;
  transition: width 0.1s linear;
}

.preloader-tagline {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-dim);
  opacity: 0;
  animation: preloaderLogoIn 0.5s ease 0.6s forwards;
}

/* ========= CUSTOM CURSOR ========= */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
  transition: transform 0.15s ease, opacity 0.3s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor.visible { opacity: 1; }

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background 0.3s ease,
              opacity 0.3s ease;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.cursor-follower.visible { opacity: 1; }

.cursor-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cursor-follower.hover-work {
  width: 80px;
  height: 80px;
  background: rgba(155, 45, 107, 0.8);
  border-color: transparent;
}

.cursor-follower.hover-work .cursor-text {
  opacity: 1;
  transform: scale(1);
}

.cursor-follower.hover-link {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  background: rgba(155, 45, 107, 0.1);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  .cursor, .cursor-follower { display: none !important; }
}

/* ========= FILM GRAIN ========= */
.film-grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  animation: grainShift 0.5s steps(1) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-5%, -5%); }
  40% { transform: translate(3%, -8%); }
  60% { transform: translate(-8%, 2%); }
  80% { transform: translate(5%, 5%); }
  100% { transform: translate(0, 0); }
}

/* ========= TEXT MARQUEE BAND ========= */
.text-marquee {
  padding: 24px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}

.text-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: textMarquee 25s linear infinite;
}

.text-marquee--reverse .text-marquee-track {
  animation-direction: reverse;
}

.text-marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.12);
  text-transform: uppercase;
  letter-spacing: -1px;
  white-space: nowrap;
  padding: 0 16px;
  transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
}

.text-marquee:hover .text-marquee-track span {
  color: rgba(255,255,255,0.06);
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
}

.marquee-dot {
  width: 8px !important;
  height: 8px;
  min-width: 8px;
  background: var(--accent) !important;
  border-radius: 50%;
  display: inline-block;
  -webkit-text-stroke: 0 !important;
  flex-shrink: 0;
  margin: 0 8px;
}

@keyframes textMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (hover: hover) {
  body { cursor: none; }
  a, button, input, select, textarea { cursor: none; }
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ========= NAV ========= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.nav-logo:hover .nav-logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(155, 45, 107, 0.5));
}

.footer-logo-img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.accent {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-bright);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px !important;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  transition: var(--transition) !important;
}

.nav-cta:hover {
  background: rgba(155, 45, 107, 0.1);
  border-color: var(--accent);
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

/* ========= HERO ========= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

.particle-field {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  50% { opacity: 0.6; transform: translateY(-100px) scale(1.5); }
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 45, 107, 0.2), transparent 60%);
  top: 10%;
  left: 20%;
  animation: glowPulse 8s ease-in-out infinite;
  filter: blur(40px);
}

.hero-glow--2 {
  background: radial-gradient(circle, rgba(0, 206, 201, 0.12), transparent 60%);
  top: 30%;
  left: 55%;
  animation-delay: 4s;
  width: 700px;
  height: 700px;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1) rotate(0deg); }
  33% { opacity: 0.7; transform: scale(1.15) rotate(5deg); }
  66% { opacity: 0.5; transform: scale(0.95) rotate(-3deg); }
}

/* Parallax Image Montage */
.hero-parallax {
  position: absolute;
  inset: -40px;
  z-index: 0;
  pointer-events: none;
}

.parallax-layer {
  position: absolute;
  will-change: transform;
  transition: transform 0.1s linear;
}

.parallax-layer img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  filter: brightness(0.35) saturate(0.3) contrast(1.1);
  opacity: 0.55;
  transition: filter 0.6s ease, opacity 0.6s ease;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.hero:hover .parallax-layer img {
  filter: brightness(0.4) saturate(0.45) contrast(1.1);
  opacity: 0.65;
}

/* Cinematic Vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 20%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.95) 100%);
  pointer-events: none;
}

.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent2);
  background: rgba(0, 206, 201, 0.05);
  margin-bottom: 32px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 206, 201, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 206, 201, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text-bright);
  margin-bottom: 24px;
  overflow: hidden;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: charReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes charReveal {
  to { opacity: 1; transform: translateY(0); }
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

.gradient-text .char {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: charReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards, gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-text-alt {
  background: linear-gradient(135deg, var(--gradient-2), #a29bfe, var(--gradient-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -3px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-1), #c44485);
  color: white;
  box-shadow: 0 4px 24px rgba(155, 45, 107, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c44485, var(--gradient-3));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span, .btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(155, 45, 107, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--text-dim);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-bright);
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent2);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ========= MOTION MODE ========= */
.motion-mode-btn {
  position: absolute;
  bottom: 90px;
  right: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s ease;
}

.motion-mode-btn:hover {
  border-color: var(--accent2);
  color: var(--text-bright);
  background: rgba(0, 206, 201, 0.08);
}

.motion-mode-btn.active {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(0, 206, 201, 0.12);
  box-shadow: 0 0 20px rgba(0, 206, 201, 0.2);
}

.motion-mode-btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

.motion-pip {
  position: absolute;
  bottom: 90px;
  left: 40px;
  width: 120px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--accent2);
  z-index: 5;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.motion-pip.visible {
  opacity: 1;
  transform: scale(1);
}

.motion-pip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

@media (max-width: 768px) {
  .motion-mode-btn {
    bottom: 80px;
    right: 20px;
    font-size: 11px;
    padding: 8px 14px;
  }
  .motion-pip {
    bottom: 80px;
    left: 20px;
    width: 90px;
    height: 68px;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.scroll-indicator span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
}

/* ========= SECTIONS ========= */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -1px;
  line-height: 1.1;
}

.section-desc {
  font-size: 16px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ========= ABOUT ========= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-map {
  margin-bottom: 20px;
}

.about-map-img {
  width: 100%;
  height: auto;
  opacity: 0.75;
  mask-image: radial-gradient(ellipse 95% 90% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 95% 90% at 50% 50%, black 30%, transparent 75%);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(155, 45, 107, 0.1);
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ========= CLIENT LOGOS MARQUEE ========= */
.clients-section {
  padding: 60px 0 80px;
  overflow: hidden;
}

.clients-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

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

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 56px;
}

.marquee-item img {
  max-height: 40px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.marquee-item:hover img {
  opacity: 0.8;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========= GLOBAL NETWORK MAP ========= */
.network {
  padding: 80px 0 40px;
}

.network-map {
  text-align: center;
}

.network-map-img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  opacity: 0.85;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 40%, transparent 80%);
}

/* ========= SERVICES ========= */
.services {
  background: linear-gradient(180deg, var(--bg) 0%, #0d0d14 50%, var(--bg) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.service-card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

.service-card:hover .service-card-glow {
  opacity: 1;
}

.service-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent2);
  margin-bottom: 16px;
  flex-shrink: 0;
  letter-spacing: -2px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}

.service-card:hover .service-number {
  opacity: 1;
  -webkit-text-stroke-color: var(--gradient-2);
}

.service-icon-wrap {
  color: var(--accent);
  margin-bottom: 16px;
}

.service-compact-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.service-compact-header .service-number {
  margin-bottom: 0;
  font-size: 28px;
  min-width: 32px;
  line-height: 32px;
}

.service-compact-header .service-icon-wrap {
  margin-bottom: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.service-compact-header .service-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.service-compact-header h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0;
  white-space: nowrap;
  line-height: 32px;
  position: relative;
  top: 4px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-tags li {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(155, 45, 107, 0.08);
  color: var(--accent);
  border: 1px solid rgba(155, 45, 107, 0.15);
}

/* ========= WORKS ========= */
.works-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(155, 45, 107, 0.1);
  border-color: var(--accent);
  color: var(--text-bright);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.work-card.hidden {
  display: none;
}

.work-card--extra {
  display: none;
}

.works-grid.show-all .work-card--extra {
  display: block;
}

.works-grid.show-all .work-card--extra.hidden {
  display: none;
}

.works-more {
  text-align: center;
  margin-top: 40px;
}

.works-more.hidden {
  display: none;
}

.work-card:hover {
  transform: translateY(-6px);
}

.work-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.3;
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
  filter: saturate(0.6);
}

.work-card:hover .work-thumb {
  opacity: 0.7;
  transform: scale(1.08);
  filter: saturate(1);
}

.work-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(155, 45, 107, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.work-card:hover .work-card-inner::before {
  opacity: 1;
}

.work-card-inner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition);
  overflow: hidden;
}

.work-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.6) 40%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.work-overlay {
  z-index: 2;
}

.work-info {
  position: relative;
  z-index: 2;
}

.work-card:hover .work-card-inner {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.work-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.work-year {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 6px;
}

.work-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(0, 206, 201, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 206, 201, 0.2);
}

.work-badge.award {
  color: var(--gradient-3);
  background: rgba(253, 121, 168, 0.1);
  border-color: rgba(253, 121, 168, 0.2);
}

.work-type {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.work-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin: 8px 0;
}

.work-info p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ========= NUKU ========= */
.nuku {
  background: linear-gradient(180deg, var(--bg) 0%, #060610 50%, var(--bg) 100%);
}

/* NUKU Hero */
.nuku-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.nuku-logo-img {
  height: 52px;
  width: auto;
  margin-bottom: 24px;
}

.nuku-hero-tagline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 16px;
  line-height: 1.4;
}

.nuku-hero-desc {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 32px;
  font-size: 15px;
}

.nuku-stats-row {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
}

.nuku-stat {
  display: flex;
  flex-direction: column;
}

.nuku-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #0066FF;
}

.nuku-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.nuku-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 100px;
  font-size: 13px;
  color: #0066FF;
  font-weight: 500;
}

.pulse-dot--blue {
  background: #0066FF;
  animation: pulseBlue 2s ease-in-out infinite;
}

@keyframes pulseBlue {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 102, 255, 0); }
}

.nuku-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.nuku-keywords span {
  padding: 6px 14px;
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 6px;
  font-size: 13px;
  color: #0066FF;
  background: rgba(0, 102, 255, 0.06);
}

.nuku-bottom-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nuku-insta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 100px;
  font-size: 13px;
  color: #0066FF;
  font-weight: 500;
  transition: var(--transition);
}

.nuku-insta:hover {
  background: rgba(0, 102, 255, 0.15);
}

.nuku-hero-right {
  display: flex;
  justify-content: center;
}

.nuku-video-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.nuku-video {
  width: 100%;
  height: auto;
  display: block;
}

.nuku-video-caption {
  font-size: 12px;
  color: var(--text-dim);
  padding: 8px 12px;
  opacity: 0.7;
}

/* NUKU Features Grid */
.nuku-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.nuku-feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.nuku-feat-card:hover {
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-4px);
}

.nuku-feat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 16px;
}

.nuku-feat-icon--blue {
  background: rgba(0, 102, 255, 0.1);
  color: #0066FF;
}

.nuku-feat-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.nuku-feat-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* NUKU How it Works */
.nuku-how {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.nuku-how-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-bright);
  text-align: center;
  margin-bottom: 40px;
}

.nuku-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.nuku-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  max-width: 220px;
}

.nuku-step-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #0066FF;
  background: rgba(0, 102, 255, 0.1);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.nuku-step-content strong {
  display: block;
  font-size: 14px;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.nuku-step-content p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.nuku-step-arrow {
  color: var(--text-dim);
  opacity: 0.3;
  flex-shrink: 0;
}

/* ========= TEAM ========= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.team-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--surface);
  flex-shrink: 0;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(70%) contrast(1.1);
  transition: filter 0.7s ease, transform 0.7s ease;
}

.team-card:hover .team-photo img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.1);
}

.team-photo {
  position: relative;
}

.team-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.team-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
}

.team-role-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(155, 45, 107, 0.1);
  color: var(--accent);
}

.team-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.team-title {
  font-size: 13px;
  color: var(--accent2);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.team-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-credits span {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ========= TEAM LEADERSHIP (Top 4) ========= */
.team-leadership {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.team-lead-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.team-lead-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.team-lead-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  transition: border-color 0.3s ease;
}

.team-lead-card:hover .team-lead-photo {
  border-color: var(--accent);
}

.team-lead-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(60%);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.team-lead-card:hover .team-lead-photo img {
  filter: grayscale(0%);
  transform: scale(1.08);
}

.team-lead-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.team-lead-role {
  font-size: 13px;
  color: var(--accent2);
  font-weight: 500;
}

/* ========= TEAM SUB-TITLE ========= */
.team-sub-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ========= TEAM ROSTER (Compact Grid) ========= */
.team-roster {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.team-member:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--surface);
  flex-shrink: 0;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(60%);
  transition: filter 0.5s ease;
}

.team-member:hover .team-avatar img {
  filter: grayscale(0%);
}

.team-avatar.avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
}

.team-avatar.avatar-initial span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.team-member-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 3px;
}

.team-member-role {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ========= TEAM RESPONSIVE ========= */
@media (max-width: 768px) {
  .team-leadership {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-roster {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-leadership {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .team-roster {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* ========= AI REEL ========= */
.ai-reel {
  overflow: hidden;
}

.ai-reel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ai-reel-text p {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 32px;
}

.ai-capabilities {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-cap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.ai-cap-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}

/* AI Orbit */
.ai-orbit {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.ai-orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: orbitSpin 20s linear infinite;
}

.ai-orbit-ring--2 {
  inset: 40px;
  animation-duration: 15s;
  animation-direction: reverse;
  border-style: dashed;
}

.ai-orbit-ring--3 {
  inset: 80px;
  animation-duration: 25s;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ai-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 60px var(--glow), 0 0 120px var(--glow);
}

.ai-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.5px;
  animation: nodeOrbit 12s linear infinite;
  animation-delay: var(--delay);
}

@keyframes nodeOrbit {
  from {
    transform: rotate(var(--angle)) translateX(160px) rotate(calc(-1 * var(--angle)));
  }
  to {
    transform: rotate(calc(var(--angle) + 360deg)) translateX(160px) rotate(calc(-1 * (var(--angle) + 360deg)));
  }
}

/* ========= CONTACT ========= */
.contact {
  background: linear-gradient(180deg, var(--bg) 0%, #0d0d14 100%);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-desc {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
  font-size: 15px;
  color: var(--text);
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(155, 45, 107, 0.1);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155, 45, 107, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238888a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ========= LANG SWITCHER ========= */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  margin-left: 16px;
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  color: var(--text-bright);
}

.lang-btn.active {
  background: var(--accent);
  color: white;
}

/* ========= DECK DOWNLOAD ========= */
.deck {
  background: linear-gradient(180deg, var(--bg) 0%, #0d0d14 100%);
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.deck-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.deck-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.deck-card-icon {
  color: var(--accent);
}

.deck-flag {
  width: 40px;
  height: auto;
  border-radius: 3px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  object-fit: cover;
}

.deck-card-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.deck-card-info span {
  font-size: 12px;
  color: var(--text-dim);
}

.deck-card-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: var(--transition);
}

.deck-card:hover .deck-card-dl {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(155, 45, 107, 0.1);
}

/* ========= FOOTER ========= */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-bright);
}

.footer-bottom {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.6;
}

/* ========= LIGHTBOX ========= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  animation: modalSlideUp 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-prev, .lightbox-next { width: 36px; height: 36px; }
}

/* ========= WORK MODAL ========= */
.work-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.work-modal.open {
  display: flex;
}

.work-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.work-modal-container {
  position: relative;
  width: 90%;
  max-width: 860px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.work-modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.work-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-bright);
}

.work-modal-hero {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center top;
  position: relative;
}

.work-modal-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

/* External Link */
.wm-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(155, 45, 107, 0.1);
  border: 1px solid rgba(155, 45, 107, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: var(--transition);
}

.wm-ext-link:hover {
  background: rgba(155, 45, 107, 0.2);
  transform: translateY(-2px);
}

/* Video Link */
.wm-video-link {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.wm-video-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.wm-video-link:hover img {
  transform: scale(1.03);
  filter: brightness(0.7);
}

.wm-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.wm-video-link:hover .wm-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

.wm-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.wm-video-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: rgba(0,0,0,0.7);
  border-radius: 6px;
  font-size: 13px;
  color: white;
  font-weight: 500;
  white-space: nowrap;
}

/* Gallery */
.wm-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 32px;
}

.wm-gallery-item {
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.wm-gallery-item:hover,
.wm-gallery-item.active {
  border-color: var(--accent);
}

.wm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.work-modal-body {
  padding: 0 48px 48px;
  margin-top: -60px;
  position: relative;
  z-index: 1;
}

.work-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.work-modal-meta span {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.wm-type {
  background: rgba(155, 45, 107, 0.15);
  color: var(--accent);
}

.wm-year {
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
}

.wm-badge {
  background: rgba(0, 206, 201, 0.12);
  color: var(--accent2);
}

.work-modal-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 20px;
  line-height: 1.2;
}

.work-modal-synopsis {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 32px;
}

.work-modal-services {
  margin-bottom: 24px;
}

.work-modal-services h4,
.work-modal-awards h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.wm-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wm-service-tags span {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}

.wm-award-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wm-award-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.wm-award-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .work-modal-hero { height: 220px; }
  .work-modal-body { padding: 0 20px 24px; }
  .work-modal-title { font-size: 20px; }
  .work-modal-container { width: 95%; }
}

@media (max-width: 480px) {
  .work-modal-hero { height: 180px; }
  .work-modal-body { padding: 0 16px 20px; }
  .work-modal-title { font-size: 18px; }
}

/* ========= MAGNETIC BUTTON ========= */
.btn-magnetic {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========= SECTION TRANSITIONS ========= */
.section-header .section-tag {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.section-header .section-tag::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible .section-tag::after {
  transform: scaleX(1);
}

/* ========= ENHANCED GLOW ON CARDS ========= */
.service-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(155, 45, 107, 0.08), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover::before {
  opacity: 1;
}

/* ========= PRELOADER ACTIVE STATE ========= */
body.loading {
  overflow: hidden;
}

/* ========= SMOOTH REVEAL ========= */
.reveal-up {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
  clip-path: inset(0 0 0 0);
}

/* ========= ANIMATIONS ========= */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1024px) {
  .team-leadership { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .nuku-features-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-reel-inner { grid-template-columns: 1fr; gap: 48px; }
  .ai-orbit { width: 300px; height: 300px; }
  .ai-node { animation: none; transform: rotate(var(--angle)) translateX(120px) rotate(calc(-1 * var(--angle))); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 20px;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nuku-hero { grid-template-columns: 1fr; gap: 32px; }
  .nuku-features-grid { grid-template-columns: 1fr; }
  .nuku-steps { flex-direction: column; align-items: flex-start; }
  .nuku-step-arrow { transform: rotate(90deg); align-self: center; }
  .nuku-step { max-width: 100%; }
  .nuku-stats-row { gap: 20px; }
  .nuku-how { padding: 32px 24px; }
  .deck .section-header { margin-bottom: 24px; }
  .deck .section-desc { font-size: 13px; }
  .deck-grid { grid-template-columns: 1fr; max-width: 100%; gap: 10px; }
  .deck-card {
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    text-align: left;
  }
  .deck-card-icon { display: none; }
  .deck-card-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .deck-flag { width: 24px; margin-bottom: 0; }
  .deck-card-info h3 { font-size: 14px; margin-bottom: 0; }
  .deck-card-info span { display: none; }
  .deck-card-dl { padding: 6px 14px; font-size: 11px; white-space: nowrap; }
  .lang-switcher { margin-left: 0; position: absolute; top: 60px; right: 16px; z-index: 1002; }
  .lang-btn { padding: 4px 8px; font-size: 10px; }
  .nav-logo-img { height: 22px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .team-leadership { grid-template-columns: 1fr 1fr; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 80px 0;
  }

  .works-filter {
    flex-wrap: wrap;
  }

  .hero-title {
    font-size: clamp(28px, 7vw, 48px);
    letter-spacing: -1px;
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
  }

  .hero-content {
    padding: 0 16px;
  }

  .parallax-layer {
    display: none;
  }

  .hero-vignette {
    background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 10%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,1) 100%);
  }

  .hero-glow {
    width: 300px;
    height: 300px;
  }

  .hero-glow--2 {
    width: 250px;
    height: 250px;
  }

  .container {
    padding: 0 16px;
  }

  .text-marquee-track span {
    font-size: clamp(20px, 5vw, 40px);
  }

  .team-leadership {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .team-roster {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .team-lead-card {
    padding: 20px 12px;
  }

  .team-lead-photo {
    width: 64px;
    height: 64px;
  }

  .team-lead-name {
    font-size: 14px;
  }

  .team-lead-role {
    font-size: 11px;
  }

  .service-card {
    padding: 20px;
  }

  .works-filter {
    flex-wrap: wrap;
    gap: 8px;
  }

  .works-filter button {
    font-size: 12px;
    padding: 6px 14px;
  }

  .contact-form {
    padding: 24px;
  }

  .nuku-how {
    padding: 24px 16px;
  }

  .stat-num {
    font-size: clamp(24px, 6vw, 36px);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .section-title {
    font-size: clamp(24px, 6vw, 40px);
  }

}

/* ========= SMALL MOBILE ========= */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .hero-stats {
    gap: 12px;
  }

  .stat-num {
    font-size: 22px;
  }

  .stat-label {
    font-size: 10px;
  }

  .team-leadership {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .team-roster {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .team-member {
    padding: 14px 8px;
  }

  .team-avatar {
    width: 48px;
    height: 48px;
  }

  .team-member-name {
    font-size: 12px;
  }

  .team-member-role {
    font-size: 10px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: clamp(22px, 6vw, 32px);
  }

  .section-desc {
    font-size: 13px;
  }

  .service-card {
    padding: 16px;
  }

  .nuku-features-grid {
    grid-template-columns: 1fr;
  }

  .nuku-stats-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  .deck-grid {
    max-width: 100%;
  }

  .contact-form {
    padding: 16px;
  }

  .btn {
    font-size: 13px;
    padding: 12px 20px;
  }

  .works-filter {
    gap: 6px;
  }

  .works-filter button {
    font-size: 11px;
    padding: 5px 10px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}

