@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #0F172A;
  --color-secondary: #111827;
  --color-accent: #2563EB;
  --color-highlight: #38BDF8;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-primary);
  color: #F8FAFC;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-primary);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(56, 189, 248, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 
              0 0 20px 0px rgba(37, 99, 235, 0.1);
}

/* Grid Overlay Background */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 70%, transparent 100%);
  pointer-events: none;
}

/* Floating Radial Glow Lights */
.radial-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

.radial-glow-cyan {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

/* Animated Gradient Borders */
.gradient-border-btn {
  position: relative;
  border-radius: 9999px;
  background: linear-gradient(var(--color-primary), var(--color-primary)) padding-box,
              linear-gradient(135deg, var(--color-accent), var(--color-highlight)) border-box;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.gradient-border-btn:hover {
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Button Glow Effects */
.btn-glow {
  position: relative;
  transition: all 0.3s ease;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}
.btn-glow:hover::after {
  opacity: 0.75;
}

/* Infinite Scrolling Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.scroll-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.scroll-track:hover {
  animation-play-state: paused;
}

/* Interactive Timelines */
.timeline-dot {
  position: relative;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 50%;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.7);
    opacity: 1;
  }
  80%, 100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Hover Zoom Image effect */
.img-zoom-container {
  overflow: hidden;
}
.img-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom-container:hover img {
  transform: scale(1.05);
}

/* Cursor Glow Effect support */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: screen;
  display: none;
}

@media (min-width: 1024px) {
  .cursor-glow {
    display: block;
  }
}
