/* =========================================== */
/* JFSN PORTFOLIO - MAIN STYLESHEET */
/* Extracted from index.html for better performance */
/* =========================================== */

/* =========================================== */
/* UTILITY CLASSES - Replace Inline Styles */
/* =========================================== */

/* Icon Sizes */
.icon-small {
  height: 32px;
  width: 29px;
}

/* Absolute Positioning */
.absolute-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.absolute-fill-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flex Layouts */
.flex-center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flex-center-gap-small {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.flex-center-gap-medium {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.flex-gap-medium {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Footer Animation States */
.footer-element-visible {
  opacity: 1 !important;
  transform: translateY(0px) !important;
}

.footer-content-layout {
  transform: translateY(0px) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 20px;
  padding-bottom: 20px;
  position: relative;
  bottom: 0;
}

.footer-left-layout {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 20px;
  margin-top: 35px;
}

/* Text Sizes */
.text-xs {
  font-size: 0.65rem;
}

/* Margins */
.margin-right-small {
  margin-right: -0.5rem !important;
}

.margin-left-small {
  margin-left: -0.5rem !important;
}

/* Visibility States */
.hidden {
  display: none;
}

.opacity-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Z-Index Layers */
.z-1 {
  z-index: 1;
}

.z-2 {
  z-index: 2;
}

.opacity-1 {
  opacity: 1;
}

.opacity-0 {
  opacity: 0;
}

/* Button States */
.button-enabled {
  pointer-events: auto !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

/* =========================================== */
/* STANDARDIZED COLOR SYSTEM */
/* Purple/Indigo Brand Colors */
/* =========================================== */

:root {
  /* ===== PRIMARY BRAND COLOR (Purple/Indigo) ===== */
  --brand-primary: #6366f1;              /* Main brand color - Indigo 500 */
  --brand-primary-rgb: 99, 102, 241;     /* RGB values for alpha compositing */
  
  /* ===== BRAND COLOR SCALE ===== */
  /* Light to Dark progression for various UI needs */
  --brand-50: #f0f9ff;                   /* Lightest - backgrounds */
  --brand-100: #e0f2fe;                  /* Very light - subtle backgrounds */
  --brand-200: #bae6fd;                  /* Light - hover backgrounds */
  --brand-300: #7dd3fc;                  /* Medium light - borders */
  --brand-400: #8b5cf6;                  /* Medium - secondary elements */
  --brand-500: #6366f1;                  /* Main - primary elements */
  --brand-600: #7c3aed;                  /* Medium dark - hover states */
  --brand-700: #5b21b6;                  /* Dark - active states */
  --brand-800: #4c1d95;                  /* Darker - pressed states */
  --brand-900: #3b0764;                  /* Darkest - deep contrast */
  
  /* ===== INTERACTIVE STATES ===== */
  --brand-hover: #7c3aed;                /* Hover state color */
  --brand-active: #5b21b6;               /* Active/pressed state */
  --brand-focus: rgba(99, 102, 241, 0.25); /* Focus ring color */
  
  /* ===== ACCENT COLORS ===== */
  --brand-accent-light: #a855f7;         /* Light purple for badges, tags */
  --brand-accent: #9333ea;               /* Accent purple for highlights */
  --brand-accent-dark: #6b21a8;          /* Dark accent for contrast */
  
  /* ===== GRADIENTS ===== */
  /* Consistent gradients throughout the site */
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-primary-hover: linear-gradient(135deg, #7c3aed, #9333ea);
  --gradient-accent: linear-gradient(135deg, #9333ea, #a855f7);
  --gradient-accent-reverse: linear-gradient(135deg, #a855f7, #6366f1);
  --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  
  /* ===== SEMANTIC USE CASES ===== */
  /* Named by purpose for clarity */
  --color-button-primary: var(--brand-primary);
  --color-button-primary-hover: var(--brand-hover);
  --color-button-primary-active: var(--brand-active);
  
  --color-link: var(--brand-primary);
  --color-link-hover: var(--brand-600);
  --color-link-visited: var(--brand-700);
  
  --color-badge: var(--brand-accent-light);
  --color-tag: var(--brand-400);
  --color-highlight: var(--brand-200);
  
  --color-border-focus: var(--brand-primary);
  --color-border-active: var(--brand-600);
  
  /* ===== OPACITY VARIANTS ===== */
  /* For overlays, backgrounds, and transparency needs */
  --brand-alpha-10: rgba(99, 102, 241, 0.1);
  --brand-alpha-20: rgba(99, 102, 241, 0.2);
  --brand-alpha-30: rgba(99, 102, 241, 0.3);
  --brand-alpha-40: rgba(99, 102, 241, 0.4);
  --brand-alpha-50: rgba(99, 102, 241, 0.5);
  --brand-alpha-60: rgba(99, 102, 241, 0.6);
  --brand-alpha-70: rgba(99, 102, 241, 0.7);
  --brand-alpha-80: rgba(99, 102, 241, 0.8);
  --brand-alpha-90: rgba(99, 102, 241, 0.9);
}

/* ===== DARK MODE ADJUSTMENTS ===== */
[data-bs-theme="dark"] {
  /* Slightly adjust purples for dark mode readability */
  --brand-primary: #8b5cf6;              /* Lighter purple for dark backgrounds */
  --brand-hover: #a855f7;                /* Even lighter for hover */
  --brand-active: #9333ea;               /* Medium for active */
  
  /* Adjust opacity for dark mode */
  --brand-alpha-10: rgba(139, 92, 246, 0.1);
  --brand-alpha-20: rgba(139, 92, 246, 0.2);
  --brand-alpha-30: rgba(139, 92, 246, 0.3);
}

/* =========================================== */
/* END COLOR SYSTEM */
/* =========================================== */

/* ===== ACCESSIBILITY: REDUCED MOTION SUPPORT ===== */
/* Respect user's motion preferences for better accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================== */
/* CONSISTENT BUTTON & LINK SYSTEM */
/* =========================================== */

/* Override Bootstrap's default blue with purple theme */
.btn-primary {
  --bs-btn-bg: var(--gradient-primary) !important;
  --bs-btn-border-color: transparent !important;
  --bs-btn-hover-bg: var(--gradient-primary-hover) !important;
  --bs-btn-hover-border-color: transparent !important;
  --bs-btn-active-bg: var(--brand-active) !important;
  --bs-btn-active-border-color: transparent !important;
  background: var(--gradient-primary) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover {
  background: var(--gradient-primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:active,
.btn-primary.active {
  background: var(--brand-active) !important;
  transform: translateY(0);
}

/* Override Bootstrap's default grey secondary button with purple */
.btn-secondary {
  --bs-btn-bg: var(--gradient-primary) !important;
  --bs-btn-border-color: transparent !important;
  --bs-btn-hover-bg: var(--gradient-primary-hover) !important;
  --bs-btn-hover-border-color: transparent !important;
  --bs-btn-active-bg: var(--brand-active) !important;
  --bs-btn-active-border-color: transparent !important;
  background: var(--gradient-primary) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-secondary:hover {
  background: var(--gradient-primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-secondary:active,
.btn-secondary.active {
  background: var(--brand-active) !important;
  transform: translateY(0);
}

/* Override Bootstrap's outline-secondary (grey) with purple */
.btn-outline-secondary {
  --bs-btn-color: var(--brand-primary) !important;
  --bs-btn-border-color: var(--brand-primary) !important;
  --bs-btn-hover-bg: var(--brand-primary) !important;
  --bs-btn-hover-color: white !important;
  --bs-btn-active-bg: var(--brand-active) !important;
  background: white !important;
  color: var(--brand-primary) !important;
  border: 2px solid var(--brand-primary) !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-outline-secondary:hover {
  background: var(--brand-alpha-10) !important;
  color: var(--brand-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* Outline button variant - white with purple border */
.btn-outline-primary {
  --bs-btn-color: var(--brand-primary) !important;
  --bs-btn-border-color: var(--brand-primary) !important;
  --bs-btn-hover-bg: var(--brand-primary) !important;
  --bs-btn-hover-color: white !important;
  --bs-btn-active-bg: var(--brand-active) !important;
  background: white !important;
  color: var(--brand-primary) !important;
  border: 2px solid var(--brand-primary) !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-outline-primary:hover {
  background: var(--brand-primary) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* Category "View All" links - consistent purple */
.cta-link {
  color: var(--brand-primary) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

.cta-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.cta-link:hover {
  color: var(--brand-hover) !important;
  transform: translateX(4px);
}

.cta-link:hover::after {
  width: 100%;
}

/* Override Bootstrap link colors globally */
a:not(.btn):not(.nav-link):not(.navbar-brand) {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
  color: var(--brand-hover);
}

/* Text color utilities - override Bootstrap blue */
.text-primary {
  color: var(--brand-primary) !important;
}

.bg-primary {
  background: var(--gradient-primary) !important;
}

.border-primary {
  border-color: var(--brand-primary) !important;
}

/* Scroll-to-top button consistency */
.btn-scroll-top,
#scrollTopBtn {
  background: var(--brand-alpha-20) !important;
  color: var(--brand-primary) !important;
  border: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-scroll-top:hover,
#scrollTopBtn:hover {
  background: var(--brand-primary) !important;
  color: white !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Bento/Grid toggle buttons - Base styles */
.btn-bento-toggle,
.btn-grid-toggle,
#bentoViewBtn,
#gridViewBtn {
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 60px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* Bento button when ACTIVE (has btn-primary class) */
#bentoViewBtn.btn-primary,
.btn-bento-toggle.btn-primary {
  background: var(--gradient-primary) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
}

/* Bento button when INACTIVE (has btn-outline-primary class) */
#bentoViewBtn.btn-outline-primary,
.btn-bento-toggle.btn-outline-primary {
  background: white !important;
  color: var(--brand-primary) !important;
  border: 2px solid var(--brand-primary) !important;
}

/* Grid button when ACTIVE (has btn-secondary + active class) */
#gridViewBtn.btn-secondary,
#gridViewBtn.active,
.btn-grid-toggle.btn-secondary,
.btn-grid-toggle.active {
  background: var(--gradient-primary) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
}

/* Grid button when INACTIVE (has btn-outline-secondary class) */
#gridViewBtn.btn-outline-secondary,
.btn-grid-toggle.btn-outline-secondary {
  background: white !important;
  color: var(--brand-primary) !important;
  border: 2px solid var(--brand-primary) !important;
}

/* Hover states for both buttons */
#bentoViewBtn:hover,
#gridViewBtn:hover,
.btn-bento-toggle:hover,
.btn-grid-toggle:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35) !important;
}

/* Active button gets extra emphasis on hover */
#bentoViewBtn.btn-primary:hover,
#gridViewBtn.btn-secondary:hover,
#gridViewBtn.active:hover {
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.5) !important;
}

/* Inactive button preview on hover */
#bentoViewBtn.btn-outline-primary:hover,
#gridViewBtn.btn-outline-secondary:hover {
  background: var(--brand-alpha-10) !important;
}

/* Large hero CTA button */
.btn-hero-cta,
.btn-lg {
  padding: 1.125rem 3rem !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  border-radius: 60px !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.btn-hero-cta:hover,
.btn-lg:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5) !important;
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #a855f7 100%) !important;
}

.btn-hero-cta:active,
.btn-lg:active {
  transform: translateY(-1px) scale(0.98) !important;
}

/* Focus states for accessibility */
.btn:focus-visible,
.cta-link:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand-focus) !important;
  outline-offset: 3px !important;
}

/* Ensure all buttons have smooth transitions */
.btn,
button,
[role="button"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================== */
/* END BUTTON & LINK SYSTEM */
/* =========================================== */

/* ===== CORE STYLES ===== */
html {
  scroll-behavior: smooth;
}

/* Enhanced smooth scroll with offset for fixed navbar */
.smooth-scroll {
  scroll-margin-top: 80px;
}

/* Active navigation state */
.nav-link.active {
  color: #fbbf24 !important;
  font-weight: 600 !important;
  position: relative !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #fbbf24;
  border-radius: 1px;
}

section {
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

section:hover {
  transform: translateY(-2px);
}

/* ===== NAVBAR SPACING FIXES ===== */
/* Specific navbar overrides - removed global * reset that was breaking layout */
.navbar, .header, nav,
.navbar-enhanced,
body,
body > *:first-child,
.scroll-progress, .swipe-indicator, #scrollProgress, #swipeIndicator,
.navbar .container, .navbar .container-fluid,
.px-3 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.navbar-enhanced {
  position: relative !important;
  top: 0 !important;
}

/* But preserve essential spacing for content */
.container, .row, .col, [class*="col-"] {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.row {
  margin-left: -15px !important;
  margin-right: -15px !important;
}

/* Override external CSS files with maximum specificity */
html body .navbar,
html body .navbar-enhanced,
html body .header,
html body nav[role="navigation"] {
  --si-navbar-padding-y: 0 !important;
  transform: translateY(0) !important;
}

/* Clean reset for spacing issues */
html, body {
  margin: 0;
  padding: 0;
}

/* Add balanced spacing to navbar with maximum specificity */
html body .navbar-enhanced,
html body .header,
html body nav.navbar {
  margin-top: 0 !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

html body .navbar-enhanced .container,
html body .navbar-enhanced .container-fluid {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
  min-height: 100vh;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 100%;
  width: 100%;
}

/* Override conflicting hero section styles with maximum specificity */
html body .hero-section {
  min-height: 100vh !important;
  height: 100vh !important;
  padding-top: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
}

html body .hero-section .hero-content {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Enhanced title styling - smaller and better spaced with maximum specificity */
html body .hero-section .hero-content .hero-title,
html body .hero-section h1.hero-title,
.hero-section .hero-content .hero-title {
  text-align: center !important;
  margin: 0 auto 1rem auto !important;
  padding: 0 1rem !important;
  font-size: clamp(1.2rem, 4vw, 2.5rem) !important;
  line-height: 1.3 !important;
  max-width: 100% !important;
  word-wrap: break-word !important;
  font-weight: 300 !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important;
}

/* Enhanced tagline styling - better spacing with maximum specificity */
html body .hero-section .hero-content .hero-tagline,
html body .hero-section p.hero-tagline,
.hero-section .hero-content .hero-tagline {
  text-align: center !important;
  margin: 0 auto 0.8rem auto !important;
  padding: 0.8rem 2rem !important;
  font-size: clamp(0.9rem, 2.2vw, 1.2rem) !important;
  max-width: 85% !important;
  width: auto !important;
  display: block !important;
  visibility: visible !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  background: rgba(0, 0, 0, 0.8) !important;
  color: #fbbf24 !important;
  border-radius: 25px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(251, 191, 36, 0.3) !important;
  backdrop-filter: blur(15px) !important;
  border: 2px solid rgba(251, 191, 36, 0.4) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  opacity: 1 !important;
}

/* Enhanced description styling - better spacing with maximum specificity */
html body .hero-section .hero-content .hero-description,
html body .hero-section p.hero-description,
.hero-section .hero-content .hero-description {
  text-align: center !important;
  margin: 0 auto 1.5rem auto !important;
  padding: 0.8rem 1.5rem !important;
  font-size: clamp(0.8rem, 1.8vw, 1rem) !important;
  max-width: 80% !important;
  width: auto !important;
  display: inline-block !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border-radius: 15px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  opacity: 1 !important;
}

/* Enhanced hero social buttons - better spacing */
html body .hero-section .hero-social,
html body .hero-section .interactive-buttons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.8rem !important;
  margin: 1.5rem auto 0 auto !important;
  padding: 0 1rem !important;
  max-width: 100% !important;
  opacity: 1 !important;
}

/* ===== OPTIMIZED ANIMATIONS ===== */
/* GPU-accelerated slide-up animation */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* GPU-accelerated scale animation */
@keyframes heroSocialScale {
  0% {
    opacity: 0;
    transform: scale3d(0.9, 0.9, 1);
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

/* Optimized hero element animations with GPU acceleration */
.hero-content,
.hero-title,
.hero-tagline,
.hero-description,
.hero-cta,
.hero-social {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-content {
  animation: slideUpFade 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.hero-title {
  animation: slideUpFade 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}

.hero-tagline {
  animation: slideUpFade 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s both;
}

.hero-description {
  animation: slideUpFade 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s both;
}

.hero-cta {
  animation: slideUpFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.8s both;
  margin: 2rem auto;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-social {
  animation: heroSocialScale 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.1s both;
}

/* 3. Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-title,
  .hero-tagline,
  .hero-description,
  .hero-cta,
  .hero-social {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== CTA BUTTON STYLING ===== */
.hero-cta-button {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  border: none !important;
  color: #1a1a1a !important;
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3) !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
}

.hero-cta-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 35px rgba(251, 191, 36, 0.4) !important;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #1a1a1a !important;
}

.hero-cta-button:active {
  transform: translateY(0) !important;
  transition: transform 0.1s ease !important;
}

.hero-cta-button.loading {
  position: relative !important;
  color: transparent !important;
  pointer-events: none !important;
}

.hero-cta-button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #1a1a1a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-cta-button-secondary {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  backdrop-filter: blur(10px) !important;
}

.hero-cta-button-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.hero-cta-button-secondary:active {
  transform: translateY(0) !important;
  transition: transform 0.1s ease !important;
}

.hero-cta-button-secondary.loading {
  position: relative !important;
  color: transparent !important;
  pointer-events: none !important;
}

.hero-cta-button-secondary.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ===== OPTIMIZED BUTTON STYLES ===== */
/* GPU-accelerated button loading states */
.btn.loading {
  position: relative !important;
  pointer-events: none !important;
}

.btn.loading .btn-text {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spinOptimized 1s linear infinite;
  will-change: transform;
}

/* GPU-optimized button interactions */
.btn, .nav-link, .card {
  will-change: transform, box-shadow, background-color;
  transform: translateZ(0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
             box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
             background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent nav links from wrapping during animation */
.nav-link {
  white-space: nowrap;
}

/* Fix navbar height jump during animation - Keep consistent padding */
.navbar-enhanced,
.header.navbar {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* Override navbar-compact to prevent height changes */
.navbar-enhanced.navbar-compact,
.header.navbar.navbar-compact {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.btn:focus, .nav-link:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.card:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Remove light purple backgrounds from cards */
.card-body,
.bg-secondary,
[class*="bg-secondary"] {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Ensure category cards have white backgrounds */
.category-card .card-body {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Hide FAB menu completely - Removed from page */
.fab-menu,
.fab-button,
.fab-menu-items,
.fab-menu-item,
.fab-backdrop,
#fabMenu,
#fabButton {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Hide mobile bottom nav text labels - Icons only */
.mobile-bottom-nav-label {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Hide sticky category filter bar - Shows text links under hero */
.sticky-category-filter,
#stickyCategoryFilter {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.btn {
  position: relative;
  overflow: hidden;
  backface-visibility: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
             height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate3d(-50%, -50%, 0);
  will-change: width, height;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Optimized spin animation */
@keyframes spinOptimized {
  0% { transform: translate3d(-50%, -50%, 0) rotate3d(0, 0, 1, 0deg); }
  100% { transform: translate3d(-50%, -50%, 0) rotate3d(0, 0, 1, 360deg); }
}

/* ===== SOCIAL BUTTON STYLING ===== */
html body .hero-section .hero-social .btn,
html body .hero-section .interactive-buttons .btn,
.hero-social-link {
  min-width: 60px !important;
  min-height: 60px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5rem !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(10px) !important;
  position: relative !important;
  overflow: hidden !important;
}

.hero-social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.hero-social-link:hover {
  transform: translateY(-5px) scale(1.1) !important;
  box-shadow: 0 15px 35px rgba(251, 191, 36, 0.3) !important;
  border-color: rgba(251, 191, 36, 0.6) !important;
  background: rgba(251, 191, 36, 0.1) !important;
}

.hero-social-link:hover::before {
  opacity: 1;
}

.hero-social-link:hover i {
  color: #fbbf24 !important;
  transform: scale(1.2);
}

.hero-social-link i {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

/* ===== TOOLTIP STYLING ===== */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: max-content;
  max-width: 200px;
  background-color: rgba(0, 0, 0, 0.9);
  color: #ffffff !important;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 10000;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  pointer-events: none;
  word-wrap: break-word;
  white-space: normal;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ===== MICRO-INTERACTIONS ===== */

/* ===== FOOTER STYLES ===== */

.footer-left-content {
  gap: 0.2rem !important;
}

.footer-text {
  margin-right: -0.5rem !important;
}

.footer-link {
  margin-left: -0.5rem !important;
}


.footer-main-image {
  width: 160px !important;
  height: 160px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid rgba(251, 191, 36, 0.4) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
}

.footer-main-image:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 12px 35px rgba(251, 191, 36, 0.4) !important;
  border-color: rgba(251, 191, 36, 0.6) !important;
}

/* ===== MOBILE RESPONSIVENESS ===== */
/* Mobile-first approach - base styles are for mobile */

/* Touch device optimizations */
.touch-device .btn,
.touch-device .nav-link,
.touch-device .card {
  min-height: 44px;
  min-width: 44px;
}

.touch-device .btn:hover,
.touch-device .card:hover {
  transform: none !important;
}

.touch-device .btn:active,
.touch-device .card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* Mobile-specific animations */
.mobile-device .hero-section .hero-animation,
.mobile-device .hero-section .hero-snowman {
  display: none !important;
}

.mobile-device .hero-section .hero-content,
.mobile-device .hero-section .hero-title,
.mobile-device .hero-section .hero-tagline,
.mobile-device .hero-section .hero-description,
.mobile-device .hero-section .hero-social {
  animation-duration: 0.6s !important;
}

/* Landscape mobile optimizations */
.landscape-mobile .hero-section {
  min-height: auto !important;
  padding: 1rem 0.5rem !important;
}

.landscape-mobile .hero-section .hero-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
  margin-bottom: 0.5rem !important;
}

.landscape-mobile .hero-section .hero-tagline {
  font-size: clamp(0.8rem, 2.5vw, 1rem) !important;
  margin-bottom: 0.5rem !important;
}

.landscape-mobile .hero-section .hero-description {
  font-size: clamp(0.7rem, 2vw, 0.9rem) !important;
  margin-bottom: 1rem !important;
}

/* Keyboard open optimizations */
.keyboard-open .hero-section {
  min-height: auto !important;
}

/* High DPI optimizations */
.high-dpi .hero-section .hero-animation,
.high-dpi .hero-section .hero-snowman {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Legacy mobile styles for backward compatibility */
@media (max-width: 768px) {
  html body .hero-section .hero-content .hero-title,
  html body .hero-section h1.hero-title,
  .hero-section .hero-content .hero-title {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    padding: 0 0.5rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  html body .hero-section .hero-content .hero-tagline,
  html body .hero-section p.hero-tagline,
  .hero-section .hero-content .hero-tagline {
    font-size: clamp(0.8rem, 2vw, 1rem) !important;
    padding: 0.6rem 1.2rem !important;
    max-width: 90% !important;
    margin-bottom: 0.6rem !important;
  }
  
  html body .hero-section .hero-content .hero-description,
  html body .hero-section p.hero-description,
  .hero-section .hero-content .hero-description {
    font-size: clamp(0.75rem, 1.6vw, 0.9rem) !important;
    padding: 0.6rem 1.2rem !important;
    max-width: 85% !important;
    margin-bottom: 1.2rem !important;
  }
  
  html body .hero-section .hero-social,
  html body .hero-section .interactive-buttons {
    gap: 0.5rem !important;
    margin: 1rem auto 0 auto !important;
  }
  
  html body .hero-section .hero-social .btn,
  html body .hero-section .interactive-buttons .btn {
    min-width: 50px !important;
    min-height: 50px !important;
    font-size: 1.2rem !important;
  }
}

/* Restore essential content spacing */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

section {
  padding: 2rem 0;
}

/* Remove any remaining top spacing */
html {
  margin: 0 !important;
  padding: 0 !important;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

/* Make hero section fill full viewport */
.hero-section {
  min-height: 100vh !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* ===== ENHANCED STATISTICS CARDS ===== */
.stat-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.counter {
  transition: all 0.5s ease;
}

[data-bs-theme="dark"] .stat-card {
  background: rgba(30, 30, 30, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Counter Animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Enhanced micro-interactions */
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  transition: transform 0.1s;
}

/* Link hover effects */
a:not(.btn) {
  transition: all 0.2s ease;
  position: relative;
}

a:not(.btn):hover {
  color: var(--color-link-hover);
  transform: translateX(2px);
}

a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--brand-primary);
  transition: width 0.3s ease;
}

a:not(.btn):hover::after {
  width: 100%;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  .btn {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 24px;
    font-size: 16px;
  }
  
  .nav-link {
    padding: 12px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .category-card {
    margin-bottom: 1rem;
  }
  
  .stat-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .stat-icon {
    font-size: 1.5rem;
  }
  
  .hero-tagline {
    padding: 0.75rem 1rem !important;
    font-size: clamp(1rem, 4vw, 1.5rem) !important;
  }
  
  /* Touch-friendly spacing */
  .dropdown-item {
    padding: 12px 16px;
    min-height: 44px;
  }
  
  /* Better mobile navigation */
  .navbar-toggler {
    padding: 8px 12px;
    border: none;
    background: transparent;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
  }
}

/* ===== CHARACTER PERSONALITY ANIMATIONS ===== */
.hero-animation img,
.hero-snowman img {
  transition: all 0.3s ease;
}

.hero-animation:hover img {
  transform: scale(1.05) rotate(2deg);
  filter: brightness(1.1);
}

.hero-snowman:hover img {
  transform: scale(1.08) translateY(-5px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

/* Floating animation for characters */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.hero-snowman img {
  animation: gentleFloat 4s ease-in-out infinite;
}

.hero-animation img {
  animation: gentleFloat 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Breathing effect for airplane icons */
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.page-airplane-svg {
  animation: breathe 3s ease-in-out infinite;
}

.page-airplane-1 .page-airplane-svg { animation-delay: 0s; }
.page-airplane-2 .page-airplane-svg { animation-delay: 0.5s; }
.page-airplane-3 .page-airplane-svg { animation-delay: 1s; }
.page-airplane-4 .page-airplane-svg { animation-delay: 1.5s; }
.page-airplane-5 .page-airplane-svg { animation-delay: 2s; }

/* ===== VISUAL CONSISTENCY ===== */
:root {
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* Consistent spacing */
.container, .container-fluid {
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.row {
  margin-left: calc(-1 * var(--spacing-sm));
  margin-right: calc(-1 * var(--spacing-sm));
}

.col, [class*="col-"] {
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
}

/* Consistent typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

p {
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

/* Consistent shadows */
.card, .stat-card, .mega-dropdown-column {
  box-shadow: var(--shadow-md);
}

.card:hover, .stat-card:hover {
  box-shadow: var(--shadow-lg);
}

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.skeleton-title {
  height: 2rem;
  width: 60%;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.skeleton-image {
  height: 200px;
  border-radius: 8px;
}

[data-bs-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top::before {
  content: '↑';
  font-size: 20px;
  font-weight: bold;
}

/* ===== PARALLAX EFFECTS ===== */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.parallax-slow {
  transform: translateZ(-2px) scale(3);
}

.parallax-medium {
  transform: translateZ(-1px) scale(2);
}

.parallax-fast {
  transform: translateZ(0px) scale(1);
}

/* Hero content parallax */
.hero-content {
  position: relative;
  z-index: 10;
  transform: translateZ(1px);
}

/* Floating elements with parallax */
.page-airplane {
  will-change: transform;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-animation img,
  .hero-snowman img,
  .page-airplane-svg,
  .skeleton {
    animation: none !important;
  }
}

/* ===== IMAGE OPTIMIZATION STYLES ===== */
/* Image loading states */
.image-loading {
  opacity: 1; /* Changed from 0 to 1 to show images by default */
  transition: opacity 0.3s ease;
}

.image-loaded {
  opacity: 1;
}

/* Skeleton loading for images */
.image-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

[data-bs-theme="dark"] .image-skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
}

/* Optimized image containers */
.optimized-image-container {
  position: relative;
  overflow: hidden;
}

.optimized-image-container img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.optimized-image-container:hover img {
  transform: scale(1.02);
}

/* WebP fallback styles */
img[data-fallback] {
  background-color: #f8f9fa;
}

[data-bs-theme="dark"] img[data-fallback] {
  background-color: #2a2a2a;
}

/* Responsive image optimization */
img {
  max-width: 100%;
  height: auto;
}

/* Critical images - no lazy loading */
img[loading="eager"] {
  opacity: 1;
}

/* Lazy loaded images */
img[loading="lazy"] {
  opacity: 1; /* Changed from 0 to 1 to show images by default */
  transition: opacity 0.3s ease;
}

img[loading="lazy"].image-loaded {
  opacity: 1;
}

/* Airplane animations removed */

/* ===== BUTTON CONTRAST FIXES ===== */
/* Fix "View Full Archive" button contrast for better readability */
.btn-primary {
  background: linear-gradient(135deg, #1e40af, #1d4ed8) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e3a8a, #1e40af) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4) !important;
}

.btn-primary:focus {
  background: linear-gradient(135deg, #1e40af, #1d4ed8) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.25) !important;
}

.btn-primary:active {
  background: linear-gradient(135deg, #1e3a8a, #1e40af) !important;
  color: #ffffff !important;
  transform: translateY(0) !important;
}

/* =========================================== */
/* Z-INDEX LAYERING - Featured Masterworks & Footer (ALL SCREEN SIZES) */
/* =========================================== */

/* Push taco/footer images to background */
.taco-hover-image,
.taco-img {
  z-index: -1 !important;
}

/* Featured Masterworks section - Low z-index so mobile menu appears on top */
.horizontal-gallery-section {
  position: relative;
  z-index: 1 !important;
}

/* All masterwork content - Low z-index for mobile menu */
.horizontal-gallery-section *,
.horizontal-gallery-section .horizontal-gallery-card,
.horizontal-gallery-section .horizontal-gallery-wrapper {
  position: relative;
  z-index: 2 !important;
}

/* Hide Hamburger Menu on Mobile - Use Bottom Nav Instead */
@media (max-width: 991.98px) {
  /* Navbar toggler enabled - hamburger menu functional */
  
  /* Offcanvas menu enabled - removed hide rule */
  
  /* Hide FAB menu on mobile - bottom nav already provides navigation */
  .fab-menu,
  .fab-button,
  .fab-menu-items,
  .fab-menu-item,
  .fab-backdrop,
  #fabMenu,
  #fabButton,
  #fabBackdrop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Hide center action button (purple circle) from mobile bottom nav */
  .mobile-bottom-nav-item.center-action {
    display: none !important;
  }
  
  /* Disable repeating footer animations on mobile for better performance */
  .page-airplane,
  .footer-airplane,
  .full-page-airplanes,
  .parallax-bg,
  .floating-particles,
  .particle {
    animation: none !important;
    display: none !important;
  }
  
  /* Disable infinite loops on mobile */
  .bomb-explosion-1,
  .bomb-explosion-2,
  .bomb-explosion-3,
  .bomb-explosion-4,
  .bomb-explosion-5,
  .bomb-explosion-6,
  .bomb-explosion-7,
  .bomb-explosion-8,
  .bomb-explosion-9,
  .bomb-explosion-10 {
    animation: none !important;
    opacity: 0 !important;
  }
  
  /* Disable TACO image and blob animations on mobile - but keep them visible */
  .taco-img,
  .taco-hover-image {
    animation: none !important;
  }
  
  .orb-test {
    animation: none !important;
  }
  
  .purple-blobs,
  .purple-blobs svg,
  .purple-blobs svg path {
    animation: none !important;
  }
  
  .blob-svg {
    animation: none !important;
  }
  
  /* Keep footer character visible and interactive on mobile */
  .footer-character,
  .footer-character-container,
  .taco-hover-image {
    display: block !important;
    pointer-events: auto !important;
  }
}

/* Fix Duplicate Category Cards & Hide Bento/Grid Toggle on Mobile */
@media (max-width: 767.98px) {
  /* Force hide Bento View to prevent duplicates */
  #bentoView {
    display: none !important;
  }
  
  /* Ensure Grid View is always visible and clickable on mobile */
  #gridView {
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  /* Make category card links clickable - target the actual <a> tags */
  #gridView .category-card-wrapper a {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  /* Ensure all child elements don't block clicks */
  #gridView .category-card-wrapper a * {
    pointer-events: none !important;
  }
  
  /* Re-enable pointer events on links within (like "View All") */
  #gridView .category-card-wrapper a .cta-link,
  #gridView .category-card-wrapper a .card-footer-cta {
    pointer-events: none !important;
  }
  
  /* Hide toggle buttons on mobile since we only show grid view */
  #bentoViewBtn,
  #gridViewBtn {
    display: none !important;
  }
  
  /* Also hide the parent btn-group */
  .btn-group:has(#bentoViewBtn) {
    display: none !important;
  }
}

/* =========================================== */
/* COLOR SYSTEM USAGE EXAMPLES */
/* How to use the standardized purple colors */
/* =========================================== */

/*
USAGE GUIDE:

1. PRIMARY BUTTONS:
   background: var(--brand-primary);
   background: var(--gradient-primary);

2. HOVER STATES:
   background: var(--brand-hover);

3. LINKS:
   color: var(--color-link);
   &:hover { color: var(--color-link-hover); }

4. BADGES & TAGS:
   background: var(--color-badge);
   color: var(--color-tag);

5. BORDERS:
   border-color: var(--color-border-focus);

6. TRANSPARENT BACKGROUNDS:
   background: var(--brand-alpha-10);
   background: var(--brand-alpha-30);

7. GRADIENTS:
   background: var(--gradient-primary);
   background: var(--gradient-accent);

8. FOCUS RINGS:
   box-shadow: 0 0 0 3px var(--brand-focus);

REPLACE OLD CODE:
❌ background: #6366f1;
✅ background: var(--brand-primary);

❌ background: linear-gradient(135deg, #6366f1, #8b5cf6);
✅ background: var(--gradient-primary);

❌ color: #a855f7;
✅ color: var(--brand-accent-light);
*/

/* ===== EPIC ANIMATED BACKGROUND EFFECTS ===== */
/* Applied across hero sections for bold, colorful, award-winning UX/UI */

.epic-background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* EXPLOSIVE Animated Mesh Gradient */
.animated-mesh-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 0, 128, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 234, 0, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 60% 70%, rgba(138, 43, 226, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 90% 30%, rgba(0, 255, 127, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(255, 69, 0, 0.5) 0%, transparent 50%);
  animation: meshGradientMove 15s ease-in-out infinite;
}

@keyframes meshGradientMove {
  0%, 100% { 
    background-position: 0% 50%, 100% 80%, 40% 20%, 60% 70%, 90% 30%, 10% 90%;
    opacity: 0.9;
    filter: hue-rotate(0deg);
  }
  25% { 
    background-position: 100% 50%, 0% 80%, 60% 40%, 40% 50%, 10% 60%, 90% 20%;
    opacity: 1;
    filter: hue-rotate(45deg);
  }
  50% { 
    background-position: 50% 100%, 50% 0%, 80% 60%, 20% 30%, 40% 80%, 60% 10%;
    opacity: 0.95;
    filter: hue-rotate(90deg);
  }
  75% { 
    background-position: 0% 80%, 100% 20%, 30% 80%, 70% 60%, 80% 10%, 20% 70%;
    opacity: 1;
    filter: hue-rotate(135deg);
  }
}

/* Floating Art Blocks */
.floating-blocks {
  position: absolute;
  width: 100%;
  height: 100%;
}

.art-block {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 2px 10px rgba(255,255,255,0.4),
    0 0 30px currentColor;
  animation: float 8s ease-in-out infinite, colorPulse 4s ease-in-out infinite;
}

.art-block::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.2);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.3);
}

.art-block::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  box-shadow: 0 0 20px rgba(255,255,255,0.6);
}

.block-1 { 
  top: 15%; left: 10%; 
  animation-delay: 0s; 
  animation-duration: 8s; 
  background: linear-gradient(145deg, rgba(255,0,128,0.7), rgba(255,0,128,0.3));
  color: rgba(255,0,128,1);
}
.block-2 { 
  top: 25%; right: 15%; 
  animation-delay: 1s; 
  animation-duration: 9s; 
  width: 80px; height: 80px;
  background: linear-gradient(145deg, rgba(0,255,255,0.7), rgba(0,255,255,0.3));
  color: rgba(0,255,255,1);
}
.block-3 { 
  top: 55%; left: 8%; 
  animation-delay: 2s; 
  animation-duration: 7s; 
  width: 50px; height: 50px;
  background: linear-gradient(145deg, rgba(255,234,0,0.7), rgba(255,234,0,0.3));
  color: rgba(255,234,0,1);
}
.block-4 { 
  top: 70%; right: 20%; 
  animation-delay: 1.5s; 
  animation-duration: 10s;
  background: linear-gradient(145deg, rgba(138,43,226,0.7), rgba(138,43,226,0.3));
  color: rgba(138,43,226,1);
}
.block-5 { 
  top: 40%; left: 25%; 
  animation-delay: 3s; 
  animation-duration: 8.5s; 
  width: 70px; height: 70px;
  background: linear-gradient(145deg, rgba(0,255,127,0.7), rgba(0,255,127,0.3));
  color: rgba(0,255,127,1);
}
.block-6 { 
  top: 80%; left: 40%; 
  animation-delay: 2.5s; 
  animation-duration: 9.5s; 
  width: 55px; height: 55px;
  background: linear-gradient(145deg, rgba(255,69,0,0.7), rgba(255,69,0,0.3));
  color: rgba(255,69,0,1);
}
.block-7 { 
  top: 20%; right: 35%; 
  animation-delay: 4s; 
  animation-duration: 8s;
  background: linear-gradient(145deg, rgba(255,20,147,0.7), rgba(255,20,147,0.3));
  color: rgba(255,20,147,1);
}
.block-8 { 
  top: 60%; right: 8%; 
  animation-delay: 3.5s; 
  animation-duration: 9s; 
  width: 65px; height: 65px;
  background: linear-gradient(145deg, rgba(0,191,255,0.7), rgba(0,191,255,0.3));
  color: rgba(0,191,255,1);
}

@keyframes colorPulse {
  0%, 100% { 
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
  50% { 
    filter: brightness(1.3) saturate(1.5);
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) rotate(5deg) scale(1.05);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-40px) rotate(-5deg) scale(1);
    opacity: 1;
  }
  75% {
    transform: translateY(-20px) rotate(3deg) scale(0.95);
    opacity: 0.7;
  }
}

/* Rainbow Particle Burst System */
.particle-burst {
  position: absolute;
  width: 100%;
  height: 100%;
}

.rainbow-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: particleBurst 5s ease-out infinite, rainbowShift 3s linear infinite;
}

.p-1 { 
  top: 30%; left: 20%; 
  animation-delay: 0s; 
  background: radial-gradient(circle, #ff0080, #ff0080);
  box-shadow: 0 0 20px #ff0080, 0 0 40px #ff0080;
}
.p-2 { 
  top: 40%; left: 70%; 
  animation-delay: 0.5s;
  background: radial-gradient(circle, #00ffff, #00ffff);
  box-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
}
.p-3 { 
  top: 60%; left: 30%; 
  animation-delay: 1s;
  background: radial-gradient(circle, #a78bfa, #a78bfa);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
}
.p-4 { 
  top: 25%; right: 25%; 
  animation-delay: 1.5s;
  background: radial-gradient(circle, #8a2be2, #8a2be2);
  box-shadow: 0 0 20px #8a2be2, 0 0 40px #8a2be2;
}
.p-5 { 
  top: 75%; left: 50%; 
  animation-delay: 2s;
  background: radial-gradient(circle, #00ff7f, #00ff7f);
  box-shadow: 0 0 20px #00ff7f, 0 0 40px #00ff7f;
}
.p-6 { 
  top: 50%; right: 15%; 
  animation-delay: 2.5s;
  background: radial-gradient(circle, #ff4500, #ff4500);
  box-shadow: 0 0 20px #ff4500, 0 0 40px #ff4500;
}
.p-7 { 
  top: 35%; left: 45%; 
  animation-delay: 3s;
  background: radial-gradient(circle, #ff1493, #ff1493);
  box-shadow: 0 0 20px #ff1493, 0 0 40px #ff1493;
}
.p-8 { 
  top: 80%; right: 40%; 
  animation-delay: 3.5s;
  background: radial-gradient(circle, #00bfff, #00bfff);
  box-shadow: 0 0 20px #00bfff, 0 0 40px #00bfff;
}
.p-9 { 
  top: 15%; left: 60%; 
  animation-delay: 4s;
  background: radial-gradient(circle, #7fff00, #7fff00);
  box-shadow: 0 0 20px #7fff00, 0 0 40px #7fff00;
}
.p-10 { 
  top: 65%; right: 30%; 
  animation-delay: 4.5s;
  background: radial-gradient(circle, #ff69b4, #ff69b4);
  box-shadow: 0 0 20px #ff69b4, 0 0 40px #ff69b4;
}

@keyframes rainbowShift {
  0% { filter: hue-rotate(0deg) brightness(1.2); }
  100% { filter: hue-rotate(360deg) brightness(1.2); }
}

@keyframes particleBurst {
  0% {
    transform: scale(0) translateY(0);
    opacity: 0;
  }
  10% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  50% {
    transform: scale(1.5) translateY(-60px);
    opacity: 0.8;
  }
  100% {
    transform: scale(0) translateY(-120px);
    opacity: 0;
  }
}

/* Light Beams */
.light-beams {
  position: absolute;
  width: 100%;
  height: 100%;
}

.beam {
  position: absolute;
  width: 2px;
  height: 200px;
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  animation: beamSweep 8s linear infinite;
}

.beam-1 {
  left: 20%;
  top: -100px;
  animation-delay: 0s;
}

.beam-2 {
  left: 55%;
  top: -100px;
  animation-delay: 2.5s;
}

.beam-3 {
  left: 80%;
  top: -100px;
  animation-delay: 5s;
}

@keyframes beamSweep {
  0% {
    transform: translateY(0) scaleY(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 200px)) scaleY(1.5);
    opacity: 0;
  }
}

/* GEOMETRIC SHAPES - BOLD & CREATIVE */
.geometric-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.geo-shape {
  position: absolute;
  animation: geometricFloat 10s ease-in-out infinite;
}

/* Triangles */
.triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid;
  filter: drop-shadow(0 0 20px currentColor);
}

.tri-1 {
  top: 12%; left: 35%;
  border-bottom-color: rgba(255, 0, 255, 0.6);
  color: rgba(255, 0, 255, 1);
  animation-delay: 0s;
  animation-duration: 12s;
}

.tri-2 {
  top: 65%; left: 70%;
  border-bottom-color: rgba(0, 255, 255, 0.6);
  color: rgba(0, 255, 255, 1);
  animation-delay: 2s;
  animation-duration: 14s;
  transform: rotate(180deg);
}

.tri-3 {
  top: 40%; right: 10%;
  border-bottom-color: rgba(255, 215, 0, 0.6);
  color: rgba(255, 215, 0, 1);
  animation-delay: 4s;
  animation-duration: 11s;
  transform: rotate(60deg);
}

/* Hexagons */
.hexagon {
  width: 60px;
  height: 34px;
  background: rgba(255, 105, 180, 0.6);
  position: relative;
  box-shadow: 0 0 30px rgba(255, 105, 180, 1);
}

.hexagon::before,
.hexagon::after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
}

.hexagon::before {
  bottom: 100%;
  border-bottom: 17px solid rgba(255, 105, 180, 0.6);
}

.hexagon::after {
  top: 100%;
  border-top: 17px solid rgba(255, 105, 180, 0.6);
}

.hex-1 {
  top: 30%; left: 15%;
  animation-delay: 1s;
  animation-duration: 13s;
}

.hex-2 {
  top: 75%; right: 25%;
  animation-delay: 3s;
  animation-duration: 15s;
  background: rgba(0, 255, 127, 0.6);
  box-shadow: 0 0 30px rgba(0, 255, 127, 1);
}

.hex-2::before {
  border-bottom-color: rgba(0, 255, 127, 0.6);
}

.hex-2::after {
  border-top-color: rgba(0, 255, 127, 0.6);
}

/* Stars */
.star {
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 17px solid;
  position: relative;
  transform: rotate(35deg);
}

.star::before {
  content: '';
  position: absolute;
  top: -11px;
  left: -25px;
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 17px solid;
  transform: rotate(-70deg);
}

.star-1 {
  top: 18%; right: 20%;
  border-bottom-color: rgba(255, 215, 0, 0.7);
  filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1));
  animation-delay: 0.5s;
  animation-duration: 10s;
}

.star-1::before {
  border-bottom-color: rgba(255, 215, 0, 0.7);
}

.star-2 {
  top: 55%; left: 5%;
  border-bottom-color: rgba(255, 69, 0, 0.7);
  filter: drop-shadow(0 0 25px rgba(255, 69, 0, 1));
  animation-delay: 2.5s;
  animation-duration: 12s;
}

.star-2::before {
  border-bottom-color: rgba(255, 69, 0, 0.7);
}

.star-3 {
  top: 85%; left: 60%;
  border-bottom-color: rgba(138, 43, 226, 0.7);
  filter: drop-shadow(0 0 25px rgba(138, 43, 226, 1));
  animation-delay: 4.5s;
  animation-duration: 11s;
}

.star-3::before {
  border-bottom-color: rgba(138, 43, 226, 0.7);
}

/* Pulsing Circles */
.circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
  border: 3px solid;
  animation: geometricFloat 10s ease-in-out infinite, circlePulse 3s ease-in-out infinite;
}

.circ-1 {
  top: 45%; left: 50%;
  border-color: rgba(0, 191, 255, 0.8);
  box-shadow: 0 0 40px rgba(0, 191, 255, 1), inset 0 0 20px rgba(0, 191, 255, 0.5);
  animation-delay: 1.5s;
}

.circ-2 {
  top: 22%; left: 75%;
  border-color: rgba(255, 20, 147, 0.8);
  box-shadow: 0 0 40px rgba(255, 20, 147, 1), inset 0 0 20px rgba(255, 20, 147, 0.5);
  animation-delay: 3.5s;
  width: 60px;
  height: 60px;
}

@keyframes geometricFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-30px) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-60px) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-30px) rotate(270deg);
    opacity: 1;
  }
}

@keyframes circlePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}
