/* Custom styles for NeuronPulse */

/* Grid pattern for backgrounds */
.bg-grid-pattern {
    background-image: linear-gradient(rgba(124, 58, 237, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(124, 58, 237, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Stars pattern for space-themed sections */
.bg-stars-pattern {
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 1%),
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 1%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.7) 0%, transparent 1%),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.5) 0%, transparent 1%),
        radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.6) 0%, transparent 1%);
    background-size: 150px 150px;
}

/* Floating space elements animation */
.space-element {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
    filter: blur(2px);
}

.space-element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    transform: translate(0, 0);
}

.space-element-2 {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    transform: translate(0, 0);
}

.space-element-3 {
    bottom: 30%;
    left: 50%;
    animation-delay: 10s;
    transform: translate(0, 0);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-counter] {
    opacity: 0;
    animation: countUp 0.5s ease-out forwards;
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* Button hover effects */
.btn-glow:hover {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient text animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background: linear-gradient(45deg, #7c3aed, #a855f7, #7c3aed);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease infinite;
}

/* Loading animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive typography */
@media (max-width: 640px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    .text-7xl {
        font-size: 3rem;
    }
}

/* Form focus styles */
.form-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Zoom effect for images */
.zoom-effect {
    overflow: hidden;
}

.zoom-effect img {
    transition: transform 0.5s ease;
}

.zoom-effect:hover img {
    transform: scale(1.05);
}

/* Tech grid background */
.tech-grid {
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Aurora effect */
.aurora {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(
        45deg,
        rgba(124, 58, 237, 0.1),
        rgba(168, 85, 247, 0.1),
        rgba(124, 58, 237, 0.1)
    );
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}