@font-face {
    font-family: 'Viata';
    src: url('../fonts/viata-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Viata';
    src: url('../fonts/viata-extrabold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-color: #000000;
    --page-bg-end: #000000;
    --text-color: #ffffff;
    --primary-color: #762BDE;
    /* New primary: Purple from MST gradient */
    --secondary-color: #2b2b35;
    --navbar-bg: rgba(10, 10, 18, 0.7);
    --card-bg: #1c1c22;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-viata: 'Viata', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);

    /* MST Gradients */
    --grad-mst: linear-gradient(90deg, #762BDE 0%, #3B76C3 28%, #00C1A7 62%, #2669F5 100%);
    --grad-hero-btn: linear-gradient(135deg, #762BDE, #2669F5);
    --grad-mst-vibrant: linear-gradient(135deg, #762BDE, #3B76C3, #00C1A7);
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    overscroll-behavior-x: none;
    -webkit-font-smoothing: antialiased;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #000000;
}

/* Atmospheric Animated Mesh Background (GPU Accelerated) */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    /* Scale up instead of using 200% width/height */
    background-image:
        radial-gradient(circle at 20% 20%, rgba(118, 43, 222, 0.16) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(38, 105, 245, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 193, 167, 0.04) 0%, transparent 50%);
    animation: backgroundPulse 25s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -2;
    will-change: transform;
}

/* Cinematic Film Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/stardust.png");
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundPulse {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-3%, 3%) scale(1.02);
    }

    100% {
        transform: translate(3%, -3%) scale(1);
    }
}




h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin: 0;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

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

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background: #000000;
}


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

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

/* --- Premium Toast Notifications --- */
.mst-toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.mst-toast {
    min-width: 320px;
    max-width: 450px;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 18px 25px;
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transform: translateX(40px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: auto;
}

.mst-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.mst-toast.hide {
    transform: translateX(40px);
    opacity: 0;
}

.mst-toast i {
    font-size: 1.4rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.mst-toast-content {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}

.mst-toast-close {
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
    margin-right: -10px;
}

.mst-toast-close:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .mst-toast-container {
        top: 20px;
        right: 20px;
        left: 20px;
    }

    .mst-toast {
        min-width: 0;
        width: 100%;
        padding: 15px 20px;
    }
}