/* Custom styles for AI Future website */

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

/* Enhanced gradient text effect */
.gradient-text {
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 8s ease infinite;
    background-size: 200% auto;
}

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

/* Enhanced card hover effects */
.card-hover {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card-hover:hover {
    transform: translateY(-10px);
    border-color: #4F46E5;
    box-shadow: 0 10px 30px -15px rgba(79, 70, 229, 0.3);
}

/* Custom button styles */
.custom-button {
    position: relative;
    overflow: hidden;
}

.custom-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) rotate(35deg);
    transition: transform 0.5s;
}

.custom-button:hover::after {
    transform: translate(-50%, -50%) rotate(35deg) translateY(-100%);
}

/* Enhanced focus states */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4338CA;
}

/* Loading animation for 3D section */
.loading-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.loading-animation::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    margin: -20px 0 0 -20px;
    border: 4px solid #4F46E5;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    
    h2 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
} 