/* Main CSS for KMS Pack */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3d2b1f;
    --secondary: #4CAF50;
    --accent: #d2a679;
    --bg-light: #f9f6f2;
    --text-dark: #2c2118;
    --transition: all 0.3s ease-in-out;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary);
}

.btn-design {
    background: var(--secondary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
}

.lang-switch a,
.btn-lang {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    border: 1px solid var(--primary);
    padding: 5px 15px;
    border-radius: 5px;
    transition: var(--transition);
}

.lang-switch a:hover,
.btn-lang:hover {
    background: var(--primary);
    color: white !important;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('hero_factory.png') center bottom/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

[dir="rtl"] .hero {
    text-align: right;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    margin-right: 15px;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.about-text h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.about-text ul {
    list-style: none;
}

.about-text li {
    margin-bottom: 10px;
    position: relative;
    padding-inline-start: 25px;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

[dir="rtl"] .about-text li::before {
    left: auto;
    right: 0;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Products Section */
.products {
    background-color: var(--primary);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.products h2 {
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    color: var(--text-dark) !important;
}

.product-card h3,
.product-card p,
.product-card .icon {
    color: var(--text-dark) !important;
}

.product-card:hover {
    background: white;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.menu-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--primary);
        transition: var(--transition);
    }

    /* Animation for hamburger */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
    }

    [dir="rtl"] .nav-links {
        left: auto;
        right: -100%;
    }

    .nav-links.active {
        display: flex !important;
        left: 0;
    }

    [dir="rtl"] .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero {
        background-position: center bottom;
        background-size: cover;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        margin-right: 0;
        width: 100%;
    }

    .about {
        padding: 60px 0;
    }

    .products {
        padding: 60px 0;
    }

    .about-text h2,
    .products h2 {
        font-size: 2rem;
    }
}