/* Custom CSS for HckVision Website */

/* Glassmorphism Card Effect */
.glassmorphism-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(31, 128, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.glassmorphism-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(31, 128, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(31, 128, 255, 0.1);
}

/* Floating Cubes Animation */
.floating-cube {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(31, 128, 255, 0.1), rgba(31, 128, 255, 0.05));
    border: 1px solid rgba(31, 128, 255, 0.2);
    border-radius: 8px;
    animation: float 6s ease-in-out infinite;
}

.cube-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cube-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.cube-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.cube-4 {
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

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

/* Code Stream Background */
.code-stream {
    background-image: 
        linear-gradient(90deg, transparent 98%, rgba(31, 128, 255, 0.1) 100%),
        linear-gradient(180deg, transparent 98%, rgba(31, 128, 255, 0.1) 100%);
    background-size: 50px 50px;
    animation: codeStream 20s linear infinite;
}

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

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(31, 128, 255, 0.6);
    border-radius: 50%;
    animation: floatElement 8s ease-in-out infinite;
}

.element-1 {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    top: 70%;
    right: 25%;
    animation-delay: 3s;
}

.element-3 {
    bottom: 40%;
    left: 60%;
    animation-delay: 6s;
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 1;
    }
}

/* Cursor Trail Effect (Desktop Only) */
@media (min-width: 768px) {
    .cursor-trail {
        position: fixed;
        width: 6px;
        height: 6px;
        background: rgba(31, 128, 255, 0.8);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transition: all 0.1s ease;
        box-shadow: 0 0 10px rgba(31, 128, 255, 0.5);
    }
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(31, 128, 255, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(31, 128, 255, 0.8);
    }
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(31, 128, 255, 0.2);
}

/* Mobile Menu Animations */
.mobile-dropdown {
    transition: all 0.3s ease;
}

.mobile-dropdown.show {
    max-height: 200px;
    opacity: 1;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(31, 128, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(31, 128, 255, 0.7);
}

/* Form Input Focus Effects */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(31, 128, 255, 0.1);
}

/* Button Hover Effects */
.btn-hover-glow:hover {
    box-shadow: 0 0 20px rgba(31, 128, 255, 0.4);
}

/* Text Selection */
::selection {
    background: rgba(31, 128, 255, 0.3);
    color: white;
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .glassmorphism-card {
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }
    
    .floating-cube {
        display: none;
    }
    
    .code-stream {
        opacity: 0.3;
    }
}

/* Dark/Light Theme Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Indicators for Accessibility */
button:focus, a:focus, input:focus, textarea:focus {
    outline: 2px solid rgba(31, 128, 255, 0.8);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glassmorphism-card {
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid rgba(31, 128, 255, 0.8);
    }
    
    .text-gray-300 {
        color: white !important;
    }
    
    .text-gray-400 {
        color: #d1d5db !important;
    }
}
