﻿
/* =========================================
   Hero Section - Model 2 (Elegant & Floating)
========================================= */
#home {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-image: url(/staticfiles/back.png);

    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0;
}

/* نورپردازی شعاعی (تمرکز نور روی وسط و تاریکی در حاشیه‌ها) */
/*.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 80%);
    z-index: 1;
}*/

.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    z-index: 2;
}

/* --- سمت راست --- */
.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

.hero-logos {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

 #back_logo {
    width: 90px;
    height: 90px;
    display:none;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    /* هاله نور ملایم به جای سایه خشن */
    /*filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.2));*/

}
#back_flag{
    width: 90px;
    height: 90px;
    display:none;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    /* هاله نور ملایم به جای سایه خشن */
    /*filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.2));*/
    
}

#back_flag {
    background-image: url(/staticFiles/logo.png);
}

#back_logo {
    background-image: url(/staticFiles/logo.png);
}

    #back_flag:hover, #back_logo:hover {
        transform: scale(1.1) rotate(5deg);
    }

.hero-content {
    /* طراحی کارتی با نوار طلایی در سمت راست */
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 15px 0 0 15px;
    border-right: 5px solid #d4b568; /* نوار طلایی راست */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.9;
    margin-bottom: 35px;
    color: #cbd5e1 !important;
}

.highlight-text {
    color: #d4b568 !important; /* طلایی مات و شیک */
    font-weight: 800;
    font-size: 1.4rem;
}

.domains-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.domain-link {
    background: transparent;
    color: #d4b568;
    padding: 10px 22px;
    border-radius: 30px; /* دکمه‌های کاملا گرد */
    border: 1px solid #d4b568;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .domain-link:hover {
        background: #d4b568;
        color: #0f172a; /* سرمه‌ای تیره */
        box-shadow: 0 0 20px rgba(212, 181, 104, 0.4);
    }

/* --- سمت چپ (عکس با افکت شناور) --- */
.hero-left {
    margin-right: 60px;
    position: relative;
}

/* انیمیشن شناور بودن */
@keyframes floatImage {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

#back_leader {
    width: 300px;
    height: 400px;
    background-image: url(/staticFiles/leader.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    border-radius: 12px;
    /* قاب دوتایی ظریف */
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(212, 181, 104, 0.5), 0 30px 40px rgba(0, 0, 0, 0.6);
    animation: floatImage 6s ease-in-out infinite;
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 1100px) {
    .hero-content-wrapper {
        flex-direction: column-reverse; /* در موبایل عکس بیاید بالا */
        text-align: center;
        gap: 30px;
    }

    .hero-right {
        align-items: center;
    }

    .hero-content {
        border-right: none;
        border-top: 5px solid #d4b568; /* نوار طلایی به بالا منتقل می‌شود */
        border-radius: 0 0 15px 15px;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
    }

    .domains-wrapper {
        justify-content: center;
    }

    .hero-left {
        margin-right: 0;
    }

    #back_leader {
        width: 240px;
        height: 320px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .domain-link {
        flex: 1 1 calc(50% - 15px);
        text-align: center;
        font-size: 0.9rem;
    }

    #back_leader {
        width: 200px;
        height: 270px;
    }
}

```
