@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #02040a;
    --liquid-bg: rgba(20, 40, 70, 0.35);
    --liquid-border: rgba(120, 200, 255, 0.35);
    --primary: #3aa8ff;
    --accent: #66d1ff;
    --text: #e9eef5;
    --muted: #a8b3c2;
    --radius: 20px;
    --shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    --section-padding: 30px;
    --mobile-padding: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(1200px 800px at 20% 20%, #0a1625 0%, #05070a 100%);
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

.liquid {
    background: var(--liquid-bg);
    backdrop-filter: blur(25px) saturate(180%) contrast(120%);
    -webkit-backdrop-filter: blur(25px) saturate(180%) contrast(120%);
    border: 1px solid var(--liquid-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
    .liquid::before {
        content: "";
        position: absolute;
        inset: -50%;
        background: linear-gradient(45deg,
                rgba(58, 168, 255, 0.1) 0%,
                rgba(102, 209, 255, 0.05) 50%,
                transparent 100%);
        animation: subtle-swirl 20s linear infinite;
        opacity: 0.25;
        pointer-events: none;
        will-change: transform;
        backface-visibility: hidden;
        transform: translateZ(0);
    }

    @keyframes subtle-swirl {
        0% {
            transform: rotate(0deg) translateZ(0);
        }

        100% {
            transform: rotate(360deg) translateZ(0);
        }
    }

    @media (max-width: 1024px) and (prefers-reduced-data: reduce) {
        .liquid::before {
            animation: none;
            background: linear-gradient(45deg,
                    rgba(58, 168, 255, 0.05) 0%,
                    rgba(102, 209, 255, 0.025) 50%,
                    transparent 100%);
        }
    }
}

@media (max-width: 768px) {
    .liquid::before {
        display: none;
    }
}

header {
    height: auto;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    margin: 20px 20px 0;
}

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

a:link,
a:visited {
    color: white;
    text-decoration: none;
}

a:hover {
    color: #3aa8ff !important;
    text-decoration: none !important;
}

a:active {
    color: #3aa8ff !important;
    text-decoration: none !important;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand .logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.35),
        inset 0 0 10px rgba(255, 255, 255, 0.03);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand .logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.brand .title {
    font-weight: 700;
    font-size: 18px;
}

nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 16px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    border-radius: 14px;
    transition: 250ms ease;
    font-size: 14px;
}

.tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(58, 168, 255, 0.5);
}

.tab.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 25px rgba(58, 168, 255, 0.35);
}

main {
    margin: 40px auto 0;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
}

section {
    margin-bottom: 30px;
    padding: var(--section-padding);
    width: 100%;
}

h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 26px;
    border-bottom: 1px solid var(--liquid-border);
    padding-bottom: 10px;
}

h3 {
    margin: 12px 0;
    color: var(--accent);
}

p {
    color: var(--muted);
    margin-top: 0;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.liquid-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    transition: 250ms ease;
    border-radius: var(--radius);
    margin: 0;
}

.liquid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(58, 168, 255, 0.35);
}

.liquid-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f1722, #182635);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(120, 200, 255, 0.35);
    position: relative;
    flex-shrink: 0;
}

.liquid-avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at -10% -10%, rgba(102, 209, 255, 0.25), transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.liquid-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.meta .title {
    font-weight: 700;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 4px;
}

.meta .desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.id-tag {
    margin-right: auto;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--liquid-border);
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    box-shadow: inset 0 0 15px rgba(58, 168, 255, 0.25);
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    border-top: 1px solid var(--liquid-border);
    margin: 50px 20px 20px;
    width: calc(100% - 40px);
}

@media (max-width: 768px) {
    :root {
        --section-padding: 20px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin: 15px 15px 0;
        height: auto;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    .tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    main {
        margin-top: 20px;
        padding: 0 15px;
    }

    section {
        padding: var(--mobile-padding);
        margin-bottom: 20px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .liquid-item {
        padding: 14px;
    }

    .liquid-avatar {
        width: 56px;
        height: 56px;
    }

    footer {
        margin: 30px 15px 15px;
        padding: 15px;
        width: calc(100% - 30px);
        font-size: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    header {
        margin: 20px 20px 0;
        padding: 15px 20px;
    }

    main {
        padding: 0 20px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }

    footer {
        margin: 40px 20px 20px;
        width: calc(100% - 40px);
    }
}
