/* General Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745; /* Green for highlights */
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --gray-color: #6c757d;
    --font-family: 'Arial', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
    color: var(--dark-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
    padding: 0;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* Header */
.header {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo .rif {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.nav a {
    color: var(--white-color);
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.lang-btn {
    background: none;
    border: 1px solid var(--white-color);
    color: var(--white-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.lang-btn:hover {
    background: var(--white-color);
    color: var(--dark-color);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
    padding-top: 80px; /* Adjust for fixed header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("new_hero_bg.png") no-repeat center center/cover;
    filter: blur(5px); /* Initial blur */
    transform: scale(1.05); /* Counteract blur edge effect */
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-color); /* Green color */
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 10px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white-color);
    border-radius: 15px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--white-color);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-animation 1.5s infinite;
}

@keyframes scroll-animation {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* Section General Styles */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.4rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--dark-color);
    max-width: 800px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--white-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card .card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.about-card p {
    font-size: 1rem;
    color: var(--gray-color);
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: #e9ecef;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card .card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.product-card p {
    font-size: 1rem;
    color: var(--gray-color);
}

.coming-soon {
    text-align: center;
    padding: 40px;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.coming-soon h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.coming-soon p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 30px;
}

/* Raw Materials Section */
.raw-materials {
    padding: 80px 0;
    background-color: var(--white-color);
}

.featured-product {
    background: #f0f8ff; /* Light blue background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 50px;
    text-align: center;
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.featured-header i {
    font-size: 2.5rem;
    margin-right: 15px;
}

.featured-header span {
    font-size: 1.8rem;
    font-weight: bold;
}

.featured-content h3 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.featured-content p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.detail-item {
    background: var(--white-color);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    font-size: 1rem;
    color: var(--dark-color);
    text-align: left;
}

.detail-item strong {
    color: var(--primary-color);
}

.product-actions .btn {
    margin: 10px;
}

.other-raw-materials h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 40px;
}

.raw-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.material-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.material-card:hover {
    transform: translateY(-10px);
}

.material-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.material-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.material-card p {
    font-size: 0.95rem;
    color: var(--gray-color);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.info-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.contact-form {
    flex: 2;
    min-width: 400px;
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Ensure padding doesn't increase width */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: var(--white-color);
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
}

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.popup-content h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
}

.popup-content p {
    color: var(--gray-color);
    margin-bottom: 25px;
}

.popup-content .form-group {
    text-align: left;
}

.popup-content .btn {
    width: 100%;
    margin-top: 15px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-color);
}

.close-btn:hover {
    color: var(--dark-color);
}

/* Offer Popup Specific Styles */
.offer-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.offer-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.offer-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background: var(--dark-color);
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .header .nav.active {
        display: flex;
    }

    .header .nav a,
    .header .lang-btn {
        margin: 10px 0;
        text-align: center;
    }

    .menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .about-grid,
    .products-grid,
    .raw-materials-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-form,
    .contact-info {
        min-width: unset;
        width: 100%;
    }

    .footer-nav a {
        display: block;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .featured-header i {
        font-size: 2rem;
    }

    .featured-header span {
        font-size: 1.5rem;
    }

    .featured-content h3 {
        font-size: 1.8rem;
    }

    .detail-item {
        padding: 10px 15px;
    }

    .offer-icon {
        font-size: 3rem;
    }

    .offer-text {
        font-size: 1.2rem;
    }
}

