/* ===== REFINED HERO EFFECTS ===== */
.scanline {
     width: 100%;
     height: 2px;
     z-index: 5;
     background: rgba(226, 0, 26, 0.2);
     box-shadow: 0 0 10px rgba(226, 0, 26, 0.5);
     position: absolute;
     top: 0;
     animation: scan-move 4s linear infinite;
     pointer-events: none;
}

@keyframes scan-move {
     0% {
          top: 0%;
     }

     100% {
          top: 100%;
     }
}

.hero-noise-overlay {
     position: absolute;
     inset: 0;
     background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
     opacity: 0.03;
     pointer-events: none;
     z-index: 2;
}

.glitch-text {
     position: relative;
     letter-spacing: -0.02em;
}

.glitch-text::before,
.glitch-text::after {
     content: attr(data-text);
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     opacity: 0.8;
}

.glitch-text::before {
     color: #0ff;
     z-index: -1;
     animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
     color: #f0f;
     z-index: -2;
     animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
     0% {
          transform: translate(0);
     }

     20% {
          transform: translate(-3px, 3px);
     }

     40% {
          transform: translate(-3px, -3px);
     }

     60% {
          transform: translate(3px, 3px);
     }

     80% {
          transform: translate(3px, -3px);
     }

     100% {
          transform: translate(0);
     }
}

@keyframes glitch-anim2 {
     0% {
          transform: translate(0);
     }

     25% {
          transform: translate(3px, -3px);
     }

     50% {
          transform: translate(-3px, 3px);
     }

     75% {
          transform: translate(3px, 3px);
     }

     100% {
          transform: translate(0);
     }
}

.tech-box {
     background: linear-gradient(135deg, #E2001A 0%, transparent 20%, transparent 80%, #E2001A 100%);
     position: relative;
}

.tech-box::before {
     content: '';
     position: absolute;
     top: -2px;
     left: -2px;
     right: -2px;
     bottom: -2px;
     background: linear-gradient(45deg, #E2001A, transparent, #E2001A);
     z-index: -1;
     opacity: 0.3;
}

/* ===== NEW GALLERY SECTION ===== */
.gallery-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
     gap: 1.5rem;
}

.gallery-item {
     position: relative;
     overflow: hidden;
     aspect-ratio: 16/9;
     border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item:hover img {
     transform: scale(1.1);
}

.gallery-overlay {
     position: absolute;
     inset: 0;
     background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
     opacity: 0;
     transition: opacity 0.3s ease;
     display: flex;
     align-items: flex-end;
     padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
     opacity: 1;
}

/* ===== BASE & SCROLLBAR ===== */
* {
     scrollbar-width: thin;
     scrollbar-color: #E2001A #0A0A0A;
}

::-webkit-scrollbar {
     width: 6px;
}

::-webkit-scrollbar-track {
     background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
     background: #E2001A;
     border-radius: 3px;
}

html {
     scroll-behavior: smooth;
}

/* ===== HEADER SCROLL STATE ===== */
#header.scrolled {
     background: rgba(0, 0, 0, 0.95);
     backdrop-filter: blur(20px);
     -webkit-backdrop-filter: blur(20px);
     border-bottom: 2px solid #E2001A;
}

/* ===== CTA BUTTON ===== */
.cta-btn {
     position: relative;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     background: #E2001A;
     color: #fff;
     overflow: hidden;
     transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
     z-index: 1;
     clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
     font-weight: 700;
}

.cta-btn::before {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(135deg, #ff4d61, #E2001A, #8b0000);
     opacity: 0;
     transition: opacity 0.4s ease;
     z-index: -1;
}

.cta-btn:hover::before {
     opacity: 1;
}

.cta-btn:hover {
     transform: scale(1.05);
     box-shadow: 0 0 40px rgba(226, 0, 26, 0.6);
}

/* ===== TEXT GLOW ===== */
.text-glow {
     color: #fff;
     text-shadow: 0 0 15px rgba(226, 0, 26, 0.5);
}

/* ===== HERO GRID OVERLAY ===== */
.hero-grid-overlay {
     background-image:
          linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
     background-size: 80px 80px;
}

/* ===== SECTION LINE ===== */
.section-line {
     position: absolute;
     top: 0;
     left: 50%;
     transform: translateX(-50%);
     width: 2px;
     height: 100px;
     background: linear-gradient(to bottom, #E2001A, transparent);
}

/* ===== GLASS CARD ===== */
.glass-card {
     background: rgba(10, 10, 10, 0.6);
     border: 1px solid rgba(255, 255, 255, 0.08);
     border-radius: 4px;
     backdrop-filter: blur(20px);
}

/* ===== CATALOG CARDS ===== */
.catalog-card {
     background: #0d0d0d;
     border-bottom: 2px solid transparent;
     transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.catalog-card:hover {
     border-bottom-color: #E2001A;
     transform: translateY(-10px);
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* ===== WISHLIST BUTTON ===== */
.wishlist-btn {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     padding: 1rem;
     border: 1px solid rgba(255, 255, 255, 0.1);
     color: #fff;
     font-family: 'Oswald', sans-serif;
     text-transform: uppercase;
     cursor: pointer;
     background: transparent;
     transition: all 0.3s ease;
}

.wishlist-btn:hover {
     background: #E2001A;
     border-color: #E2001A;
}

/* ===== SCANNER SECTION REFINEMENT ===== */
.scanner-container {
     position: relative;
     background: #000;
     border: 1px solid #333;
     padding: 2rem;
     border-radius: 8px;
}

.scanner-status {
     position: absolute;
     top: 1rem;
     right: 1.5rem;
     font-family: 'Oswald', sans-serif;
}

.scanner-laser {
     position: absolute;
     top: 10%;
     left: 0;
     right: 0;
     height: 2px;
     background: #E2001A;
     box-shadow: 0 0 15px #E2001A;
     z-index: 10;
     display: none;
}

.scanner-laser.active {
     display: block;
     animation: laser-scan 2s ease-in-out infinite;
}

@keyframes laser-scan {

     0%,
     100% {
          top: 10%;
     }

     50% {
          top: 90%;
     }
}

#scan-overlay {
     position: absolute;
     inset: 0;
     background: rgba(0, 0, 0, 0.8);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-direction: column;
     z-index: 20;
     opacity: 0;
     pointer-events: none;
     transition: opacity 0.5s ease;
}

#scan-overlay.show {
     opacity: 1;
     pointer-events: auto;
}

/* ===== SCROLL REVEAL ===== */
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
     opacity: 1;
     transform: translate(0);
}

.reveal-up {
     transform: translateY(60px);
     opacity: 0;
}

.reveal-left {
     transform: translateX(-60px);
     opacity: 0;
}

.reveal-right {
     transform: translateX(60px);
     opacity: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
     .cta-btn {
          font-size: 0.75rem;
          padding: 0.6rem 1.2rem;
     }
}