/* Base Setup */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;700&display=swap');

:root {
    --bg: #0a0a0a;
    --surface: #121212;
    --surface-hover: #1e1e1e;
    --border: #2a2a2a;
    --text-main: #ededed;
    --text-muted: #a1a1a1;
    --accent: #0070f3;
    /* Default blue, can be customized per collection */
    --accent-glow: rgba(0, 112, 243, 0.4);

    --collection-roblox: #ff2d55;
    --collection-web: #0070f3;
    --collection-tool: #7928ca;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header / Vault Branding */
.vault-header {
    margin: 4rem 0 3rem;
    text-align: center;
}

.vault-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(to bottom right, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.vault-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #555;
    color: #fff;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Featured Section */
.featured-section {
    margin-bottom: 4rem;
}

.section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::after {
    content: '';
    height: 1px;
    background: var(--border);
    flex: 1;
}

/* Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Card Component */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--text-muted);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #1a1a1a;
    border-bottom: 1px solid var(--border);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.type-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
    /* Pushes footer down */
}

.card-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    color: #666;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: #ddd;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Roblox Specifics */
.stat-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.card {
    animation: fadeIn 0.5s ease backwards;
}

/* Stagger animation based on child index is cleaner in JS or specific classes, 
   but we can do generic nth-child if we want pure CSS */
.projects-grid .card:nth-child(1) {
    animation-delay: 0.1s;
}

.projects-grid .card:nth-child(2) {
    animation-delay: 0.15s;
}

.projects-grid .card:nth-child(3) {
    animation-delay: 0.2s;
}

.projects-grid .card:nth-child(4) {
    animation-delay: 0.25s;
}

/* Status Dot */
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    position: relative;
    top: -1px;
    background: #666;
    /* Default fallback */
}

.status-Active {
    background: #00e054;
    box-shadow: 0 0 8px rgba(0, 224, 84, 0.4);
}

.status-Paused {
    background: #ffbc2b;
}

.status-Archived {
    background: #666;
    opacity: 0.5;
}

.status-Beta {
    background: #0070f3;
}

.status-Concept {
    background: #a3a3a3;
    border: 1px solid #fff;
}

.status-Broken {
    background: #ff2d55;
}

/* Responsive */
@media (max-width: 768px) {
    .vault-title {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Landing Page Styles */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.glow-btn {
    padding: 1rem 2.5rem;
    background: #fff;
    color: #000;
    font-weight: 700;
    border-radius: 99px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.glow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.content-section {
    padding: 6rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #666);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Services Grid */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.svc-card {
    background: #111;
    border: 1px solid #222;
    padding: 2rem;
    border-radius: 12px;
    transition: 0.3s;
}

.svc-card:hover {
    border-color: #444;
    transform: translateY(-5px);
}

.svc-icon {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

/* Contact */
.contact-links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    background: #111;
    border-radius: 8px;
    border: 1px solid #222;
    transition: 0.3s;
    color: #fff;
    text-decoration: none;
}

.social-link:hover {
    border-color: #fff;
    background: #000;
}