header {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    transition: 0.4s;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to left, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.ajax-search-result {
    position: absolute;
    top: 110%;
    right: 0;
    width: 100%;
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--border);
    display: none;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.top-bar {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 25px;
    color: #fff;
    width: 100%;
    transition: 0.3s;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    margin: 0;
}

.nav-link {
    color: #cbd5e1;
    padding: 10px 20px;
    font-weight: 500;
    transition: 0.3s;
    text-decoration: none;
    border-radius: 50px;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(0, 242, 254, 0.05);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card);
    padding: 40px 0;
    border-bottom: 4px solid var(--primary);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.main-nav {
    position: relative;
}

.side-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    height: 100vh;
    background: var(--card);
    z-index: 2000;
    transition: 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    padding: 40px;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
}

.side-panel.active {
    left: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1999;
    backdrop-filter: blur(5px);
}

footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    display: block;
    margin-bottom: 12px;
}

.footer-link:hover {
    color: var(--primary);
    padding-right: 10px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    background: var(--glass);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    transition: 0.3s;
}

.icon-btn:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
}

.mobile-nav-toggle {
    top: 20px;
}

.mobile-nav-toggle::after, .mobile-nav-toggle::before, .active-mobile-nav {
    transition: all 1s ease;
    padding: 22px;
}

.mobile-nav-toggle{
    margin: 20px;
}
.mobile-nav-toggle i::before{
    font-size: 23px !important;
}

/* .mobile-nav-toggle::before {
    content: '';
    width: 30px;
    height: 3px;
    background-color: white;
    position: absolute;
    border-radius: 5px;
}

.mobile-nav-toggle::after {
    content: '';
    width: 30px;
    height: 2px;
    background-color: white;
    position: absolute;
    border-radius: 5px;
    top: 25px;
}

.active-mobile-nav::after {
    content: '';
    transform: rotate(-45deg);
}

.active-mobile-nav::before {
    content: '';
    transform: rotate(45deg);
    top: 24px;
} */

.site-footer {
    background: #040A1D;
    color: #C5F2F5;
    font-family: 'IRANSans', sans-serif;
    padding: 60px 0 20px;
}

.site-footer a {
    color: #C5F2F5;
    text-decoration: none;
    transition: 0.3s;
}

.site-footer a:hover {
    color: #00A7B1;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1 1 220px;
}

.footer-title {
    font-size: 20px;
    font-weight: bold;
    color: #00A7B1;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-text {
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 22px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #00A7B1;
    color: #fff;
    transform: scale(1.1);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    outline: none;
    font-size: 14px;
}

.newsletter-form button {
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    background: #00A7B1;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

.newsletter-form button:hover {
    background: #C5F2F5;
    color: #040A1D;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 13px;
    color: #C5F2F5;
}

.nav-item:hover .mega-menu {
    visibility: visible;
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width:822px) {
        .nav-item.open{
            display: block;
        }
}
