/* ===================== Fonts ===================== */

@font-face {
    font-family: "IRANSans";
    src: url("../Fonts/IRANSansX-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "IRANSansBold";
    src: url("../Fonts/IRANSansX-Bold.ttf") format("truetype");
}

/* ===================== Reset ===================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: IRANSans, sans-serif;
    background-color: #fef2da;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===================== Background ===================== */

.bg-slideshow {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
}

.slide-bg.active {
    opacity: 1;
}

/* overlay نرم */
.overlay-soft {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.28);
    z-index: -1;
    transition: opacity 1.2s ease;
}

/* ===================== Lobby ===================== */

.lobby-page {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #fff3cf, #ffe2a4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    text-align: center;
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lobby-page.fade-out {
    opacity: 0;
}

.lobby-logo {
    width: 120px;
    max-width: 70%;
    animation: heartbeat 1s ease-in-out infinite;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.15));
}

.lobby-page h1 {
    color: #956b34;
    font-size: 2rem;
    margin-top: 20px;
    font-family: IRANSansBold;
}

.lobby-tagline {
    margin-top: 10px;
    color: #7a4c1a;
    background: rgba(255, 250, 210, 0.6);
    padding: 5px 18px;
    border-radius: 50px;
}

/* ===================== Main Content ===================== */

#mainContent {
    display: none;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition:
        opacity 1.2s ease,
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#mainContent.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.container1 {
    max-width: 1350px;
    margin: 0 auto;
    padding: 30px 24px 60px;
    position: relative;
    z-index: 10;
}

/* ===================== Brand Header ===================== */

.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(250, 245, 225, 0.75);
    border-radius: 64px;
    padding: 22px 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(230, 195, 110, 0.7);
    backdrop-filter: blur(3px);
}

.brand-header img {
    width: 170px;
    margin-bottom: 8px;
}

.brand-header h1 {
    color: #2c1a0a;
    font-weight: 800;
    font-size: 2rem;
}

.sub-brand {
    color: #5a3c17;
    font-size: 1rem;
}

/* ===================== Cards ===================== */

.cards1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin: 40px 0 30px;

    opacity: 0;
    transform: translateY(25px);
    transition: all 1s ease;
}

#mainContent.show .cards1 {
    opacity: 1;
    transform: translateY(0);
}

.card1 {
    background: rgba(255, 252, 240, 0.92);
    border-radius: 38px;
    padding: 24px 18px;
    width: 185px;
    text-align: center;
    text-decoration: none;
    color: #4f2d0c;

    transition: all 0.3s cubic-bezier(0.2, 0.85, 0.4, 1.1);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,235,170,0.85);
    backdrop-filter: blur(2px);
}

.card1:hover {
    transform: translateY(-10px);
    background: rgba(255,254,245,0.98);
    box-shadow: 0 24px 38px rgba(0,0,0,0.2);
    border-color: #ffcf70;
}

.card1 img {
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.card1:hover img {
    transform: scale(1.05);
}

.card1 span {
    display: block;
    font-size: 1.18rem;
    font-weight: bold;
}

/* ===================== Language ===================== */

.language-selector {
    margin-top: 45px;
    text-align: center;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    display: inline-block;
    padding: 6px 22px;
    border-radius: 60px;
}

.language-selector select {
    background: #fff7ea;
    color: #a5561f;
    padding: 9px 28px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.language-selector select:hover {
    background: #ffefcf;
}

/* ===================== Footer ===================== */

footer {
    text-align: center;
    padding: 22px;
    background: rgba(20,12,3,0.7);
    color: #fff2da;
    font-size: 0.85rem;
    border-top: 1px solid #f7cd7a;
}

/* ===================== Animations ===================== */

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    45% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* ===================== Responsive ===================== */

@media (max-width: 700px) {
    .card1 {
        width: 150px;
        padding: 16px;
    }

    .brand-header h1 {
        font-size: 1.5rem;
    }

    .lobby-logo {
        width: 260px;
    }

    .cards1 {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .card1 {
        width: 150px;
        height: 150px;
        background: white;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        position: relative;
        overflow: hidden;
    }

    .card1 img {
        width: 60px;
        height: 60px;
        z-index: 2;
    }

    /* هاله زرد رنگ پشت تصویر */
    .card1::before {
        content: "";
        position: absolute;
        width: 110px;
        height: 110px;
        background: radial-gradient(circle, rgba(255,230,0,0.6), rgba(255,230,0,0) 70%);
        border-radius: 50%;
        z-index: 1;
    }

}