.main-header {
    width: 95%;
    max-width: 1250px;
    height: 60px; /* উচ্চতা কমানো হয়েছে (Thinner) */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    position: sticky;
    top: 10px; /* উপর থেকে দূরত্ব কিছুটা কমানো হয়েছে */
    margin: 10px auto;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, width, border-radius, background;
}

/* ফোনের স্ক্রিনে হেডার রিমুভ করা হয়েছে */
@media (max-width: 768px) {
    .main-header {
        display: none !important;
    }
}

.header-content {
    width: 92%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px; /* লোগোর সাইজ চিকন হেডারের সাথে সামঞ্জস্য করা হয়েছে */
    width: auto;
}

.site-name {
    font-family: 'B4UFFEU-Stylish', sans-serif;
    font-size: 24px; /* ফন্ট সাইজ সামান্য কমানো হয়েছে */
    font-weight: bold;
    letter-spacing: 1.5px;

    /* Gradient Colors */
    --color-1: #00d2ff; /* নীল */
    --color-2: #ffffff; /* সাদা */

    background: linear-gradient(to right, var(--color-1), var(--color-2), var(--color-1));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    text-decoration: none;
    color: #ffffff; /* টেক্সট সাদা করা হয়েছে */
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.nav-icon {
    opacity: 0;
    max-width: 0;
    visibility: hidden;
    overflow: hidden;
    font-size: 18px;
    color: #00d2ff; /* আইকন কালার আরও ব্রাইট নীল করা হয়েছে */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.nav-item:hover .nav-icon {
    opacity: 1;
    max-width: 30px; /* আইকন এর জন্য জায়গা তৈরি করবে স্লাইড করে */
    visibility: visible;
    margin-right: 8px; /* টেক্সট থেকে দূরত্ব */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: #007bff;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item.active {
    color: #00d2ff;
}

.nav-item.active .nav-icon {
    opacity: 1;
    max-width: 30px;
    visibility: visible;
    margin-right: 8px;
}

.nav-item.active::after {
    width: 100%;
    background-color: #00d2ff;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.global-lang-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 5px;
}

.lang-btn-global {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: 0.3s;
}

.lang-btn-global.active {
    background: #00d2ff;
    color: white;
}

.login-btn, .register-btn {
    padding: 6px 18px; /* বাটনগুলোও কিছুটা ছোট করা হয়েছে */
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    font-size: 14px; /* ফন্ট সাইজ কমানো হয়েছে */
    display: flex;
    align-items: center;
    gap: 8px; /* আইকন এবং টেক্সটের মধ্যে দূরত্ব */
}

.login-btn {
    background: #007bff;
    color: white;
}

.register-btn {
    border: 2px solid #007bff;
    color: #007bff;
}

.login-btn:hover { background: #0056b3; }
.register-btn:hover { background: #007bff; color: white; }

/* User Header Profile & Hover Menu */
.user-header-profile {
    position: relative;
    padding: 5px;
}

.user-icon-circle {
    width: 38px;
    height: 38px;
    background: rgba(0, 210, 255, 0.1);
    border: 2px solid rgba(0, 210, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
}

.user-icon-circle i {
    font-size: 22px;
    color: #00d2ff;
}

.user-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-icon-circle:hover {
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
    transform: scale(1.05);
}

.user-hover-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

/* Arrow for the menu */
.user-hover-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: rgba(20, 20, 25, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.user-header-profile.active .user-hover-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-user-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.menu-name {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.menu-email {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    word-break: break-all;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    border-radius: 8px;
    transition: 0.3s;
}

.menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.menu-item:hover {
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
}

.menu-item.logout:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}
