@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Palette: Matte Void & Navy */
    --bg-body: #09090b;       /* Zinc 950 - Solid */
    --bg-card: #121214;       /* Slightly lighter solid for cards */
    --bg-card-hover: #18181b;
    
    /* Navy Accents */
    --accent-navy: #3b82f6;   /* Blue 500 */
    --accent-navy-dark: #1d4ed8;
    --accent-text: #60a5fa;
    
    /* Text */
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    
    /* UI */
    --border-subtle: #27272a; /* Zinc 800 */
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

/* --- Base Reset --- */
* { box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
}

a { color: inherit; text-decoration: none; transition: 0.2s; }

/* --- Scanlines (Very Subtle Texture) --- */
.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.02));
    background-size: 100% 4px;
    z-index: 9999;
    opacity: 0.5;
}

/* --- The "Soft Card" --- */
.soft-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.soft-card:hover {
    background-color: var(--bg-card-hover);
    border-color: #3f3f46;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

/* --- Buttons --- */
.btn-navy {
    background-color: var(--accent-navy);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-navy:hover {
    background-color: var(--accent-navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background-color: rgba(255,255,255,0.03);
}

/* --- Navigation --- */
/* Glassmorphism handled in HTML via Tailwind */

/* --- Filters (Resources) --- */
.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover {
    color: white;
    border-color: var(--text-muted);
}
.filter-btn.active {
    background-color: var(--accent-navy);
    color: white;
    border-color: var(--accent-navy);
}

/* --- Three.js Container --- */
#hero-canvas-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.3; /* Subtle background motion */
    pointer-events: none;
}

/* --- Form Elements --- */
input, textarea, select {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    outline: none;
    transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent-navy);
    background-color: var(--bg-card-hover);
}

/* --- Utilities --- */
.resource-item.hidden { display: none; }
.text-navy { color: var(--accent-navy); }