/* UnStandard Labs - Main Stylesheet */
:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #1a1a2e;
    --accent-bg: #16213e;
    --purple-accent: #6366f1;
    --blue-accent: #3b82f6;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

.gradient-text {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout elements */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    margin: 4rem 0;
}

/* Card & UI elements */
.glass-effect {
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.gradient-bg-purple {
    background: var(--gradient-purple);
}

.gradient-bg-blue {
    background: var(--gradient-blue);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-purple);
    color: white;
}

.btn-secondary {
    background: var(--gradient-blue);
    color: white;
}

/* Navigation */
nav {
    transition: all 0.3s ease;
}

.nav-scrolled {
    padding: 0.5rem 0;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    background: rgba(10, 10, 15, 0.8);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-purple);
    transition: width 0.3s ease;
}

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

/* Research cards */
.research-card {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.8) 0%, rgba(26, 26, 46, 0.6) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    height: 100%;
}

.research-card:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    z-index: 40;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out forwards;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    h2 {
        font-size: 2rem !important;
    }
    .section {
        padding: 3rem 0;
    }
}

/* Accessibility improvements */
:focus {
    outline: 2px solid var(--purple-accent);
    outline-offset: 2px;
}

/* For screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}