

@import "tailwindcss";

@theme {
  --font-sans: 'Manrope', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-arabic: 'Cairo', sans-serif;

  --animate-blob: blob 7s infinite;
  --animate-scan: scan 8s ease-in-out infinite;
  --animate-gradient-x: gradient-x 3s ease infinite;
  --animate-float: float 6s ease-in-out infinite;
  --animate-spin-slow: spin 20s linear infinite;
  --animate-drift-right: drift-right 25s linear infinite;
  --animate-drift-left: drift-left 30s linear infinite;
  --animate-drift-diagonal: drift-diagonal 28s linear infinite;

  @keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
  }
  @keyframes scan {
    0% { transform: translateY(0vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
  }
  @keyframes gradient-x {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
  }
  @keyframes drift-right {
    0% { transform: translateX(-10vw) translateY(0px); }
    100% { transform: translateX(110vw) translateY(20px); }
  }
  @keyframes drift-left {
    0% { transform: translateX(110vw) translateY(10px); }
    100% { transform: translateX(-10vw) translateY(-10px); }
  }
  @keyframes drift-diagonal {
    0% { transform: translateX(-10vw) translateY(-10vh); }
    100% { transform: translateX(110vw) translateY(110vh); }
  }
}

@layer base {
  /* Global Styles & Animations */
  :root {
    --primary-glow: conic-gradient(from 180deg at 50% 50%, #2a8af6 0deg, #a853ba 180deg, #e92a67 360deg);
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
  }

  body {
    min-height: 100vh;
    width: 100%;
    background-color: #030712;
    background-image:
      radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 25%),
      radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 25%);
    color: #f8fafc;
    overflow-x: hidden;
    font-family: 'Manrope', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Premium Typography */
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    font-weight: 700;
  }

  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #030712;
  }
  ::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid #030712;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #334155;
  }
}

@layer components {
  /* Vignette for Deep Space Feel */
  .bg-radial-vignette {
    background: radial-gradient(circle at center, transparent 40%, #030712 100%);
  }

  /* Premium Text Gradients */
  .text-gradient-premium {
    background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .text-gradient-blue {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .text-gradient-gold {
    background: linear-gradient(135deg, #FDE047 0%, #EAB308 50%, #A16207 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Text Glows */
  .text-glow-blue {
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
  }

  .text-glow-white {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  }

  /* Glassmorphism Card - Premium */
  .glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
      0 20px 25px -5px rgba(0, 0, 0, 0.2),
      0 10px 10px -5px rgba(0, 0, 0, 0.1),
      0 0 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
  }

  /* Shine Animation */
  .shine-effect {
    position: relative;
    overflow: hidden;
  }

  .shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
  }

  /* GSAP Scroll Animation Initial States */
  .testimonial-card,
  .pricing-card,
  .faq-item,
  .feature-card,
  .gallery-item,
  .stat-item {
    opacity: 0;
    transform: translateY(30px);
  }

  .animate-blob {
    animation: blob 7s infinite;
  }

  .animation-delay-2000 {
    animation-delay: 2s;
  }

  .animation-delay-4000 {
    animation-delay: 4s;
  }

  /* Hero Background Image Styles */
  .hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: opacity;
  }

  .hero-bg-animate {
    animation: slowZoom 20s ease-out forwards;
  }
}

@media (min-width: 1920px) {
  .hero-bg-image {
    image-rendering: auto;
  }
}

@keyframes shine {
  from { mask-position: 150%; }
  to { mask-position: -50%; }
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}