:root {
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --accent-blue: #00f3ff;
    --accent-purple: #bc13fe;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* We will add a custom cursor later or keep default for now, but user asked for "2026 standard" */
}

/* Reverting cursor to auto for usability unless I build a JS cursor */
* { cursor: auto; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- ANIMATED BACKGROUND --- */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-purple);
    top: -200px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 100px); }
}

.item-grid-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* --- LOADER --- */
.loader-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.scanner {
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite, glow 2s ease-in-out infinite alternate;
}

.scanner::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

.loader-text {
    margin-top: 20px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    color: var(--accent-blue);
    font-size: 0.9rem;
    position: relative;
}

/* --- NAV --- */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(5,5,5,0.8), rgba(5,5,5,0));
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.accent-text {
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--accent-blue);
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* --- HERO --- */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -2px;
    position: relative;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero-desc {
    color: var(--text-dim);
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 50px;
    line-height: 1.6;
}

/* Search Bar */
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-container input {
    width: 100%;
    padding: 20px 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.search-container input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 1.2rem;
}

/* --- DIRECTORY --- */
.directory {
    padding: 50px 5%;
    min-height: 100vh;
}

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
    padding: 10px;
    border-radius: 50px;
    position: sticky;
    top: 100px;
    z-index: 50;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.filter-btn:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.filter-btn.active {
    background: var(--accent-blue);
    color: black;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    font-weight: 700;
}

/* GRID */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* CARD */
.tool-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-purple);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.tool-card:hover::before {
    opacity: 1;
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--accent-blue);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.tool-card:hover .card-icon-wrapper {
    background: var(--accent-blue);
    color: black;
    box-shadow: 0 0 20px rgba(0,243,255,0.4);
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 15px;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
}

.card-desc {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.visit-btn {
    display: inline-block;
    text-align: center;
    padding: 12px 0;
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.visit-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--accent-purple);
    z-index: -1;
    transition: width 0.3s ease;
}

.visit-btn:hover {
    color: white;
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.4);
}

.visit-btn:hover::after {
    width: 100%;
}

/* --- ANIMATIONS --- */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes glow {
    from { box-shadow: 0 0 5px var(--accent-blue); }
    to { box-shadow: 0 0 20px var(--accent-blue), 0 0 10px var(--accent-purple); }
}

/* Glitch Effect on Hover (Optional for title) */
.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--accent-blue);
    z-index: -1;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    color: var(--accent-purple);
    z-index: -2;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 2px); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 2px); }
    100% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -2px); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -2px); }
    20% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(30% 0 20% 0); transform: translate(2px, -2px); }
    100% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, 2px); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .glass-nav { padding: 20px; }
    .nav-links { display: none; } /* Simplified for now */
    .filter-bar { top: 80px; }
}
