:root {
    --bg-color: #050505;
    --card-bg: #0A0A0A;
    --text-primary: #ffffff;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Page Transitions */
.page-section {
    /* display: none; Removed for multi-page setup */
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .page-section.active { display: block; } Removed for multi-page setup */

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

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

/* Vibrant Gradients */
.text-gradient-yxm {
    background: linear-gradient(to right, #FFD700, #FF8C00, #FF0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 140, 0, 0.3);
}

.text-gradient-tools {
    background: linear-gradient(to right, #4ADE80, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-challenge {
    background: linear-gradient(to right, #F472B6, #A78BFA, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons with Glow */
.bg-gradient-green-btn {
    background: linear-gradient(135deg, #bef264, #86efac);
    color: black;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(134, 239, 172, 0.4);
    transition: all 0.3s ease;
}

.bg-gradient-green-btn:hover {
    box-shadow: 0 0 30px rgba(134, 239, 172, 0.6);
    transform: translateY(-2px);
}

.bg-gradient-purple-btn {
    background: linear-gradient(135deg, #86efac, #a855f7);
    color: white;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
}

.bg-gradient-purple-btn:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Tool Card Specifics - Function at Top */
.tool-card-top-strip {
    height: 6px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.tool-function-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sir Newson Section */
.sir-newson-border {
    border: 2px solid transparent;
    background-image: linear-gradient(#050505, #050505), linear-gradient(to right, #10B981, #3B82F6);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.15);
}

.exclusive-curation-badge {
    background: linear-gradient(90deg, #064E3B, #065F46);
    border: 1px solid #10B981;
    color: #D1FAE5;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

/* Filter Buttons - Playful */
.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px) rotate(1deg);
}

.filter-btn-active {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: currentColor !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Background Animation */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 2px solid #050505;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Forms */
.custom-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.custom-input:focus {
    border-color: #A78BFA;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
    outline: none;
    background: rgba(255, 255, 255, 0.05);
}

/* New Card Design */
.card-new {
    background: #0A0A0A;
    /* Darker bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-new:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.category-pill-new {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid;
    font-weight: 600;
}

/* Checkbox Filter Button */
.filter-checkbox-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #9CA3AF;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.filter-checkbox-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.filter-checkbox-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: currentColor;
    /* Will be set inline or via specific class */
    color: white;
}

.checkbox-square {
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-checkbox-btn.active .checkbox-square {
    background: currentColor;
}

/* Nav Links */
.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #A78BFA, #F472B6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}