/* Custom Futuristic Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Syne:wght@400;600;700;800&display=swap');

body {
    background-color: #050505;
    cursor: none; /* For custom cursor */
}
@media (max-width: 1024px) {
    body {
        cursor: auto;
    }
}

/* Hide scrollbar but keep functionality */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #050505; 
}
::-webkit-scrollbar-thumb {
    background: #1a1a2e; 
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00f3ff; 
}

/* Noise overlay */
.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Background Grids */
.cyber-grid {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #00f3ff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate3d(0, 0, 0) translate(-50%, -50%);
    opacity: 0;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.3s;
    mix-blend-mode: difference;
}
.custom-cursor.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.5);
    mix-blend-mode: normal;
}
@media (max-width: 1024px), (pointer: coarse) {
    .custom-cursor {
        display: none !important;
    }
}

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.glass-card {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.4) 0%, rgba(5, 5, 8, 0.8) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 243, 255, 0.3);
}

/* Glow Text */
.glow-text-cyan {
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.6), 0 0 30px rgba(0, 243, 255, 0.2);
}

/* Cyber Button */
.cyber-button {
    position: relative;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
}
.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}
.cyber-button:hover {
    border-color: #00f3ff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.1);
    letter-spacing: 2px;
}
.cyber-button:hover::before {
    left: 100%;
}

/* Sliders */
.cyber-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}
.cyber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #00f3ff;
    cursor: pointer;
    box-shadow: 0 0 15px #00f3ff;
    transform: rotate(45deg);
}

/* Before/After Slider */
.ba-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    min-height: 200px;
    user-select: none;
}
@media (min-width: 768px) {
    .ba-slider-container {
        min-height: 400px;
    }
}
.ba-slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.ba-slider-overlay {
    position: absolute;
    top: 0;
    left: 0; /* starts at 0, width defines the reveal */
    width: 50%; /* starts at 50% */
    height: 100%;
    overflow: hidden;
    border-right: 2px solid #00f3ff;
    box-shadow: 5px 0 15px rgba(0,243,255,0.2);
}
.ba-slider-overlay img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
}
.ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #00f3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0,243,255,0.5);
    color: #050505;
}
.ba-slider-handle:active {
    cursor: grabbing;
}

/* Animations */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.animate-slow-zoom {
    animation: slowZoom 30s ease-out infinite alternate;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 15px rgba(37,211,102,0.4); transform: scale(1); }
    50% { box-shadow: 0 0 30px rgba(37,211,102,0.8); transform: scale(1.05); }
    100% { box-shadow: 0 0 15px rgba(37,211,102,0.4); transform: scale(1); }
}
.pulse-animation {
    animation: pulse-glow 2s infinite;
}

/* Reveal Animations on Scroll */
.reveal-up {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    filter: blur(5px);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.magnetic {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
