/* تعریف فونت‌ها بر اساس ساختار پوشه شما */
@font-face {
    font-family: 'Mikhak';
    src: url('../fonts/Mikhak-Bold.woff2') format('woff2');
    font-weight: 700;
}
@font-face {
    font-family: 'Mikhak';
    src: url('../fonts/Mikhak-Regular.woff2') format('woff2');
    font-weight: 400;
}

:root {
    --bg-color: #0c111d;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent: #0ea5e9;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #0284c7;
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Mikhak', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    direction: rtl;
    overflow: hidden;
    height: 100vh;
}

/* پس‌زمینه سه‌بعدی */
#canvas-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

main {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

section {
    position: absolute;
    width: 95%;
    max-width: 1050px;
    height: 75vh;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px) scale(0.96);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

section.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    z-index: 10;
}

.content-scroll {
    padding: 40px;
    height: 100%;
    overflow-y: auto;
}

/* تایپوگرافی */
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; text-align: center; color: var(--text-primary); }
h2 { font-size: 2rem; font-weight: 700; color: var(--accent); margin-bottom: 15px; text-align: center; }
p { font-size: 1.1rem; font-weight: 400; line-height: 1.9; color: var(--text-secondary); text-align: center; }

/* دکمه‌ها و فرم‌ها */
.btn-primary {
    padding: 14px 35px; background: var(--accent); color: white;
    border: none; border-radius: 12px; font-family: 'Mikhak'; font-weight: 700;
    cursor: pointer; transition: 0.3s; margin: 10px;
}
.btn-secondary {
    padding: 14px 35px; background: transparent; color: var(--text-primary);
    border: 1px solid var(--glass-border); border-radius: 12px; font-family: 'Mikhak'; font-weight: 700;
    cursor: pointer; transition: 0.3s; margin: 10px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3); }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: rgba(255,255,255,0.02);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}
.card:hover { transform: translateY(-8px); border-color: var(--accent); background: rgba(255,255,255,0.05); }
.card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }

/* ناوبری هوشمند */
nav {
    position: fixed;
    bottom: 25px; left: 50%; transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(15px);
    padding: 10px 20px; border-radius: 100px; display: flex; gap: 10px;
    border: 1px solid var(--glass-border); z-index: 1000;
}

.nav-btn {
    width: 50px; height: 50px; border-radius: 50%; border: none; background: none;
    color: var(--text-secondary); font-size: 1.2rem; cursor: pointer; transition: 0.4s;
}
.nav-btn.active { background: var(--accent); color: white; transform: scale(1.1); }

/* موبایل */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    .content-scroll { padding: 25px 15px; }
    section { height: 80vh; }
    .form-row { flex-direction: column; }
}