/* G2Own Main Styles - Futuristic Digital Marketplace */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Primary Color Palette */
  --primary-red: #8b0000;
  --primary-black: #000000;
  --primary-white: #ffffff;
  --dark-red: #660000;
  --light-red: #a50000;
  --neon-red: #ff0000;
  
  /* Background Colors */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #1a1a1a;
  --glass-bg: rgba(0, 0, 0, 0.7);
  --glass-border: rgba(139, 0, 0, 0.3);
    /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --text-accent: #8b0000;
  
  /* Effect Variables */
  --border-glow: rgba(139, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(139, 0, 0, 0.3);
  --shadow-intense: 0 0 40px rgba(139, 0, 0, 0.5);
  --blur-glass: 12px;
  
  /* Transition Timings */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Layout */
  --container-max: 1280px;
  --navbar-height: 80px;
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
}

/* ===== RESET AND BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ===== BACKGROUND EFFECTS ===== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 6s ease-in-out infinite;
}

.bg-glow-1 {
  top: 5rem;
  left: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
  animation-delay: 0s;
}

.bg-glow-2 {
  bottom: 2.5rem;
  right: 2.5rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation-delay: 2s;
}

.bg-glow-3 {
  top: 10rem;
  right: 5rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
  animation-delay: 4s;
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: 
    linear-gradient(to right, var(--primary-red) 1px, transparent 1px),
    linear-gradient(to bottom, var(--primary-red) 1px, transparent 1px);
  background-size: 80px 80px;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-red), var(--dark-red));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--light-red), var(--primary-red));
}

/* ===== UTILITY CLASSES ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--glass-border);
}

.gradient-text {
  background: linear-gradient(to right, var(--primary-red), var(--primary-white), var(--primary-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Enhanced animated gradient text for section headers */
.categories-section .gradient-text,
.support-section .gradient-text {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-white) 50%, var(--primary-red) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease-in-out infinite;
    position: relative;
    display: inline-block;
    will-change: background-position;
    transform: translateZ(0);
}

/* Ensure keyframes are available for section animations */
@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .categories-section .gradient-text,
    .support-section .gradient-text {
        animation: none;
        background-position: 50% 50%;
    }
}

.gradient-text-alt {
  background: linear-gradient(45deg, var(--primary-red), var(--primary-white));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== NAVIGATION STYLES ===== */

/* CRITICAL: Navbar Anti-Flicker Protection */
.navbar, #navbar {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* Only allow controlled transitions after load */
.page-loaded .navbar,
.page-loaded #navbar {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease !important;
}

/* Prevent any child elements from causing flicker */
.navbar *,
#navbar * {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  transform: none !important;
}

/* Only allow child transitions after page load */
.page-loaded .navbar *,
.page-loaded #navbar * {
  animation: initial;
  transform: initial;
}

#navbar {
  height: var(--navbar-height);
  transition: all var(--transition-normal);
  backdrop-filter: blur(var(--blur-glass));
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: var(--shadow-glow);
}

/* Legacy navbar styles - commented out for new optimized navbar */
/*
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(var(--blur-glass));
  border-bottom: 1px solid var(--border-glow);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.navbar-brand {
  z-index: 1001;
}
*/

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--primary-red), var(--primary-black));
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-glow);
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-secondary);
  border-radius: calc(var(--border-radius) - 2px);
}

.logo-icon span {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1.125rem;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-white));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-white), var(--primary-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-small .logo-icon {
  width: 2rem;
  height: 2rem;
}

.logo-small .logo-icon span {
  font-size: 0.875rem;
}

.logo-small .logo-text {
  font-size: 1.125rem;
}

/* Legacy navbar styles - commented out for new optimized navbar */
/*
.navbar-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  position: relative;
}

.nav-link:hover {
  color: var(--text-accent);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
*/

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 0.25rem;
  position: relative;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 1.25rem;
  height: 2px;
  background: var(--text-accent);
  transition: all var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(var(--blur-glass));
  border-bottom: 1px solid var(--border-glow);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  padding: 1rem 0;
}

.mobile-nav-link {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-normal);
}

.mobile-nav-link:hover {
  color: var(--text-accent);
  background: rgba(139, 0, 0, 0.1);
}

.mobile-menu-actions {
  padding: 1rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ===== HERO SECTION ===== */
#hero {
  min-height: 100vh;
  position: relative;
}

#hero h1 {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-title-line {
  display: block;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-white), var(--primary-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--text-muted);
  max-width: 48rem;
  margin: 0 auto 2rem;
  opacity: 1 !important;
  animation: slideInLeft 1.2s ease-out forwards;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== CAROUSEL ===== */
.carousel-wrapper {
  max-width: 75rem;
  margin: 0 auto;
}

.carousel {
  position: relative;
  background: rgba(26, 26, 26, 0.3);
  backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  overflow: hidden;
}

.carousel-container {
  overflow: hidden;
  border-radius: var(--border-radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  color: var(--text-accent);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(139, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

/* ===== SCROLL INDICATOR - OVERRIDDEN BY RESPONSIVE.CSS ===== */
/* ===== SCROLL INDICATOR (TEXT ONLY) ===== */
.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.3s ease;
  /* Force hidden during preloader - very aggressive */
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  pointer-events: none !important;
}

/* Visible state - only after preloader with preloader-complete class */
.scroll-indicator.preloader-complete:not(.hidden) {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: block !important;
}

/* Hidden state with high specificity */
.scroll-indicator.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.scroll-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(239, 68, 68, 0.9) !important;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Add bounce animation */
  animation: scroll-text-bounce 2s ease-in-out infinite;
}

/* Bounce animation for scroll text */
@keyframes scroll-text-bounce {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes scrollWheel {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* Emergency color override for scroll text - highest specificity */
html body .scroll-indicator#scroll-indicator .scroll-text {
  color: rgba(239, 68, 68, 0.9) !important;
}

html body .scroll-indicator.preloader-complete .scroll-text {
  color: rgba(239, 68, 68, 0.9) !important;
}

/* Force red color on all screen sizes */
@media screen and (max-width: 767px) {
  html body .scroll-indicator#scroll-indicator .scroll-text {
    color: rgba(239, 68, 68, 0.9) !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  html body .scroll-indicator#scroll-indicator .scroll-text {
    color: rgba(239, 68, 68, 0.9) !important;
  }
}

@media screen and (min-width: 1024px) {
  html body .scroll-indicator#scroll-indicator .scroll-text {
    color: rgba(239, 68, 68, 0.9) !important;
  }
}

/* ===== CATEGORIES SECTION ===== */
.categories,
.categories-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Background handled by hero-background-unified.css */

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 0, 0, 0.1);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 25px;
  padding: 0.5rem 1.2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-badge i {
  color: #8b0000;
  font-size: 1rem;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-white));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.section-divider {
  width: 5rem;
  height: 0.25rem;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-white));
  margin: 0 auto;
  border-radius: 0.125rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.category-card {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.1), transparent);
  transition: left 0.5s;
}

.category-card:hover::before {
  left: 100%;
}

.category-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-intense);
}

.category-card-featured {
  border-color: var(--primary-white);
}

.category-card-featured:hover {
  border-color: var(--primary-white);
}

.category-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(139, 0, 0, 0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--text-accent);
  transition: all var(--transition-normal);
}

.category-card-featured .category-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-white);
}

.category-card:hover .category-icon {
  background: rgba(139, 0, 0, 0.2);
  transform: scale(1.1);
}

.category-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-accent);
  margin-bottom: 1rem;
}

.category-card-featured .category-title {
  color: var(--primary-white);
}

.category-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.category-link {
  color: var(--text-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  margin-top: auto;
}

.category-card-featured .category-link {
  color: var(--primary-white);
}

.category-link:hover {
  transform: translateX(0.25rem);
}

.category-link svg {
  width: 1rem;
  height: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(var(--blur-glass));
  border-top: 1px solid var(--border-glow);
  padding: 2rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer-nav a:hover {
  color: var(--text-accent);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2rem;
  height: 2rem;
  background: rgba(139, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-accent);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: rgba(139, 0, 0, 0.2);
  transform: scale(1.1);
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glow);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Container inside categories section needs proper z-index */
.categories .container,
.categories-section .container {
  position: relative;
  z-index: 10;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 1rem;
  }
  
  .carousel-slide {
    gap: 1rem;
  }
  
  .game-card .w-64 {
    width: 16rem;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  #hero h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  
  .carousel-slide {
    flex-direction: column;
    align-items: center;
  }
  
  .game-card .w-64 {
    width: 100%;
    max-width: 20rem;
  }
  
  .grid.md\\:grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

@media (max-width: 640px) {
  .carousel-container {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  #hero .flex.gap-6 {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

/* ===== UTILITY CLASSES FOR ANIMATIONS ===== */
.transform-gpu {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.transition-all {
  transition: all var(--transition-normal);
}

.transition-fast {
  transition: all var(--transition-fast);
}

.transition-sslow {
  transition: all var(--transition-slow);
}

/* ===== LOADING STATES ===== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 0, 0, 0.3),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

.animate-bounce {
  animation: bounce 1.5s infinite;
}

/* ===== SECTION FOOTER STYLING ===== */
.section-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    position: relative;
}

.section-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.5), transparent);
    border-radius: 1px;
}

.view-all-btn {
    background: linear-gradient(135deg, #8b0000, #660000);
    border: 1px solid rgba(139, 0, 0, 0.4);
    box-shadow: 
        0 4px 15px rgba(139, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #a50000, #8b0000);
    box-shadow: 
        0 6px 20px rgba(139, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.view-all-btn .btn-icon {
    transition: transform 0.3s ease;
}

.view-all-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-footer {
        margin-top: 3rem;
        padding-top: 1.5rem;
    }
    
    .view-all-btn {
        min-width: 180px;
        width: 100%;
        max-width: 300px;
    }
}

/* ===== CATEGORIES GRID RESPONSIVE ===== */
/* Desktop: 3 columns, 2 rows */
@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Tablet: 2 columns, 3 rows */
@media (max-width: 1023px) and (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile: 1 column, 6 rows */
@media (max-width: 767px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== LIGHTNING BOLT ICON ===== */
.lightning-bolt-icon {
    font-size: 16px !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
}

.hero-badge:hover .lightning-bolt-icon {
    transform: scale(1.1) !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8) !important;
}
