* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =========================
   BODY
========================= */

body {
    background:
        linear-gradient(
            135deg,
            #070711 0%,
            #10102b 35%,
            #21143d 65%,
            #080812 100%
        );

    min-height: 100vh;

    color: floralwhite;

    padding: 0 10px;

    font-family: "Vazirmatn", sans-serif;

    overflow-x: hidden;
}


/* =========================
   LINKS
========================= */

a {
    text-decoration: none;
    color: rgb(240, 237, 237);
}


/* =========================
   TITLE
========================= */

.title {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    color: rgb(217, 223, 229);

    padding: 15px 20px;

    animation: title 0.5s ease-in;
}

.title h1 {
    max-width: 100%;
    line-height: 1.8;
}


/* =========================
   TITLE ANIMATION
========================= */

@keyframes title {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   NAVBAR
========================= */

.nav {
    width: 5%;

    min-height: 43px;
    max-height: 43px;

    padding: 5px 10px;

    overflow: hidden;

    color: azure;

    background: rgb(20, 7, 74);

    position: fixed;

    top: 3px;
    right: 7%;

    border-radius: 10px;

    display: flex;
    align-items: center;

    gap: 30px;

    opacity: 0.5;

    z-index: 1000;

    white-space: nowrap;

    transition:
        width 0.5s ease-in,
        opacity 0.5s ease-in;
}


/* =========================
   NAVBAR ANIMATIONS
========================= */

@keyframes navbar {
    0% {
        width: 5%;
        opacity: 0.5;
    }

    100% {
        width: 86%;
        opacity: 1;
    }
}

@keyframes navbarBack {
    0% {
        width: 86%;
        opacity: 1;
    }

    100% {
        width: 5%;
        opacity: 0.5;
    }
}


/* =========================
   NAV ITEMS
========================= */

.nav div {
    cursor: pointer;

    transition:
        color 0.3s ease-in-out,
        text-shadow 0.3s ease-in-out;
}

.nav div:hover {
    color: rgb(111, 111, 233);

    text-shadow:
        0 0 10px rgb(24, 24, 226);
}

.nav h3 {
    cursor: default;
}


/* =========================
   PROFILE LINK
========================= */

.nav a {
    display: none;
}


/* =========================
   PROFILE IMAGE
========================= */

#profileImage {
    width: 30px;
    height: 30px;

    border-radius: 50%;

    object-fit: cover;

    display: block;

    position: absolute;

    left: 5px;
    bottom: 2px;

    opacity: 0;
}


/* =========================
   PROFILE ANIMATIONS
========================= */

@keyframes image {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes imageBack {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}


/* =========================
   SECTIONS
========================= */

body > h1 {
    margin-top: 35px;
    margin-right: 5%;

    line-height: 1.8;

    scroll-margin-top: 70px;
}


/* =========================
   LIST
========================= */

ul {
    margin: 30px 5%;

    padding: 0;

    list-style: none;
}

li {
    margin-bottom: 15px;
    display: flex;
    background: rgb(20, 7, 74);
    width: fit-content;
    padding-left: 10px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}
.like{
    color: white;
    cursor: pointer;
    font-size: large;
}
.like::selection{
    background: transparent;
}


/* =========================
   SERVICE BUTTONS
========================= */

li a {
    display: inline-block;

    padding: 12px 20px;

}

li:hover {
    transform: translateY(-3px);

    box-shadow:
        1px 1px 13px 4px rgb(44, 16, 159);
}


/* =========================
   SEARCH RESULT
========================= */

.search-result:hover {
    background: #1e293b;

    padding-right: 20px;
}


/* =========================
   SCROLLBAR
========================= */

html {
    scrollbar-width: none;

    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    display: none;
}


/* =========================
   DECORATIVE DOT
========================= */

span {
    color: aquamarine;

    font-size: 30px;

    box-shadow:
        -7px 21px 10px 5px aquamarine;

    width: 0;

    display: inline-block;

    height: 0;

    margin: 5px;

    margin-left: 12px;

    margin-top: 15px;

    margin-bottom: 0;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 900px) {

    .nav {
        right: 3%;
        width: 7%;

        gap: 20px;
    }

    @keyframes navbar {
        0% {
            width: 7%;
            opacity: 0.5;
        }

        100% {
            width: 94%;
            opacity: 1;
        }
    }

    @keyframes navbarBack {
        0% {
            width: 94%;
            opacity: 1;
        }

        100% {
            width: 7%;
            opacity: 0.5;
        }
    }

    .title {
        padding-top: 60px;
    }

    .title h1 {
        font-size: 28px;
    }

    body > h1 {
        margin-right: 3%;
    }

    ul {
        margin-right: 3%;
        margin-left: 3%;
    }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {

    body {
        padding: 0 6px;
    }

    .title {
        padding: 60px 10px 15px;
    }

    .title h1 {
        font-size: 22px;

        line-height: 1.9;
    }

    span {
        font-size: 22px;

        margin-left: 7px;
        margin-right: 7px;

        box-shadow:
            -5px 15px 8px 3px aquamarine;
    }


    /* NAVBAR */

    .nav {
        right: 2%;

        width: 10%;

        min-height: 42px;
        max-height: 42px;

        padding: 5px 8px;

        gap: 15px;

        border-radius: 9px;
    }

    .nav h3 {
        font-size: 15px;
    }

    .nav div {
        font-size: 13px;
    }

    #profileImage {
        width: 27px;
        height: 27px;

        left: 4px;
        bottom: 3px;
    }


    @keyframes navbar {
        0% {
            width: 10%;
            opacity: 0.5;
        }

        100% {
            width: 96%;
            opacity: 1;
        }
    }

    @keyframes navbarBack {
        0% {
            width: 96%;
            opacity: 1;
        }

        100% {
            width: 10%;
            opacity: 0.5;
        }
    }


    /* HEADINGS */

    body > h1 {
        margin-right: 2%;

        font-size: 24px;

        scroll-margin-top: 60px;
    }


    /* LINKS */

    ul {
        margin: 25px 2%;
    }

    li {
        margin-bottom: 12px;
    }

    li a {
        width: 100%;

        padding: 12px 15px;

        font-size: 14px;

        text-align: center;
    }
}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 400px) {

    .title h1 {
        font-size: 19px;
    }

    .nav {
        gap: 10px;
    }

    .nav h3 {
        font-size: 13px;
    }

    .nav div {
        font-size: 11px;
    }

    body > h1 {
        font-size: 21px;
    }

    li a {
        font-size: 13px;

        padding: 11px 12px;
    }
}


/* ==================================================
   VERY SMALL PHONES
================================================== */

@media (max-width: 340px) {

    .title h1 {
        font-size: 17px;
    }

    .nav {
        gap: 7px;
    }

    .nav h3 {
        font-size: 12px;
    }

    .nav div {
        font-size: 10px;
    }

    body > h1 {
        font-size: 19px;
    }

    li a {
        font-size: 12px;
    }
}


/* ==================================================
   ACCESSIBILITY
================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* =========================
   THEME BUTTON
========================= */

#themeToggle {
    border: none;
    outline: none;

    padding: 8px 12px;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.08);
    color: white;

    font-family: "Vazirmatn", sans-serif;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease;
}

#themeToggle:hover {
    background: rgba(255, 255, 255, 0.15);

    transform: translateY(-2px);
}


/* =========================
   LIGHT MODE
========================= */

body.light-mode {
    background: linear-gradient(
        135deg,
        #f7f7ff 0%,
        #eeeeff 40%,
        #e8e1ff 70%,
        #f8f8ff 100%
    );

    color: #171717;
}


/* متن‌ها */

body.light-mode .title {
    color: #171717;
}


/* Navbar */

body.light-mode .nav {
    background: rgba(255, 255, 255, 0.75);

    color: #222;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.12);
}


/* لینک‌ها */

body.light-mode a {
    color: #222;
}


/* دکمه‌های خدمات */

body.light-mode li a {
    background: #ffffff;

    color: #222;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.08);
}


/* hover */

body.light-mode li a:hover {
    box-shadow:
        0 5px 18px rgba(80, 50, 180, 0.25);
}


/* Theme Button */

body.light-mode #themeToggle {
    background: rgba(0, 0, 0, 0.07);

    color: #222;
}

body.light-mode #themeToggle:hover {
    background: rgba(0, 0, 0, 0.12);
}


/* =========================
   TRANSITION
========================= */

body,
.nav,
li a,
#themeToggle,
.title {
    transition:
        background 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    #themeToggle {
        padding: 6px 9px;

        font-size: 12px;
    }

}