/* WordPress Reset & Compatibility */
#wpadminbar {
  position: fixed !important;
  top: 0 !important;
}

body.admin-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.admin-bar header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px !important;
  }
}

/* Remove WordPress default margins */
.site-main {
  margin: 0 !important;
  padding: 0 !important;
}

article {
  margin: 0 !important;
}

@import url('https://fonts.cdnfonts.com/css/gilroy-bold');

:root {
  --primary: #ff0844;
  --secondary: #ffb199;
  --dark: #0a0a0a;
  --darker: #050505;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body,
body.home,
body.page-template-default { 
  font-family: 'Gilroy-Bold', 'Inter', sans-serif !important; 
  background: #0f0f0f !important; 
  color: #fff !important; 
  overflow-x: hidden !important;
  scroll-behavior: smooth !important;
  margin: 0 !important;
  padding: 0 !important;
}

h1,h2,h3,h4,h5,h6,p,span,a,li,div,label,input,textarea,button { 
  font-family: 'Gilroy-Bold', 'Inter', sans-serif !important; 
  font-weight: 700; 
  letter-spacing: -0.02em;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1a0000 0%, #0a0000 50%, #1a0000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-size: 120px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: preloaderPulse 1.5s ease-in-out;
  text-shadow: 0 0 40px rgba(255,8,68,0.8);
}

@keyframes preloaderPulse {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.preloader-text {
  position: absolute;
  bottom: 30%;
  font-size: 14px;
  color: #ff0844;
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: preloaderFade 1.5s ease-in-out infinite;
}

@keyframes preloaderFade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Gradient Text */
.gradient-text { 
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); 
  -webkit-background-clip: text; 
  background-clip: text; 
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Animated Gradient Background */
@keyframes gradientShift { 
  0%, 100% { background-position: 0% 50%; } 
  50% { background-position: 100% 50%; } 
}

.animated-gradient { 
  background: linear-gradient(270deg, var(--primary), var(--secondary), #ff6b9d, var(--primary)); 
  background-size: 400% 400%; 
  animation: gradientShift 15s ease infinite; 
}

/* Neon Glow Effects */
.neon-glow { 
  box-shadow: 
    0 0 20px rgba(255,8,68,0.4), 
    0 0 40px rgba(255,8,68,0.3),
    0 0 60px rgba(255,8,68,0.2); 
}

.neon-glow-strong {
  box-shadow: 
    0 0 30px rgba(255,8,68,0.6), 
    0 0 60px rgba(255,8,68,0.4),
    0 0 90px rgba(255,8,68,0.3),
    0 0 120px rgba(255,8,68,0.2);
}

/* Glass Morphism */
.glass { 
  background: rgba(255,255,255,0.03); 
  backdrop-filter: blur(20px); 
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
}

.glass-strong {
  background: rgba(255,255,255,0.06); 
  backdrop-filter: blur(30px); 
  border: 1px solid rgba(255,255,255,0.12);
}

/* 3D Card Effect */
.card-3d {
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d:hover {
  transform: translateY(-20px) rotateX(5deg) rotateY(5deg) scale(1.05);
}

/* Floating Animation */
@keyframes float { 
  0%, 100% { transform: translateY(0) rotate(0deg); } 
  33% { transform: translateY(-20px) rotate(2deg); }
  66% { transform: translateY(-10px) rotate(-2deg); }
}

.floating { animation: float 6s ease-in-out infinite; }

/* Particle Animation */
@keyframes particleFloat { 
  0% { transform: translate(0,0) rotate(0deg) scale(0); opacity: 0; } 
  10% { opacity: 1; }
  50% { transform: translate(var(--tx), var(--ty)) rotate(180deg) scale(1); opacity: 0.8; }
  90% { opacity: 0.5; } 
  100% { transform: translate(calc(var(--tx) * 2), calc(var(--ty) * 2)) rotate(360deg) scale(0); opacity: 0; } 
}

.particle { 
  position: absolute; 
  width: 8px; 
  height: 8px; 
  background: linear-gradient(135deg, var(--primary), var(--secondary)); 
  border-radius: 50%; 
  animation: particleFloat 20s infinite; 
  box-shadow: 0 0 20px rgba(255,8,68,0.8);
  filter: blur(1px);
}

/* Magnetic Button */
.magnetic-btn { 
  position: relative; 
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.magnetic-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.magnetic-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Shine Effect */
@keyframes shine { 
  0% { left: -150%; } 
  100% { left: 250%; } 
}

.shine-effect { 
  position: relative; 
  overflow: hidden; 
}

.shine-effect::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: -150%; 
  width: 100%; 
  height: 100%; 
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); 
  transition: left 0.7s;
  transform: skewX(-20deg);
}

.shine-effect:hover::before { 
  animation: shine 1.5s infinite;
}

/* Mobile Menu */
.mobile-menu { 
  transform: translateX(100%); 
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.active { 
  transform: translateX(0); 
}

/* Card Hover */
.card-hover { 
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.card-hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  background: linear-gradient(135deg, rgba(255,8,68,0.1), rgba(255,177,153,0.1));
}

.card-hover:hover::after {
  opacity: 1;
}

.card-hover:hover { 
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 30px 60px rgba(255,8,68,0.3);
}

/* Rotation Animation */
@keyframes rotate { 
  from { transform: rotate(0deg); } 
  to { transform: rotate(360deg); } 
}

.animate-rotate-slow { 
  animation: rotate 40s linear infinite; 
}

/* Fade In Up */
@keyframes fadeInUp { 
  from { opacity: 0; transform: translateY(60px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.fade-in-up { 
  animation: fadeInUp 1s ease-out forwards; 
}

/* Pulse Animation */
@keyframes pulse { 
  0%, 100% { transform: scale(1); opacity: 0.4; } 
  50% { transform: scale(1.2); opacity: 0.8; } 
}

.pulse-orb { 
  animation: pulse 6s ease-in-out infinite; 
}

/* Scale Animation */
@keyframes scaleUp {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.scale-animation {
  animation: scaleUp 3s ease-in-out infinite;
}

/* Glow Text */
.glow-text {
  text-shadow: 
    0 0 10px rgba(255,8,68,0.5),
    0 0 20px rgba(255,8,68,0.3),
    0 0 30px rgba(255,8,68,0.2);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, var(--primary), var(--secondary)); 
  border-radius: 10px;
}

/* Badge Pulse */
@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,8,68,0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255,8,68,0); }
}

.badge-pulse {
  animation: badgePulse 2s ease-in-out infinite;
}

/* Tilt Effect */
.tilt-effect {
  transition: transform 0.3s ease;
}

/* Number Counter Glow */
.counter-glow {
  text-shadow: 
    0 0 20px rgba(255,8,68,0.8),
    0 0 40px rgba(255,8,68,0.5),
    0 0 60px rgba(255,8,68,0.3);
}

/* Responsive */
@media (max-width: 768px) { 
  .hero-title { font-size: 2.5rem !important; }
  .particle { width: 4px; height: 4px; }
}

/* Loading Animation */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* Border Animation */
@keyframes borderRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.border-animate::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
  border-radius: inherit;
  z-index: -1;
  animation: borderRotate 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.border-animate:hover::before {
  opacity: 1;
}
