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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #071b3b;
  border-radius: 4px;
  border: 1px solid rgba(14, 165, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover {
  background: #0ea5ff;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #020617;
  color: #ffffff;
  overflow-x: hidden;
}

/* Custom Cursor Glow */
.cursor-glow {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 50%, rgba(0,0,0,0) 70%);
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease;
  mix-blend-mode: screen;
}

/* Typography styles */
.font-tech {
  font-family: 'Orbitron', sans-serif;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(7, 27, 59, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(14, 165, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: rgba(0, 214, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 214, 255, 0.15);
}

/* Holographic Overlay */
.holo-glow {
  box-shadow: 0 0 15px rgba(14, 165, 255, 0.4), inset 0 0 15px rgba(14, 165, 255, 0.2);
}

.holo-glow-cyan {
  box-shadow: 0 0 15px rgba(0, 214, 255, 0.4), inset 0 0 15px rgba(0, 214, 255, 0.2);
}

/* Light sweep hover effect */
.sweep-card {
  position: relative;
  overflow: hidden;
}

.sweep-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(14, 165, 255, 0.1) 30%,
    rgba(0, 214, 255, 0.3) 50%,
    rgba(14, 165, 255, 0.1) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s ease-in-out;
}

.sweep-card:hover::before {
  left: 150%;
}

/* Digital Grid Floor perspective */
.grid-floor-container {
  perspective: 450px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

.grid-floor {
  position: absolute;
  top: 0;
  left: -50%;
  right: -50%;
  bottom: -100%;
  background-image: 
    linear-gradient(to right, rgba(14, 165, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 165, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: rotateX(65deg) translateY(-20%);
  transform-origin: top center;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 1000px;
  }
}

/* Loading Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Futuristic card borders */
.cyber-border-gradient {
  background: linear-gradient(135deg, rgba(14, 165, 255, 0.3) 0%, rgba(7, 27, 59, 0) 50%, rgba(0, 214, 255, 0.3) 100%);
}

/* SVG Flow lines */
.flow-path {
  stroke-dasharray: 12;
  animation: dash 30s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Text glow */
.text-glow {
  text-shadow: 0 0 10px rgba(14, 165, 255, 0.6), 0 0 20px rgba(14, 165, 255, 0.3);
}

.text-glow-cyan {
  text-shadow: 0 0 10px rgba(0, 214, 255, 0.6), 0 0 20px rgba(0, 214, 255, 0.3);
}

/* Metallic Text gradient */
.text-metallic {
  background: linear-gradient(to right, #ffffff 20%, #cbd5e1 50%, #ffffff 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background pulse dot matrix */
.dot-matrix {
  background-image: radial-gradient(rgba(14, 165, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Animated gradient background mesh */
.glow-mesh {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(14, 165, 255, 0.12) 0%, rgba(7, 27, 59, 0) 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Custom styles for Swiper pagination */
.swiper-pagination-bullet {
  background: rgba(14, 165, 255, 0.3) !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #00d4ff !important;
  width: 24px !important;
  border-radius: 4px !important;
}

/* Active Timeline module style */
.tech-module.active {
  border-color: rgba(0, 214, 255, 0.6) !important;
  background: rgba(7, 27, 59, 0.6) !important;
  box-shadow: 0 0 20px rgba(0, 214, 255, 0.25) !important;
}

/* Pulse animation */
@keyframes cyber-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

.cyber-pulse-node {
  animation: cyber-pulse 2s infinite ease-in-out;
}
