/* ========================================
   VAIS CONCEPTS - Digital Transformation Agency
   Modern CSS - 2026
   ======================================== */

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

:root {
  --bg: #0a0a0f;
  --bg-light: #12121a;
  --bg-card: #1a1a25;
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --accent: #4f6ef7;
  --accent-light: #7b93ff;
  --accent-glow: rgba(79, 110, 247, 0.3);
  --gradient: linear-gradient(135deg, #4f6ef7 0%, #00d4ff 100%);
  --gradient-warm: linear-gradient(135deg, #f7694f 0%, #ff9f00 100%);
  --radius: 12px;
  --radius-lg: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

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

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

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 16px;
}

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

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-outline {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.25);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  position: relative;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

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

.nav-links > a,
.nav-dropdown > .nav-dropdown-trigger {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-links > a:hover,
.nav-dropdown:hover > .nav-dropdown-trigger { color: var(--text); }

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

/* --- Mega Dropdown (horizontal) --- */
.nav-dropdown {
  position: static;
}

.nav-dropdown-trigger .chevron {
  font-size: 0.6rem;
  transition: transform 0.3s;
}

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

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 680px;
  background: rgba(14, 14, 22, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0.3s;
  pointer-events: none;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

/* Invisible bridge between trigger and dropdown */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  grid-column: 1 / -1;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--text-muted) !important;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}

.nav-dropdown-menu a:hover {
  background: rgba(79, 110, 247, 0.06);
  color: var(--text) !important;
  transform: translateY(-1px);
}

.nav-dropdown-menu a::after { display: none !important; }

.nav-dropdown-menu a i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: rgba(79, 110, 247, 0.08);
  color: var(--accent-light);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.nav-dropdown-menu a:hover i {
  background: rgba(79, 110, 247, 0.15);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(79, 110, 247, 0.15);
}

.nav-dropdown-menu a div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-dropdown-menu a span {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-top: 3px;
  opacity: 0.7;
  line-height: 1.3;
}

.nav-dropdown-menu a:hover span {
  opacity: 1;
}

.nav-dropdown-divider {
  display: none;
}

.nav-cta {
  padding: 10px 24px !important;
  border-radius: 50px;
  background: var(--gradient) !important;
  color: #fff !important;
  font-weight: 600 !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.25s;
  transform-origin: center;
  display: block;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 10000;
  pointer-events: none;
  transition: none;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

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

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}
.hero-bg-orb:nth-child(1) {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -100px;
  opacity: 0.15;
}
.hero-bg-orb:nth-child(2) {
  width: 400px; height: 400px;
  background: #00d4ff;
  bottom: -100px; left: -100px;
  opacity: 0.1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(79, 110, 247, 0.1);
  border: 1px solid rgba(79, 110, 247, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 32px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 { margin-bottom: 24px; }

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* --- Stats --- */
.stats {
  padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* --- Services --- */
.services {
  padding: 120px 0;
}

.services-header {
  margin-bottom: 64px;
}

/* --- Service Grid Layout --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
  border-color: rgba(79, 110, 247, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.35rem;
}

.service-icon i { line-height: 1; }

.service-card h3 { margin-bottom: 12px; }

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

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: var(--transition);
}
.service-card .service-link:hover { gap: 12px; }

.service-icon.ai { background: rgba(79, 110, 247, 0.15); color: #7b93ff; }
.service-icon.ecom { background: rgba(0, 212, 255, 0.15); color: #00d4ff; }
.service-icon.web { background: rgba(247, 105, 79, 0.15); color: #f7694f; }
.service-icon.marketing { background: rgba(255, 159, 0, 0.15); color: #ff9f00; }
.service-icon.consulting { background: rgba(0, 255, 136, 0.15); color: #00ff88; }
.service-icon.cloud { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

/* --- AI Highlight Section --- */
.ai-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(79, 110, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.ai-content h2 { margin-bottom: 24px; }

.ai-content > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.ai-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ai-feature-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(79, 110, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 0.95rem;
}

.ai-feature-icon i { line-height: 1; }

.ai-feature h4 { font-size: 1rem; margin-bottom: 4px; }
.ai-feature p { color: var(--text-muted); font-size: 0.9rem; }

.ai-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-visual-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ai-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  opacity: 0.85;
}

.ai-visual-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(79, 110, 247, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 212, 255, 0.12) 0%, transparent 50%);
  z-index: 1;
}

.ai-visual-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 40px;
  width: 100%;
}

.ai-node {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.ai-node:hover,
.ai-node.active {
  background: rgba(79, 110, 247, 0.15);
  border-color: rgba(79, 110, 247, 0.3);
  color: var(--accent-light);
  transform: scale(1.05);
}

/* --- Process --- */
.process {
  padding: 120px 0;
  background: var(--bg-light);
}

.process-header {
  text-align: center;
  margin-bottom: 80px;
}
.process-header .section-desc {
  margin: 16px auto 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(0, 212, 255, 0.5), var(--accent));
  opacity: 0.3;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(79, 110, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-light);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.process-step:hover .step-number {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.process-step h3 { margin-bottom: 12px; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Project Showcase --- */
.showcase {
  position: relative;
}

.showcase-pin {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.showcase-header {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
  pointer-events: none;
  width: 100%;
  padding: 0 24px;
  transition: opacity 0.3s;
}

.showcase-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.showcase-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.showcase-progress {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  z-index: 5;
  overflow: hidden;
}

.showcase-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 3px;
  transition: none;
}

.showcase-stage-label {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  z-index: 5;
  white-space: nowrap;
  opacity: 0.7;
}

.showcase-cards-section {
  padding: 80px 0 120px;
  position: relative;
  z-index: 4;
}

/* --- Showcase Feature Cards --- */
.showcase-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -40px;
  position: relative;
  z-index: 4;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.showcase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.showcase-card:hover {
  border-color: rgba(79, 110, 247, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.showcase-card:hover::before { transform: scaleX(1); }

.showcase-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.showcase-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.showcase-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.showcase-card-stats {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.showcase-stat strong {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-stat span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* --- Philosophy --- */
.philosophy {
  padding: 120px 0;
  background: var(--bg-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.philosophy-bg-img {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.philosophy-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  filter: blur(16px) saturate(1.2);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 75%);
}

.philosophy .container {
  position: relative;
  z-index: 1;
}

.philosophy-quote {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.7;
  max-width: 800px;
  margin: 32px auto 0;
  color: var(--text-muted);
  font-style: italic;
}

.philosophy-quote strong {
  color: var(--text);
  font-style: normal;
}

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

.cta-bg-img {
  position: absolute;
  inset: -20% 0;
  pointer-events: none;
  z-index: 0;
}

.cta-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: blur(30px) saturate(1.4);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}

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

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 { margin-bottom: 20px; }
.cta p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0 auto 40px;
}

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

/* --- Footer --- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px 0;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a:hover { color: var(--text); }

/* --- Enhanced Cursor System --- */
.cursor-glow {
  position: fixed;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 110, 247, 0.12) 0%, rgba(0, 212, 255, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 9996;
  opacity: 0;
  transition: opacity 0.5s;
  will-change: transform;
}

body:hover .cursor-glow { opacity: 1; }

.cursor-dot {
  position: fixed;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow:
    0 0 8px rgba(79, 110, 247, 0.8),
    0 0 20px rgba(79, 110, 247, 0.5),
    0 0 40px rgba(79, 110, 247, 0.2);
  will-change: transform;
}

body:hover .cursor-dot { opacity: 1; }

.cursor-trail {
  position: fixed;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(79, 110, 247, 0.5);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s, width 0.35s, height 0.35s, border-color 0.35s, background 0.35s;
  will-change: transform;
  box-shadow: 0 0 15px rgba(79, 110, 247, 0.15);
}

body:hover .cursor-trail { opacity: 1; }

.cursor-trail.hovering {
  width: 64px; height: 64px;
  border-color: var(--accent-light);
  background: rgba(79, 110, 247, 0.08);
  box-shadow: 0 0 30px rgba(79, 110, 247, 0.25);
}

.cursor-particle {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  pointer-events: none;
  z-index: 9997;
  box-shadow: 0 0 8px rgba(79, 110, 247, 0.6);
}

/* --- Ambient Canvas (mobile background video effect) --- */
.ambient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  max-width: 100%;
}

/* --- Orb Connection Canvas --- */
.orb-connection-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  max-width: 100%;
}

/* --- Ambient Floating Orbs (CSS animated, all devices) --- */
.orb-ambient {
  animation: orbFloat 12s ease-in-out infinite;
  will-change: transform, opacity;
}

.orb-a3 {
  width: 350px; height: 350px;
  background: linear-gradient(135deg, #4f6ef7, #a855f7);
  top: 30%; left: -10%;
  opacity: 0.08;
  animation-name: orbFloat3;
  animation-duration: 15s;
}

.orb-a4 {
  width: 250px; height: 250px;
  background: linear-gradient(135deg, #00d4ff, #4f6ef7);
  bottom: 10%; right: -5%;
  opacity: 0.06;
  animation-name: orbFloat4;
  animation-duration: 18s;
}

.orb-a5 {
  width: 180px; height: 180px;
  background: linear-gradient(135deg, #f7694f, #ff9f00);
  top: 60%; left: 40%;
  opacity: 0.04;
  animation-name: orbFloat5;
  animation-duration: 20s;
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.15); }
  50% { transform: translate(20px, 50px) scale(0.9); }
  75% { transform: translate(-40px, 20px) scale(1.1); }
}

@keyframes orbFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(-50px, 30px) scale(1.2); }
  60% { transform: translate(30px, -50px) scale(0.85); }
}

@keyframes orbFloat5 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.04; }
  33% { transform: translate(40px, -30px) scale(1.3); opacity: 0.07; }
  66% { transform: translate(-30px, 40px) scale(0.8); opacity: 0.03; }
}

/* --- Morph Text --- */
.morph-text {
  display: inline-block;
  position: relative;
}

.morph-char {
  display: inline-block;
  transition: transform 0.05s;
}

/* --- Morphing Blob (for AI section) --- */
.morph-blob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  z-index: 0;
  opacity: 0.12;
}

.morph-blob path {
  fill: var(--accent);
}

/* --- Service card glow on hover (bento enhancement) --- */
.service-card {
  position: relative;
}

.service-card .card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(79, 110, 247, 0.12) 0%, transparent 60%);
}

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

/* --- Reveal Animations (initial states) ---
   Only hide when JS is loaded (body gets .js class) --- */
body.js .reveal {
  opacity: 0;
  transform: translateY(40px);
}

body.js .reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

body.js .reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

body.js .reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

body.js .stagger-item {
  opacity: 0;
  transform: translateY(40px);
}

/* --- Mobile Nav (Full-Screen Overlay) --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 40px 60px;
  gap: 6px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0.35s;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -15%;
  width: 60vw;
  max-width: 400px;
  height: 60vw;
  max-height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 110, 247, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu > a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
  padding: 10px 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu > a:active { color: var(--accent-light); transform: scale(0.97); }

.mobile-sub-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-top: 16px;
  margin-bottom: 6px;
  padding-left: 2px;
}

.mobile-sub-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
}

.mobile-sub-links a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius);
  width: 100%;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.mobile-sub-links a:active {
  background: rgba(79, 110, 247, 0.08);
  color: var(--accent-light);
}
.mobile-sub-links a i {
  font-size: 0.9rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 110, 247, 0.08);
  color: var(--accent-light);
  flex-shrink: 0;
}

.mobile-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}
.mobile-close:active {
  background: rgba(79, 110, 247, 0.15);
  transform: scale(0.92);
}

/* --- Touch Ripple Effect --- */
.touch-ripple {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(79, 110, 247, 0.25);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ripple-expand 0.6s ease-out forwards;
}

@keyframes ripple-expand {
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* --- Touch Active Card States --- */
.service-card.touch-active,
.portfolio-card.touch-active,
.value-card.touch-active {
  border-color: rgba(79, 110, 247, 0.3) !important;
  box-shadow: 0 20px 60px rgba(79, 110, 247, 0.12);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-inner { grid-template-columns: 1fr; gap: 48px; }
  .ai-visual { max-width: 500px; margin: 0 auto; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .process-steps::before { display: none; }
  .showcase-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cursor-dot, .cursor-trail, .cursor-glow { display: none !important; }

  /* Nav switches to burger at tablet */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item h3 { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .showcase-cards { grid-template-columns: 1fr; }
  .showcase-cards-section { padding: 60px 0 80px; }
  .showcase-header { top: 70px; }
  .showcase-sub { font-size: 0.9rem; }
  .process-steps { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: 100svh; padding: 100px 0 40px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
    padding: 16px 32px;
    min-height: 52px;
    width: 100%;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: center; width: 100%; }
  .cta-buttons .btn { width: 100%; max-width: 320px; }

  /* Sections need less padding on mobile */
  .services, .portfolio, .philosophy, .cta, .ai-section { padding: 80px 0; }
  .process { padding: 80px 0; }

  /* Better mobile service cards */
  .service-card { padding: 28px 20px; }
  .service-card:hover { transform: none; }

  /* Larger touch targets */
  .btn { min-height: 48px; padding: 14px 24px; font-size: 0.9rem; }
  .service-link { min-height: 44px; display: inline-flex; align-items: center; }
  .feature-item { padding: 14px 16px; }
  .other-service-link { min-height: 56px; padding: 16px; }

  /* Mobile hero adjustments */
  h1 { font-size: clamp(1.8rem, 7vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .hero-badge { font-size: 0.75rem; padding: 6px 12px; margin-bottom: 20px; }
  .hero-sub { font-size: 1rem; margin-bottom: 28px; }
  .hero-content { max-width: 100%; }

  .philosophy-quote { font-size: clamp(1.1rem, 4vw, 1.5rem); }

  /* Decorative orbs smaller on mobile */
  .hero-bg-orb:nth-child(1) { width: 300px; height: 300px; }
  .hero-bg-orb:nth-child(2) { width: 200px; height: 200px; }
  .orb-a3 { width: 180px; height: 180px; }
  .orb-a4 { width: 130px; height: 130px; }
  .orb-a5 { width: 90px; height: 90px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .hero { padding: 90px 0 32px; }
  .hero-badge { font-size: 0.7rem; }
  .hero-sub { font-size: 0.9rem; line-height: 1.6; }
  .btn { padding: 12px 20px; font-size: 0.85rem; }
  .nav { padding: 12px 0; }
  .nav.scrolled { padding: 10px 0; }
  .nav-logo { font-size: 1.2rem; }
  .service-card { padding: 24px 16px; }
  .services, .portfolio, .philosophy, .cta, .ai-section { padding: 60px 0; }
  .process { padding: 60px 0; }
  .stats { padding: 40px 0; }
  .stats-grid { gap: 16px; }
  .stat-item h3 { font-size: clamp(1.4rem, 8vw, 2rem); }
  .stat-item p { font-size: 0.8rem; }
  .showcase-card { padding: 28px 20px; }
  .showcase-card h3 { font-size: 1rem; }
  .showcase-card-stats { gap: 16px; }
  .showcase-stat strong { font-size: 1.1rem; }
  .showcase-header h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .footer { padding: 60px 0 32px; }
  .step-number { width: 60px; height: 60px; font-size: 1.2rem; }
  .mobile-menu { padding: 80px 24px 40px; }
  .mobile-menu > a { font-size: 1.5rem; }
  .mobile-sub-links a { font-size: 1rem; padding: 10px 12px; }
}

/* ========================================
   SUBPAGES
   ======================================== */

/* --- Page Hero (compact) --- */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(160px);
  opacity: 0.08;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--accent-light); transition: var(--transition); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: 0.4; }

.page-hero h1 { margin-bottom: 20px; }
.page-hero .page-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* --- Content Sections --- */
.content-section {
  padding: 100px 0;
}
.content-section.alt { background: var(--bg-light); }

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

.content-split.reverse { direction: rtl; }
.content-split.reverse > * { direction: ltr; }

.content-text h2 { margin-bottom: 20px; }
.content-text > p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* --- Content Full Layout (replaces content-split) --- */
.content-full h2 { margin-bottom: 20px; }
.content-full > p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 800px;
}

.section-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(79, 110, 247, 0.12);
  color: var(--accent-light);
  -webkit-text-fill-color: var(--accent-light);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  font-size: 0.8rem;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* --- Feature Bento Grid (service detail pages) --- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

/* Bento sizing: zigzag wide/narrow */
.feature-item:nth-child(1) { grid-column: span 2; }
.feature-item:nth-child(4) { grid-column: span 2; }
.feature-item:nth-child(3):last-child { grid-column: 1 / -1; }

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid transparent;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Accent colors per card position */
.feature-item:nth-child(4n+1) { border-left-color: var(--accent); }
.feature-item:nth-child(4n+2) { border-left-color: #00d4ff; }
.feature-item:nth-child(4n+3) { border-left-color: #a855f7; }
.feature-item:nth-child(4n+4) { border-left-color: #f7694f; }

/* Subtle gradient bg for wide cards */
.feature-item:nth-child(4n+1) {
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.06) 0%, var(--bg-card) 60%);
}
.feature-item:nth-child(4n+4) {
  background: linear-gradient(135deg, rgba(247, 105, 79, 0.06) 0%, var(--bg-card) 60%);
}

.feature-item:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.feature-item:nth-child(4n+1):hover { border-left-color: var(--accent); box-shadow: 0 8px 32px rgba(79, 110, 247, 0.1); }
.feature-item:nth-child(4n+2):hover { border-left-color: #00d4ff; box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1); }
.feature-item:nth-child(4n+3):hover { border-left-color: #a855f7; box-shadow: 0 8px 32px rgba(168, 85, 247, 0.1); }
.feature-item:nth-child(4n+4):hover { border-left-color: #f7694f; box-shadow: 0 8px 32px rgba(247, 105, 79, 0.1); }

/* Icon circles with matching accent colors */
.feature-item > i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: var(--transition);
}

.feature-item:nth-child(4n+1) > i { background: rgba(79, 110, 247, 0.12); color: #7b93ff; }
.feature-item:nth-child(4n+2) > i { background: rgba(0, 212, 255, 0.12); color: #00d4ff; }
.feature-item:nth-child(4n+3) > i { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.feature-item:nth-child(4n+4) > i { background: rgba(247, 105, 79, 0.12); color: #f7694f; }

.feature-item:hover > i { transform: scale(1.1); }

.feature-item div h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  font-weight: 700;
}
.feature-item div p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* --- Tech Stack Grid --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tech-item {
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}
.tech-item:hover {
  border-color: rgba(79, 110, 247, 0.2);
  transform: translateY(-2px);
}
.tech-item i {
  font-size: 1.6rem;
  color: var(--accent-light);
  margin-bottom: 10px;
  display: block;
}
.tech-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tech-item-logo .tech-logo {
  width: auto;
  height: 1.6rem;
  margin-bottom: 10px;
  display: block;
  filter: brightness(0) invert(1) opacity(0.7);
  transition: var(--transition);
}
.tech-item-logo:hover .tech-logo {
  filter: brightness(0) invert(1) opacity(1);
}

/* --- Visual placeholder (service detail) --- */
.visual-block {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  position: relative;
  overflow: hidden;
}
.visual-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(79, 110, 247, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
}

/* --- About / Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.team-card:hover {
  border-color: rgba(79, 110, 247, 0.2);
  transform: translateY(-4px);
}

.team-photo {
  aspect-ratio: 1;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  opacity: 0.3;
}

.team-info {
  padding: 24px;
  text-align: center;
}
.team-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-info p { color: var(--accent-light); font-size: 0.85rem; font-weight: 500; }

/* --- Timeline (about page) --- */
.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(0, 212, 255, 0.3));
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.3);
}

.timeline-item h4 {
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.timeline-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.timeline-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* --- Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}
.value-card:hover {
  border-color: rgba(79, 110, 247, 0.2);
  transform: translateY(-4px);
}
.value-card i {
  font-size: 1.8rem;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.value-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.value-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-info-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.contact-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-detail:last-child { margin-bottom: 0; }
.contact-detail i {
  color: var(--accent-light);
  font-size: 1.1rem;
  margin-top: 2px;
  min-width: 20px;
}
.contact-detail div p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.contact-detail div p a { color: var(--accent-light); }
.contact-detail div p a:hover { text-decoration: underline; }

/* --- Service detail nav (other services) --- */
.other-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.other-service-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: var(--transition);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}
.other-service-link:hover {
  border-color: rgba(79, 110, 247, 0.2);
  transform: translateY(-2px);
}
.other-service-link i {
  color: var(--accent-light);
  font-size: 1.1rem;
}

/* --- Subpage responsive --- */
@media (max-width: 1024px) {
  .content-split { grid-template-columns: 1fr; gap: 48px; }
  .content-split.reverse { direction: ltr; }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(1),
  .feature-item:nth-child(4),
  .feature-item:nth-child(3):last-child { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .other-services { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 120px 0 60px; }
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .other-services { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-item:nth-child(1),
  .feature-item:nth-child(4),
  .feature-item:nth-child(3):last-child { grid-column: span 1; }
  .page-hero { padding: 100px 0 40px; }
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .page-hero .page-sub { font-size: 0.95rem; }
  .content-section { padding: 60px 0; }
  .content-text h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
}
@media (max-width: 480px) {
  .page-hero { padding: 80px 0 32px; }
  .breadcrumb { font-size: 0.75rem; }
  .content-section { padding: 48px 0; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tech-item { padding: 14px 12px; }
  .tech-item i { font-size: 1.3rem; }
  .tech-item span { font-size: 0.78rem; }
  .contact-info-card { padding: 24px 18px; }
  .form-group input,
  .form-group textarea,
  .form-group select { padding: 12px 14px; font-size: 0.9rem; }
  .team-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 32px; }
  .timeline-dot { left: -26px; width: 14px; height: 14px; }
  .value-card { padding: 28px 20px; }
}

/* ========================================
   REACT-BITS INSPIRED EFFECTS
   ======================================== */

/* --- Shimmer Text (section labels) --- */
.section-label {
  background: linear-gradient(
    110deg, var(--accent) 0%, var(--accent-light) 35%,
    #fff 50%, var(--accent-light) 65%, var(--accent) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* --- Animated Gradient Text --- */
.text-gradient {
  background: linear-gradient(135deg, #4f6ef7 0%, #00d4ff 33%, #a855f7 66%, #4f6ef7 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

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

/* --- Blur Text Reveal --- */
body.js .blur-reveal-word {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(8px);
  display: inline-block;
  transition: opacity 0.5s, filter 0.6s, transform 0.5s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.js .blur-reveal-word.revealed {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

/* --- Magnetic Button Effect --- */
.btn {
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1),
              box-shadow 0.3s ease,
              background 0.3s ease,
              border-color 0.3s ease,
              color 0.3s ease;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
    rgba(255,255,255,0.15) 0%, transparent 60%);
}

.btn:hover::after { opacity: 1; }

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 40px var(--accent-glow), 0 0 60px rgba(79, 110, 247, 0.15);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(79, 110, 247, 0.1);
}

.btn-outline:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

/* --- Spotlight Card Effect (enhanced) --- */
.service-card,
.showcase-card,
.value-card,
.contact-info-card,
.feature-item,
.other-service-link,
.tech-item {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}

.card-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(
    600px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(79, 110, 247, 0.06) 0%,
    rgba(0, 212, 255, 0.02) 30%,
    transparent 70%
  );
}

.service-card:hover .card-spotlight,
.showcase-card:hover .card-spotlight,
.value-card:hover .card-spotlight { opacity: 1; }

/* --- Gradient Border Animation on Hover --- */
.service-card::before,
.showcase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, #00d4ff 50%, var(--accent-light) 80%, transparent 100%);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover::before,
.showcase-card:hover::before {
  transform: scaleX(1);
  animation: borderFlow 1.5s linear infinite;
}

@keyframes borderFlow {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --- Aurora Background Sections --- */
.aurora-bg {
  position: relative;
  overflow: hidden;
}

.aurora-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(79, 110, 247, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 30% 50% at 50% 20%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
  animation: auroraMove 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes auroraMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(3%, -2%) rotate(1deg); }
  50% { transform: translate(-2%, 3%) rotate(-1deg); }
  75% { transform: translate(2%, 1%) rotate(0.5deg); }
}

.aurora-bg > *:not([aria-hidden]) { position: relative; z-index: 1; }

/* --- Nav Link Hover: Underline Grow + Glow --- */
.nav-links > a:hover::after {
  width: 100%;
  box-shadow: 0 2px 8px rgba(79, 110, 247, 0.4);
}

/* --- Service Card Enhanced Hover (3D Tilt via JS) --- */
.service-card {
  transform-style: preserve-3d;
  perspective: 800px;
}

.service-card:hover {
  border-color: rgba(79, 110, 247, 0.15);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 0 30px rgba(79, 110, 247, 0.05);
}

/* --- Floating Icon Micro-Animation --- */
.service-icon,
.ai-feature-icon,
.showcase-card-icon {
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.service-card:hover .service-icon,
.showcase-card:hover .showcase-card-icon {
  transform: translateY(-3px) scale(1.08);
}

.ai-feature:hover .ai-feature-icon {
  transform: translateY(-2px) scale(1.05);
}

/* --- Process Step Hover Glow Ring --- */
.step-number {
  transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  position: relative;
}

.process-step:hover .step-number {
  box-shadow: 0 0 0 6px rgba(79, 110, 247, 0.15), 0 0 40px var(--accent-glow);
}

/* --- Stat Item Hover --- */
.stat-item {
  transition: transform 0.3s ease;
  cursor: default;
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-item:hover h3 {
  text-shadow: 0 0 30px rgba(79, 110, 247, 0.4);
}

/* --- Loading Skeleton Shimmer --- */
@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --- Smooth Page Load Fade --- */
body {
  animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Focus Ring for Accessibility --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --- Selection --- */
::selection {
  background: var(--accent);
  color: #fff;
}
