@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-deep: #050506;
    --bg-surface: #0c0d10;
    --bg-card: #13141a;
    --primary: #bf5af2;
    --primary-dim: rgba(191, 90, 242, 0.1);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f0f0f2;
    --text-dim: #8e919a;
    --transit: all 0.4s cubic-bezier(0.2, 0, 0, 1);
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
    border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: #050608;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(191, 90, 242, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(191, 90, 242, 0.1) 0%, transparent 50%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(191, 90, 242, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(191, 90, 242, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(191, 90, 242, 0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* God Rays / Light Shafts */
.light-shafts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shaft {
    position: absolute;
    top: -50%;
    left: 20%;
    width: 200px;
    height: 200%;
    background: linear-gradient(to bottom, transparent, rgba(191, 90, 242, 0.03), transparent);
    transform: rotate(25deg);
    filter: blur(80px);
    animation: shaftMove 20s linear infinite;
}

.shaft:nth-child(2) {
    left: 60%;
    width: 300px;
    animation-delay: -10s;
}

@keyframes shaftMove {
    0% {
        transform: translate(-100px, 0) rotate(25deg);
    }

    100% {
        transform: translate(100px, 0) rotate(25deg);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Elite Navbar */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1000px;
    background: rgba(12, 13, 16, 0.7);
    backdrop-filter: blur(25px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 8px 32px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.8s cubic-bezier(0.2, 0, 0, 1) forwards;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.nav-brand {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand i {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-menu a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transit);
    padding: 10px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 224, 255, 0.5);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}



/* Hero Section Overhaul */
.hero-section {
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(191, 90, 242, 0.15) 0%, transparent 60%);
    overflow: visible;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--primary-dim) 0%, transparent 50%);
    animation: ambientGlow 20s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes ambientGlow {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    margin-bottom: 30px;
    opacity: 0;
    animation: heroReveal 1s cubic-bezier(0.2, 0, 0, 1) forwards;
}

@keyframes heroReveal {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-content h1 {
    font-size: 4.8rem;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    text-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(191, 90, 242, 0.1);
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.hero-content h1 span {
    background: linear-gradient(135deg,
            #bf5af2 0%,
            #af52de 25%,
            #fff 50%,
            #af52de 75%,
            #bf5af2 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metalShimmer 6s linear infinite;
    filter: drop-shadow(0 0 40px rgba(191, 90, 242, 0.5));
    position: relative;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
}

.hero-content p {
    color: var(--text-dim);
    font-size: 0.85rem;
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.8;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes metalShimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: 0% center;
    }
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 18px 36px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transit);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow:
        0 0 50px rgba(191, 90, 242, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.04);
}

.search-box input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    width: 100%;
    outline: none !important;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: none !important;
}

.search-box i {
    color: var(--primary);
    font-size: 1.2rem;
}

.featured-rail {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 60px;
    width: 100%;
    opacity: 0;
    animation: heroReveal 1s cubic-bezier(0.2, 0, 0, 1) 0.3s forwards;
}

.featured-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    width: 280px;
    text-align: left;
    transition: var(--transit);
    backdrop-filter: blur(10px);
}

.featured-card.active {
    background: rgba(191, 90, 242, 0.05);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(191, 90, 242, 0.1);
}

.featured-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(191, 90, 242, 0.4);
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(191, 90, 242, 0.1);
}

.featured-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-dim);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.featured-card h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
}

.featured-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Filter Bar */
.section-header {
    padding-top: 40px;
    margin-top: 20px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 10px 24px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transit);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 224, 255, 0.1);
}

.filter-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-dim);
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-top: 8px;
}

.badge {
    background: var(--primary-dim);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.mod-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    margin-bottom: 100px;
    transition: var(--transit);
}

.card {
    width: 380px;
    background: rgba(19, 20, 26, 0.4);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    transition: var(--transit);
    cursor: pointer;
    backdrop-filter: blur(12px);
    position: relative;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 224, 255, 0.15);
    background: rgba(19, 20, 26, 0.8);
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1);
}

.card:hover .card-img-wrap img {
    transform: scale(1.15) rotate(2deg);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #fff;
}

.card-info {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.5;
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.dl-btn {
    background: var(--primary);
    color: #000;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transit);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transit);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    width: 95%;
    max-width: 950px;
    border-radius: 40px;
    padding: 50px;
    position: relative;
    border: 1px solid var(--border);
    transform: scale(0.9);
    transition: 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    background: var(--primary);
    color: #000;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
}

.modal-img {
    width: 100%;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: var(--bg-surface);
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-val {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: #fff;
    color: #000;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.4s forwards;
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.removing {
    transform: translateX(110%);
    opacity: 0;
    transition: 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile & Auth Styling */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 15px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-dim);
}

/* Profile Modal Styling */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.profile-avatar-wrap {
    position: relative;
    width: 100px !important;
    height: 100px !important;
    min-width: 100px;
    min-height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--primary);
    background: var(--bg-surface);
}

.profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.profile-avatar-wrap:hover .avatar-overlay {
    opacity: 1;
}

.profile-meta h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 4px;
}