/* Custom styles to complement Tailwind CSS */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced gradient background */
body {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 25%, #1e40af 50%, #1e3a8a 75%, #0f172a 100%);
    background-attachment: fixed;
}

/* Custom glow effects */
.glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* Enhanced newsletter form */
.newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.newsletter-form button:hover {
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* Icon hover effects */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.2);
}

/* App icon hover effects */
.app-icon {
    transition: all 0.3s ease;
}

.app-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Text selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading animation for form submission */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive text adjustments */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .content-text {
        font-size: 1.1rem;
    }
}

/* Content text styling */
.content-text {
    color: #cbd5e1; /* text-slate-300 */
}

/* Print styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .newsletter-section {
        display: none;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #1a1a2e 75%, #0a0a0a 100%);
    }
}

/* Custom button pulse animation */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Enhanced backdrop blur for newsletter */
.newsletter-backdrop {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Custom link underline animation */
.animated-link {
    position: relative;
    text-decoration: none;
}

.animated-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

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