/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* Variables */
:root {
  --color-navy-950: #060A14;
  --color-navy-900: #0A0E1A;
  --color-navy-800: #0F1629;
  --color-navy-700: #151D35;
  --color-navy-600: #1C2642;
  --color-accent: #38BDF8;
  --color-accent-dim: rgba(56, 189, 248, 0.2);
  --color-accent-glow: rgba(56, 189, 248, 0.125);
  --color-text-primary: #F1F5F9;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #64748B;
  --color-card-bg: #0F1629;
  --color-card-border: #1E293B;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  font-family: var(--font-sans);
  background-color: var(--color-navy-900);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Typography Utilities */
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.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-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }

@media (min-width: 640px) {
  .sm\:text-lg { font-size: 1.125rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .lg\:text-xl { font-size: 1.25rem; }
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:text-6xl { font-size: 3.75rem; }
}

@media (min-width: 1280px) {
  .xl\:text-7xl { font-size: 4.5rem; }
}

.tracking-widest { letter-spacing: 0.1em; }
.tracking-tight { letter-spacing: -0.025em; }

/* Layout Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-2 { row-gap: 0.5rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:gap-20 { gap: 5rem; }
}

.max-w-xs { max-width: 20rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

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

/* Spacing */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.pt-8 { padding-top: 2rem; }
.pt-20 { padding-top: 5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 1024px) {
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
}

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
@media (min-width: 640px) {
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-12 { padding: 3rem; }
}

/* Backgrounds & Borders */
.bg-transparent { background-color: transparent; }
.bg-navy-950 { background-color: var(--color-navy-950); }
.bg-navy-900 { background-color: var(--color-navy-900); }
.bg-card-bg { background-color: var(--color-card-bg); }
.bg-accent { background-color: var(--color-accent); }
.bg-accent-10 { background-color: rgba(56, 189, 248, 0.1); }
.bg-card-bg-50 { background-color: rgba(15, 22, 41, 0.5); }
.bg-navy-950-80 { background-color: rgba(6, 10, 20, 0.8); }
.bg-navy-900-95 { background-color: rgba(10, 14, 26, 0.95); }
.bg-navy-900-98 { background-color: rgba(10, 14, 26, 0.98); }

.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-card-border { border-color: var(--color-card-border); }
.border-card-border-50 { border-color: rgba(30, 41, 59, 0.5); }
.border-accent { border-color: var(--color-accent); }
.border-accent-10 { border-color: rgba(56, 189, 248, 0.1); }
.border-accent-30 { border-color: rgba(56, 189, 248, 0.3); }
.border-accent-40 { border-color: rgba(56, 189, 248, 0.4); }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

.hover\:text-accent:hover { color: var(--color-accent); }
.hover\:bg-accent-90:hover { background-color: rgba(56, 189, 248, 0.9); }
.hover\:bg-accent-10:hover { background-color: rgba(56, 189, 248, 0.1); }
.hover\:border-accent-40:hover { border-color: rgba(56, 189, 248, 0.4); }
.hover\:border-accent-50:hover { border-color: rgba(56, 189, 248, 0.5); }
.hover\:border-accent-60:hover { border-color: rgba(56, 189, 248, 0.6); }
.group:hover .group-hover\:text-accent { color: var(--color-accent); }
.group:hover .group-hover\:translate-x-0\.5 { transform: translateX(0.125rem); }

/* Scanline texture overlay */
.bg-scanlines {
  position: relative;
}
.bg-scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(56, 189, 248, 0.015) 2px,
    rgba(56, 189, 248, 0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Grid background */
.bg-grid {
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Subtle grid for hero */
.bg-grid-hero {
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Card hover glow */
.card-glow {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-glow:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.08), 0 0 40px rgba(56, 189, 248, 0.04);
}

/* Button press */
.btn-press:active {
  transform: scale(0.97);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-navy-950);
}
::-webkit-scrollbar-thumb {
  background: var(--color-navy-600);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Selection */
::selection {
  background: rgba(56, 189, 248, 0.2);
  color: #F1F5F9;
}

/* Floating particles */
@keyframes float-up {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) translateX(20px);
    opacity: 0;
  }
}
.particle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(56, 189, 248, 0.3);
  bottom: -10px;
}

/* Scroll Animation Classes (Replaces Framer Motion) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Custom Contact Form Inputs */
.form-input {
  width: 100%;
  background-color: rgba(6, 10, 20, 0.8);
  border: 1px solid var(--color-card-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  transition: all 200ms;
}
.form-input::placeholder {
  color: var(--color-text-muted);
}
.form-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}
.resize-none { resize: none; }
.error-msg {
  color: #F87171;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  display: none;
}
.error-msg.show { display: block; }
.input-error { border-color: #F87171 !important; }

/* Responsive utility classes */
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:items-center { align-items: center; }
  .md\:items-end { align-items: flex-end; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}

/* Spinner */
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--color-navy-900);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Other Utilities */
.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.bg-red-500-60 { background-color: rgba(239, 68, 68, 0.6); }
.bg-yellow-500-60 { background-color: rgba(234, 179, 8, 0.6); }
.bg-green-500-60 { background-color: rgba(34, 197, 94, 0.6); }
.align-middle { vertical-align: middle; }
.self-start { align-self: flex-start; }

/* Timeline specifics */
.timeline-line-h {
  position: absolute;
  top: 52px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.4), rgba(56, 189, 248, 0.2));
}
.timeline-line-v {
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.4), rgba(56, 189, 248, 0.2));
}
