*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* برای ایندکس */

.belkol-index{
    height: 100%;
    width: 100%;
    background-image: url('./media/А-100.jpg');
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.headmenu{
    background-color: rgba(0,0,0,0.6);
    color: aliceblue;
    width: 100%;
    height: auto;
    min-height: 70px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 18px;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.name-asl h1{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}


.menu-bala{
    font-size: 23px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 10px;
}

.menu-bala ul{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    list-style-type: none;
    gap: 30px;
}

.menu-bala ul li {
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.menu-bala ul li:hover {
    color: #ffd700;
    transform: translateY(-2px);
    background-color: rgba(255,255,255,0.1);
}

a{
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffd700;
}

.main-matn{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 70px;
    padding: 50px 20px 100px 20px;
    direction: rtl;
    text-align: center;
    position: relative;
    z-index: 2;
}

.context-main{
    background-color: rgba(0,0,0,0.6);
    color: aliceblue;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    gap: 19px;
    width: 100%;
    max-width: 500px;
    min-width: 280px;
    padding: 25px 20px;
    transition: all 0.4s;
    border: 1px solid rgba(255,255,255,0.1);
}

.context-main:hover{
    max-width: 700px;
    padding: 35px 30px;
}

/* انیمیشن برای افزایش فونت هنگام hover */
.context-main:hover .named-one h2 {
    font-size: 32px;
}

.context-main:hover .moarefi-context {
    font-size: 18px;
    line-height: 1.7;
}

.context-main:hover .learn-more {
    font-size: 22px;
}

.context-main:hover .learn-more a {
    letter-spacing: 0.5px;
}

.named-one h2{
    color: #ffd700;
    font-size: 26px;
    transition: all 0.4s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.named-one h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 2px;
    background: #ffd700;
    transition: width 0.4s ease;
}

.context-main:hover .named-one h2::after {
    width: 80px;
}

.moarefi-context{
    color: aliceblue;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
    transition: all 0.4s ease;
    overflow-y: auto;
    max-height: 180px;
    padding: 0 5px;
}


.learn-more{
    font-size: 18px;
    transition: all 0.4s ease;
    margin-top: 10px;
}

.learn-more a {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.learn-more a:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* رسپانسیو برای موبایل */
@media screen and (max-width: 768px) {
    .headmenu {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .main-matn {
        padding: 30px 15px 80px 15px;
        gap: 25px;
    }
    
    .context-main {
        padding: 20px 15px;
    }
    
    .context-main:hover {
        padding: 25px 20px;
    }
    
    .moarefi-context {
        max-height: 200px;
    }

    .name-asl h1 {
        font-size: 24px;
    }

    .menu-bala {
        font-size: 20px;
    }

    .menu-bala ul {
        gap: 20px;
    }

    .named-one h2 {
        font-size: 22px;
    }

    .context-main:hover .named-one h2 {
        font-size: 26px;
    }

    .moarefi-context {
        font-size: 13px;
    }

    .context-main:hover .moarefi-context {
        font-size: 15px;
    }
}

/* برای موبایل‌های خیلی کوچک */
@media screen and (max-width: 480px) {
    .menu-bala ul {
        gap: 15px;
    }
    
    .menu-bala ul li {
        padding: 5px 10px;
    }
    
    .context-main {
        min-width: 260px;
    }
    
    .named-one h2 {
        font-size: 20px;
    }

    .name-asl h1 {
        font-size: 20px;
    }

    .menu-bala {
        font-size: 16px;
    }
}

/* برای تبلت */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .main-matn {
        gap: 40px;
    }
    
    .context-main {
        max-width: 400px;
    }
    
    .context-main:hover {
        max-width: 550px;
    }
}


.context-main {
    animation: fadeInUp 0.6s ease-out forwards;
}

.context-main:first-child {
    animation-delay: 0.1s;
}

.context-main:last-child {
    animation-delay: 0.3s;
}

/* اسکرول اختصاصی */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 10px;
}