/* ========== ANIMATIONS & EFFECTS ========== */

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Animated Gradient Background - BLACK & WHITE */
body {
    background: linear-gradient(-45deg, #000000, #0a0a0a, #1a1a1a, #0d0d0d);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

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

/* Glassmorphism effect for cards */
.feature-card,
.pricing-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover,
.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 15px 45px 0 rgba(255, 255, 255, 0.2);
}

/* 3D Flip effect on hover */
.pricing-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.pricing-card:hover {
    transform: rotateY(5deg) translateY(-10px);
}

/* Animated gradient text - BLACK & WHITE */
.gradient-text {
    background: linear-gradient(45deg, #ffffff, #cccccc, #999999, #ffffff);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s ease infinite;
}

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

/* Hero title animation */
.hero h1 {
    animation: fadeInUp 1s ease-out;
}

.hero p {
    animation: fadeInUp 1.2s ease-out;
}

.hero-buttons {
    animation: fadeInUp 1.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating animation for hero features */
.hero-feature {
    animation: float 3s ease-in-out infinite;
}

.hero-feature:nth-child(1) { animation-delay: 0s; }
.hero-feature:nth-child(2) { animation-delay: 0.5s; }
.hero-feature:nth-child(3) { animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Scroll reveal animation */
[data-reveal] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for features */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

/* Button pulse effect - BLACK & WHITE */
.btn-primary {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
    }
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Icon animations */
.hero-feature .icon,
.feature-card .icon {
    display: inline-block;
    transition: all 0.3s ease;
}

.hero-feature:hover .icon,
.feature-card:hover .icon {
    transform: scale(1.2) rotate(10deg);
}

/* Slider animations */
.slide {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading skeleton animation */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Text color updates for dark background */
body {
    color: #e5e5e5 !important;
}

.hero h1,
.section-title {
    color: #ffffff !important;
}

.hero-subtitle,
.section-subtitle,
p {
    color: #d1d1d1 !important;
}

/* Header transparency */
.header {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Update sections background */
.screenshots,
.video-section,
.features,
.pricing,
.faq,
.download {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin: 40px 0;
    padding: 60px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Parallax effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Glow effect on focus - BLACK & WHITE */
input:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Make everything position relative to allow particles behind */
.container {
    position: relative;
    z-index: 1;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar - BLACK & WHITE */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffffff, #cccccc);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #cccccc, #999999);
}
