/* ==========================================================================
   Black Bear Motorcycle - Custom Styles & Animations
   ========================================================================== */

body {
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
}

/* Noise Texture Overlay */
.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glitch Effect on Hover */
.glitch-hover:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: #ccc;
}
@keyframes glitch {
    0%   { transform: translate(0); }
    20%  { transform: translate(-2px, 2px); }
    40%  { transform: translate(-2px, -2px); }
    60%  { transform: translate(2px, 2px); }
    80%  { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Button Outline Sweep */
.btn-outline {
    position: relative;
    overflow: hidden;
    transition: color 0.4s;
}
.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: transform 0.4s;
    z-index: -1;
}
.btn-outline:hover::before {
    transform: translateX(100%);
}
.btn-outline:hover {
    color: black;
}

/* Pulsing Phone Button */
.pulse-animation {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse-white 2s infinite;
}
@keyframes pulse-white {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70%  { transform: scale(1);    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Hero Overlay */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.8) 70%, rgba(5,5,5,1) 100%);
}

/* Logo Styles */
.logo-header {
    transition: all 0.3s ease;
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.logo-header:hover {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6)) brightness(1.1);
    transform: scale(1.05);
}
.logo-footer {
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.logo-footer:hover {
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4)) brightness(1.1);
    transform: scale(1.02);
}

/* Gallery Scrollbar Hide */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Gallery Navigation Buttons */
#gallery-prev,
#gallery-next {
    backdrop-filter: blur(4px);
}
#gallery-prev:disabled,
#gallery-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Video */
video {
    flex-shrink: 0;
}

/* Gallery Video Controls */
.gallery-video-wrapper {
    position: relative;
    cursor: pointer;
}
.gallery-video-wrapper:hover .gallery-video {
    opacity: 1 !important;
    filter: grayscale(0) !important;
}
.gallery-video-wrapper:hover .video-control-overlay,
.gallery-video-wrapper.playing .video-control-overlay {
    opacity: 1;
}
.video-control-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}
.gallery-video-wrapper:hover .video-control-overlay {
    pointer-events: auto;
}
.video-control-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000;
    transition: transform 0.2s ease;
}
.gallery-video-wrapper:hover .video-control-icon {
    transform: scale(1.1);
}
.gallery-video-wrapper.playing .video-control-icon {
    background: rgba(255, 255, 255, 0.95);
}
