/* Reset & general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}
body {
    background-color: #1c1c1c;
    color: #e0e0e0;
    scroll-behavior: smooth;
    transition: background 0.3s, color 0.3s;
}

/* Dark mode toggle */
body.light-mode {
    background-color: #f0f0f0;
    color: #1c1c1c;
}

/* Header */
header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #2a2a2a;
    border-bottom: 1px solid #444;
    position: relative;
}
header h1 { font-size: 2.5rem; font-weight: bold; }
header p { color: #ccc; margin: 0.5rem 0 1rem 0; }

/* Language & dark mode switch */
.language-switch { margin: 1rem 0; }
.language-switch button {
    margin: 0 0.3rem;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 5px;
    background-color: #444;
    color: #e0e0e0;
    cursor: pointer;
    transition: 0.3s;
}
.language-switch button:hover { background-color: #666; }

/* Desktop nav */
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.main-nav ul li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #444;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}
.main-nav ul li a:hover { background-color: #666; }

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 2rem;
    right: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #e0e0e0;
}

/* Sidebar mobil */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -250px;
    width: 220px;
    height: 100%;
    background-color: #2a2a2a;
    padding-top: 5rem;
    transition: right 0.3s;
    z-index: 1000;
    border-left: 1px solid #444;
}
.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 1rem;
}
.mobile-nav ul li a {
    display: block;
    padding: 0.7rem 1rem;
    background-color: #444;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}
.mobile-nav ul li a:hover { background-color: #666; }

/* Sections */
.section { padding: 2rem 1rem; max-width: 1200px; margin: auto; }
.section h2 { font-size: 2rem; margin-bottom: 1rem; }
.section p, .section li { color: #ccc; }

/* Card sections */
.section-card {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    border: 1px solid #444;
    transition: transform 0.3s, box-shadow 0.3s;
}
.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

/* Product cards */
.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.product-card {
    background-color: #2a2a2a;
    border-radius: 15px;
    padding: 1.5rem;
    width: 260px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #444;
    opacity: 0;
    transform: translateY(20px);
}
.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.7);
}
.product-card h3 { margin: 1rem 0 0.5rem 0; }
.product-card p { margin-bottom: 1rem; font-weight: bold; color: #ddd; }

/* Buttons */
.buy-btn, .secondary-btn, form button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #444;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}
.buy-btn:hover, .secondary-btn:hover, form button:hover { background-color: #666; }

/* Tips sections */
.tips {
    background-color: #2a2a2a;
    border-radius: 12px;
    margin: 2rem 0;
    padding: 2rem;
    border: 1px solid #444;
}
.tips ul { list-style: disc; margin-left: 1.5rem; }
.tips ul li { margin-bottom: 0.7rem; line-height: 1.5; }

/* Forms */
form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
form input, form textarea { padding: 0.5rem; border-radius: 6px; border: 1px solid #555; background-color: #222; color: #e0e0e0; resize: vertical; }

/* Testimonials */
.testimonials { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.testimonial-card {
    background-color: #2a2a2a;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #444;
    max-width: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s;
}
.testimonial-card.visible { opacity: 1; transform: translateY(0); }

/* Newsletter */
.newsletter { text-align: center; margin: 2rem 0; }
.newsletter input { padding: 0.5rem; border-radius: 6px; border: 1px solid #555; background-color: #222; color: #e0e0e0; margin-right: 0.5rem; }
.newsletter button { padding: 0.5rem 1rem; }

/* Footer */
footer { text-align: center; padding: 2rem 1rem; background-color: #2a2a2a; border-top: 1px solid #444; margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .products { flex-direction: column; align-items: center; }
    .tips, .section-card { padding: 1rem; }
}