/* Custom CSS for Launch Foundry */

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

/* Custom button styles with animations */
.btn-primary {
    @apply bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 hover:shadow-lg inline-flex items-center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.btn-secondary {
    @apply bg-transparent border-2 border-gray-300 hover:border-blue-400 text-gray-300 hover:text-blue-400 font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 inline-flex items-center;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.btn-outline {
    @apply bg-transparent border border-gray-600 hover:border-blue-400 text-gray-300 hover:text-blue-400 font-semibold py-2 px-4 rounded-lg transition-all duration-300 transform hover:scale-105;
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-large {
    @apply py-4 px-8 text-lg;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0, #cbd5e1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

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

/* Card animations */
.product-card {
    @apply bg-gray-800/50 backdrop-blur-sm border border-gray-700 rounded-xl p-6 transition-all duration-300 transform;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 0; /* Prevents flex items from overflowing */
    width: 100%;
    padding: 1rem;
    border-radius: 0.2rem;
}

.product-card:hover {
    @apply border-gray-600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.feature-card {
    @apply bg-gray-800/30 backdrop-blur-sm border border-gray-700 rounded-xl p-6 transition-all duration-500 transform hover:scale-105;
}

.feature-card:hover {
    @apply border-purple-500/50;
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.2);
    transform: translateY(-5px) scale(1.02);
}

.contact-card {
    @apply transition-all duration-300;
    max-width: 100%;
    overflow: hidden;
}

.contact-card:hover {
    /* No transform - just keep it simple */
}

/* Fade in animation */
.animate-fade-in {
    animation: fadeIn 1.5s ease-out;
}

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



/* Navigation backdrop blur enhancement */
nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* Floating animation for hero elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse animation for call-to-action buttons */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
    }
}

/* Mobile menu animations */
.mobile-menu-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-link:hover {
    transform: translateX(10px);
}

/* Responsive design enhancements */
@media (max-width: 768px) {
    .btn-large {
        @apply py-3 px-6 text-base;
    }
    
    .product-card, .feature-card {
        transform: none;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .product-card:hover, .feature-card:hover {
        transform: translateY(-5px);
    }
}

/* Prevent horizontal overflow */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Additional mobile spacing */
@media (max-width: 640px) {
    .product-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Loading animation for page elements */
.stagger-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.8s ease-out forwards;
}

.stagger-fade-in:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade-in:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade-in:nth-child(3) { animation-delay: 0.3s; }

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced focus states for accessibility */
button:focus, a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
