/* Custom CSS for L7WAF Website */


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

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

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

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Background gradients */
.bg-gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

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

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes attack-move {
    0% { transform: translateX(100px) translateY(0); opacity: 1; }
    50% { transform: translateX(0) translateY(-20px); opacity: 0.8; }
    100% { transform: translateX(-100px) translateY(0); opacity: 0; }
}

@keyframes shield-appear {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes blocked-text {
    0% { opacity: 0; color: #ef4444; }
    50% { opacity: 1; color: #f59e0b; }
    100% { opacity: 1; color: #10b981; }
}

/* Floating animation */
.float {
    animation: float 6s ease-in-out infinite;
}

/* Attack animation elements */
.attack-vector {
    animation: attack-move 3s ease-in-out infinite;
}

.attack-vector:nth-child(2) {
    animation-delay: 0.5s;
}

.attack-vector:nth-child(3) {
    animation-delay: 1s;
}

/* Shield animation */
.shield-active {
    animation: shield-appear 1s ease-out;
}

/* Blocked text animation */
.blocked-text {
    animation: blocked-text 2s ease-in-out;
}

/* Custom button hover effects */
.btn-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Custom card hover effects */
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(-45deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Loading animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Typewriter effect */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.typewriter {
    overflow: hidden;
    border-right: .15em solid #3b82f6;
    white-space: nowrap;
    animation: typewriter 3s steps(40, end);
}

/* Glitch effect for security theme */
@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); }
}

.glitch:hover {
    animation: glitch 0.3s ease-in-out;
}

/* Custom focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Mobile menu animation */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms, transform 300ms;
}

/* Swiper customization */
.swiper-pagination-bullet {
    background: #3b82f6 !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    transform: scale(1.2);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .text-responsive {
        font-size: 1.5rem;
    }
    
    .container-mobile {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Dark theme enhancements */
.dark-card {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.dark-card:hover {
    background: rgba(17, 24, 39, 0.9);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Security themed icons */
.security-icon {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

/* Performance optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Loading skeleton */
@keyframes skeleton-loading {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Custom utilities */
.backdrop-blur-custom {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(#1f2937, #1f2937) padding-box,
                linear-gradient(45deg, #3b82f6, #8b5cf6) border-box;
}


/* Spider Web Effect Styles */
#spiderWebCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

#spiderWebCanvas:hover {
    opacity: 0.25;
}

/* Web animation keyframes */
@keyframes webPulse {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.4; 
        transform: scale(1.02);
    }
}

@keyframes webShake {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-2px) translateY(-1px); }
    50% { transform: translateX(2px) translateY(1px); }
    75% { transform: translateX(-1px) translateY(2px); }
}

.web-animated {
    animation: webPulse 4s ease-in-out infinite, webShake 8s ease-in-out infinite;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}
