/* Base Styles */






body.rtl, 
body[lang="fa"] {
    font-family: 'Vazirmatn', 'Noto Naskh Arabic', Tahoma, sans-serif;
    line-height: 1.8; /* Persian text often needs more line spacing */
}

/* For headings in Persian */
body.rtl h1,
body.rtl h2,
body.rtl h3,
body[lang="fa"] h1,
body[lang="fa"] h2,
body[lang="fa"] h3 {
    font-family: 'Vazirmatn', 'Noto Naskh Arabic', Tahoma, sans-serif;
    font-weight: 700;
}



body.rtl, 
body[lang="fa"] {
    font-family: 'Vazir', 'Iranian Sans', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, sans-serif;
}





/* Vazirmatn font face */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Noto Naskh Arabic font face */
@font-face {
  font-family: 'Noto Naskh Arabic';
  src: url('fonts/NotoNaskhArabic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}















:root {
    --primary: #2a5bd7;
    --secondary: #1a365d;
    --accent: #e63946;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.logo img {
    height: 40px;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 30px;
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    margin: 0;
    padding: 8px 20px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 180px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    margin-right: 10px;
}

.btn-primary:hover {
    background: #1e4bbb;
}

.btn-secondary {
    background: transparent;
    color: #380505;
    border: 2px solid #360404;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* About Section */
.about {
    padding: 80px 0;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about p {
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--gray);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
}

.stat-item p {
    color: var(--gray);
}

/* Companies Section */
.companies {
    padding: 80px 0;
    background: #f8f9fa;
}

.companies h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary);
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.company-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.company-card:hover {
    transform: translateY(-10px);
}

.company-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.company-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.company-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--secondary);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form textarea {
    height: 150px;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }
}






/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.auth-container {
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.auth-form h3 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: ;
    padding: ;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
}

.terms-check {
    display: block;
    margin: 15px 0;
    font-size: 0.9rem;
}

.terms-check a {
    color: var(--primary);
}

.social-login {
    margin-top: 20px;
    text-align: center;
}

.social-login p {
    margin-bottom: 10px;
    color: var(--gray);
    font-size: 0.9rem;
}

.social-login .social-icons {
    justify-content: center;
}

.social-login .social-icons a {
    color: var(--dark);
    font-size: 1.2rem;
    margin: 0 10px;
}

.social-login .social-icons a:hover {
    color: var(--primary);
}






/* Mega Menu Styles */
.mega-menu {
    position: static !important;
}

.mega-menu-content {
    position: absolute;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 30px;
    display: none;
    z-index: 1000;
}

.mega-menu:hover .mega-menu-content {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-menu-row {
    display: flex;
    gap: 20px;
}

.mega-menu-col {
    flex: 1;
}

.mega-menu-card {
    display: block;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.mega-menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.menu-card-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.mega-menu-card h4 {
    padding: 15px 15px 5px;
    font-size: 1.1rem;
    color: var(--secondary);
}

.mega-menu-card p {
    padding: 0 15px;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.learn-more {
    display: block;
    padding: 10px 15px;
    background: var(--light);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.learn-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.mega-menu-card:hover .learn-more i {
    transform: translateX(3px);
}

/* Enhanced Mobile Menu */
.hamburger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--dark);
    transition: all 0.3s;
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
    .navbar {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    
    .navbar.active {
        max-height: 500px;
        padding: 20px 0;
    }
    
    .navbar ul {
        flex-direction: column;
    }
    
    .navbar ul li {
        margin: 0;
        padding: 10px 20px;
    }
    
    .mega-menu-content {
        position: static;
        box-shadow: none;
        padding: 15px;
        display: none;
    }
    
    .mega-menu:hover .mega-menu-content,
    .mega-menu.active .mega-menu-content {
        display: block;
    }
    
    .mega-menu-row {
        flex-direction: column;
    }
    
    .menu-card-image {
        height: 120px;
    }
}



/* Dropdown Arrow Animation */
.dropdown-arrow {
    margin-left: 5px;
    transition: transform 0.3s;
}

.mega-menu:hover .dropdown-arrow,
.mega-menu.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mega Menu Layout Enhancements */
.mega-menu-container {
    display: flex;
    gap: 30px;
}

.mega-menu-main {
    flex: 3;
}

.mega-menu-sidebar {
    flex: 1;
    border-left: 1px solid #eee;
    padding-left: 30px;
}

.menu-featured {
    margin-bottom: 30px;
}

.featured-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.featured-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.featured-item h5 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.featured-item p {
    color: var(--primary);
    font-weight: 600;
}

.menu-contact {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.menu-contact p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.8rem;
}

/* Search Bar Styles */
.menu-search {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.menu-search input {
    flex: 1;
    border: none;
    padding: 10px 15px;
}

.menu-search button {
    background: var(--light);
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

.mobile-search-btn {
    display: none;
    font-size: 1.2rem;
    margin-left: auto;
    margin-right: 20px;
    cursor: pointer;
}

.mobile-search-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}

.mobile-search-overlay .container {
    display: flex;
    align-items: center;
}

.mobile-search-overlay input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.close-search {
    background: none;
    border: none;
    font-size: 1.2rem;
    margin-left: 10px;
    cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .menu-search {
        display: none;
    }
    
    .mobile-search-btn {
        display: block;
    }
    
    .mega-menu-container {
        flex-direction: column;
    }
    
    .mega-menu-sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }
    
    .featured-item img {
        width: 50px;
        height: 50px;
    }
}










/* Mega Menu Enhancements */
.company-menu {
    padding: 30px;
    width: 900px;
    left: 50%;
    transform: translateX(-50%);
}

.company-card {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.company-logo {
    width: 180px;
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    max-height: 100px;
    object-fit: contain;
    object-position: left;
}

.company-info h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.company-services {
    margin: 15px 0;
    list-style: none;
}

.company-services li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.company-services i {
    color: var(--primary);
    margin-right: 8px;
}

/* Products Mega Menu */
.product-menu {
    width: 800px;
    padding: 25px;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-category h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-category ul {
    list-style: none;
}

.product-category li {
    margin-bottom: 10px;
}

.product-category a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.product-category a:hover {
    color: var(--primary);
}

.product-featured {
    border-left: 1px solid #eee;
    padding-left: 30px;
}

.featured-product {
    text-align: center;
    margin-top: 20px;
}

.featured-product img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.featured-product h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.price {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .company-menu,
    .product-menu {
        width: 100%;
        position: static;
        transform: none;
        padding: 15px;
    }
    
    .company-card {
        flex-direction: column;
    }
    
    .company-logo {
        width: 120px;
        margin-bottom: 15px;
    }
    
    .product-categories {
        grid-template-columns: 1fr;
    }
    
    .product-featured {
        border-left: none;
        border-top: 1px solid #eee;
        padding-left: 0;
        padding-top: 20px;
        margin-top: 20px;
    }
}




  /* Companies Banner/Slider Styles */
        .companies-banner {
            width: 100%;
            margin: 0 auto;
            position: relative;
        }
        
        .company-slide {
            height: 500px;
            background-size: cover;
            background-position: center;
            display: flex !important;
            align-items: center;
            position: relative;
        }
        
        .slide-content {
            color: white;
            max-width: 600px;
            z-index: 2;
        }
        
        .slide-content h3 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        .slide-content p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
        }
        
        /* Slick Carousel Customization */
        .slick-prev, .slick-next {
            width: 40px;
            height: 40px;
            z-index: 10;
        }
        
        .slick-prev {
            left: 20px;
        }
        
        .slick-next {
            right: 20px;
        }
        
        .slick-prev:before, .slick-next:before {
            display: none;
        }
        
        .slick-dots {
            bottom: 20px;
        }
        
        .slick-dots li button:before {
            color: white;
            opacity: 0.5;
            font-size: 10px;
        }
        
        .slick-dots li.slick-active button:before {
            color: white;
            opacity: 1;
        }
        
        @media (max-width: 768px) {
            .company-slide {
                height: 400px;
            }
            
            .slide-content {
                max-width: 100%;
                padding: 0 20px;
                text-align: center;
            }
            
            .slide-content h3 {
                font-size: 2rem;
            }
        }





        
        /* Companies Banner/Slider Styles */
        .companies-banner {
            width: 100%;
            margin: 0 auto;
            position: relative;
        }
        
        .company-slide {
            height: 500px;
            background-size: cover;
            background-position: center;
            display: flex !important;
            align-items: center;
            position: relative;
        }
        
        .slide-content {
            color: white;
            max-width: 600px;
            z-index: 2;
        }
        
        .slide-content h3 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        .slide-content p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
        }
        
        /* Slick Carousel Customization */
        .slick-prev, .slick-next {
            width: 40px;
            height: 40px;
            z-index: 10;
        }
        
        .slick-prev {
            left: 20px;
        }
        
        .slick-next {
            right: 20px;
        }
        
        .slick-prev:before, .slick-next:before {
            display: none;
        }
        
        .slick-dots {
            bottom: 20px;
        }
        
        .slick-dots li button:before {
            color: white;
            opacity: 0.5;
            font-size: 10px;
        }
        
        .slick-dots li.slick-active button:before {
            color: white;
            opacity: 1;
        }
        
        @media (max-width: 768px) {
            .company-slide {
                height: 400px;
            }
            
            .slide-content {
                max-width: 100%;
                padding: 0 20px;
                text-align: center;
            }
            
            .slide-content h3 {
                font-size: 2rem;
            }
        }



        