/* ============================================
   TKM Ventures — Futuristic Website Styles
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-secondary: #0d0d15;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #e8e8ef;
  --text-dim: rgba(255, 255, 255, 0.5);
  --text-muted: rgba(255, 255, 255, 0.3);
  --cyan: #00f0ff;
  --purple: #7b61ff;
  --pink: #ff3cac;
  --gradient: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
}

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

::selection {
  background: rgba(123, 97, 255, 0.3);
  color: #fff;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* Particle Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Grid Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.logo-svg {
  height: 28px;
  width: auto;
  transition: transform 0.3s;
}

.logo-svg:hover {
  transform: scale(1.05);
}

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

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--text);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 40px 80px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-dim);
  font-family: var(--mono);
  margin-bottom: 32px;
  position: relative;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 240, 255, 0); }
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-line {
  display: block;
}

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

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 400;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: #000;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s;
}

.btn-primary:hover::before {
  background: rgba(255,255,255,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(123, 97, 255, 0.3);
}

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

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--surface);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 16px;
  border-radius: 14px;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

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

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

.hero-scroll-indicator span {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 40px;
}

.section-dark {
  background: var(--bg-secondary);
}

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

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.label-line {
  width: 32px;
  height: 1px;
  background: var(--gradient);
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 48px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

.about-desc {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 520px;
}

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

.stat-card {
  padding: 28px;
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--mono);
}

/* Glass Card */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

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

.capability {
  padding: 36px;
}

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(123, 97, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cap-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--cyan);
}

.capability h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.capability p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Project Card */
a.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.project-card {
}

.project-card-inner {
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.project-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0.5;
}

.project-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
  font-family: var(--mono);
  margin-bottom: 32px;
}

.project-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.project-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.project-icon svg,
.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-name {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.project-tagline {
  font-size: 16px;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 16px;
}

.project-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cyan);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.status-dot.pulse {
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
}

/* Phone Mockup */
.project-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  width: 220px;
  height: 440px;
  background: #111118;
  border-radius: 36px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(123, 97, 255, 0.1), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: #111118;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0a0a12;
  border-radius: 24px;
  overflow: hidden;
}

.mock-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px 16px 0;
}

.mock-header {
  margin-bottom: 20px;
}

.mock-title {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mock-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: mock-shimmer 3s ease-in-out infinite;
}

@keyframes mock-shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.mock-card:nth-child(3) { animation-delay: 0.3s; }
.mock-card:nth-child(4) { animation-delay: 0.6s; }

.mock-card-img {
  width: 48px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent) 10%, transparent));
  flex-shrink: 0;
}

.mock-card-lines {
  flex: 1;
}

.mock-line-long {
  width: 70%;
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  margin-bottom: 6px;
}

.mock-line-short {
  width: 45%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}

.mock-tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 12px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mock-tab {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
}

.mock-tab.active {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.phone-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: phone-glow-pulse 4s ease-in-out infinite;
}

@keyframes phone-glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Projects Grid */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-badge-pink {
  background: rgba(255, 60, 172, 0.1);
  border-color: rgba(255, 60, 172, 0.2);
  color: #ff3cac;
}

.project-badge-dim {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* Flagship Card */
.project-flagship {
  margin-bottom: 24px;
  position: relative;
}

/* Outer glow ring behind the card */
.project-flagship::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2DD4BF, rgba(45,212,191,0.2), #7b61ff, rgba(45,212,191,0.2), #2DD4BF);
  background-size: 300% 300%;
  animation: flagship-border-shift 6s ease infinite;
  z-index: -1;
  opacity: 0.5;
  filter: blur(1px);
}

@keyframes flagship-border-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.project-flagship .project-card-inner {
  background: linear-gradient(160deg, rgba(45,212,191,0.08) 0%, rgba(10,10,15,0.95) 30%, rgba(10,10,15,0.95) 70%, rgba(45,212,191,0.05) 100%);
  border: 1px solid rgba(45, 212, 191, 0.2);
  padding: 60px 56px;
  border-radius: 20px;
  position: relative;
}

.project-flagship .project-card-inner::before {
  background: linear-gradient(90deg, transparent, #2DD4BF, transparent);
  opacity: 0.9;
  height: 2px;
}

.project-flagship .project-card-inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,0.4), transparent);
}

/* Corner accents */
.project-flagship .project-content::before,
.project-flagship .project-content::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: rgba(45,212,191,0.2);
  border-style: solid;
  pointer-events: none;
}

.project-flagship .project-content::before {
  top: 20px;
  right: 20px;
  border-width: 1px 1px 0 0;
}

.project-flagship .project-content::after {
  bottom: 20px;
  left: 20px;
  border-width: 0 0 1px 1px;
}

.project-flagship .project-card-inner {
  box-shadow:
    0 0 40px rgba(45,212,191,0.08),
    0 0 80px rgba(45,212,191,0.04),
    inset 0 1px 0 rgba(45,212,191,0.12);
}

.project-flagship .project-card-inner:hover {
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow:
    0 0 60px rgba(45,212,191,0.12),
    0 0 120px rgba(45,212,191,0.06),
    0 20px 60px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(45,212,191,0.2);
}

.project-flagship:hover::before {
  opacity: 0.8;
}

.project-flagship .project-icon {
  width: 88px;
  height: 88px;
}

.project-flagship .project-name {
  font-size: 52px;
  letter-spacing: -1px;
}

.project-flagship .project-tagline {
  font-size: 18px;
  margin-bottom: 20px;
}

.project-flagship .project-desc {
  font-size: 16px;
  max-width: 480px;
  line-height: 1.8;
}

.project-flagship .project-badge {
  font-size: 11px;
  letter-spacing: 3px;
  padding: 6px 18px;
  margin-bottom: 40px;
  border-width: 1.5px;
  animation: flagship-badge-glow 3s ease-in-out infinite;
}

@keyframes flagship-badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(45,212,191,0); }
  50% { box-shadow: 0 0 12px rgba(45,212,191,0.15); }
}

.project-flagship .project-content {
  position: relative;
  gap: 60px;
}

.project-flagship .phone-frame {
  width: 270px;
  height: 540px;
}

.project-flagship .phone-glow {
  width: 450px;
  height: 450px;
}

/* Separator between flagship and other projects */
.project-flagship + .project-card::before {
  content: 'MORE PROJECTS';
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  font-family: var(--mono);
  color: var(--text-muted);
  padding: 20px 0 44px;
  background-image: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  background-size: 60% 1px;
  background-repeat: no-repeat;
  background-position: center top;
}

/* Contact */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

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



/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 40px;
  border-top: 1px solid var(--border);
}

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

.logo-svg-sm {
  height: 20px;
  width: auto;
}

.footer-text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== MOTION & EFFECTS ===== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  transition: none;
}

/* Glass card spotlight on hover */
.glass-card {
  background-image: radial-gradient(
    600px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(255,255,255,0.03),
    transparent 40%
  );
  background-blend-mode: screen;
}

/* Scanline sweep on project cards */
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,0.2), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.project-card-inner:hover .scanline {
  opacity: 1;
  animation: scanline-sweep 2s ease-in-out infinite;
}

@keyframes scanline-sweep {
  0% { top: 0; }
  100% { top: 100%; }
}

/* Hero title glitch */
.glitch-active {
  animation: glitch 0.5s ease-in-out;
}

@keyframes glitch {
  0% { transform: translate(0); filter: none; }
  10% { transform: translate(-2px, 1px); filter: hue-rotate(90deg); }
  20% { transform: translate(2px, -1px); filter: hue-rotate(-90deg); }
  30% { transform: translate(-1px, -1px); filter: hue-rotate(45deg); }
  40% { transform: translate(1px, 2px); filter: none; }
  50% { transform: translate(-1px, 0); filter: hue-rotate(-45deg); }
  60% { transform: translate(2px, 1px); filter: none; }
  70% { transform: translate(0, -2px); filter: hue-rotate(90deg); }
  80% { transform: translate(-2px, 0); filter: none; }
  90% { transform: translate(1px, 1px); filter: hue-rotate(-90deg); }
  100% { transform: translate(0); filter: none; }
}

/* Logo glitch */
.logo-glitch {
  animation: logo-glitch-anim 0.6s ease-in-out;
}

@keyframes logo-glitch-anim {
  0%, 100% { filter: none; transform: scale(1.05); }
  15% { filter: hue-rotate(90deg) brightness(1.5); transform: scale(1.05) translateX(-2px); }
  30% { filter: hue-rotate(-60deg) brightness(1.2); transform: scale(1.05) translateX(2px); }
  45% { filter: hue-rotate(180deg); transform: scale(1.05) translateX(-1px); }
  60% { filter: hue-rotate(-90deg) brightness(1.3); transform: scale(1.05) translateX(1px); }
  75% { filter: hue-rotate(45deg); transform: scale(1.05); }
}

/* Mouse trail sparks */
.mouse-spark {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  z-index: 1;
  animation: spark-fly 0.6s ease-out forwards;
}

@keyframes spark-fly {
  0% {
    opacity: 0.8;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0);
  }
}

/* Button ripple */
.btn-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-expand 0.8s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-expand {
  to {
    transform: translate(-50%, -50%) scale(40);
    opacity: 0;
  }
}

/* Capability card animate on scroll */
.cap-animate .cap-icon {
  animation: cap-icon-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cap-animate:nth-child(2) .cap-icon { animation-delay: 0.15s; }
.cap-animate:nth-child(3) .cap-icon { animation-delay: 0.3s; }

@keyframes cap-icon-pop {
  0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Section divider glow lines */
.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,97,255,0.2), transparent);
}

.section-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,97,255,0.2), transparent);
}

/* Floating ambient orbs in hero */
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,240,255,0.04) 0%, transparent 70%);
  top: 10%;
  right: -10%;
  animation: orb-float-1 12s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,97,255,0.05) 0%, transparent 70%);
  bottom: 15%;
  left: -5%;
  animation: orb-float-2 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.1); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.15); }
}

/* Nav links micro-interaction */
.nav-link {
  transition: color 0.3s, letter-spacing 0.3s;
}

.nav-link:hover {
  letter-spacing: 2px;
}

/* Hero badge shimmer */
.hero-badge {
  overflow: hidden;
}

.hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: badge-shimmer 4s ease-in-out infinite;
}

@keyframes badge-shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* Project icon hover pulse */
.project-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Flagship card breathing glow */
.project-flagship .project-card-inner {
  animation: flagship-breathe 4s ease-in-out infinite;
}

@keyframes flagship-breathe {
  0%, 100% {
    box-shadow:
      0 0 40px rgba(45,212,191,0.08),
      0 0 80px rgba(45,212,191,0.04),
      inset 0 1px 0 rgba(45,212,191,0.12);
  }
  50% {
    box-shadow:
      0 0 60px rgba(45,212,191,0.14),
      0 0 120px rgba(45,212,191,0.07),
      inset 0 1px 0 rgba(45,212,191,0.2);
  }
}

/* Contact section gradient border animation */
#contact .btn-primary {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

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

/* Responsive */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 10px 20px; }
  .hero { padding: 100px 20px 60px; }
  .section { padding: 80px 20px; }
  .footer { padding: 24px 20px; }

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

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

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

  .project-card-inner {
    padding: 28px;
  }

  .project-visual {
    order: -1;
  }

  .contact-email {
    font-size: 18px;
    padding: 16px 28px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .nav-links { gap: 20px; }
  .nav-link { font-size: 11px; }

  .hero-title {
    letter-spacing: -1px;
  }

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

  .phone-frame {
    width: 220px;
    height: 440px;
  }
}
