@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap');
@import "tailwindcss";

@theme {
  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "Fira Code", monospace;
  
  --color-theme-deep: #050b1d;
  --color-theme-navy: #0e1e38;
  --color-theme-royal: #1e40af;
  --color-theme-primary: #2563eb;
  --color-theme-accent: #60a5fa;
  --color-theme-soft: #f0f7ff;
}

@layer utilities {
  /* Scroll reveal classes */
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
  }

  .glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
  }

  .glass-card-dark {
    background: rgba(14, 30, 56, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .glow-accent {
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.15);
  }

  .glow-accent-lg {
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.25);
  }
}

/* Custom background grid pattern */
.grid-bg-light {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
}

.grid-bg-dark {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Glowing blobs animation */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.animate-float-slow {
  animation: float-slow 10s ease-in-out infinite;
}

@keyframes float-reverse {
  0%, 100% {
    transform: translateY(0px) scale(1.05);
  }
  50% {
    transform: translateY(20px) scale(1);
  }
}

.animate-float-reverse {
  animation: float-reverse 12s ease-in-out infinite;
}

/* Page Loader */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #050b1d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Custom smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Premium Styling Effects */
.glow-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(96, 165, 250, 0.1), transparent);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.35);
}

.glow-card:hover::after {
  opacity: 1;
}

/* Premium Animated Shine Reflection */
.shine-hover-btn {
  position: relative;
  overflow: hidden;
}

.shine-hover-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.75s;
}

.shine-hover-btn:hover::before {
  left: 150%;
}

/* Underline Dynamic slide-in nav */
.nav-link-premium {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link-premium::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #1e40af, #2563eb);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-premium:hover::after,
.nav-link-premium.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Modern Gradient border decoration badge */
.premium-gradient-badge {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #1e40af;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.05);
}

.premium-gradient-badge-dark {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(30, 64, 175, 0.2) 100%);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: #93c5fd;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.25);
}

/* Float Animation */
@keyframes float-pawn {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float-pawn {
  animation: float-pawn 6s ease-in-out infinite;
}

/* High-tech pulsing radial background glow */
.premium-radial-glow {
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.12) 0%, rgba(5, 11, 29, 0) 70%);
}

