/* Custom CSS for futuristic landing page */

/* Glass morphism cards */
.glass-card {
    background: rgba(20, 20, 35, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

::-webkit-scrollbar-track {
    background: rgba(20, 20, 35, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00f3ff, #bc13fe);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00f3ff, #ff00ff);
}

/* Selection color */
::selection {
    background: rgba(0, 243, 255, 0.3);
    color: white;
}

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

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #00f3ff;
    outline-offset: 2px;
}

/* Hover glow effect for buttons */
button:not(:disabled):hover,
a:hover {
    filter: brightness(1.1);
}

/* Animation classes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Entrance animations for sections */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glow effect on hover for cards */
.glass-card {
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 243, 255, 0.05);
}

/* Feature card specific hover */
.glass-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon {
    transition: transform 0.3s ease;
}

/* Link hover underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f3ff, #bc13fe);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.animate-gradient-text {
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
}

/* Mock UI animations */
.mock-checkbox {
    transition: all 0.2s ease;
}

.mock-checkbox:hover {
    border-color: #00f3ff;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .glass-card {
        margin: 0 -4px;
    }

    /* Adjust hero text for mobile */
    h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

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

.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Parallax effect for background */
@media (min-width: 1024px) {
    .parallax-bg {
        will-change: transform;
    }
}