@import url('https://fonts.googleapis.com/css?family=poppins:300,400,500,600,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom, #b5e9c0ff, #f5f5f5, #eb8d8dff);
    animation: color 15s ease-in-out infinite;
}

@keyframes color {
    0% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    padding: 30px;
    display: flex;
    justify-content: center;
}

.icon {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 60px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 95px;
}

.imgBx {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    transition: 0.5s;
    border: 1px solid #fff;
    box-shadow: 0 0 0 4px #25252b, 0 0 0 6px #fff;
    overflow: hidden;
    cursor: pointer;
}

.imgBx:hover {
    box-shadow: 0 0 0 4px #000000, 0 0 0 9px #4e76ce;
    transform: scale(1.1);
}

.imgBx img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imgBx a {
    display: block;
    width: 100%;
    height: 100%;
}

.icon-text {
    margin-top: 25px;
    font-size: 14px;
    color: #000000;
    text-align: center;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 0 2px rgb(0, 0, 0);
    white-space: nowrap;
    max-width: 450px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.icon-item:hover .icon-text, .highlight .icon-text {
    opacity: 1;
    color: #000000;
    transform: scale(1.3);
}

footer {
    position: fixed;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1000;
    animation: color 15s ease-in-out infinite;
}

.bg-dark {
    background-color: #212529;
}

.footer-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    transition: 0.5s;
    cursor: pointer;
    border: 1px solid #fff;
    box-shadow: 0 0 0 4px #25252b, 0 0 0 6px #fff;
    overflow: hidden;
}

.footer-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px #000000, 0 0 0 6px #4e76ce;
}

.item-wrapper {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

.relative.group {
    position: relative;
    width: 55px;
    height: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-text {
    position: absolute;
    top: 138px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: #000000;
    text-align: center;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 0 2px rgb(0, 0, 0);
    white-space: nowrap;
    max-width: 150px;
    text-overflow: ellipsis;
    overflow: hidden;
    z-index: 1003;
}

.relative.group:hover .footer-text {
    opacity: 1;
    transform: translateX(-50%) scale(1.3);
}

.social-icons {
    top: 265px;
    right: -5px;
    position: absolute;
    transform: translateY(30%) translateX(-10px) translateY(-170px);
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 0.1);
    z-index: 1004;
    align-items: center;
    pointer-events: none;
}

.group:hover .social-icons,
.group:focus-within .social-icons {
    opacity: 1;
    visibility: visible;
    transform: translateY(30%) translateX(-10px) translateY(-170px);
    pointer-events: auto;
}

.menu-item {
    left: 50%;
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s ease-in-out;
    opacity: 0;
}

.group:hover .menu-item {
    opacity: 1;
}

.social-icon-1 { transform: translate(-50%, -50%) translateY(-40px); }
.group:hover .social-icon-1 { transform: translate(-50%, -50%) translateY(-40px); }
.social-icon-1 i { transform: rotate(0deg); }

.social-icon-2 { transform: translate(-50%, -50%) rotate(72deg) translateY(-40px); }
.group:hover .social-icon-2 { transform: translate(-50%, -50%) rotate(72deg) translateY(-40px); }
.social-icon-2 i { transform: rotate(-72deg); }

.social-icon-3 { transform: translate(-50%, -50%) rotate(144deg) translateY(-40px); }
.group:hover .social-icon-3 { transform: translate(-50%, -50%) rotate(144deg) translateY(-40px); }
.social-icon-3 i { transform: rotate(-144deg); }

.social-icon-4 { transform: translate(-50%, -50%) rotate(216deg) translateY(-40px); }
.group:hover .social-icon-4 { transform: translate(-50%, -50%) rotate(216deg) translateY(-40px); }
.social-icon-4 i { transform: rotate(-216deg); }

.social-icon-5 { transform: translate(-50%, -50%) rotate(288deg) translateY(-40px); }
.group:hover .social-icon-5 { transform: translate(-50%, -50%) rotate(288deg) translateY(-40px); }
.social-icon-5 i { transform: rotate(-288deg); }

.menu-item:hover {
    transform: scale(1.2);
}

/* ==================== موبایل و تبلت ==================== */
@media screen and (max-width: 450px) {
    .container {
        width: 100%;
        padding: 30px;
    }

    .imgBx {
        width: 60px;
        height: 60px;
        box-shadow: 0 0 0 3px #25252b, 0 0 0 4px #fff;
    }

    .icon {
        flex-wrap: wrap;
        gap: 10px;
        padding: 20px;
        justify-content: center;
        overflow-x: hidden;
    }

    .icon-text {
        font-size: 10px;
        margin-top: 12px;
        opacity: 0;
        font-weight: 400;
        transition: opacity 0.3s ease, transform 0.3s ease;
        white-space: nowrap;
        max-width: 70px;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .icon-item:hover .icon-text, .highlight .icon-text {
        opacity: 1;
        transform: scale(1.3);
    }

    footer {
        padding: 10px;
        bottom: 19px;
        animation: color 15s ease-in-out infinite;
    }

    .footer-icon {
        right: -50%;
        width: 60x;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        transition: 0.5s;
        cursor: pointer;
        border: 1px solid #fff;
        box-shadow: 0 0 0 3px #25252b, 0 0 0 4px #fff;
        overflow: hidden;
        display: block;
    }

    .footer-icon:hover {
        transform: scale(1.1);
        box-shadow: 0 0 0 3px #000000, 0 0 0 6px #4e76ce;
    }

    .item-wrapper {
        gap: 1px;
    }

    .relative.group {
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-text {
        position: absolute;
        top: -53px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 9px;
        opacity: 0;
        font-weight: 400;
        transition: opacity 0.3s ease, transform 0.3s ease;
        white-space: nowrap;
        max-width: 100px;
        text-overflow: ellipsis;
        overflow: hidden;
        z-index: 1003;
    }

    .relative.group:hover .footer-text {
        opacity: 1;
        transform: translateX(-50%) scale(1.3);
    }

    .menu-item {
        width: 20px;
        height: 20px;
        transition: opacity 0.8s ease-in-out;
    }

    .social-icons .menu-item i {
        font-size: 1rem;
    }

    .social-icon-1 { transform: translate(-50%, -50%) translateY(-120px); }
    .group:hover .social-icon-1, .group:active .social-icon-1 { transform: translate(-50%, -50%) translateY(-120px); }
    .social-icon-1 i { transform: rotate(0deg); }

    .social-icon-2 { transform: translate(-50%, -50%) translateY(-150px); }
    .group:hover .social-icon-2, .group:active .social-icon-2 { transform: translate(-50%, -50%) translateY(-150px); }
    .social-icon-2 i { transform: rotate(0deg); }

    .social-icon-3 { transform: translate(-50%, -50%) translateY(-180px); }
    .group:hover .social-icon-3, .group:active .social-icon-3 { transform: translate(-50%, -50%) translateY(-180px); }
    .social-icon-3 i { transform: rotate(0deg); }

    .social-icon-4 { transform: translate(-50%, -50%) translateY(-210px); }
    .group:hover .social-icon-4, .group:active .social-icon-4 { transform: translate(-50%, -50%) translateY(-210px); }
    .social-icon-4 i { transform: rotate(0deg); }

    .social-icon-5 { transform: translate(-50%, -50%) translateY(-240px); }
    .group:hover .social-icon-5, .group:active .social-icon-5 { transform: translate(-50%, -50%) translateY(-240px); }
    .social-icon-5 i { transform: rotate(0deg); }

    .menu-item:hover, .menu-item:active {
        transform: scale(1.2);
    }
}

/* ==================== دسکتاپ: شبکه‌های اجتماعی افقی، کوچک‌تر و انیمیشن زیبا ==================== */
@media (min-width: 1024px) {

    /* کادر شبکه‌های اجتماعی */
    .social-icons {
        top: -40px;
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        transform-origin: center;
        display: flex;
        flex-direction: row;
        gap: 14px;
        padding: 10px 18px;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 50px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        justify-content: center;
        pointer-events: none;
        z-index: 1004;
        align-items: center;
        font-size: 14px;
        width: auto;

        /* بسته شدن با تاخیر فقط وقتی ماوس از کادر خارج شد */
        transition: 
            opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s,
            transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s,
            visibility 0s linear 1.45s;
    }

    /* وقتی روی گروه هستیم → کادر باز می‌شه */
    .group:hover .social-icons {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
        transition: 
            opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
            transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* وقتی روی کادر یا هر آیکون داخلش هستیم → کادر باز بمونه و کلیک فعال */
    .social-icons:hover,
    .social-icons:hover .menu-item,
    .menu-item:hover {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate(-50%, -50%) scale(1) !important;
        pointer-events: auto !important;
        transition: none !important; /* جلوگیری از بسته شدن */
    }

    /* آیکون‌ها */
    .menu-item {
        position: static !important;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
        transform: scale(0.85);
        opacity: 0;
        pointer-events: none;
        transition: 
            opacity 0.3s ease 1s,
            transform 0.3s ease 1s;
    }

    .group:hover .menu-item {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
        transition: 
            opacity 0.3s ease,
            transform 0.3s ease;
    }

    /* وقتی روی کادر یا آیکون هستیم → آیکون‌ها فعال و قابل کلیک */
    .social-icons:hover .menu-item,
    .menu-item:hover {
        opacity: 1 !important;
        transform: scale(1) !important;
        pointer-events: auto !important;
        transition: none !important;
    }

    /* لینک‌ها همیشه قابل کلیک باشند */
    .menu-item a {
        display: flex;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        pointer-events: auto !important;
        z-index: 1005;
    }

    /* هاور روی هر آیکون شبکه */
    .menu-item:hover {
        background: rgba(78, 118, 206, 0.25);
        transform: scale(1.25) !important;
        box-shadow: 0 0 0 3px #4e76ce, 0 6px 16px rgba(78, 118, 206, 0.35);
        cursor: pointer;
    }

    /* غیرفعال کردن لینک اصلی شرکت وقتی کادر بازه */
    .group:hover > a:first-child {
        pointer-events: none;
    }

    /* حذف چرخش و تنظیمات اضافی */
    .social-icon-1, .social-icon-2, .social-icon-3, .social-icon-4, .social-icon-5 {
        transform: none !important;
    }

    .social-icon-1 i,
    .social-icon-2 i,
    .social-icon-3 i,
    .social-icon-4 i,
    .social-icon-5 i {
        transform: none !important;
        font-size: 1.5rem;
    }

    .social-icon-1 { order: 1; }
    .social-icon-2 { order: 2; }
    .social-icon-3 { order: 3; }
    .social-icon-4 { order: 5; }
    .social-icon-5 { order: 5; }

    /* پل نامرئی برای جلوگیری از قطع hover بین آیکون و کادر */
    .group::before {
        content: '';
        position: absolute;
        top: -100px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 120px;
        background: transparent;
        z-index: 1003;
        pointer-events: none;
    }

    .group:hover::before {
        pointer-events: auto;
    }

    /* وقتی روی پل هستیم → کادر باز بمونه */
    .group.hover-bridge .social-icons,
    .group:hover::before:hover ~ .social-icons {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate(-50%, -50%) scale(1) !important;
        pointer-events: auto !important;
        transition: 
            opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
            transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
}

/* import فونت B Nazanin */
@font-face {
    font-family: "B Nazanin";
    src: url("https://db.onlinewebfonts.com/t/3671adca6f650c92b83f906e49656986.eot");
    src: url("https://db.onlinewebfonts.com/t/3671adca6f650c92b83f906e49656986.eot?#iefix") format("embedded-opentype"),
         url("https://db.onlinewebfonts.com/t/3671adca6f650c92b83f906e49656986.woff2") format("woff2"),
         url("https://db.onlinewebfonts.com/t/3671adca6f650c92b83f906e49656986.woff") format("woff"),
         url("https://db.onlinewebfonts.com/t/3671adca6f650c92b83f906e49656986.ttf") format("truetype"),
         url("https://db.onlinewebfonts.com/t/3671adca6f650c92b83f906e49656986.svg#B Nazanin") format("svg");
}

/* نقل قول روزانه */
.daily-quote {
  font-size: 2.2rem;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 900;
  text-align: center;
  margin: 40px auto;
  font-family: 'B Nazanin', sans-serif;
  letter-spacing: 4px;
  line-height: 1.3;
  animation: fadeIn 1.8s ease-out;

  /* فقط دور حروف خط مشکی — بدون پر کردن داخل حروف */
  paint-order: stroke fill;
  -webkit-text-stroke: 5px #000000;   /* ضخامت خط دور حروف */
  text-stroke: 5px #000000;
  
  /* این خط خیلی مهمه تا داخل حروف سفید بمونه */
  -webkit-text-fill-color: #ffffff;
  text-fill-color: #ffffff;

/* این خط خیلی مهمه تا خطوط متن به هم نچسبن و بوردر یک تکه بمونه */
    position: fixed;
    top: 60px;                
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 90vw;
    margin: 0 auto;
    padding: 16px 20px;
    color: #000000;
    text-align: center;
    z-index: 9998;
    direction: rtl;  /* برای متن فارسی */
    opacity: 0.98;
    transition: all 0.4s ease;
}

/* موبایل */
@media (max-width: 768px) {
    .daily-quote {
        margin: 0 auto;
        font-family: 'B Nazanin', sans-serif !important;
        padding: 20px;
        max-width: 100vw;
        font-size: 1.2rem;  /* کمی کوچیک‌تر برای موبایل */
        direction: rtl;
    }
}

@media (max-width: 480px) {
    .daily-quote {
        font-size: 1rem;
        font-family: 'B Nazanin', sans-serif !important;
        margin: 0 auto;
        padding: 20px;
        direction: rtl;
    }
}