/* ============================================
   OneMark.in — Design System & Global Styles
   ============================================ */

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

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-tertiary: #1a1a3e;
  --bg-card: rgba(255, 255, 255, 0.03);
  --accent-cyan: #4A9FF5;
  --accent-purple: #2D7AE0;
  --accent-magenta: #1B5EB5;
  --accent-green: #00ff88;
  --accent-orange: #ff8c00;
  --accent-blue: #6BB3FF;
  --text-primary: #ffffff;
  --text-secondary: #8892b0;
  --text-tertiary: #5a6380;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  --gradient-secondary: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta));
  --gradient-glow: linear-gradient(135deg, rgba(74, 159, 245, 0.15), rgba(45, 122, 224, 0.15));

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --fs-hero: clamp(3rem, 8vw, 7rem);
  --fs-h1: clamp(2.2rem, 5vw, 4rem);
  --fs-h2: clamp(1.8rem, 4vw, 3rem);
  --fs-h3: clamp(1.3rem, 2.5vw, 1.8rem);
  --fs-h4: clamp(1.1rem, 2vw, 1.4rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small: clamp(0.8rem, 1vw, 0.9rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 10rem;

  /* Layout */
  --max-width: 1300px;
  --nav-height: 72px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-glow-cyan: 0 0 30px rgba(0, 240, 255, 0.15), 0 0 60px rgba(0, 240, 255, 0.05);
  --shadow-glow-purple: 0 0 30px rgba(123, 45, 255, 0.15), 0 0 60px rgba(123, 45, 255, 0.05);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Light Mode Overrides --- */
[data-theme="light"] {
  --bg-primary: #f0f4f8;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.6);
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;
  --glass: rgba(255, 255, 255, 0.4);
  --glass-hover: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-border-hover: rgba(0, 0, 0, 0.1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-purple);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

p {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  max-width: 70ch;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.4), 0 0 40px rgba(0, 240, 255, 0.1);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xxl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: var(--space-sm);
  padding: 6px 16px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 50px;
  background: rgba(0, 240, 255, 0.05);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  margin: 0 auto;
  max-width: 600px;
}

/* --- Loading Screen --- */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoFloat 2s ease-in-out infinite;
  position: relative;
}

.loader-logo::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gradient-primary);
  animation: lineExpand 1.5s ease-in-out infinite;
}

.loader-tagline {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-top: var(--space-md);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.loader-progress {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: var(--space-md);
  overflow: hidden;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: loadProgress 4s ease-in-out forwards;
}

/* 3D loading particles */
#loading-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

@keyframes logoFloat {

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

  50% {
    transform: translateY(-10px);
  }
}

@keyframes lineExpand {

  0%,
  100% {
    width: 20%;
    opacity: 0.3;
  }

  50% {
    width: 80%;
    opacity: 1;
  }
}

@keyframes loadProgress {
  0% {
    width: 0;
  }

  30% {
    width: 40%;
  }

  60% {
    width: 70%;
  }

  90% {
    width: 90%;
  }

  100% {
    width: 100%;
  }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-base);
  padding: 0 var(--space-md);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  z-index: 1001;
}

.nav-logo .logo-icon {
  display: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 20px;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
}

.nav-dropdown .dropdown-toggle:hover {
  color: var(--text-primary);
  background: var(--glass);
}

.nav-dropdown .dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: var(--transition-fast);
}

.nav-dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: rgba(17, 17, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-elevated);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.dropdown-menu a:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
}

.dropdown-menu a .dm-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Nav CTA Button */
.nav-cta {
  padding: 8px 20px !important;
  background: var(--gradient-primary) !important;
  color: var(--bg-primary) !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  -webkit-text-fill-color: var(--bg-primary);
  transition: var(--transition-base) !important;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.3) !important;
}

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

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

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

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

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

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

/* --- Three.js Canvas --- */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: var(--space-md);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.hero p {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  margin: 0 auto var(--space-lg);
  max-width: 600px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-cyan);
}

/* Ripple effect */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.glass-card:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

/* 3D Tilt Card */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card .card-inner {
  transition: var(--transition-base);
  transform-style: preserve-3d;
}

.tilt-card:hover .card-inner {
  transform: rotateY(5deg) rotateX(5deg);
}

/* --- 3D Icon Container --- */
.icon-3d {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  position: relative;
  transform-style: preserve-3d;
  transition: var(--transition-base);
}

.icon-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  filter: blur(20px);
  opacity: 0.4;
  z-index: -1;
}

.icon-3d:hover {
  transform: translateZ(20px) rotateY(15deg);
}

.icon-3d.cyan {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
}

.icon-3d.purple {
  background: rgba(123, 45, 255, 0.15);
  color: var(--accent-purple);
}

.icon-3d.magenta {
  background: rgba(255, 45, 170, 0.15);
  color: var(--accent-magenta);
}

.icon-3d.green {
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent-green);
}

.icon-3d.orange {
  background: rgba(255, 140, 0, 0.15);
  color: var(--accent-orange);
}

.icon-3d.blue {
  background: rgba(77, 124, 255, 0.15);
  color: var(--accent-blue);
}

/* --- Stats Counter --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--glass-border);
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Venture Cards --- */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.venture-card {
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transform-style: preserve-3d;
  perspective: 800px;
}

.venture-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-gradient, var(--gradient-glow));
  opacity: 0;
  transition: var(--transition-base);
}

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

.venture-card:hover {
  border-color: var(--card-accent, var(--accent-cyan));
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: 0 20px 60px var(--card-shadow, rgba(0, 240, 255, 0.1));
}

.venture-card>* {
  position: relative;
  z-index: 1;
}

.venture-card .venture-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.venture-card h3 {
  margin-bottom: 4px;
}

.venture-card .venture-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-xs);
}

.venture-card .service-tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.venture-card .venture-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  padding-top: var(--space-sm);
}

.venture-card .venture-link svg {
  transition: var(--transition-fast);
}

.venture-card:hover .venture-link svg {
  transform: translateX(4px);
}

/* --- Service Immersive Section --- */
.service-immersive {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.service-immersive .service-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  z-index: 0;
}

.service-immersive .service-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.service-immersive:nth-child(even) .service-content {
  direction: rtl;
}

.service-immersive:nth-child(even) .service-content>* {
  direction: ltr;
}

.service-visual {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-visual canvas {
  width: 100%;
  height: 100%;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: var(--space-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), var(--accent-magenta));
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-lg) - 5px);
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.timeline-item .timeline-date {
  font-size: var(--fs-small);
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.timeline-item h4 {
  margin-bottom: 6px;
}

/* --- Pipeline Roadmap --- */
.pipeline-track {
  position: relative;
  padding: var(--space-xl) 0;
}

.pipeline-node {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  margin-bottom: var(--space-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pipeline-node::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
}

.pipeline-node.active::before {
  background: var(--accent-green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.pipeline-node.upcoming::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.pipeline-node.future::before {
  background: var(--accent-purple);
  box-shadow: 0 0 20px rgba(123, 45, 255, 0.3);
}

.pipeline-node:hover {
  transform: translateX(8px);
  border-color: var(--glass-border-hover);
}

.pipeline-status {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pipeline-status.live {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.pipeline-status.soon {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.pipeline-status.planned {
  background: rgba(123, 45, 255, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(123, 45, 255, 0.2);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
}

.form-group {
  position: relative;
  margin-bottom: var(--space-md);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: var(--transition-fast);
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.form-group label {
  position: absolute;
  left: 20px;
  top: 16px;
  font-size: var(--fs-body);
  color: var(--text-tertiary);
  pointer-events: none;
  transition: var(--transition-fast);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
  top: -10px;
  left: 14px;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: var(--bg-primary);
  padding: 0 6px;
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid var(--glass-border);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: var(--fs-small);
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--glass-border);
  font-size: var(--fs-small);
  color: var(--text-tertiary);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.footer-socials a:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-cyan);
}

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

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* stagger delays */
.delay-1 {
  transition-delay: 0.1s;
}

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

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

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

.delay-5 {
  transition-delay: 0.5s;
}

/* --- Pulse Animation --- */
@keyframes pulse {

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

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes float {

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

  50% {
    transform: translateY(-20px);
  }
}

@keyframes rotate3d {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  }

  50% {
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.4);
  }
}

/* --- Page Header (for subpages) --- */
.page-header {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-height) + var(--space-lg));
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

/* --- Standalone Service Tag --- */
.service-tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: inline-block;
}

/* --- Standalone Label (for page headers) --- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: var(--space-sm);
  padding: 6px 16px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 50px;
  background: rgba(0, 240, 255, 0.05);
}

/* --- Contact Form Full Width --- */
.contact-form {
  max-width: 100%;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

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

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

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

  .service-immersive .service-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-md)) var(--space-md) var(--space-md);
    transition: var(--transition-base);
    border-left: 1px solid var(--glass-border);
  }

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

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding-left: var(--space-sm);
    background: transparent;
    backdrop-filter: none;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .stat-item::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 4rem);
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .section {
    padding: var(--space-xl) 0;
  }

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

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

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

  /* Reset order for alternating sections on mobile */
  [style*="order:-1"] {
    order: 0 !important;
  }

  .page-header {
    min-height: 40vh !important;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .glass-card {
    padding: var(--space-md);
  }

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

/* --- Utility Classes --- */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.w-full {
  width: 100%;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

/* Mouse Effects */
.client-logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.client-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
  cursor: pointer;
}

.client-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

.custom-cursor {
  position: fixed;
  width: 8px;
  /* Slightly smaller dot */
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  /* Centered */
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.custom-cursor-follower {
  position: fixed;
  width: 40px;
  /* Ring size */
  height: 40px;
  border: 1px solid rgba(74, 159, 245, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  /* Centered */
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

.custom-cursor.active {
  width: 12px;
  height: 12px;
  background-color: var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple);
}

.custom-cursor-follower.active {
  width: 60px;
  height: 60px;
  border-color: rgba(123, 45, 255, 0.5);
  background-color: rgba(123, 45, 255, 0.05);
  /* Subtle fill on hover */
}

/* Mouse Ripple */
.mouse-ripple {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(74, 159, 245, 0.3);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  animation: rippleExpand 1s forwards ease-out;
  z-index: 9997;
}

@keyframes rippleExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
    border-width: 2px;
  }

  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
    border-width: 0px;
  }
}

/* Click Particles */
.click-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  animation: particleBurst 0.8s forwards cubic-bezier(0, .9, .57, 1);
}

@keyframes particleBurst {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* Interactive Orb */
.interactive-orb {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 159, 245, 0.15) 0%, rgba(45, 122, 224, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  filter: blur(40px);
  mix-blend-mode: screen;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 992px) {
  .container {
    padding: 0 2rem;
  }

  .reveal-text {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {

  /* Disable custom cursor on mobile */
  .custom-cursor,
  .custom-cursor-follower,
  .mouse-ripple,
  .click-particle,
  .interactive-orb {
    display: none !important;
  }

  /* Restore default cursor */
  * {
    cursor: auto !important;
  }

  /* Layout Adjustments */
  .container {
    padding: 0 1.5rem;
  }

  .navbar .container {
    padding: 0;
  }

  .footer-grid,
  .ventures-grid,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Stats Grid: 2x2 on mobile */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  /* Clients Grid: Smaller icons, center aligned */
  .client-logo-grid {
    gap: 2rem;
  }

  .client-logo {
    height: 40px;
  }

  /* Global Section: Stack vertically */
  #global .container>div {
    grid-template-columns: 1fr !important;
  }

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

  .section {
    padding: 4rem 0;
  }

  .glass-card {
    padding: 1.5rem !important;
  }

  /* Navigation adjustments */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .menu-toggle {
    display: flex;
  }
}