:root {
    --bg-color: #f4f4f0; /* رنگ روشن و گرم برای پس‌زمینه */
    --text-color: #111111; /* مشکی خالص برای کنتراست بالا */
    --accent-color: #ff4500; /* نارنجی پرانرژی */
    --border-color: #d1d1c9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* مخفی کردن نشانگر پیش‌فرض برای استفاده از نشانگر اختصاصی */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif; /* تغییر فونت به وزیرمتن */
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}


/* نشانگر موس اختصاصی */
.cursor {
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.cursor.hovered {
    width: 60px;
    height: 60px;
    background-color: white;
}

/* ناوبری */
nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 4rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    mix-blend-mode: difference;
    color: white;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}

.nav-right a {
    color: inherit;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* بخش Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    position: relative;
}

.subtitle {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.massive-text {
    font-size: clamp(4rem, 10vw, 12rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -3px;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-color);
}

.outline-text.small {
    -webkit-text-stroke: 1px var(--text-color);
    font-size: clamp(3rem, 6vw, 6rem);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 500;
}

.scroll-indicator .line {
    width: 60px;
    height: 2px;
    background-color: var(--text-color);
}

/* نوار متحرک Marquee */
.marquee-container {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    transform: rotate(-2deg) scale(1.05); /* چرخش ملایم برای ظاهر خلاقانه */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10;
}

.marquee {
    display: inline-block;
    animation: marqueeScroll 20s linear infinite;
    font-size: 1.5rem;
    font-weight: 700;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* بخش‌های عمومی */
.section {
    padding: 8rem 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title span {
    font-size: 1rem;
    font-weight: 300;
}

/* شبکه پروژه‌ها (Bento Grid) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.bento-item {
    background-color: #e5e5dd;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s ease, background-color 0.4s;
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: scale(0.98);
    background-color: var(--accent-color);
    color: white;
}

.bento-item h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.tall {
    grid-row: span 2;
}

/* بخش درباره من */
.about-flex {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-desc p {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.big-link {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s;
}

.big-link:hover {
    transform: translateX(20px);
}

/* فوتر */
footer {
    display: flex;
    justify-content: space-between;
    padding: 3rem 4rem;
    border-top: 1px solid var(--border-color);
    font-weight: 500;
}

/* ریسپانسیو */
@media (max-width: 900px) {
    nav { padding: 1.5rem 2rem; }
    .hero { padding: 0 2rem; }
    .section { padding: 5rem 2rem; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .bento-item.large, .bento-item.tall { grid-column: span 1; grid-row: span 1; }
    .about-flex { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .about-desc p { font-size: 1.5rem; }
    .big-link { font-size: 2rem; }
}

@media (max-width: 768px) {
    .cursor { display: none; } /* غیرفعال کردن نشانگر در موبایل */
    * { cursor: auto; }
}
