/* Styles from inline <style> in index.html */
.gradient-bg {
    background: var(--gradient-primary);
}
.auth-form {
    backdrop-filter: blur(10px);
}
.transition-all {
    transition: all 0.3s ease-in-out;
} 

/* Inter Font */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Custom Animations */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--color-primary-alpha-30); }
    50% { box-shadow: 0 0 40px var(--color-primary-alpha-40); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Gradient Text Animation */
.animate-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-surface) 25%, var(--color-primary-dark) 75%, var(--color-secondary-dark) 100%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.hero-content {
}

.hero-title {
}

.hero-subtitle {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Hide subtitle only when JavaScript is working */
.js-enabled .hero-subtitle {
    opacity: 0;
}

.hero-actions {
}

.hero-stats {
}

/* Stars Animation */
.stars-container {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
}

/* Floating Elements */
.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-primary-alpha-30), var(--color-secondary-alpha-30));
    animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}



/* Feature Cards */
.feature-card {
    backdrop-filter: blur(20px);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-primary-lg);
    border-color: var(--border-primary);
}

.feature-icon {
    transition: all 0.3s ease;
    background: color-mix(in srgb, var(--color-secondary-light) 75%, transparent);
}

/* About Section Styling */
.about-section {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-background) 50%, var(--color-surface) 100%);
}

.about-section .grid > div:first-child {
}

.about-section .grid > div:last-child {
}

/* Footer Styling */
.footer-section {
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-surface) 100%);
}

.footer-section h3 {
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.footer-section a:hover {
    transform: translateX(4px);
}

.footer-section .w-10:hover {
    transform: scale(1.1) !important;
}

/* Auth Modal */
.auth-modal-content {
    backdrop-filter: blur(20px);
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--border-medium);
}

.auth-tab {
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"] {
    transition: all var(--transition-normal);
    border: 2px solid var(--border-light);
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: var(--color-primary);
}

/* Navigation */
nav {
    backdrop-filter: blur(20px);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
}

/* Ensure proper mobile navigation behavior */
@media (max-width: 767px) {
    nav .hidden.md\:flex {
        display: none !important;
    }
    
    nav .md\:hidden {
        display: block;
    }
}

/* Scroll Animation */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* Hero Badge */
.hero-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-primary);
}

/* Stats Items */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }

/* About Section Cards */
.about-section .bg-gray-900\/50 {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    backdrop-filter: blur(20px);
}

.about-section .bg-gray-900\/50:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary-lg);
}

/* Responsive Design */
@media (min-width: 768px) {
    .features-section .grid {
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .floating-elements::before,
    .floating-elements::after {
        display: none;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card:hover {
        transform: translateY(-4px);
    }
    
    .about-section .grid {
        gap: 2rem;
    }
    
    .footer-section .grid {
        gap: 2rem;
    }
    
    .footer-section .md\:col-span-1 {
        grid-column: span 1;
    }
    
    /* Improve mobile hero input */
    .hero-input-container {
        margin-bottom: 1rem;
    }
    
    .hero-input-container .glass-card {
        margin: 0 0.5rem;
    }
    
    .hero-input-container textarea {
        font-size: 1rem;
        min-height: 60px;
    }
    
    /* Improve mobile example buttons */
    .hero-examples {
        margin-bottom: 1.5rem;
    }
    
    .hero-examples .flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-examples .example-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 767px) {
    /* Ensure mobile menu is properly hidden by default */
    nav .md\:hidden.hidden {
        display: none !important;
    }
    
    /* Improve mobile navigation spacing */
    nav .flex.justify-between {
        padding: 0.75rem 1rem;
    }
    
    /* Ensure mobile menu button is properly sized */
    #mobileMenuBtn {
        padding: 0.5rem;
        margin-left: 0.5rem;
    }
    
    /* Mobile menu styling improvements */
    #mobileMenu {
        border-top: 1px solid rgba(75, 85, 99, 0.5);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    /* Improve mobile menu item spacing */
    #mobileMenu .py-2 > * {
        margin-bottom: 0.25rem;
    }
    
    #mobileMenu .py-2 > *:last-child {
        margin-bottom: 0;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-primary-alpha-15), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Button Enhancements */
button {
    transition: all var(--transition-normal);
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Glass Effect */
.glass {
    backdrop-filter: blur(20px);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
}

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

/* Focus States */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Text Selection */
::selection {
    background: var(--color-primary-alpha-25);
    color: var(--text-primary);
} 
