@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700&display=swap');

:root {
    --matte-black: #0e0e10;
    --matte-dark: #16161a;
    --text-light: #f2f2f0;
    --text-muted: #b9b9c0;
    --accent: #c9a876;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--matte-black);
    color: var(--text-light);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* --- بک‌گراند --- */
.bg-layer {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(15%) brightness(0.55) contrast(1.05);
    z-index: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(14, 14, 16, 0.75) 0%,
        rgba(14, 14, 16, 0.45) 45%,
        rgba(14, 14, 16, 0.85) 100%
    );
    z-index: 1;
}

/* --- محتوای اصلی --- */
.hero {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 640px;
    animation: fadeUp 1.2s ease-out;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    color: var(--text-light);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    line-height: 2;
    color: var(--text-muted);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- دکمه همبرگری --- */
.menu-toggle {
    position: fixed;
    top: 1.8rem;
    inset-inline-end: 1.8rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.25s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- منوی کناری --- */
.side-menu {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    height: 100vh;
    width: min(280px, 80vw);
    background: rgba(16, 16, 20, 0.92);
    backdrop-filter: blur(10px);
    border-inline-start: 1px solid rgba(255,255,255,0.08);
    z-index: 9;
    transform: translateX(110%);
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
}

html[dir="rtl"] .side-menu {
    transform: translateX(-110%);
}

.side-menu.open {
    transform: translateX(0);
}

.side-menu ul {
    list-style: none;
    width: 100%;
    padding: 0 2.5rem;
}

.side-menu li {
    margin: 1.4rem 0;
}

.side-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    transition: color 0.25s ease, padding-inline-start 0.25s ease;
}

.side-menu a:hover {
    color: var(--accent);
}
