body {
margin:0;
font-family: 'Segoe UI', sans-serif;
background:var(--bg-color, #f5f7fa);
color:var(--text-color, #222);
}

/* theme variables */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --nav-bg: #222222;
    --nav-text: #ffffff;
    --primary-bg: #b30000;
    --secondary-bg: #555555;
}

.dark-theme {
    --bg-color: #181818;
    --text-color: #dddddd;
    --nav-bg: #121212;
    --nav-text: #ffffff;
    --primary-bg: #ff4d4d;
    --secondary-bg: #333333;
}


.container {
width:90%;
max-width:1100px;
margin:auto;
padding:40px 0;
}

.topbar {
background:linear-gradient(135deg,#111,#b30000);
color:white;
text-align:center;
padding:60px 20px;
}

nav {
background:var(--nav-bg, #111);
padding:15px 0;
position: sticky;
top: 0;
z-index: 1000;
}

/* make nav links container a positioning context so we can absolutely position the toggle */
.nav-links {
    display:flex;
    justify-content: center; /* center the links group */
    align-items: center;
    position: relative;
}

/* ensure the link group has spacing between items */
.nav-links .links {
    display: flex;
    gap: 30px;
}

.nav-links .links {
    display: flex;
    gap: 30px;
}

nav a {
color:var(--nav-text, white);
text-decoration:none;
font-weight:500;
}

nav a:hover {
color:#ff4d4d;
}

.hero-modern {
background:url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc') center/cover;
color:white;
text-align:center;
padding:100px 20px;
}

.btn-primary, .btn-secondary {
display:inline-block;
padding:10px 20px;
margin-top:15px;
background:var(--primary-bg, #b30000);
color:white;
text-decoration:none;
border-radius:5px;
}

.btn-secondary {
background:var(--secondary-bg, #222);
}

.features {
display:flex;
gap:20px;
text-align:center;
}

.feature-box {
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
flex:1;
}

.product-grid {
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
margin-top:30px;
}

.product-card {
background: white;
padding: 25px;
border-radius: 12px;
box-shadow: 0 8px 25px rgba(0,0,0,0.08);
transition: 0.4s ease;
}

.product-card:hover {
transform: translateY(-8px);
box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.filters {
text-align:center;
}

.filters button {
margin:5px;
padding:8px 15px;
border:none;
background:#111;
color:white;
cursor:pointer;
border-radius:5px;
}

.filters button:hover {
background:#b30000;
}

footer {
background:#111;
color:white;
text-align:center;
padding:20px;
margin-top:40px;
}

/* contact form card */
.contact-card {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 30px auto;
}

.contact-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card input,
.contact-card textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
}

.contact-card textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-card button {
    align-self: flex-end;
}

/* WhatsApp link in text */
.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

.whatsapp-link:hover {
    text-decoration: underline;
}

/* theme toggle button */
.theme-toggle {
    background: var(--nav-text, #ffffff);
    border: none;
    color: var(--nav-bg, #111);
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;

    /* fixed at the top-right corner of the page */
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100; /* above nav */
}

.theme-toggle:hover {
    background: var(--primary-bg, #b30000);
    color: #fff;
}

.hero-modern {
position: relative;
}

.hero-modern::before {
content: "";
position: absolute;
inset: 0;
background: rgba(0,0,0,0.6);
}

.hero-modern .container {
position: relative;
z-index: 2;
}

@media (max-width: 768px) {

.features {
flex-direction: column;
}

.nav-links {
flex-direction: column;
gap: 15px;
}

.hero-modern {
padding: 60px 20px;
}

}
