* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.8;
    direction: rtl;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    background: #0d0d0d;
    padding: 18px 0;
    border-bottom: 3px solid #ff6b00;
    position: sticky;
    top: 0;
    z-index: 999;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo a {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b00, #ff9a3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    transition: 0.3s;
}
nav ul li a:hover,
nav ul li a.active {
    background: #ff6b00;
    color: #fff;
}
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0d0d0d 60%, #1a1a1a);
    padding: 60px 50px;
    border-radius: 40px;
    margin: 40px 0;
    border: 1px solid #ff6b0033;
    flex-wrap: wrap;
    gap: 30px;
}
.hero-content {
    flex: 1;
    color: #fff;
}
.badge {
    background: #ff6b00;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}
.hero-content h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 15px;
}
.hero-content p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 25px;
    max-width: 500px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.btn {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}
.btn-primary {
    background: #ff6b00;
    color: #fff;
}
.btn-primary:hover {
    background: #e05e00;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}
.btn-outline {
    border: 2px solid #ff6b00;
    color: #ff6b00;
    background: transparent;
}
.btn-outline:hover {
    background: #ff6b00;
    color: #fff;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    filter: drop-shadow(0 10px 30px rgba(255, 107, 0, 0.2));
}
.services, .products, .projects, .about, .testimonials, .contact {
    margin: 60px 0;
}
h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}
.service-grid, .product-grid, .project-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}
.service-card, .product-card, .project-card, .testimonial-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}
.service-card:hover, .product-card:hover, .project-card:hover {
    transform: translateY(-12px);
    border-bottom-color: #ff6b00;
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.12);
}
.service-icon {
    font-size: 40px;
    margin-bottom: 10px;
}
.service-card h3, .product-card h3, .project-card h3 {
    font-size: 20px;
    color: #1a1a1a;
}
.service-card p, .product-card p, .project-card p {
    color: #666;
    font-size: 15px;
}
.product-card img, .project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 12px;
}
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}
.about-text {
    flex: 1;
}
.about-text h3 {
    color: #ff6b00;
    font-size: 24px;
    margin-bottom: 15px;
}
.about-text p {
    margin-bottom: 10px;
    color: #555;
}
.about-image {
    flex: 0.8;
    text-align: center;
}
.about-image img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 20px;
    border: 4px solid #ff6b00;
}
.testimonial-card {
    border-right: 4px solid #ff6b00;
    text-align: right;
}
.testimonial-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}
.testimonial-name {
    font-weight: 700;
    color: #ff6b00;
}
.contact-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.contact-info, .contact-form {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.contact-info h3, .contact-form h3 {
    color: #ff6b00;
    margin-bottom: 15px;
}
.contact-info p {
    margin: 10px 0;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: #ff6b00;
    outline: none;
}
.contact-form button {
    background: #ff6b00;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}
.contact-form button:hover {
    background: #e05e00;
}
.chat-box {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}
.chat-toggle {
    background: #ff6b00;
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.4);
    transition: 0.3s;
}
.chat-toggle:hover {
    transform: scale(1.1);
}
.chat-window {
    display: none;
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 300px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}
.chat-header {
    background: #0d0d0d;
    color: #ff6b00;
    padding: 15px;
    font-weight: 700;
    text-align: center;
}
.chat-body {
    padding: 15px;
    min-height: 150px;
    background: #f9f9f9;
}
.chat-body p {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    margin: 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}
.chat-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 30px;
    margin-left: 8px;
}
.chat-footer button {
    background: #ff6b00;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
}
footer {
    background: #0d0d0d;
    padding: 40px 0 20px;
    border-top: 3px solid #ff6b00;
    margin-top: 50px;
}
footer .footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}
footer h4 {
    color: #ff6b00;
    margin-bottom: 12px;
}
footer p, footer li {
    color: #aaa;
}
footer ul {
    list-style: none;
    padding: 0;
}
footer ul li {
    margin-bottom: 8px;
}
footer ul li a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}
footer ul li a:hover {
    color: #ff6b00;
}
footer .copyright {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    color: #555;
    margin-top: 30px;
}
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .hero-content h1 {
        font-size: 28px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .service-grid, .product-grid, .project-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .contact-content {
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    .service-grid, .product-grid, .project-grid {
        grid-template-columns: 1fr;
    }
    .chat-window {
        width: 250px;
        left: -20px;
    }
}
/* ====== پاپ‌آپ پروژه ====== */
.project-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}
.close-btn {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: 0.3s;
}
.close-btn:hover {
    color: #000;
}
#popup-body img,
#popup-body video {
    width: 100%;
    border-radius: 16px;
    margin-top: 10px;
}
#popup-body h3 {
    color: #ff6b00;
    margin-bottom: 10px;
}.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}
.project-card:hover {
    transform: scale(1.02);
}
/* ====== منوی کشویی ====== */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
    position: relative;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: 0.3s;
}

nav ul li a:hover {
    background: #ff6b00;
    color: #fff;
}

/* منوی سطح اول (محصولات) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    padding: 8px 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu li a {
    padding: 10px 20px;
    color: #eee;
    border-radius: 0;
}

.dropdown-menu li a:hover {
    background: #ff6b00;
    color: #fff;
}

/* منوی سطح دوم (زیرمجموعه‌ها) */
.sub-dropdown {
    position: relative;
}

.sub-dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    right: 100%;
    background: #1a1a1a;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    padding: 8px 0;
}

.sub-dropdown:hover .sub-dropdown-menu {
    display: block;
}

.sub-dropdown-menu li a {
    padding: 10px 20px;
    color: #eee;
}

.sub-dropdown-menu li a:hover {
    background: #ff6b00;
    color: #fff;
}