* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Vazir', sans-serif;
            line-height: 1.6;
            overflow-x: hidden;
            background: #f8f9fa;
            color: #333;
            direction: rtl; /* Ensure RTL for the entire body */
        }

        /* Floating particles background */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(52, 73, 94, 0.1);
            border-radius: 50%;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(180deg); }
        }

        /* Header */
        .header {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            transition: all 0.3s ease;
            padding: 0.5rem 1rem; /* Adjusted padding for better mobile fit */
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 1rem; /* Adjusted padding */
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 700;
            color: #2c3e50;
            text-decoration: none;
        }

        .logo i {
            margin-left: 0.5rem;
            color: #1a365d;
            font-size: 2rem;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 1rem; /* Reduced gap for better fit */
        }

        .nav-menu a {
            text-decoration: none;
            color: #2c3e50;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            padding: 0.3rem 0.8rem; /* Adjusted padding */
            border-radius: 25px;
            font-size: 0.9rem; /* Slightly reduced font size */
            white-space: nowrap; /* Prevent text wrapping */
        }

        .nav-menu a:hover {
            color: #1a365d;
            background: rgba(26, 54, 93, 0.1);
            transform: translateY(-2px);
        }

        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 0.5rem;
        }

        .mobile-menu-toggle span {
            width: 25px;
            height: 3px;
            background: #2c3e50;
            margin: 3px 0;
            transition: 0.3s;
            border-radius: 2px;
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
            animation: wave 20s ease-in-out infinite;
        }

        @keyframes wave {
            0%, 100% { transform: translateX(0%); }
            50% { transform: translateX(-50px); }
        }

        .hero-content {
            z-index: 2;
            color: white;
            max-width: 800px;
            padding: 2rem;
        }

        /* Hero Section */
        .hero h1 {
            font-size: 4rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            animation: fadeInUp 1s ease;
            white-space: nowrap; /* Prevent text wrapping */
        }

        .hero p {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            opacity: 0.9;
            animation: fadeInUp 1s ease 0.3s both;
        }

        .cta-button {
            display: inline-block;
            padding: 1rem 2rem;
            background: linear-gradient(45deg, #2c5282, #1a365d);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 8px 25px rgba(44, 82, 130, 0.3);
            animation: fadeInUp 1s ease 0.6s both;
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(44, 82, 130, 0.4);
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Products Section */
        .products {
            padding: 5rem 2rem;
            background: white;
            position: relative;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem; /* Added horizontal padding for all containers */
        }

        .section-title {
            text-align: center;
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 3rem;
            color: #2c3e50;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(45deg, #2c5282, #1a365d);
            border-radius: 2px;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 4rem;
        }

        .product-card {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .product-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #2c5282, #1a365d);
            opacity: 0;
            transition: all 0.3s ease;
        }

        .product-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
        }

        .product-card:hover::before {
            opacity: 0.95;
        }

        .product-card:hover .product-content {
            color: white;
            z-index: 2;
            position: relative;
        }

        .product-icon {
            font-size: 4rem;
            color: #2c5282;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
        }

        .product-card:hover .product-icon {
            color: white;
            transform: scale(1.1);
        }

        .product-content h3 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #2c3e50;
            transition: all 0.3s ease;
        }

        .product-content p {
            color: #7f8c8d;
            line-height: 1.6;
            transition: all 0.3s ease;
        }

        /* Stats Section */
        .stats {
            background: linear-gradient(135deg, #2c3e50, #34495e);
            padding: 4rem 2rem;
            color: white;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            text-align: center;
        }

        .stat-item {
            padding: 1rem;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            color: #f7fafc;
            display: block;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        /* Footer */
        .footer {
            background: #2c3e50;
            color: white;
            padding: 3rem 2rem 1rem;
            margin-top: 5rem; /* Added margin-top to separate from content above */
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .footer-section h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: #cbd5e0;
        }

        .footer-section p,
        .footer-section a {
            color: #bdc3c7;
            text-decoration: none;
            line-height: 1.8;
            transition: color 0.3s ease;
        }

        .footer-section a:hover {
            color: #cbd5e0;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            background: #34495e;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            background: #4a5568;
            transform: translateY(-3px);
        }

        .footer-bottom {
            text-align: center;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid #34495e;
            color: #95a5a6;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-menu {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 60px; /* Adjust based on header height */
                right: 0;
                width: 100%;
                background: rgba(255, 255, 255, 0.98);
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
                padding: 1rem;
                text-align: center;
            }

            .nav-menu.active {
                display: flex;
            }

            .nav-menu li {
                margin: 0.5rem 0;
            }

            .nav-menu a {
                font-size: 1rem; /* Restore normal size for mobile menu items */
                padding: 0.7rem 1.5rem;
            }
            .hero h1 {
                font-size: 2.2rem; /* Adjusted for smaller screens */
                white-space: normal; /* Allow wrapping on very small screens if necessary, but with smaller font it should usually fit */
            }

            .hero p {
                font-size: 1.1rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .header-content {
                padding: 1rem;
            }

            /* Adjust content padding to avoid collision with header */
            .products, .stats, .about, .news, .contact-section, .customers-section, .recruitment-section {
                padding-top: 100px; /* Adjust based on header height */
            }

            /* For pages other than index, adjust top padding on main content */
            .main-content-area {
                padding-top: 100px !important;
            }

            .about-content, .news-content, .customers-list, .recruitment-content, .contact-content {
                padding: 0 1rem; /* Ensure padding for mobile view */
                max-width: 100%;
                margin: 0 auto; /* Center content */
            }

            .map-responsive iframe {
                width: 100%;
                height: 300px; /* Adjust height for mobile maps */
            }
        }

        /* Scroll animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Pop-up styles */
        .popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .popup.active {
            opacity: 1;
            visibility: visible;
        }

        /* Pop-up styles */
        .popup-content {
            background: white;
            padding: 1.5rem; /* Slightly reduced padding */
            border-radius: 20px;
            text-align: center;
            max-width: 500px;
            width: 90%;
            position: relative;
            transform: scale(0.8);
            transition: all 0.3s ease;
            max-height: 90vh; /* Limit max height */
            overflow-y: auto; /* Enable scrolling if content exceeds max-height */
        }
        .popup.active .popup-content {
            transform: scale(1);
        }

        .popup-close {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 2rem;
            cursor: pointer;
            color: #7f8c8d;
            transition: color 0.3s ease;
        }

        .popup-close:hover {
            color: #e74c3c;
        }

        .popup-mini {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(45deg, #2c5282, #1a365d);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(44, 82, 130, 0.3);
            transition: all 0.3s ease;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
        }

        .popup-mini.active {
            opacity: 1;
            visibility: visible;
        }

        .popup-mini:hover {
            transform: scale(1.1);
        }

        .popup-mini i {
            color: white;
            font-size: 2rem;
        }
        .about {
            margin: 130px 0;
        }
        /* New sections padding to avoid header overlap */
        .news, .customers, .recruitment {
            padding: 5rem 2rem;
            background: white;
            position: relative;
        }
        /* For products-pdf-section specifically, ensure it doesn't push footer too much */
.products-pdf-section {
    padding-top: 100px;
    height: calc(100vh - 100px); /* Adjusted height to consider only header, assuming footer margin will push content down */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top */
    align-items: center; /* Center horizontally */
}

.products-pdf-section .container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px; /* Ensure container respects max-width */
}

.products-pdf-section iframe {
    flex-grow: 1;
    min-height: 500px; /* Ensure a minimum height for the PDF viewer */
}

@media (max-width: 768px) {
    .products-pdf-section {
        height: auto; /* Allow height to adjust on mobile */
        min-height: 80vh; /* Minimum height for PDF section on mobile */
    }
    .products-pdf-section iframe {
        min-height: 400px; /* Smaller minimum height for PDF on mobile */
    }
}
@media (max-width: 768px) {
    /* Existing mobile styles in index.css will handle header and content padding */
    .popup-content {
        padding: 1rem; /* Further reduced padding for mobile */
        max-width: 95%; /* Use more width on small screens */
        max-height: 80vh; /* Limit max height for mobile popups */
    }
}
@media (max-width: 480px) { /* Even smaller screens */
    .hero h1 {
        font-size: 1.8rem; /* Further adjustment for very small screens */
    }
}
