/* =====================================================
   WAZIRWIN - PREMIUM GAMING ENHANCEMENTS
   Advanced Animations, Glassmorphism, and Gaming Effects
   ===================================================== */

/* ---- Premium Gradient Definitions ---- */
:root {
  /* Premium Gradients */
  --gradient-primary: linear-gradient(135deg, #35C46A 0%, #2A9F58 100%);
  --gradient-primary-glow: linear-gradient(135deg, rgba(53, 196, 106, 0.4), rgba(42, 159, 88, 0.2));
  --gradient-dark: linear-gradient(180deg, #1C2530 0%, #161C22 100%);
  --gradient-gaming: linear-gradient(135deg, #35C46A 0%, #1C2530 100%);
  --gradient-card-hover: linear-gradient(135deg, rgba(53, 196, 106, 0.15) 0%, rgba(53, 196, 106, 0.05) 100%);
  
  /* Enhanced Shadows */
  --shadow-premium: 0 20px 60px rgba(53, 196, 106, 0.2), 0 0 40px rgba(53, 196, 106, 0.1);
  --shadow-glow-intense: 0 0 60px rgba(53, 196, 106, 0.4);
  --shadow-floating: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(53, 196, 106, 0.15);
}

/* ---- Smooth Scroll Behavior ---- */
html {
  scroll-behavior: smooth;
}

/* ---- Premium Keyframe Animations ---- */
@keyframes float-up {
  0% { transform: translateY(0px); opacity: 0; }
  100% { transform: translateY(-20px); opacity: 1; }
}

@keyframes float-down {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0px); opacity: 1; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(53, 196, 106, 0.3); }
  50% { box-shadow: 0 0 40px rgba(53, 196, 106, 0.6); }
}

@keyframes glow-pulse-intense {
  0%, 100% { box-shadow: var(--shadow-glow-intense); }
  50% { box-shadow: 0 0 80px rgba(53, 196, 106, 0.5); }
}

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

@keyframes scale-in {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-in-left {
  0% { transform: translateX(-50px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
  0% { transform: translateX(50px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes rotate-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes counter-up {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes gaming-border-glow {
  0% { border-color: rgba(53, 196, 106, 0.3); box-shadow: 0 0 10px rgba(53, 196, 106, 0.2); }
  50% { border-color: rgba(53, 196, 106, 0.8); box-shadow: 0 0 30px rgba(53, 196, 106, 0.5); }
  100% { border-color: rgba(53, 196, 106, 0.3); box-shadow: 0 0 10px rgba(53, 196, 106, 0.2); }
}

/* ---- Reveal Animations (Scroll-triggered via JS) ---- */
.reveal {
  opacity: 0;
  animation: float-up 0.8s ease-out forwards;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
.reveal-delay-4 { animation-delay: 0.4s; }

.reveal-right {
  opacity: 0;
  animation: slide-in-right 0.8s ease-out forwards;
}

/* ---- Premium Hero Enhancements ---- */
.hero {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(53, 196, 106, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(53, 196, 106, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-title {
  background: linear-gradient(135deg, #F0F4F8 0%, #35C46A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(53, 196, 106, 0.3);
}

.hero-title .line-accent {
  background: linear-gradient(135deg, #35C46A 0%, #2A9F58 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(53, 196, 106, 0.5);
  filter: drop-shadow(0 0 20px rgba(53, 196, 106, 0.4));
}

.hero-image-wrap {
  animation: glow-pulse 3s ease-in-out infinite;
  border: 2px solid rgba(53, 196, 106, 0.3);
  box-shadow: var(--shadow-floating);
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(53, 196, 106, 0.4), transparent);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0;
  animation: glow-pulse 3s ease-in-out infinite;
}

/* ---- Premium Button Enhancements ---- */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(53, 196, 106, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow-intense);
  border-color: rgba(53, 196, 106, 0.8);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-outline {
  border: 2px solid var(--primary);
  background: rgba(53, 196, 106, 0.05);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--gradient-card-hover);
  box-shadow: var(--shadow-premium);
  transform: translateY(-2px);
}

/* ---- Premium Card Enhancements ---- */
.card, .glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(53, 196, 106, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card::before, .glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(53, 196, 106, 0.1) 50%, transparent 70%);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
  opacity: 0;
  pointer-events: none;
}

.card:hover::before, .glass-card:hover::before {
  opacity: 1;
}

.card:hover, .glass-card:hover {
  border-color: rgba(53, 196, 106, 0.6);
  box-shadow: var(--shadow-premium);
  transform: translateY(-8px);
  background: var(--gradient-card-hover);
}

.glass-card {
  background: rgba(33, 45, 58, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(53, 196, 106, 0.25);
}

/* ---- Category Card Premium Styling ---- */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-floating);
  border: 2px solid rgba(53, 196, 106, 0.2);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(53, 196, 106, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.category-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-glow-intense);
  border-color: rgba(53, 196, 106, 0.6);
}

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

.category-card-img {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:hover .category-card-img {
  transform: scale(1.1);
}

/* ---- Blog Card Premium Styling ---- */
.blog-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(53, 196, 106, 0.15);
  background: rgba(33, 45, 58, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(53, 196, 106, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover {
  border-color: rgba(53, 196, 106, 0.5);
  box-shadow: var(--shadow-premium);
  transform: translateY(-6px);
}

.blog-card:hover::before {
  opacity: 1;
}

/* ---- Stat Item Premium Styling ---- */
.stat-item {
  position: relative;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(33, 45, 58, 0.4);
  border: 1px solid rgba(53, 196, 106, 0.2);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(53, 196, 106, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.stat-item:hover {
  border-color: rgba(53, 196, 106, 0.5);
  box-shadow: var(--shadow-premium);
  transform: translateY(-4px);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #35C46A 0%, #2A9F58 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(53, 196, 106, 0.3);
  animation: counter-up 0.6s ease-out;
}

/* ---- Navigation Premium Styling ---- */
#navbar {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(53, 196, 106, 0.1);
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(22, 28, 34, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(53, 196, 106, 0.2);
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 20px;
}

/* ---- Section Transitions ---- */
.section {
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 196, 106, 0.3), transparent);
  opacity: 0;
  animation: none;
}

/* ---- Floating Elements ---- */
.floating {
  animation: float-up 3s ease-in-out infinite;
}

.floating-delay-1 { animation-delay: 0s; }
.floating-delay-2 { animation-delay: 0.5s; }
.floating-delay-3 { animation-delay: 1s; }

/* ---- Premium Form Styling ---- */
input, textarea, select {
  background: rgba(33, 45, 58, 0.5);
  border: 1px solid rgba(53, 196, 106, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(53, 196, 106, 0.6);
  box-shadow: 0 0 20px rgba(53, 196, 106, 0.2);
  outline: none;
}

/* ---- Loading States ---- */
.loading {
  animation: rotate-slow 1s linear infinite;
}

/* ---- Hover Lift Effect ---- */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-floating);
}

/* ---- Glow Border Effect ---- */
.glow-border {
  border: 2px solid rgba(53, 196, 106, 0.3);
  animation: gaming-border-glow 2s ease-in-out infinite;
}

/* ---- Smooth Transitions for All Interactive Elements ---- */
a, button, input, select, textarea {
  transition: all 0.2s ease;
}

/* ---- Premium Scrollbar Styling ---- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(33, 45, 58, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #35C46A, #2A9F58);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2A9F58, #35C46A);
  box-shadow: 0 0 10px rgba(53, 196, 106, 0.5);
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
  .category-card:hover {
    transform: translateY(-8px) scale(1.01);
  }
  
  .btn:hover {
    transform: translateY(-2px);
  }
  
  .card:hover, .glass-card:hover {
    transform: translateY(-4px);
  }
}

/* ---- Phone Mockup & Floating Badges ---- */
.phone-mockup-container {
  position: relative;
  perspective: 1000px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.phone-frame {
  position: relative;
  width: 80%;
  padding: 12px;
  background: #1a1a1a;
  border-radius: 40px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(53, 196, 106, 0.2),
    inset 0 0 2px 1px rgba(255, 255, 255, 0.1);
  border: 4px solid #333;
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.phone-mockup-container:hover .phone-frame {
  transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
}

.phone-screen {
  position: relative;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 25px;
  background: #1a1a1a;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(33, 45, 58, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(53, 196, 106, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
  box-shadow: var(--shadow-floating);
  animation: float-up 4s ease-in-out infinite;
}

.badge-1 {
  top: 20%;
  right: -40px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 20%;
  left: -40px;
  animation-delay: 1s;
}

.badge-icon {
  font-size: 1.5rem;
}

.badge-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-value {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .phone-mockup-container {
    max-width: 260px;
    margin-top: var(--space-xl);
  }
  
  .badge-1 { right: -20px; }
  .badge-2 { left: -20px; }
  
  .phone-frame {
    transform: rotateY(0deg) rotateX(0deg);
  }
}
