/* =========================================
   تنظیمات پایه
========================================= */

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


:root {

    /* رنگ‌های حالت روز */

    --green-dark: #234b32;
    --green: #356b47;
    --green-light: #dcebdc;

    --cream: #f5f0df;
    --cream-light: #fffdf5;
    --cream-dark: #e7dfc7;

    --text: #26352b;
    --text-light: #667168;

    --border: #ddd5bc;

    --shadow:
        0 10px 35px rgba(38, 67, 45, 0.07);

    --transition: 0.35s ease;
}


html {
    height: 100%;
}


body {

    min-height: 100vh;

    font-family:
        "Vazirmatn",
        Tahoma,
        Arial,
        sans-serif;

    background: var(--cream);

    color: var(--text);

    transition:
        background var(--transition),
        color var(--transition);

}


/* =========================================
   ساختار کلی
========================================= */

.page {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

}


/* =========================================
   عنوان بالای صفحه
========================================= */

.header {

    width: 100%;

    background: var(--green-dark);

    color: var(--cream-light);

}


.header-content {

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 15px 25px;

}


.header h1 {

    font-family:
        "Vazirmatn",
        Tahoma,
        sans-serif;

    font-size: 26px;

    font-weight: 900;

    letter-spacing: -0.5px;

}


/* =========================================
   نوار ابزار
========================================= */

.navbar {

    width: 100%;

    background: var(--cream-light);

    border-bottom:
        1px solid var(--border);

    transition:
        background var(--transition),
        border-color var(--transition);

}


.navbar-content {

    max-width: 1150px;

    min-height: 64px;

    margin: auto;

    padding: 0 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

}


.menu {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

}


.menu a {

    position: relative;

    text-decoration: none;

    color: var(--text);

    font-size: 14px;

    font-weight: 500;

    padding: 10px 17px;

    border-radius: 8px;

    transition:
        color 0.25s ease,
        background 0.25s ease;

}


/* حالت فعال */

.menu a.active {

    color: var(--green-dark);

    font-weight: 700;

}


/* خط ظریف زیر گزینه فعال */

.menu a.active::after {

    content: "";

    position: absolute;

    height: 2px;

    width: 22px;

    background: var(--green);

    border-radius: 10px;

    bottom: 3px;

    left: 50%;

    transform: translateX(-50%);

}


/* دکمه شب و روز */

.theme-button {

    position: absolute;

    left: 25px;

    width: 40px;

    height: 40px;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: var(--cream);

    cursor: pointer;

    font-size: 17px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;

}


.theme-button:hover {

    transform: rotate(15deg);

}


/* =========================================
   محتوای اصلی
========================================= */

.main {

    width: 100%;

    max-width: 1050px;

    margin: auto;

    padding:
        75px 25px
        90px;

    flex: 1;

}


/* =========================================
   بخش اصلی خوش‌آمدگویی
========================================= */

.hero {

    position: relative;

    background: var(--cream-light);

    border:
        1px solid var(--border);

    border-radius: 24px;

    padding:
        70px 50px;

    overflow: hidden;

    box-shadow: var(--shadow);

}


/* المان تزئینی */

.hero::before {

    content: "";

    position: absolute;

    width: 230px;

    height: 230px;

    border-radius: 50%;

    background: var(--green-light);

    opacity: 0.6;

    left: -90px;

    top: -100px;

}


.hero::after {

    content: "";

    position: absolute;

    width: 150px;

    height: 150px;

    border-radius: 50%;

    border:
        25px solid var(--cream-dark);

    opacity: 0.35;

    right: -60px;

    bottom: -70px;

}


.hero-content {

    position: relative;

    z-index: 2;

    max-width: 700px;

}


.small-title {

    display: inline-block;

    color: var(--green);

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 15px;

}


.hero h2 {

    font-size: 34px;

    line-height: 1.6;

    font-weight: 900;

    color: var(--green-dark);

    margin-bottom: 18px;

}


.hero p {

    max-width: 650px;

    color: var(--text-light);

    font-size: 15px;

    line-height: 2.1;

}


/* =========================================
   کارت‌های بخش‌ها
========================================= */

.sections {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-top: 22px;

}


.section-card {

    text-decoration: none;

    color: inherit;

    background: var(--cream-light);

    border:
        1px solid var(--border);

    border-radius: 18px;

    min-height: 190px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    position: relative;

    overflow: hidden;

    box-shadow:
        0 5px 20px
        rgba(38, 67, 45, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

}


.section-card:hover {

    transform: translateY(-5px);

    border-color: #b9c9b4;

    box-shadow:
        0 12px 30px
        rgba(38, 67, 45, 0.10);

}


.card-number {

    color: var(--green);

    font-size: 12px;

    font-weight: 800;

    margin-bottom: 25px;

}


.section-card h3 {

    color: var(--green-dark);

    font-size: 19px;

    font-weight: 900;

    margin-bottom: 10px;

}


.section-card p {

    color: var(--text-light);

    font-size: 13px;

    line-height: 1.9;

    padding-left: 20px;

}


.arrow {

    position: absolute;

    left: 22px;

    bottom: 20px;

    width: 34px;

    height: 34px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--green-light);

    color: var(--green-dark);

    font-size: 17px;

    transition:
        transform 0.25s ease;

}


.section-card:hover .arrow {

    transform: translateX(-4px);

}


/* =========================================
   پایین صفحه
========================================= */

.footer {

    width: 100%;

    background: var(--green-dark);

    color: var(--cream-light);

    text-align: center;

    padding: 25px 20px;

    line-height: 2;

    font-size: 13px;

}


.footer p {

    margin: 1px 0;

}


.footer .email {

    direction: ltr;

    font-size: 12px;

    opacity: 0.85;

}


/* =========================================
   حالت شب
========================================= */

body.dark {

    --green-dark: #050d19;

    --green: #4c79a3;

    --green-light: #172d45;

    --cream: #070f1c;

    --cream-light: #fcfdff;

    --cream-dark: #14283d;

    --text: #e3edf7;

    --text-light: #9eb0c2;

    --border: #1b3047;

    --shadow:
        0 12px 40px
        rgba(0, 0, 0, 0.25);

}


/* هدر شب */

body.dark .header {

    background: #030a13;

}


/* نوار ابزار شب */

body.dark .navbar {

    background: #091525;

    border-color: #172c43;

}


body.dark .menu a {

    color: #d2dfec;

}


body.dark .menu a.active {

    color: #91b5d8;

}


body.dark .menu a.active::after {

    background: #5e8db8;

}


/* دکمه شب */

body.dark .theme-button {

    background: #101f32;

    border-color: #27405a;

}


/* بخش اصلی شب */

body.dark .hero {

    background: #0c1828;

    border-color: #1b3047;

}


body.dark .hero::before {

    background: #142e48;

    opacity: 0.7;

}


body.dark .hero::after {

    border-color: #1b3047;

}


body.dark .small-title {

    color: #78a3cb;

}


body.dark .hero h2 {

    color: #e4eef8;

}


body.dark .hero p {

    color: #9eb0c2;

}


/* کارت‌های شب */

body.dark .section-card {

    background: #0c1828;

    border-color: #1b3047;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.18);

}


body.dark .section-card:hover {

    border-color: #31516f;

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.3);

}


body.dark .card-number {

    color: #7199bd;

}


body.dark .section-card h3 {

    color: #dbe8f4;

}


body.dark .section-card p {

    color: #91a5b8;

}


body.dark .arrow {

    background: #172f48;

    color: #8eb4d6;

}


/* پایین شب */

body.dark .footer {

    background: #030a13;

    color: #dce8f3;

}


/* =========================================
   واکنش‌گرا برای تبلت
========================================= */

@media (max-width: 800px) {

    .navbar-content {

        padding: 10px 15px;

    }


    .menu {

        flex-wrap: wrap;

    }


    .menu a {

        padding:
            8px 10px;

        font-size: 13px;

    }


    .theme-button {

        position: static;

        margin-right: 10px;

    }


    .main {

        padding:
            45px 18px
            60px;

    }


    .hero {

        padding:
            50px 30px;

    }


    .hero h2 {

        font-size: 29px;

    }


    .sections {

        grid-template-columns: 1fr;

    }

}


/* =========================================
   واکنش‌گرا برای موبایل
========================================= */

@media (max-width: 520px) {

    .header-content {

        min-height: 68px;

    }


    .header h1 {

        font-size: 21px;

    }


    .navbar-content {

        flex-direction: column;

        gap: 8px;

    }


    .menu {

        width: 100%;

        justify-content: center;

    }


    .theme-button {

        margin: 0;

        width: 36px;

        height: 36px;

    }


    .hero {

        padding:
            40px 22px;

        border-radius: 18px;

    }


    .hero h2 {

        font-size: 25px;

        line-height: 1.7;

    }


    .hero p {

        font-size: 13px;

    }


    .section-card {

        min-height: 175px;

    }

}


/* =========================================
   صفحه درباره من
========================================= */

.about-main {

    width: 100%;

    max-width: 1050px;

    margin: auto;

    padding: 75px 25px;

    flex: 1;

    display: flex;

    align-items: center;

}


/* کارت اصلی */

.about-card {

    width: 100%;

    background: var(--cream-light);

    border: 1px solid var(--border);

    border-radius: 24px;

    padding: 45px;

    display: flex;

    align-items: center;

    gap: 60px;

    box-shadow: var(--shadow);

    transition:
        background var(--transition),
        border-color var(--transition);

}


/* عکس */

.profile-image {

    flex-shrink: 0;

    width: 260px;

    height: 260px;

    border-radius: 50%;

    padding: 7px;

    background: var(--green-light);

}


.profile-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    display: block;

}


/* اطلاعات */

.profile-info {

    flex: 1;

}


.about-label {

    color: var(--green);

    font-size: 14px;

    font-weight: 800;

    margin-bottom: 12px;

}


.profile-info h2 {

    font-size: 32px;

    font-weight: 900;

    color: var(--green-dark);

    margin-bottom: 30px;

}


/* لیست اطلاعات */

.info-list {

    display: flex;

    flex-direction: column;

    gap: 16px;

}


.info-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding-bottom: 15px;

    border-bottom: 1px solid var(--border);

}


.info-title {

    color: var(--text-light);

    font-size: 14px;

}


.info-value {

    color: var(--text);

    font-size: 15px;

    font-weight: 700;

}


.info-value.email {

    direction: ltr;

}


/* =========================================
   حالت شب صفحه درباره
========================================= */

body.dark .about-card {

    background: #0c1828;

    border-color: #1b3047;

}


body.dark .profile-image {

    background: #172f48;

}


body.dark .about-label {

    color: #78a3cb;

}


body.dark .profile-info h2 {

    color: #e4eef8;

}


body.dark .info-title {

    color: #91a5b8;

}


body.dark .info-value {

    color: #dbe8f4;

}


body.dark .info-item {

    border-color: #1b3047;

}


/* =========================================
   موبایل
========================================= */

@media (max-width: 700px) {

    .about-main {

        padding: 45px 18px;

    }


    .about-card {

        flex-direction: column;

        text-align: center;

        padding: 35px 25px;

        gap: 30px;

    }


    .profile-image {

        width: 210px;

        height: 210px;

    }


    .profile-info {

        width: 100%;

    }


    .profile-info h2 {

        font-size: 27px;

        margin-bottom: 25px;

    }


    .info-item {

        text-align: right;

    }

}