@font-face {
    font-family: Vazirmatn;
    src: url('fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-display: swap;
}

:root {
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --bg-main: #0b0d12;
    --bg-soft: #121521;
    --bg-glass: rgba(20, 24, 45, 0.65);
    --text-main: #e8ebff;
    --text-soft: #a9b0ff;
    --text-muted: #6f77c8;
    --accent-primary: #7c7cff;
    --accent-secondary: #ff6ad5;
    --accent-glow: #8b9cff;
    --success: #3dffb2;
    --warning: #ffcc66;
    --danger: #ff5c7c;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 24px rgba(124, 124, 255, 0.35);
    --shadow-neon: 0 0 32px rgba(255, 106, 213, 0.35);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.15s var(--ease-out);
    --transition-normal: 0.3s var(--ease-out);
    font-family: Vazirmatn, serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color-scheme: dark;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(1200px 600px at 50% -20%, rgba(124, 124, 255, 0.08), transparent 60%);
}

body {
    max-width: 1700px;
    margin: 0 auto;
    min-height: 100dvh;
}

::selection {
    background: rgba(124, 124, 255, 0.35);
    color: #fff;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 8px var(--accent-secondary);
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 124, 255, 0.35), transparent);
    margin: 24px 0;
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(124, 124, 255, 0.15);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
}

.neon {
    box-shadow: var(--shadow-glow);
}

.neon-pink {
    box-shadow: var(--shadow-neon);
}

.text-muted {
    color: var(--text-muted);
}

header {
    border-bottom: 1px solid rgba(124, 124, 255, 0.15);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(11, 13, 18, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.logo {
    font-size: 1.7rem;
    font-weight: bold;
    letter-spacing: 2px;
    gap: 1rem;
    display: flex;
    align-items: center;
    text-shadow: 0 0 8px var(--accent-primary);
}


.logo img {
    width: 2.5rem;
    border-radius: 20%;
}

h1 {
    color: var(--text-main);
}

main {
    padding: 2em 1rem;
}

.info {
    text-align: center;
    border-radius: 2em;
    border: 1px solid rgba(124, 124, 255, 0.15);
    margin-bottom: 20px;
    padding: 10px;
}

h1 {
    font-size: 1.4em;
    text-shadow: 0 0 3px var(--accent-primary);
}

h2 {
    font-size: 1.4em;
    text-shadow: 0 0 7px var(--accent-primary);
    text-align: center;
}

.docs {
    display: grid;
    padding: 1rem 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;

}

.card {
    aspect-ratio: 1/1;
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(124, 124, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
    z-index: 10;
}

.card img {
    width: 53px;
    height: 53px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 4px var(--accent-primary));
    transition: all var(--transition-fast);
}

.card:hover img {
    filter: drop-shadow(0 0 8px var(--accent-primary));
}

.card h3 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.card p {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(124, 124, 255, 0.1);
    background: rgba(11, 13, 18, 0.8);
    backdrop-filter: blur(12px);
}

.credit {
    margin: 2em 0;
    color: var(--text-soft);
}

footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .docs {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo img {
        width: 2em;
    }
}