
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}


.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.menu-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.menu-icon .bar {
    width: 100%;
    height: 2px;
    background-color: #1d1d1d;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-button.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-button.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-button.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.toggle-theme {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.toggle-theme:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.theme-icon {
    font-size: 1.25rem;
    color: #1d1d1d;
    transition: transform 0.3s ease;
}
.dark-mode .theme-icon {
    color: #fff;
}

.toggle-theme.active .theme-icon {
    transform: rotate(180deg);
}


.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    height: 20px;
    width: auto;
    transition: all 0.3s ease;
}
.logo:focus {
    outline: none;
}


.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.desktop-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.language-selector-container {
    position: relative;
    margin-right: 20px;
}

.language-toggle {
    background: var(--card-bg, #ffffff);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: var(--text-color, #333);
    font-weight: 500;
}

.language-toggle:hover {
    background: var(--hover-bg, #f5f5f5);
    border-color: var(--primary-color, #ab2138);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(171, 33, 56, 0.1);
}

.language-toggle i {
    font-size: 16px;
    color: var(--primary-color, #ab2138);
}

.language-toggle .language-code {
    font-weight: 700;
    font-size: 14px;
    min-width: 24px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 50;
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
    overflow: hidden;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color, #ab2138);
    color: white;
}

.language-dropdown-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.close-dropdown {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-dropdown:hover {
    opacity: 1;
}

.language-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.language-list li {
    margin: 0;
}

.language-option {
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color, #333);
    transition: all 0.2s ease;
    font-size: 14px;
}

.language-option:hover {
    background: var(--hover-bg, #f5f5f5);
    padding-left: 24px;
}

.language-option.active {
    background: linear-gradient(90deg, rgba(171, 33, 56, 0.1), transparent);
    color: var(--primary-color, #ab2138);
    font-weight: 600;
    border-left: 3px solid var(--primary-color, #ab2138);
}

.language-flag {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.language-name {
    flex: 1;
    text-align: left;
}

.language-option[data-lang="fa"] .language-name {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

.language-code {
    font-weight: 600;
    color: var(--primary-color, #ab2138);
    background: rgba(171, 33, 56, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}


.mobile-language-selector {
    padding: 20px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.mobile-language-selector h4 {
    margin: 0 0 15px 0;
    color: var(--text-color, #333);
    font-size: 16px;
    font-weight: 600;
}

.mobile-language-options {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.mobile-language-btn {
    flex: 1;
    padding: 12px;
    background: var(--card-bg, #f8f8f8);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    color: var(--text-color, #333);
}

.mobile-language-btn.active {
    background: var(--primary-color, #ab2138);
    color: white;
    border-color: var(--primary-color, #ab2138);
    transform: scale(1.05);
}

.mobile-language-btn:hover:not(.active) {
    border-color: var(--primary-color, #ab2138);
    background: var(--hover-bg, #f0f0f0);
}

.mobile-flag {
    font-size: 24px;
}

.mobile-language-btn span:last-child {
    font-size: 12px;
    font-weight: 500;
}


[data-theme="dark"] .language-toggle {
    background: var(--card-bg-dark, #2a2a2a);
    border-color: var(--border-color-dark, #444);
    color: var(--text-color-dark, #f0f0f0);
}

[data-theme="dark"] .language-toggle:hover {
    background: var(--hover-bg-dark, #333);
}

[data-theme="dark"] .language-dropdown {
    background: var(--card-bg-dark, #2a2a2a);
    border-color: var(--border-color-dark, #444);
}

[data-theme="dark"] .language-option {
    color: var(--text-color-dark, #f0f0f0);
}

[data-theme="dark"] .language-option:hover {
    background: var(--hover-bg-dark, #333);
}

[data-theme="dark"] .mobile-language-btn {
    background: var(--card-bg-dark, #2a2a2a);
    border-color: var(--border-color-dark, #444);
    color: var(--text-color-dark, #f0f0f0);
}

@media (max-width: 768px) {
    .language-selector-container {
        margin-right: 15px;
    }
    .menu-button{
        display: block;
    }
    .language-toggle {
        padding: 6px 12px;
    }
    
    .language-toggle .language-code {
        font-size: 12px;
    }
    
    .language-dropdown {
        position: fixed;
        top: 100%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 60%;
        max-width: 250px;
        margin-top: 100px;
    }
    
    .language-dropdown.active {
        transform: translate(-50%, -50%) scale(1);
    }
}

.nav-item {
    text-decoration: none;
    color: #1d1d1d;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #AB2138;
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: #AB2138;
}
.nav-item:focus {
    outline: none;
}
.nav-item:hover::after {
    width: 100%;
}

.contact-link {
    text-decoration: none;
}

.contact-btn {
    background: linear-gradient(135deg, #1d1d1d, #333);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    /* border-radius: 50px; */
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-btn:hover {
    background: linear-gradient(135deg, #333, #1d1d1d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-btn i {
    font-size: 0.9rem;
}

.mobile-contact {
    display: none;
}


.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
    transition: left 0.4s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.close-menu {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #1d1d1d;
    padding: 0.5rem;
}

.mobile-nav-list {
    list-style: none;
    flex: 1;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #1d1d1d;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.mobile-nav-item:hover {
    color: #AB2138;
}

.mobile-nav-item i {
    width: 20px;
    text-align: center;
}

.phone-link {
    color: #AB2138;
    font-weight: 700;
}

.mobile-nav-footer {
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #1d1d1d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #AB2138;
    color: white;
    transform: translateY(-3px);
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


.dark-mode .header {
    background: rgba(29, 29, 29, 0.95);
}

.dark-mode .menu-icon .bar {
    background-color: white;
}

.dark-mode .nav-item {
    color: white;
}

.dark-mode .nav-item::after {
    background-color: white;
}

.dark-mode .nav-item:hover {
    color: #AB2138;
}

.dark-mode .toggle-theme:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .contact-btn {
    background: linear-gradient(135deg, #4dabf7, #228be6);
}

.dark-mode .mobile-nav {
    background: #1d1d1d;
}

.dark-mode .mobile-nav-item {
    color: white;
    border-bottom-color: #333;
}

.dark-mode .mobile-nav-item:hover {
    color: #AB2138;
}

.dark-mode .social-links a {
    background: #333;
    color: white;
}


@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .header-center {
        flex: none;
    }
    
    .logo {
        height: 20px;
    }
    
    .mobile-contact {
        display: block;
    }
    
    /* .contact-btn span {
        display: none;
    } */
    
    .contact-btn {
 
        padding: 0;
        justify-content: center;
        padding: 7px;
    }
    
    .contact-btn i {
        margin: 0;
        font-size: 0.7rem;
    }
    
    .mobile-nav {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.75rem;
    }
     .menu-button{
        display: block;
    }
    .logo {
        height: 20px;
    }
    
    .menu-button,
    .toggle-theme {
        padding: 0.25rem;
    }
    
    .mobile-nav {
        width: 100%;
        padding: 1.5rem;
    }
}


.logo-light,
.logo-dark {
    transition: opacity 0.3s ease;
}

.dark-mode .logo-light {
    display: none;
}

.dark-mode .logo-dark {
    display: block !important;
}

.light-mode .logo-dark {
    display: none !important;
}

.light-mode .logo-light {
    display: block !important;
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


button:focus,
a:focus {
    outline: 2px solid #AB2138;
    outline-offset: 2px;
}