/* ═══════════ GRADIENT TEXT ═══════════ */
.text-gradient {
  background: linear-gradient(135deg, #6366F1 0%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════ PRIMARY BUTTON ═══════════ */
.btn-primary {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4F46E5 0%, #34D399 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

/* ═══════════ GLASSMORPHISM CARDS ═══════════ */
.glass-card {
  background: rgba(21, 25, 37, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(21, 25, 37, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -15px rgba(99, 102, 241, 0.15);
}

.glass-card-lg {
  background: rgba(21, 25, 37, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
  padding: 2.5rem;
}

/* ═══════════ FLOATING ORBS — animated glowing spheres inspired by 21st.dev ═══════════ */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 15%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
  animation: orbFloat1 12s ease-in-out infinite, orbPulse 4s ease-in-out infinite;
}

.orb-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 10%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.2) 0%, rgba(52, 211, 153, 0) 70%);
  animation: orbFloat2 15s ease-in-out infinite, orbPulse 5s ease-in-out infinite 1s;
}

.orb-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  left: 40%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
  animation: orbFloat3 10s ease-in-out infinite, orbPulse 3s ease-in-out infinite 2s;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-40px, 30px) scale(1.1); }
  50% { transform: translate(20px, -50px) scale(0.9); }
  75% { transform: translate(50px, 20px) scale(1.05); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -30px) scale(1.15); }
  66% { transform: translate(-30px, 40px) scale(0.85); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, -60px); }
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ═══════════ HERO RING — expanding pulse ring ═══════════ */
.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  margin-top: -300px;
  margin-left: -300px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.08);
  pointer-events: none;
  z-index: 0;
  animation: ringPulse 6s ease-out infinite;
}

.hero-ring::before,
.hero-ring::after {
  content: '';
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.05);
  animation: ringPulse 6s ease-out infinite 2s;
}

.hero-ring::after {
  inset: -120px;
  border-color: rgba(52, 211, 153, 0.04);
  animation-delay: 4s;
}

@keyframes ringPulse {
  0% { transform: scale(0.8); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ═══════════ HERO GLOWS ═══════════ */
.hero-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: glowFloat 8s ease-in-out infinite alternate;
}

.hero-glow-mint {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: glowFloat 10s ease-in-out infinite alternate-reverse;
}

/* ═══════════ GRAIN OVERLAY ═══════════ */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════ NAVBAR SCROLL ═══════════ */
.navbar-scrolled {
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ═══════════ ANIMATIONS ═══════════ */
@keyframes glowFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, 5%) scale(1.08); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-up-delay {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* ═══════════ SCROLL REVEAL ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
  .glass-card-lg {
    padding: 2rem;
  }
}

/* ═══════════ CUSTOM SCROLLBAR ═══════════ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0B0E14;
}

::-webkit-scrollbar-thumb {
  background: #6366F1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #818CF8;
}

/* ═══════════ SELECTION ═══════════ */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #F8FAFC;
}
