/* ============================================
   SHIYA.TECH — Design System & Styles
   ============================================ */

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

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #999999;
  --text-muted: #666666;
  --accent: #FF4D00;
  --accent-hover: #FF6A2B;
  --accent-glow: rgba(255, 77, 0, 0.3);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --glass-bg: rgba(10, 10, 10, 0.8);
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-pill: 50px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --max-width: 1320px;
}

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

html {
  font-size: 16px;
}

/* Disabled native smooth scroll for Lenis */
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  /* Hide default cursor */
  position: relative;
}

/* Shoji Grid Background */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 15vw 15vw;
}

a,
button {
  cursor: none;
}

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s, mix-blend-mode 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: difference;
}

.cursor.hover-link {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  mix-blend-mode: normal;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cursor.hover-project {
  width: 80px;
  height: 80px;
  background: var(--accent);
  mix-blend-mode: normal;
  border: none;
}

.cursor-text {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cursor.hover-project .cursor-text {
  opacity: 1;
}

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

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

/* Crimson Hanko Stamp */
.section-label::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background: #cc0000;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(204, 0, 0, 0.6);
}

.section-title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a50 50%, var(--text-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

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

.nav-cta {
  background: var(--accent) !important;
  color: var(--text-primary) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}

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

.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

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

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  /* Block grid from showing in Hero */
  z-index: 1;
}

/* Ambient Orbs */
.ambient-orb {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  top: -20%;
  left: -20%;
}

.orb-2 {
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, #ff8a50 0%, transparent 60%);
  bottom: -15%;
  right: -15%;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 77, 0, 0.1);
  border: 1px solid rgba(255, 77, 0, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  overflow: hidden;
  animation: badge-float 4s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 77, 0, 0.1);
}

.hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 0, 0.4), transparent);
  transform: skewX(-20deg);
  animation: shine 3s infinite;
}

@keyframes badge-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(255, 77, 0, 0.2);
  }
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-title-wrapper,
.hero-subtitle-wrapper {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin: 0 auto 36px;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: shine 4s infinite 1s;
  /* delayed start relative to badge */
  z-index: -1;
}

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

  20%,
  100% {
    left: 200%;
  }
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-20deg);
  animation: shine 4s infinite 2s;
  /* delayed start relative to primary btn */
  z-index: -1;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(255, 77, 0, 0.05);
  transform: translateY(-2px);
}


/* ============================================
   STATS
   ============================================ */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   STORY / ABOUT
   ============================================ */
.story {
  background: var(--bg-secondary);
}

.story .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-timeline {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.timeline-tag {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
}

.timeline-tag:hover,
.timeline-tag.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 77, 0, 0.08);
}

/* ============================================
   SERVICES
   ============================================ */
/* ============================================
   SERVICES (Simple Glassmorphism Grid)
   ============================================ */
.services-simple-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.simple-service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.simple-service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 77, 0, 0.4);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 30px -10px rgba(255, 77, 0, 0.1);
}

.simple-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 77, 0, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.simple-service-card:hover .service-icon {
  transform: scale(1.1);
}

/* Core Service SVG Animations */
/* Dev Cube */
.cube-inner-top,
.cube-inner-bottom {
  stroke-dasharray: 30;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s ease;
}

.simple-service-card:hover .cube-inner-top {
  stroke-dashoffset: 30;
}

.simple-service-card:hover .cube-inner-bottom {
  stroke-dashoffset: -30;
}

/* Team */
.team-body-2,
.team-head-2 {
  transition: transform 0.5s ease;
}

.simple-service-card:hover .team-body-2,
.simple-service-card:hover .team-head-2 {
  transform: translateX(3px) translateY(-2px);
}

/* Database */
.db-mid {
  transition: transform 0.3s ease;
}

.simple-service-card:hover .db-mid {
  transform: translateY(-2px);
}

.simple-service-card:hover .db-top {
  fill: rgba(255, 77, 0, 0.2);
  transition: fill 0.3s ease;
}

/* Zap Bolt */
.zap-bolt {
  transition: all 0.3s ease;
}

.simple-service-card:hover .zap-bolt {
  fill: rgba(255, 77, 0, 0.2);
  transform: scale(1.1);
  stroke-width: 1.5;
}

.simple-service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.simple-service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .services-simple-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   AI CAPABILITIES (Bento Grid & Spotlight)
   ============================================ */
.capabilities {
  background: var(--bg-secondary);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 24px;
  margin-top: 60px;
  position: relative;
}

/* Base Bento Card with Spotlight Masking */
.bento-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
}

/* The Spotlight Glow Effect */
.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(255, 255, 255, 0.06),
      transparent 40%);
  z-index: 1;
  pointer-events: none;
}

/* The Glowing Border Effect */
.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(255, 77, 0, 0.6),
      transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
  pointer-events: none;
}

.bento-content {
  padding: 32px;
  position: relative;
  z-index: 3;
  /* Above the light */
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bento-grid.symmetrical {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
}

.bento-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============================================
   ANIMATED SVG SYSTEM (Bento Capabilities)
   ============================================ */
.animated-svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  overflow: visible;
}

/* --- Agentic AI: Neural Hub --- */
.agentic-core {
  fill: var(--accent);
  opacity: 0.9;
  animation: core-pulse 2s ease-in-out infinite;
}

.agentic-orbit {
  fill: rgba(255, 77, 0, 0.4);
  stroke: var(--accent);
  stroke-width: 1;
  animation: orbit-glow 3s ease-in-out infinite;
}
.o1 { animation-delay: 0s; }
.o2 { animation-delay: 0.5s; }
.o3 { animation-delay: 1s; }
.o4 { animation-delay: 1.5s; }
.o5 { animation-delay: 2s; }
.o6 { animation-delay: 2.5s; }

.agentic-link {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.2;
  stroke-dasharray: 4 4;
  animation: dash-flow 1.5s linear infinite;
}

.agentic-packet {
  fill: #fff;
  filter: drop-shadow(0 0 4px var(--accent));
}

@keyframes core-pulse {
  0%, 100% { r: 8; opacity: 0.9; filter: drop-shadow(0 0 6px var(--accent)); }
  50% { r: 10; opacity: 1; filter: drop-shadow(0 0 16px var(--accent)); }
}

@keyframes orbit-glow {
  0%, 100% { opacity: 0.4; r: 4; }
  50% { opacity: 1; r: 5; fill: var(--accent); }
}

@keyframes dash-flow {
  to { stroke-dashoffset: -16; }
}

/* --- AI Integration: Converging Mesh --- */
.integ-center {
  fill: var(--accent);
  animation: core-pulse 2.5s ease-in-out infinite;
}

.integ-shape {
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: rgba(255, 77, 0, 0.1);
}
.s1 { animation: integ-float-1 4s ease-in-out infinite; }
.s2 { animation: integ-float-2 4.5s ease-in-out infinite; }
.s3 { animation: integ-float-3 3.5s ease-in-out infinite; }
.s4 { animation: integ-float-4 5s ease-in-out infinite; }

.integ-line {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.3;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: line-draw 3s ease-in-out infinite alternate;
}
.il1 { animation-delay: 0s; }
.il2 { animation-delay: 0.5s; }
.il3 { animation-delay: 1s; }
.il4 { animation-delay: 1.5s; }

@keyframes integ-float-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, 4px); }
}
@keyframes integ-float-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, 3px); }
}
@keyframes integ-float-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -4px); }
}
@keyframes integ-float-4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-3px, -3px); }
}
@keyframes line-draw {
  from { stroke-dashoffset: 30; opacity: 0.1; }
  to { stroke-dashoffset: 0; opacity: 0.6; }
}

/* --- Fine-Tuned LLMs: Neural Network --- */
.llm-node {
  fill: rgba(255, 77, 0, 0.3);
  stroke: var(--accent);
  stroke-width: 1;
}
.ln-i1 { animation: node-fire 2s ease-in-out infinite; animation-delay: 0s; }
.ln-i2 { animation: node-fire 2s ease-in-out infinite; animation-delay: 0.3s; }
.ln-i3 { animation: node-fire 2s ease-in-out infinite; animation-delay: 0.6s; }
.ln-h1 { animation: node-fire 2s ease-in-out infinite; animation-delay: 0.8s; }
.ln-h2 { animation: node-fire 2s ease-in-out infinite; animation-delay: 1.1s; }
.ln-h3 { animation: node-fire 2s ease-in-out infinite; animation-delay: 1.4s; }
.ln-o1 { animation: node-fire 2s ease-in-out infinite; animation-delay: 1.6s; }
.ln-o2 { animation: node-fire 2s ease-in-out infinite; animation-delay: 1.9s; }

.llm-synapse {
  stroke: var(--accent);
  stroke-width: 0.8;
  opacity: 0.15;
  stroke-dasharray: 20;
  animation: synapse-trace 3s linear infinite;
}
.ls1 { animation-delay: 0s; }
.ls2 { animation-delay: 0.2s; }
.ls3 { animation-delay: 0.4s; }
.ls4 { animation-delay: 0.6s; }
.ls5 { animation-delay: 0.8s; }
.ls6 { animation-delay: 1.0s; }
.ls7 { animation-delay: 1.2s; }
.ls8 { animation-delay: 1.4s; }
.ls9 { animation-delay: 1.6s; }
.ls10 { animation-delay: 1.8s; }
.ls11 { animation-delay: 2.0s; }

@keyframes node-fire {
  0%, 100% { fill: rgba(255, 77, 0, 0.2); r: 4; }
  50% { fill: var(--accent); r: 5; filter: drop-shadow(0 0 6px var(--accent)); }
}

@keyframes synapse-trace {
  0% { stroke-dashoffset: 40; opacity: 0.1; }
  50% { opacity: 0.5; }
  100% { stroke-dashoffset: 0; opacity: 0.1; }
}

/* --- AI-Powered Insights: Live Dashboard --- */
.insight-bar {
  fill: var(--accent);
  opacity: 0.5;
  transform-origin: bottom;
}
.ib1 { animation: bar-rise 2.5s ease-in-out infinite; animation-delay: 0s; }
.ib2 { animation: bar-rise 2.5s ease-in-out infinite; animation-delay: 0.3s; }
.ib3 { animation: bar-rise 2.5s ease-in-out infinite; animation-delay: 0.6s; }
.ib4 { animation: bar-rise 2.5s ease-in-out infinite; animation-delay: 0.9s; }

.insight-trend {
  stroke: #fff;
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 80;
  animation: trend-draw 3s ease-in-out infinite alternate;
}

.insight-dot {
  fill: #fff;
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px var(--accent));
}

@keyframes bar-rise {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 0.8; transform: scaleY(1); }
}

@keyframes trend-draw {
  from { stroke-dashoffset: 80; }
  to { stroke-dashoffset: 0; }
}

/* Bento icon size override for new animated SVGs */
.bento-icon .animated-svg {
  width: 48px;
  height: 48px;
}

.bento-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: auto;
}

@media (max-width: 900px) {
  .bento-grid.symmetrical {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TECH PARTNERS MARQUEE
   ============================================ */
.tech-partners {
  padding: 40px 0 60px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.tech-partners .section-label {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.tech-marquee-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.tech-marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: tech-scroll 35s linear infinite;
  align-items: center;
}

.tech-logo-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.tech-logo-item span {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tech-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  filter: invert(1) brightness(0.45);
}

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

@media (max-width: 768px) {
  .tech-logo {
    height: 28px;
    width: 28px;
  }
  .tech-logo-item span {
    font-size: 1.05rem;
  }
  .tech-marquee-track {
    gap: 40px;
    animation-duration: 22s;
  }
}

/* ============================================
   PROCESS / HOW WE OPERATE
   ============================================ */
.process-steps {
  position: relative;
  margin-top: 60px;
  padding-bottom: 10vh;
}

.process-step-wrapper {
  position: sticky;
  top: 20vh;
  margin-bottom: 40px;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px 80px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.8);
  transform-origin: top center;
  will-change: transform;
}

.process-step:hover {
  border-color: var(--accent);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.4;
  transition: var(--transition);
}

.process-step:hover .step-number {
  opacity: 1;
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================
   DIFFERENTIATORS (Marquee)
   ============================================ */
.differentiators {
  padding: 80px 0;
  overflow: hidden;
  background: var(--bg-secondary);
}

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

.marquee-wrapper {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 24px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

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

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

.marquee-item {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  min-width: 280px;
}

.marquee-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.marquee-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.projects-horizontal-wrapper {
  overflow: hidden;
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 80px;
}

.projects-horizontal-track {
  display: flex;
  width: max-content;
  padding: 0 10vw;
  gap: 80px;
}

/* Premium Project Card */
.project-card-3d {
  width: 600px;
  flex-shrink: 0;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: 48px;
  overflow: hidden;
  transition: border-color 0.5s ease;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-bg-parallax {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(255, 77, 0, 0.08) 0%, transparent 60%);
  z-index: 0;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card-3d:hover {
  border-color: rgba(255, 77, 0, 0.3);
}

.project-card-3d:hover .project-bg-parallax {
  transform: scale(1.05);
}

/* The glowing orb that follows the mouse */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 77, 0, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  /* Center on cursor */
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.project-card-3d:hover .card-glow {
  opacity: 1;
}

/* Elevate content above glow */
.card-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.project-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
}

.project-icon {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.05);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tags span {
  background: rgba(255, 77, 0, 0.1);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.project-metrics {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric strong {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 800;
}

.metric span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FOUNDER QUOTE
   ============================================ */
.founder-quote {
  padding: 120px 0;
  background: var(--bg-secondary);
  text-align: center;
}

.founder-quote blockquote {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto 24px;
}

.founder-quote blockquote .highlight {
  color: var(--accent);
}

.founder-name {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.founder-name strong {
  color: var(--text-primary);
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 20px;
  position: relative;
}

.cta-section p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-section .btn-primary {
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  display: block;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .stats .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .story .container {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .project-card.active {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #0a0a0a;
    flex-direction: column;
    padding: 100px 40px;
    gap: 28px;
    transition: var(--transition);
    border-left: 1px solid var(--border-color);
  }

  .nav-links.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .stats .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .process-step {
    grid-template-columns: 50px 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  .step-number {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .story-timeline {
    flex-wrap: wrap;
  }
}

/* ============================================
   PAGE TRANSITION OVERLAY
   ============================================ */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.transition-layer {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.transition-layer.layer-1 {
  background-color: var(--accent);
  z-index: 3;
}

.transition-layer.layer-2 {
  background-color: var(--secondary);
  z-index: 2;
}

.transition-layer.layer-3 {
  background-color: #000;
  z-index: 1;
}

.is-transitioning .transition-layer {
  animation: slideUp 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.is-transitioning .transition-layer.layer-1 {
  animation-delay: 0s;
}

.is-transitioning .transition-layer.layer-2 {
  animation-delay: 0.1s;
}

.is-transitioning .transition-layer.layer-3 {
  animation-delay: 0.2s;
}

@keyframes slideUp {
  0% {
    transform: translateY(0);
  }

  45%,
  55% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(-200%);
  }
}

/* ============================================
   FULL-SCREEN CONNECT OVERLAY
   ============================================ */
.connect-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #050505;
  z-index: 9998;
  /* Below transition layers */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.connect-close {
  position: absolute;
  top: 40px;
  right: 60px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.connect-close:hover {
  color: var(--accent);
}

.connect-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  width: 100%;
  max-width: 1200px;
  padding: 40px;
}

.connect-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.connect-left h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

.connect-left h2 span {
  color: var(--accent);
}

.connect-left p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.6;
}

.connect-right {
  display: flex;
  flex-direction: column;
}

.connect-right h3 {
  font-size: 2rem;
  margin-bottom: 32px;
  font-weight: 700;
}

.connect-form {
  background: #121212;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.connect-form input,
.connect-form select,
.connect-form textarea {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid transparent;
  color: var(--text-primary);
  padding: 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.connect-form input:focus,
.connect-form select:focus,
.connect-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #222;
}

.connect-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23999%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px top 50%;
  background-size: 12px auto;
  color-scheme: dark;
}

.connect-form select option {
  background: #1a1a1a;
  color: #ffffff;
  padding: 12px;
}

.connect-form select option:disabled {
  color: #666666;
}

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 77, 0, 0.4);
}

@media (max-width: 900px) {
  .connect-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px;
    margin-top: 40px;
    overflow-y: auto;
    height: 100vh;
  }

  .connect-close {
    top: 20px;
    right: 20px;
  }
}

/* ============================================
   DISCOVERY CALL OVERLAY
   ============================================ */
.discovery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #050505;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 80px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.discovery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.discovery-close:hover {
  color: var(--accent);
  background: rgba(255, 77, 0, 0.1);
  border-color: rgba(255, 77, 0, 0.3);
  transform: rotate(90deg);
}

.discovery-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  width: 100%;
  max-width: 1280px;
  padding: 0;
  min-height: auto;
  align-items: center;
  margin: 0 auto;
}

/* --- Discovery Info (Left Panel) --- */
.discovery-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.discovery-info-inner {
  position: relative;
}

.discovery-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 77, 0, 0.08);
  border: 1px solid rgba(255, 77, 0, 0.2);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
  animation: badge-float 4s ease-in-out infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent);
}

.discovery-info h2 {
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.discovery-info h2 span {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a50 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.discovery-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
}

.discovery-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.disc-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.disc-feature:hover {
  border-color: rgba(255, 77, 0, 0.25);
  background: rgba(255, 77, 0, 0.03);
  transform: translateX(4px);
}

.disc-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 77, 0, 0.1);
  border-radius: 12px;
}

.disc-feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.disc-feature strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.disc-feature span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Discovery Booking (Right Panel) --- */
.discovery-booking {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.discovery-booking::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff8a50, transparent);
  opacity: 0.8;
}

/* --- Calendar Widget --- */
.calendar-widget {
  margin-bottom: 24px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.calendar-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.cal-nav {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.cal-nav:hover {
  background: rgba(255, 77, 0, 0.1);
  border-color: rgba(255, 77, 0, 0.3);
  color: var(--accent);
}

.cal-nav svg {
  width: 18px;
  height: 18px;
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-days-header span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 8px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  cursor: pointer;
}

.cal-day:hover:not(.disabled):not(.empty) {
  background: rgba(255, 77, 0, 0.08);
  border-color: rgba(255, 77, 0, 0.3);
  transform: scale(1.05);
}

.cal-day.today {
  color: var(--accent);
  font-weight: 700;
}

.cal-day.today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.cal-day.selected {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 700;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 20px rgba(255, 77, 0, 0.4);
  transform: scale(1.05);
}

.cal-day.disabled {
  color: rgba(255, 255, 255, 0.12);
  cursor: not-allowed;
  pointer-events: none;
}

.cal-day.empty {
  pointer-events: none;
}

/* --- Time Slots --- */
.timeslots-wrapper {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  animation: slideInUp 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeslots-wrapper h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.time-slot {
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.time-slot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 77, 0, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.time-slot:hover {
  border-color: rgba(255, 77, 0, 0.4);
  color: var(--text-primary);
  background: rgba(255, 77, 0, 0.05);
  transform: translateY(-2px);
}

.time-slot:hover::before {
  opacity: 1;
}

.time-slot.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 77, 0, 0.35);
  transform: translateY(-2px);
}

.time-slot.selected::before {
  opacity: 0;
}

/* --- Continue Button --- */
.btn-booking-next {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-booking-next:disabled {
  background: rgba(255, 77, 0, 0.15);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-booking-next:not(:disabled):hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 77, 0, 0.4);
}

/* --- Step 2: Summary Bar --- */
.booking-summary-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 77, 0, 0.06);
  border: 1px solid rgba(255, 77, 0, 0.15);
  border-radius: 14px;
  margin-bottom: 28px;
}

.booking-back {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.booking-back:hover {
  background: rgba(255, 77, 0, 0.1);
  border-color: rgba(255, 77, 0, 0.3);
  color: var(--accent);
}

.booking-back svg {
  width: 16px;
  height: 16px;
}

.summary-date {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-time {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

/* --- Booking Form --- */
.booking-form {
  animation: slideInUp 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 77, 0, 0.03);
  box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.08);
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: var(--text-muted);
}

.booking-form select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FF4D00%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px top 50%;
  background-size: 12px auto;
  color-scheme: dark;
}

.booking-form select option {
  background: #1a1a1a;
  color: #ffffff;
  padding: 12px;
}

.booking-form select option:disabled {
  color: #666666;
}

.optional-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.btn-submit-booking {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.btn-submit-booking::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  animation: shine 4s infinite;
  z-index: 0;
}

.btn-submit-booking:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 77, 0, 0.4);
}

/* --- Step 3: Confirmation --- */
.booking-confirmed {
  text-align: center;
  padding: 40px 20px;
  animation: confirmFadeIn 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.confirm-checkmark {
  width: 100px;
  height: 100px;
  margin: 0 auto 28px;
}

.confirm-checkmark svg {
  width: 100%;
  height: 100%;
}

.confirm-circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: drawCircle 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

.confirm-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards;
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.booking-confirmed h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.confirm-message {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.confirm-message strong {
  color: var(--accent);
}

.confirm-details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}

.confirm-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.confirm-detail-row:last-child {
  border-bottom: none;
}

.confirm-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.confirm-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.confirm-close-btn {
  margin-top: 8px;
}

/* --- Slide-in-up animation --- */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* --- Discovery Responsive --- */
@media (max-width: 1024px) {
  .discovery-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 80px 24px 40px;
    align-items: start;
  }

  .discovery-info-inner {
    text-align: center;
  }

  .discovery-desc {
    max-width: 100%;
  }

  .discovery-features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .disc-feature {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .discovery-container {
    padding: 80px 16px 32px;
  }

  .discovery-booking {
    padding: 24px;
  }

  .timeslots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .discovery-features {
    flex-direction: column;
  }

  .discovery-close {
    top: 16px;
    right: 16px;
  }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {

  /* Disable Custom Cursor */
  .cursor {
    display: none !important;
  }

  body,
  a,
  button {
    cursor: auto !important;
  }

  /* Typography Sizing */
  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
    letter-spacing: -1px;
  }

  /* Performance Tweaks */
  .ambient-orb {
    opacity: 0.08;
    mix-blend-mode: normal;
  }

  /* Portrait Stacking Cards */
  .process-step {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 24px;
    text-align: center;
  }

  .step-number {
    font-size: 2rem;
  }

  /* Native Mobile Swipe Gallery (Replaces GSAP Scroll Hijack) */
  .projects-horizontal-wrapper {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
  }

  /* Hide scrollbar */
  .projects-horizontal-wrapper::-webkit-scrollbar {
    display: none;
  }

  .projects-horizontal-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .projects-horizontal-track {
    padding: 0 24px;
    gap: 16px;
    width: max-content;
  }

  .project-card-3d {
    width: 85vw;
    min-height: 400px;
    scroll-snap-align: center;
    padding: 32px;
  }
}