/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Header Styling */
.header {
    background-color: #222; /* changed from violet to black */
    color: white;
    padding: 15px 0;
    text-align: center;
}

.header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #00c853; /* green accent */
}

.navigation ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.navigation li {
    display: inline;
}

.navigation a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

.navigation a:hover {
    color: #00e676; /* lighter green on hover */
}

/* Search Bar Styling */
.search-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #00c853; /* green border */
    border-radius: 25px;
    padding: 10px 15px;
    width: 350px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.search-box i {
    font-size: 1.2rem;
    color: #00c853; /* green icon */
    margin-right: 10px;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
}

#suggestions {
    position: absolute;
    top: 50px;
    width: 350px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f4f4f4;
}

/* Prices Section */
.prices-section {
    padding: 50px 0;
    text-align: center;
}

/* Material Grid */
.material-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1100px;
    margin: auto;
}

/* Dark Mode Toggle Button */
#darkModeToggle {
    position: absolute;
    right: 20px;
    top: 15px;
    background-color: white;
    color: #222; /* black text in light mode */
    border: none;
    padding: 8px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

#darkModeToggle:hover {
    background-color: #ddd;
}

/* Material Box Styling */
.material-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.material-box i {
    font-size: 2rem;
    color: #00c853; /* green icon */
}

.material-box h3 {
    margin: 10px 0;
    font-size: 20px;
    color: #333;
}

.material-box p {
    font-size: 18px;
    color: #555;
    font-weight: bold;
}

/* Dark Mode */
.dark-mode .material-box h3,
.dark-mode .material-box p {
    color: white;
}

.dark-mode {
    background-color: #121212;
    color: white;
}

.dark-mode .features-section {
    background-color: #1e1e1e;
    color: white;
}

.dark-mode .material-box {
    background: #2c2c2c;
    color: white;
    box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.1);
}

.dark-mode .footer {
    background-color: #222;
}

.dark-mode #darkModeToggle {
    background-color: #444;
    color: white;
}

/* Hover Effect */
.material-box:hover {
    transform: translateY(-8px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    background: #f9f9f9;
}
