/* Critical above-the-fold styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  font-family: "Public Sans", sans-serif;
  background-color: #050505;
  color: #fff;
  overflow-x: hidden
}

nav {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 50;
  background-color: rgba(5, 5, 5, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

#home {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-top: 6rem;
  overflow: hidden
}

#home .absolute {
  position: absolute
}

#home .inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0
}

#home .-z-10 {
  z-index: -10
}

#home .bg-cover {
  background-size: cover
}

#home .bg-center {
  background-position: center
}

.flex {
  display: flex
}

.flex-col {
  flex-direction: column
}

.items-center {
  align-items: center
}

.items-start {
  align-items: flex-start
}

.justify-center {
  justify-content: center
}

.text-white {
  color: #fff
}

.text-primary {
  color: #ef4444
}

#pixel-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000, #0a0a0a, #000);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center
}

/* Cyberpunk Search & Filter Styles - Hình thoi/Góc cắt */
.cyber-search-input,
.cyber-filter-select {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  background-color: #121212 !important;
  border: 2px solid #ef4444 !important;
  color: #fff !important;
  font-family: 'JetBrains Mono', monospace !important;
  transition: all .3s ease !important
}

.cyber-search-input {
  width: 100% !important;
  padding: .75rem 1rem .75rem 3rem !important;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, .3), inset 0 0 10px rgba(239, 68, 68, .05) !important
}

.cyber-filter-select {
  padding: .75rem 1.5rem !important;
  cursor: pointer !important;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px) !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, .3), inset 0 0 8px rgba(239, 68, 68, .05) !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ef4444' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right .75rem center !important;
  padding-right: 2.5rem !important
}

.cyber-search-input::placeholder {
  color: rgba(156, 163, 175, .6) !important
}

.cyber-search-input:focus,
.cyber-filter-select:focus {
  outline: none !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, .6), inset 0 0 15px rgba(239, 68, 68, .1) !important;
  background-color: #1a1a1a !important
}

.cyber-filter-select option {
  background-color: #121212 !important;
  color: #fff !important;
  padding: .5rem !important
}

.cyber-search-icon {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 3rem !important;
  pointer-events: none !important;
  z-index: 10 !important
}

.cyber-search-icon .material-symbols-outlined {
  color: #ef4444 !important;
  font-size: 1.25rem !important;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, .6)) !important
}

/* ⚠️ OPTIMIZATION: Lazy loading image styles */
.lazy-image-container {
  position: relative;
  background-color: #1f2937
}

.lazy-image-container.image-loading {
  opacity: 0.7;
  transition: opacity 0.3s
}

.lazy-image-container.image-loaded {
  opacity: 1;
  transition: opacity 0.5s
}