/* Landing Page CSS - Metronic SaaS Navigation Inspired */

.nav-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}

.nav-button:hover {
    color: #1e293b;
    background-color: rgba(248, 250, 252, 0.8);
    text-decoration: none;
}

.nav-button:focus,
.nav-button:active,
.nav-button.active {
    outline: none;
    background-color: rgba(248, 250, 252, 1);
    border: 1px solid rgba(226, 232, 240, 1);
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
}

.nav-get-started {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #0078D4, #00BCF2);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.nav-get-started:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #5b5fc7, #7c3aed);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
}

.nav-get-started:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4);
}

.nav-get-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-get-started:hover::before {
    left: 100%;
}

/* Responsive behavior */
@media (max-width: 768px) {
    /* Hide desktop navigation elements */
    .desktop-nav,
    .desktop-auth {
        display: none !important;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Responsive button sizing for remaining visible buttons */
    .nav-button,
    .nav-get-started {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Additional gradient button styles for the main page */
.gradient-button {
    background: linear-gradient(135deg, #0078D4, #00BCF2) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.25) !important;
    cursor: pointer;
}

.gradient-button:hover {
    background: linear-gradient(135deg, #0078D4, #00BCF2) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 120, 212, 0.35) !important;
    text-decoration: none !important;
}

.secondary-button {
    color: #64748b !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 1rem 1.5rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    transition: all 0.2s !important;
    background: #ffffff !important;
}

.secondary-button:hover {
    color: #475569 !important;
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    text-decoration: none !important;
}

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

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Background patterns and effects */
.bg-gradient-soft {
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

/* Responsive grid improvements */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .hero-section {
        padding: 4rem 3% 3rem 3% !important;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
}

/* Focus states for accessibility */
.nav-button:focus-visible,
.nav-get-started:focus-visible,
.gradient-button:focus-visible,
.secondary-button:focus-visible {
    outline: 2px solid #0078D4;
    outline-offset: 2px;
}
