* {
    list-style: none;
    text-decoration: none;
    font-family: vazir;
    outline: none;
    margin: 0;
    box-sizing: border-box;
    padding: 0;
}
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --text-color: #ffffff;
    --glass-color: rgba(44, 70, 90, 0.95); 
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --accent-color: #3498db;
}
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
header, .container, main, footer {
    max-width: 100%;
}
.sidebar, .dropdown-menu, .user-profile-wrapper {
    overflow: visible !important;
    z-index: 9999; 
}

@font-face {
    font-family: vazir;
    src: url(/font/Vazir-Medium.ttf);
}

html {
    scroll-behavior: smooth;
}

a {
    color: #212121;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    background-color: #1e272e;
}


header {
    width: 99vw;
    height: 110px;
    margin: auto;
    position: fixed;
    z-index: 2;
    background-color: rgba(44, 70, 90, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    top: 0px;
    transition: top 0.3s;
}

header a {
    color: #ffffff;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
}

header .logo img {
    width: 100px;
    padding: 5px;
}

header .nav ul {
    display: flex;
    width: 100%;
}

header .nav li {
    margin-left: 50px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
}

.hideOnMobile:hover {
    border-bottom: 2px solid #3498db;
    transition: all 0.3s ease;
}

.btn-login, .btn-sell {
    padding: 0 20px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.btn-login {
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    background-color: transparent !important;
}

.btn-login:hover {
    background-color: #ffffff !important;
    color: #2c465a !important;
}

.btn-sell {
    color: #ffffff !important;
    background-color: #3498db !important;
    border: 2px solid #3498db !important;
}

.btn-sell:hover {
    background-color: #2980b9 !important;
    border-color: #2980b9 !important;
}

.nav .sidebar {
    margin: 0px;
    position: fixed;
    top: 0;
    left: 0;
    height: 250px;
    width: 250px;
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    display: none;
}

.nav .sidebar li {
    width: 100%;
}

.nav li:first-child {
    margin-right: auto;
}

.menuButton {
    display: none;
}

/* ===== منوی پروفایل ===== */
.user-profile-wrapper {
    position: relative;
    display: inline-block;
}

.profile-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    margin-right: 15px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-btn:hover {
    color: #3498db;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    background: rgba(44, 70, 90, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 200px;
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: bold;
    color: #3498db;
    text-align: center;
    font-size: 0.95rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(52, 152, 219, 0.15);
    color: #fff;
}

.dropdown-item i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

.logout-btn {
    color: #ff4757 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-btn:hover {
    background: rgba(255, 71, 87, 0.15) !important;
    color: #ff6b81 !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== محتوای اصلی ===== */
main {
    padding-top: 110px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* بخش هدر صفحه درباره ما */
.about-hero {
    margin-top: 30px;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(44, 62, 80, 0.3));
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.about-hero h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 15px;
}

.about-hero p {
    color: #bdc3c7;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* بخش‌های اصلی */
.about-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 30px;
    border-right: 5px solid #3498db;
    padding-right: 15px;
}

/* گرید کارت‌های تبلیغات */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    transition: 0.3s;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.08);
}

.about-card i {
    font-size: 2.8rem;
    color: #3498db;
    margin-bottom: 15px;
}

.about-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.about-card p {
    color: #bdc3c7;
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-card .price-tag {
    display: inline-block;
    background: rgba(52, 152, 219, 0.2);
    padding: 4px 15px;
    border-radius: 30px;
    color: #3498db;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* مراحل سفارش */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.step-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-item .step-number {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: #3498db;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 45px;
    margin-bottom: 12px;
}

.step-item h4 {
    color: #fff;
    margin-bottom: 8px;
}

.step-item p {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* تیم */
.team-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.team-member {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.team-member:hover {
    border-color: #3498db;
    transform: scale(1.02);
}

.team-member .avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}

.team-member h4 {
    color: #fff;
    font-size: 1.2rem;
}

.team-member p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* آمار */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    display: block;
}

.stat-box .label {
    color: #bdc3c7;
    font-size: 0.95rem;
    margin-top: 5px;
}

/* بخش تماس */
.contact-about {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-about i {
    font-size: 2rem;
    color: #3498db;
    margin: 0 10px;
}

.contact-about a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.contact-about a:hover {
    color: #3498db;
}

/* ===== فوتر ===== */
footer {
    margin-top: 80px;
}

.contact-us {
    display: flex;
    justify-content: space-around;
    background-color: #252f38;
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logo2 img {
    width: 200px;
    height: 200px;
    padding-top: 20px;
}

.contact {
    width: 500px;
    padding-top: 20px;
}

.Contact-information {
    width: 200px;
    height: 250px;
}

.phone, .email {
    display: flex;
    justify-content: space-evenly;
    padding-top: 25px;
}

.our-site {
    display: grid;
    align-items: center;
    text-align: center;
    height: 60px;
    color: rgba(0, 0, 0, 0.85);
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 5px;
}

/* ===== دکمه بازگشت به بالا ===== */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: white;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 24px;
    z-index: 999;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
    text-decoration: none;
}

#back-to-top:hover {
    background-color: rgb(127, 53, 53);
}

#back-to-top.show {
    display: block;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    .about-hero h1 { font-size: 2.2rem; }
    .contact-us {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact, .Contact-information {
        width: 90%;
    }
    .logo2 img {
        width: 150px;
        height: 150px;
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    header {
        width: 100%;
        border-radius: 0;
        height: 80px;
    }
    header .container {
        justify-content: space-between;
    }
    header .logo img {
        width: 70px;
    }
    .header-right .nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
    .sidebar {
        display: none !important;
        width: 280px;
        right: 0;
        left: auto;
        top: 0;
        height: 100vh;
        z-index: 9999;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    }
    .sidebar.active {
        display: flex !important;
    }
    .hideOnMobile {
        display: none !important;
    }
    .about-hero {
        margin-top: 10px;
        padding: 40px 15px;
    }
    .about-hero h1 { font-size: 1.8rem; }
    .about-hero p { font-size: 1rem; }
    .about-section { padding: 30px 15px; }
    .about-section h2 { font-size: 1.6rem; }
    .about-card { padding: 20px; }
    .team-member { width: 100%; }
    .dropdown-menu {
        position: fixed !important;
        left: 30% !important;
        transform: translateX(-50%) !important;
    }
    .our-site {
        padding: 15px;
        font-size: 0.8rem;
    }
    #back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .about-hero h1 { font-size: 1.5rem; }
    .about-section h2 { font-size: 1.3rem; }
}