/* Fonts */
@font-face {
  font-family: 'Space Mono';
  src: url('./SpaceMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('./SpaceMono-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('./SpaceMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('./SpaceMono-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Mono', monospace;
  background-color: #000000;
  color: #ffffff;
  line-height: 1.6;
  cursor: none;
  overflow-x: hidden;
}

/* Disable custom cursor on mobile devices */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  
  .custom-cursor,
  .cursor-glow {
    display: none;
  }
}

/* Color Variables */
:root {
  --background: #000000;
  --foreground: #ffffff;
  --primary: #ffffff;
  --primary-foreground: #000000;
  --muted-foreground: #a3a3a3;
  --border: #333333;
  --card: #0a0a0a;
  --card-foreground: #ffffff;
}

/* Cursor Glow Effect */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: radial-gradient(circle 300px at var(--cursor-x, 0px) var(--cursor-y, 0px), 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 20%, 
    transparent 70%);
  transition: opacity 0.2s ease;
}

.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease;
}

.custom-cursor.hover {
  transform: scale(1.5);
  background: rgba(255, 255, 255, 0.1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.1);
}

.text-foreground { 
  color: var(--foreground);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
.text-primary { 
  color: var(--primary);
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.4), 0 0 50px rgba(255, 255, 255, 0.2);
}
.text-muted-foreground { color: var(--muted-foreground); }

.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-7xl { font-size: 4.5rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Layout */
.max-w-6xl {
  max-width: 72rem;
  margin: 0 auto;
}

.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

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

.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-x-12 > * + * { margin-left: 3rem; }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-20 { padding-top: 5rem; }
.pt-40 { padding-top: 10rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-top: 5rem; }
.mt-16 { margin-top: 4rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Responsive */
@media (min-width: 768px) {
  .md\\:flex { display: flex; }
  .md\\:text-2xl { font-size: 1.5rem; }
  .md\\:text-5xl { font-size: 3rem; }
  .md\\:text-7xl { font-size: 4.5rem; }
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\\:space-y-0 > * + * { margin-top: 0; }
  .md\\:flex-row { flex-direction: row; }
  .md\\:pt-40 { padding-top: 10rem; }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\\:order-1 { order: 1; }
  .lg\\:order-2 { order: 2; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Space Mono', monospace;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
/* Fixed size, pill shape, and global hover glow for all CTAs */
.btn-pill { border-radius: 9999px; }
.btn-fixed-size { width: 12rem; height: 3rem; padding: 0 !important; }
.btn-glow:hover {
  background: inherit !important;
  color: inherit !important;
  border-color: rgba(255,255,255,0.3) !important;
  box-shadow: 0 0 20px rgba(255,255,255,0.2), 0 0 40px rgba(255,255,255,0.1), 0 0 0 1px rgba(255,255,255,0.2) inset !important;
  text-shadow: none !important;
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

/* Equal-height cards grid */
.cards-grid { align-items: stretch; }
.cards-grid .card { display: flex; flex-direction: column; }
.cards-grid .card-header { flex: 0 0 auto; }
.cards-grid .card-content { flex: 1 1 auto; }

.card:hover {
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1), inset 0 0 30px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.card-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 1rem;
}

/* Hover Effects */
.hover-elevate {
  transition: all 0.3s ease;
}

.hover-elevate:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15), 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Navigation */
nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

nav .text-xl {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Logo styling in header */
nav img {
  height: 4rem;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  transition: filter 0.2s ease;
}

nav img:hover {
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

nav a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

/* Icons and Badges */
.icon {
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.badge {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--foreground);
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.05);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
/* Make value cards match services (remove white boxes, keep frosted look and icon glow) */
.why-card { background: transparent; }
.why-card .w-12 { filter: drop-shadow(0 0 10px rgba(255,255,255,0.15)); }

.tech-badge {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--muted-foreground);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05), inset 0 0 8px rgba(255, 255, 255, 0.03);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Project Images */
.project-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.project-image:hover {
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--muted-foreground);
  transition: all 0.5s ease;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.card:hover .placeholder-image {
  transform: scale(1.05);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* Timeline */
.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.timeline-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
  transform: translateX(5px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.timeline-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
  transform: translateX(5px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Gradients and Effects */
.bg-gradient-to-br {
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), transparent);
}

.rounded-2xl { border-radius: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { 
  border-radius: 50%; 
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), inset 0 0 15px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rounded-full:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.aspect-square { aspect-ratio: 1/1; }
.aspect-video { aspect-ratio: 16/9; }

.opacity-20 { opacity: 0.2; }
.opacity-40 { opacity: 0.4; }
.opacity-60 { opacity: 0.6; }

/* Backgrounds */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }

/* Borders */
.border-border { border-color: var(--border); }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }

/* Z-index */
.z-50 { z-index: 50; }

/* Globe background layer */
#globe-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.25; /* subtle for readability */
  pointer-events: none;
}

/* Header subtle pulse glow underline */
.nav-glow { position: relative; }
.nav-glow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 20%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.2) 80%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: subtlePulseSweep 4s ease-in-out infinite;
  filter: blur(1px);
  opacity: 0.6;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(255,255,255,0.2), 0 0 8px rgba(255,255,255,0.1);
}
/* Footer subtle glow top border replacement */
.footer-glow { position: relative; }
.footer-glow::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 20%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.5) 80%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: glowSweep 4s linear infinite;
  filter: blur(8px);
  opacity: 0.7;
  pointer-events: none;
}
/* Shared glow sweep animation */
@keyframes glowSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Human-like pulse animation */
@keyframes humanPulse {
  0% { 
    opacity: 0.3;
    transform: scaleX(0.8);
  }
  15% { 
    opacity: 0.9;
    transform: scaleX(1.1);
  }
  30% { 
    opacity: 0.4;
    transform: scaleX(0.9);
  }
  45% { 
    opacity: 0.95;
    transform: scaleX(1.05);
  }
  60% { 
    opacity: 0.5;
    transform: scaleX(0.95);
  }
  100% { 
    opacity: 0.3;
    transform: scaleX(0.8);
  }
}

/* Human pulse rate with left-to-right sweep */
@keyframes humanPulseSweep {
  0% { 
    background-position: 200% 0;
    opacity: 0.3;
  }
  15% { 
    background-position: 150% 0;
    opacity: 0.9;
  }
  30% { 
    background-position: 100% 0;
    opacity: 0.4;
  }
  45% { 
    background-position: 50% 0;
    opacity: 0.95;
  }
  60% { 
    background-position: 0% 0;
    opacity: 0.5;
  }
  100% { 
    background-position: -200% 0;
    opacity: 0.3;
  }
}

/* Subtle, slow pulse sweep animation */
@keyframes subtlePulseSweep {
  0% { 
    background-position: 200% 0;
    opacity: 0.2;
  }
  25% { 
    background-position: 100% 0;
    opacity: 0.4;
  }
  50% { 
    background-position: 0% 0;
    opacity: 0.3;
  }
  75% { 
    background-position: -100% 0;
    opacity: 0.2;
  }
  100% { 
    background-position: -200% 0;
    opacity: 0.1;
  }
}

/* Frosted glass section backgrounds */
.frosted {
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}
/* Standardize action buttons width and glow */
.btn-fixed { width: auto; min-width: 11rem; }
.btn-glow:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 20px rgba(255,255,255,0.2), 0 0 40px rgba(255,255,255,0.1), 0 10px 30px rgba(255,255,255,0.15);
  text-shadow: none;
}
/* Frosted variant for center hero button */
.btn-frosted {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 0 20px rgba(255,255,255,0.1), inset 0 0 20px rgba(255,255,255,0.05);
}

/* Enhanced blurry background for Book a Call button */
.btn-frosted-opaque {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 25px rgba(255,255,255,0.15), inset 0 0 25px rgba(255,255,255,0.08);
}

/* Floating Book a Call button */
.floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

/* CTA button (Book a Call) */
.btn-cta {
  border-color: rgba(255,255,255,0.25);
  color: var(--foreground);
  background: rgba(255,255,255,0.04);
}
.btn-cta:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 20px rgba(255,255,255,0.2), 0 0 40px rgba(255,255,255,0.1), 0 10px 30px rgba(255,255,255,0.15);
  text-shadow: none;
}
