* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* Header Styles */
.header {
    background: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e5e5;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo img {
    height: clamp(40px, 6vh, 50px);
    max-width: clamp(150px, 25vw, 200px);
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: clamp(15px, 2.5vw, 30px);
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(14px, 1.8vw, 16px);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #e74c3c;
}

.main-nav a.active {
    color: #c0392b;
    border-bottom: 2px solid #c0392b;
}

.language-selector select {
    padding: clamp(6px, 1.2vw, 8px) clamp(10px, 1.8vw, 12px);
    font-size: clamp(13px, 1.8vw, 14px);
    border: 2px solid #d4d4d4;
    background: #ffffff;
    color: #333333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    background: #f5f5f5;
    border-color: #999999;
}

.language-selector select option {
    background: #ffffff;
    color: #333333;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
    padding: clamp(60px, 10vh, 100px) 5vw;
    text-align: center;
    color: #ffffff;
    border-bottom: 3px solid #a93226;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(16px, 3vw, 24px);
    font-weight: 300;
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Company Intro Section */
.company-intro {
    background: #ffffff;
    padding: clamp(40px, 8vh, 80px) 5vw;
    border-bottom: 1px solid #e5e5e5;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-content > p {
    text-align: center;
    font-size: clamp(16px, 2.2vw, 18px);
    line-height: 1.8;
    color: #333;
    margin-bottom: clamp(40px, 6vh, 60px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(25px, 3.5vw, 40px);
    margin-bottom: clamp(40px, 6vh, 60px);
}

.stat-item {
    text-align: center;
    padding: clamp(25px, 4vw, 35px);
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.5);
}

.stat-number {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: clamp(10px, 1.5vh, 15px);
}

.stat-label {
    font-size: clamp(14px, 1.8vw, 16px);
    color: #ffffff;
    font-weight: 500;
    opacity: 0.95;
}

.quality-promise {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: clamp(30px, 5vh, 50px);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(192, 57, 43, 0.4);
    border: 2px solid #a93226;
}

.quality-promise h3 {
    font-size: clamp(20px, 3.2vw, 28px);
    color: #ffffff;
    margin-bottom: clamp(15px, 2.5vh, 20px);
    font-weight: 700;
}

.quality-promise p {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #ffffff;
    line-height: 1.6;
    font-weight: 500;
}

/* Why Choose Us Section */
.why-choose-section {
    background: #f8f9fa;
    padding: clamp(40px, 8vh, 80px) 5vw;
    border-top: 1px solid #e5e5e5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.5vw, 28px);
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: #ffffff;
    padding: clamp(18px, 2.8vw, 28px);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.feature-icon {
    font-size: clamp(36px, 5vw, 48px);
    margin-bottom: clamp(12px, 2vw, 16px);
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-card h3 {
    font-size: clamp(17px, 2.5vw, 20px);
    color: #1a1a1a;
    margin-bottom: clamp(10px, 1.5vw, 14px);
    font-weight: 700;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: clamp(13px, 1.6vw, 15px);
}

/* Certifications Section */
.certifications-section {
    background: #ffffff;
    padding: clamp(40px, 8vh, 80px) 5vw;
    border-top: 1px solid #e5e5e5;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(12px, 1.5vw, 18px);
    margin: clamp(30px, 5vh, 50px) auto;
    max-width: 1400px;
}

.cert-card {
    background: #f8f9fa;
    padding: clamp(15px, 2vw, 20px);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.cert-icon {
    margin-bottom: clamp(8px, 1.2vw, 12px);
    display: flex;
    justify-content: center;
}

.cert-icon svg {
    width: clamp(40px, 5vw, 50px) !important;
    height: clamp(40px, 5vw, 50px) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cert-card h3 {
    font-size: clamp(14px, 1.8vw, 16px);
    color: #1a1a1a;
    margin-bottom: clamp(6px, 1vw, 8px);
    font-weight: 700;
}

.cert-card p {
    color: #666;
    font-size: clamp(11px, 1.3vw, 13px);
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.factory-location {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
    padding: clamp(30px, 5vh, 50px);
    border-radius: 15px;
    text-align: center;
    color: #ffffff;
    margin-top: clamp(40px, 6vh, 60px);
    box-shadow: 0 5px 25px rgba(192, 57, 43, 0.3);
}

.factory-location h3 {
    font-size: clamp(22px, 3.5vw, 28px);
    margin-bottom: clamp(15px, 2vw, 20px);
    font-weight: 700;
}

.factory-location p {
    font-size: clamp(14px, 2vw, 18px);
    opacity: 0.95;
    margin-bottom: clamp(25px, 4vh, 35px);
}

.global-offices {
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(20px, 3vw, 30px);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.global-offices h4 {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: clamp(15px, 2vw, 20px);
}

.global-offices ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(12px, 2vw, 16px);
    text-align: left;
}

.global-offices li {
    font-size: clamp(13px, 1.8vw, 16px);
    padding: clamp(8px, 1.2vw, 12px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Projects Showcase */
.projects-showcase {
    background: #f8f9fa;
    padding: clamp(40px, 8vh, 80px) 5vw;
    border-top: 1px solid #e5e5e5;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(25px, 3.5vw, 35px);
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: #ffffff;
    padding: clamp(25px, 4vw, 35px);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.project-flag {
    font-size: clamp(40px, 6vw, 56px);
    margin-bottom: clamp(15px, 2vw, 20px);
}

.project-card h3 {
    font-size: clamp(16px, 2.3vw, 20px);
    color: #1a1a1a;
    margin-bottom: clamp(10px, 1.5vw, 15px);
    font-weight: 700;
    line-height: 1.4;
}

.project-card p {
    color: #666;
    font-size: clamp(13px, 1.6vw, 15px);
    line-height: 1.6;
}

/* Catalogs Section */
.catalogs-section {
    background: #ffffff;
    padding: clamp(40px, 8vh, 80px) 5vw;
    border-top: 1px solid #e5e5e5;
}

.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(25px, 3.5vw, 35px);
    max-width: 1400px;
    margin: 0 auto;
}

.catalog-card {
    background: #f8f9fa;
    padding: clamp(30px, 4.5vw, 40px);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
    background: #ffffff;
}

.catalog-icon {
    font-size: clamp(48px, 7vw, 64px);
    margin-bottom: clamp(15px, 2.5vw, 20px);
}

.catalog-card h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    color: #c0392b;
    margin-bottom: clamp(12px, 2vw, 16px);
    font-weight: 700;
}

.catalog-card p {
    color: #666;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.6;
    margin-bottom: clamp(20px, 3vh, 25px);
}

.catalog-download {
    display: inline-block;
    padding: clamp(10px, 1.5vw, 12px) clamp(20px, 3vw, 30px);
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: clamp(14px, 1.8vw, 16px);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.catalog-download:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.5);
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

/* Section Styles */
.products-section,
.services-section,
.contact-section {
    padding: clamp(40px, 8vh, 80px) 5vw;
}

.section-title {
    text-align: center;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: clamp(30px, 5vh, 50px);
    color: #c0392b;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 2px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(20px, 3vw, 30px);
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: clamp(150px, 20vh, 200px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    padding: clamp(15px, 2.5vw, 20px) clamp(15px, 2.5vw, 20px) clamp(8px, 1.5vw, 10px);
    font-size: clamp(18px, 3vw, 24px);
    color: #1a1a1a;
}

.product-card p {
    padding: 0 clamp(15px, 2.5vw, 20px) clamp(15px, 2.5vw, 20px);
    color: #666;
    line-height: 1.6;
    font-size: clamp(14px, 1.8vw, 16px);
    flex-grow: 1;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(20px, 3vw, 30px);
    max-width: 1400px;
    margin: 0 auto;
}

.service-item {
    text-align: center;
    padding: clamp(25px, 4vw, 40px) clamp(15px, 2.5vw, 20px);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: clamp(36px, 6vw, 48px);
    margin-bottom: clamp(15px, 2.5vw, 20px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon svg {
    width: clamp(40px, 6vw, 60px);
    height: clamp(40px, 6vw, 60px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.service-item h3 {
    font-size: clamp(18px, 2.8vw, 22px);
    margin-bottom: clamp(10px, 2vw, 15px);
    color: #1a1a1a;
}

.service-item p {
    color: #666;
    line-height: 1.6;
    font-size: clamp(14px, 1.8vw, 16px);
}

/* Contact Section */
.contact-section {
    background: #f9f9f9;
    flex: 1;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(25px, 4vw, 40px);
    margin-top: clamp(30px, 4vh, 40px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    text-align: center;
    padding: clamp(20px, 3.5vw, 30px);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: clamp(10px, 2vw, 15px);
    color: #1a1a1a;
}

.contact-item p {
    color: #666;
    font-size: clamp(14px, 1.8vw, 16px);
}

/* Footer */
.footer {
    background: #f8f9fa;
    color: #666666;
    padding: clamp(20px, 3vh, 30px) 5vw;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
}

.footer p {
    font-size: clamp(12px, 1.5vw, 14px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 10px 5vw;
    }

    .main-nav ul {
        gap: 10px;
        padding: 0;
    }

    .products-grid,
    .services-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* RTL Support */
[lang="ar"], [lang="fa"] {
    direction: rtl;
}

[lang="ar"] .header .container,
[lang="fa"] .header .container {
    flex-direction: row-reverse;
}

[lang="ar"] .main-nav ul,
[lang="fa"] .main-nav ul {
    flex-direction: row-reverse;
}
