/* Miami Vice Neon Styling */

/* Color Blocks for Ambient Glow */
.color-block {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

.color-block:nth-child(1) {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, #ff2a6d, #c084fc);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.color-block:nth-child(2) {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #00d4ff, #00ff9f);
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.color-block:nth-child(3) {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #ff6b9d, #ff2a6d);
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

/* Vignette Effect */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 60%, rgba(10, 10, 26, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Grid Floor Effect */
.grid-floor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridMove 40s linear infinite;
    opacity: 0.15;
    z-index: 1;
}

/* Neon Title Effect */
.neon-title {
    position: relative;
    text-shadow: 
        0 0 7px #ff2a6d,
        0 0 10px #ff2a6d,
        0 0 21px #ff2a6d,
        0 0 42px #ff2a6d,
        0 0 82px #ff2a6d,
        0 0 92px #ff2a6d,
        0 0 102px #ff2a6d,
        0 0 151px #ff2a6d;
    animation: neonPulse 1.5s infinite alternate;
}

/* Torchzilla-style Title Effect */
.torchzilla-title {
    font-family: 'Black Ops One', 'Wallpoet', 'Monoton', 'Press Start 2P', cursive;
    position: relative;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: torchzillaGlow 3s infinite alternate;
}

.torchzilla-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ff2a6d;
    z-index: -1;
    animation: torchzillaShift 4s infinite alternate;
    text-shadow: 
        0 0 3px #ff2a6d,
        0 0 6px #ff2a6d;
}

.torchzilla-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #00d4ff;
    z-index: -2;
    animation: torchzillaShiftReverse 5s infinite alternate;
    text-shadow: 
        0 0 4px #00d4ff,
        0 0 8px #00d4ff;
}

.torchzilla-title span {
    display: inline-block;
    animation: torchzillaFlicker 0.15s infinite;
}

.torchzilla-title span:nth-child(4n+1) { animation-delay: 0.2s; }
.torchzilla-title span:nth-child(4n+2) { animation-delay: 0.4s; }
.torchzilla-title span:nth-child(4n+3) { animation-delay: 0.6s; }

/* Torchzilla Description Effect */
.torchzilla-description {
    font-family: 'Black Ops One', 'Wallpoet', 'Monoton', 'Press Start 2P', cursive;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    text-shadow: 
        0 0 3px #00d4ff,
        0 0 6px #00d4ff,
        0 0 9px rgba(0, 212, 255, 0.7);
    animation: descriptionGlow 4s infinite alternate;
}

.torchzilla-description::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ff2a6d;
    z-index: -1;
    opacity: 0.3;
    text-shadow: 
        0 0 2px #ff2a6d,
        0 0 4px #ff2a6d;
}

.torchzilla-description::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #c084fc;
    z-index: -2;
    opacity: 0.2;
    text-shadow: 
        0 0 1px #c084fc,
        0 0 2px #c084fc;
}

/* Zigzag Border for Countdown */
.zigzag-border {
    position: relative;
    background: rgba(10, 10, 26, 0.8);
    border: 3px solid #00d4ff;
    box-shadow: 
        0 0 10px #00d4ff,
        0 0 20px #00d4ff,
        inset 0 0 10px #00d4ff;
}

.zigzag-border::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: 
        linear-gradient(45deg, transparent 33.333%, #00d4ff 33.333%, #00d4ff 66.667%, transparent 66.667%),
        linear-gradient(-45deg, transparent 33.333%, #00d4ff 33.333%, #00d4ff 66.667%, transparent 66.667%);
    background-size: 20px 40px;
    background-position: 0 0;
    animation: zigzagMove 2s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

/* Countdown Numbers */
.countdown-number {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    color: #00d4ff;
    text-shadow: 0 0 3px currentColor;
    position: relative;
    overflow: hidden;
}

.countdown-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 212, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

/* Scan Lines Effect */
.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 212, 255, 0.01) 3px,
        rgba(0, 212, 255, 0.01) 6px
    );
    pointer-events: none;
    z-index: 2;
    animation: scanMove 20s linear infinite;
}

/* Gallery Item Hover Effects */
.gallery-item {
    position: relative;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item:hover .gallery-item img {
    filter: saturate(1.5) brightness(1.2);
}

/* Neon Border Button */
.neon-border {
    position: relative;
    transition: all 0.3s ease;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ff2a6d, #00d4ff, #00ff9f, #c084fc, #ff2a6d);
    background-size: 400%;
    border-radius: 4px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: neonBorderGlow 3s linear infinite;
}

.neon-border:hover::before {
    opacity: 1;
}

.neon-border:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes neonPulse {
    from {
        text-shadow: 
            0 0 7px #ff2a6d,
            0 0 10px #ff2a6d,
            0 0 21px #ff2a6d,
            0 0 42px #ff2a6d;
    }
    to {
        text-shadow: 
            0 0 10px #ff2a6d,
            0 0 15px #ff2a6d,
            0 0 25px #ff2a6d,
            0 0 50px #ff2a6d,
            0 0 75px #ff2a6d;
    }
}

/* Torchzilla Animations */
@keyframes torchzillaGlow {
    0%, 100% {
        text-shadow: 
            0 0 2px #fff,
            0 0 4px #fff,
            0 0 6px #ff2a6d,
            0 0 8px #ff2a6d;
    }
    50% {
        text-shadow: 
            0 0 2px #fff,
            0 0 4px #fff,
            0 0 6px #00d4ff,
            0 0 8px #00d4ff;
    }
}

@keyframes descriptionGlow {
    0%, 100% {
        text-shadow: 
            0 0 3px #00d4ff,
            0 0 6px #00d4ff,
            0 0 9px rgba(0, 212, 255, 0.7);
    }
    50% {
        text-shadow: 
            0 0 3px #ff6b9d,
            0 0 6px #ff6b9d,
            0 0 9px rgba(255, 107, 157, 0.7);
    }
}

@keyframes torchzillaShift {
    0%, 100% {
        transform: translate(-0.5px, -0.5px);
    }
    50% {
        transform: translate(0.5px, 0.5px);
    }
}

@keyframes torchzillaShiftReverse {
    0%, 100% {
        transform: translate(0.3px, 0.3px);
    }
    50% {
        transform: translate(-0.3px, -0.3px);
    }
}

@keyframes torchzillaFlicker {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.95;
        transform: scale(0.995);
    }
}

@keyframes torchzillaBurn {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

@keyframes zigzagMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 40px;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes scanMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100px;
    }
}

@keyframes neonBorderGlow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 400% 0;
    }
}

/* Trailer Container Effects */
.trailer-container {
    background: linear-gradient(45deg, 
        #1a0a2e 25%, 
        #2d1b4e 25%, 
        #2d1b4e 50%, 
        #1a0a2e 50%, 
        #1a0a2e 75%, 
        #2d1b4e 75%);
    background-size: 50px 50px;
    animation: trailerPattern 20s linear infinite;
}

@keyframes trailerPattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .neon-title {
        font-size: 2rem !important;
        text-shadow: 
            0 0 3px #ff2a6d,
            0 0 5px #ff2a6d,
            0 0 10px #ff2a6d,
            0 0 20px #ff2a6d;
    }
    
    .torchzilla-title {
        font-size: 1.75rem !important;
        letter-spacing: 0.03em !important;
    }
    
    .torchzilla-title::before,
    .torchzilla-title::after {
        display: none; /* Disable effects on mobile for performance */
    }
    
    .torchzilla-description {
        font-size: 0.875rem !important;
        letter-spacing: 0.08em !important;
        text-shadow: 
            0 0 2px #00d4ff,
            0 0 4px #00d4ff,
            0 0 6px rgba(0, 212, 255, 0.7) !important;
    }
    
    .torchzilla-description::before,
    .torchzilla-description::after {
        display: none; /* Disable effects on mobile for performance */
    }
    
    .countdown-number {
        font-size: 1.75rem !important;
        width: 70px !important;
        height: 70px !important;
    }
    
    .color-block {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 26, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#00d4ff, #ff6b9d);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#ff6b9d, #00d4ff);
}