﻿/* منوی شیشه‌ای */
.navbar-glass {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /*   background: var(--glass-bg);*/
    background: linear-gradient(135deg, #0a1d3733 0%, #0f3460e0 30%, #16213e42 70%, #1e5f9e 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
/*    padding: 1.2rem 0;*/
    animation: slideDown 0.8s ease-out;
}
/* آیکون همبرگر با فونت‌آوسم — تمیز و شیک */
.navbar-toggler {
    border: none !important;
    padding: 8px 10px !important;
    font-size: 1.5rem; /* اندازه آیکون */
    line-height: 1;
    background: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    transition: all 0.3s ease;
}
/*برای منوی همبرگری موبایل*/
    .navbar-toggler i {
        color: white !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.4);
        transition: transform 0.3s ease;
    }

    .navbar-toggler.collapsed i::before {
        content: "\f0c9"; /* fa-bars */
    }

    .navbar-toggler:not(.collapsed) i::before {
        content: "\f00d"; /* fa-times */
    }

    .navbar-toggler:not(.collapsed) i {
        transform: rotate(90deg);
    }
/*برای منوی همبرگری موبایل*/

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo-img {
    height: 100px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
    transition: transform 0.3s;
}

    .logo-img:hover {
        transform: rotate(5deg) scale(1.05);
    }

.site-name {
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--text-light);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* منوها */
.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .nav-link i {
        font-size: 1.2rem;
        transition: transform 0.3s;
    }

    .nav-link:hover, .nav-link.active {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
    }

/* مگا منو - وسط صفحه */
.mega-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .mega-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.mega-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2000;
    padding: 2rem;
}

    .mega-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

.mega-content {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.mega-image {
    width: 45%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

    .mega-image img {
        width: 100%;
        height: 100%;
        min-height: 240px;
        object-fit: cover;
        transition: all 0.5s ease;
        filter: brightness(0.9);
    }

        .mega-image img:hover {
            transform: scale(1.08);
            filter: brightness(1);
        }

.mega-links {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .mega-links h5 {
        color: var(--text-light);
        font-weight: 700;
        margin-bottom: 1.2rem;
        font-size: 1.3rem;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        padding-bottom: 0.8rem;
    }

    .mega-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #e0f2ff;
        text-decoration: none;
        padding: 0.5rem 1rem;
        border-radius: 12px;
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
        font-weight: 500;
        font-size: 1.05rem;
    }

        .mega-links a:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            transform: translateX(-6px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        }

        .mega-links a i {
            font-size: 1.2rem;
            width: 28px;
            text-align: center;
        }

/* دکمه بستن */
.mega-close {
    text-align:center;
    position: absolute;
    top: 1.5rem;
    left: 24rem;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 33px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration:none !important;
}

    .mega-close:hover {
        background: rgba(255,255,255,0.4);
        /*transform: rotate(90deg);*/
    }

/* دکمه ورود/عضویت! */
/*.btn-login {
    position: relative;
    background: linear-gradient(45deg, #1a5fb4, #3d7ee6, #1a5fb4, #3d7ee6);
    background-size: 300% 300%;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    border: none !important;
    border-radius: 10px;
    padding: 0.50rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(26, 95, 180, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .btn-login::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: 0.7s;
    }

    .btn-login:hover::before {
        left: 100%;
    }

    .btn-login:hover {
        box-shadow: 0 15px 35px rgba(26, 95, 180, 0.6);
        border-bottom:2px solid blue;
    }

    .btn-login i {
        font-size: 1.1rem;
        transition: transform 0.3s;
    }

    .btn-login:hover i {
        transform: translateX(4px);
    }

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}*/
.login-text[data-bs-toggle="modal"] {
    cursor: pointer;
}
.login-text {
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1.4rem !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    /* background: rgba(255, 255, 255, 0.15) !important;*/
    /*backdrop-filter: blur(12px);*/
    /*   border: 1px solid rgba(255, 255, 255, 0.25);*/
    box-shadow: 0 6px 20px rgba(26, 95, 180, 0.3);
    border: none;
    background-color: rgb(45 46 46 / 38%) !important;
}


    .login-text::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.7s;
        z-index: 0;
    }

    .login-text:hover::before {
        left: 100%;
    }

    /* هاور: بالا اومدن + سایه قوی‌تر + حرکت آیکون */
    .login-text:hover {
        background: rgba(255, 255, 255, 0.3) !important;
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(26, 95, 180, 0.5);
        border-color: rgba(255, 255, 255, 0.5);
    }

        .login-text:hover i {
            transform: translateX(6px);
        }


    .login-text i {
        font-size: 1.15rem;
        transition: transform 0.3s ease;
        position: relative;
        z-index: 1;
    }


.login-text {
    /*background: linear-gradient(45deg, rgba(26,95,180,0.3), rgba(61,126,230,0.3)), rgba(255,255,255,0.1);*/
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
}
@media (max-width: 992px) {
    .login-text {
        font-size: 1.15rem;
        padding: 0.8rem 1.8rem !important;
        justify-content: center;
        margin: 1rem auto 0.5rem;
        min-width: 200px;
    }
}






@media (max-width: 992px) {
    .mega-image {
        display: none !important;
    }

    .mega-links {
        width: 100%;
    }

    .mega-content {
        gap: 1rem;
    }

    .mega-links h5 {
        text-align: center;
        font-size: 1.2rem;
    }

    .mega-links a {
        justify-content: center;
        font-size: 1.1rem;
    }

    .btn-login {
        font-size: 1rem;
        padding: 0.7rem 1.8rem;
    }
}

/* محتوا */
.content {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(to bottom, #f0f4f8, #ffffff);
}

    .content h2 {
        font-weight: 700;
        color: #1a3a6e;
        font-size: 2.5rem;
    }

    .content p {
        font-size: 1.2rem;
        color: #555;
        max-width: 700px;
        margin: 0 auto;
    }


#mega-train:target,
#mega-plane:target,
#mega-hotel:target,
#mega-contact:target {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

    #mega-train:target ~ .mega-overlay,
    #mega-plane:target ~ .mega-overlay,
    #mega-hotel:target ~ .mega-overlay,
    #mega-contact:target ~ .mega-overlay,
    .mega-overlay.show {
        opacity: 1;
        visibility: visible;
    }


.navbar-collapse{
    z-index:999 !important;
}

/* فعال شدن مگامنو با :target */
#mega-train:target, #mega-plane:target, #mega-hotel:target, #mega-contact:target {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

    #mega-train:target ~ .mega-overlay,
    #mega-plane:target ~ .mega-overlay,
    #mega-hotel:target ~ .mega-overlay,
    #mega-contact:target ~ .mega-overlay {
        opacity: 1;
        visibility: visible;
    }

/* تصویر مگامنو */
.mega-image img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    transition: all 0.4s ease;
    border-radius: 16px;
}

    .mega-image img:hover {
        transform: scale(1.05);
        filter: brightness(1.1);
    }

.mega-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer; /* مهم! */
}

#mega-train:target ~ .mega-overlay,
#mega-plane:target ~ .mega-overlay,
#mega-hotel:target ~ .mega-overlay,
#mega-contact:target ~ .mega-overlay {
    opacity: 1;
    visibility: visible;
}