/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Keeps the original text color */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff; /* White text */
    line-height: 1.6;
    background-image: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)), url('https://upload.wikimedia.org/wikipedia/commons/5/5d/Molybdenite-3D-balls.png');
    background-size: 30%; /* Reduce the size of the image */
    background-repeat: no-repeat; /* Prevents tiling */
    background-position: center top; /* Position the image at the top center */
    background-attachment: fixed; /* Ensures the image stays in place while scrolling */
}

/* Header */
header {
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #121212; /* Slightly darker header */
    position: relative; /* Ensures the header stays above the background image */
    z-index: 2; /* Keeps the header on top */
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #bb86fc; /* Purple accent */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-left: auto; /* Pushes the nav to the right */
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #bb86fc; /* Purple accent on hover */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 150px 10%; /* Increased padding to avoid overlap */
    position: relative; /* Ensures the hero section stays above the background image */
    z-index: 1; /* Keeps the hero section on top */
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #b3b3b3; /* Light gray for secondary text */
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #bb86fc; /* Purple button */
    color: #121212; /* Dark text */
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #bb86fc; /* Purple border */
    color: #bb86fc; /* Purple text */
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
}

.btn-primary:hover {
    background-color: #9a67ea; /* Darker purple on hover */
}

.btn-secondary:hover {
    background-color: #bb86fc; /* Purple background on hover */
    color: #121212; /* Dark text on hover */
}

/* About - Home page */
.about-home {
    background-color: #000000;
    padding: 4rem 1rem;
}

.about-content-home {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* About Us Section - About page */
.about {
    padding: 60px 10%;
    background-color: #1E1E1E; /* Dark background */
    color: #FFFFFF; /* White text */
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #BB86FC; /* Purple accent */
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-content strong {
    color: #BB86FC; /* Purple accent */
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #121212; /* Slightly darker footer */
    margin-top: 100px;
    position: relative; /* Ensures the footer stays above the background image */
    z-index: 2; /* Keeps the footer on top */
}

footer p {
    font-size: 14px;
    color: #b3b3b3; /* Light gray text */
}

footer nav {
    margin-top: 10px;
}

footer nav a {
    color: #b3b3b3;
    text-decoration: none;
    margin: 0 10px;
}

footer nav a:hover {
    color: #bb86fc;
}

/* Mie Calculator Specific Styles */
.mie-calculator {
    padding: 20px;
    background-color: transparent; /* Transparent background */
    color: #ffffff; /* White text for contrast */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mie-calculator h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff; /* White text */
    font-weight: normal;
}

.mie-calculator form {
    background-color: transparent; /* Transparent background */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between rows */
    align-items: center;
    margin-bottom: 10px; /* Reduce space below the form */
    gap: 10px; /* Match spacing between rows */
}

/* First row: Material dropdown */
.mie-calculator .material-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px; /* Space between label and dropdown */
}

/* Second row: Sliders and value boxes */
.mie-calculator .inputs-row {
    display: flex;
    flex-direction: row;
    gap: 20px; /* Space between inputs */
    align-items: center;
}

.mie-calculator label {
    font-size: 0.9rem;
    color: #ffffff; /* White text */
    margin-bottom: 5px;
}

.mie-calculator input[type="range"],
.mie-calculator input[type="text"] {
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light border */
    border-radius: 3px;
    background-color: transparent; /* Transparent background */
    color: #ffffff; /* White text */
    font-size: 0.9rem;
    outline: none;
}

/* Make value boxes narrower */
.mie-calculator input[type="text"] {
    width: 60px; /* Half of the original width */
}

.mie-calculator input[type="range"] {
    -webkit-appearance: none; /* Remove default styling */
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2); /* Light slider track */
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mie-calculator input[type="range"]:hover {
    opacity: 1; /* Fully opaque on hover */
}

.mie-calculator input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Remove default styling */
    appearance: none;
    width: 12px;
    height: 12px;
    background: #ffffff; /* White thumb */
    border-radius: 50%;
    cursor: pointer;
}

.mie-calculator input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ffffff; /* White thumb */
    border-radius: 50%;
    cursor: pointer;
}

.mie-calculator select {
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light border */
    border-radius: 3px;
    background-color: transparent; /* Transparent background */
    color: #ffffff; /* White text */
    font-size: 0.9rem;
    outline: none;
}

.mie-calculator select option {
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light border */
    border-radius: 3px;
    background-color: #1E1E1E; /* Not transparent background override for Windows*/
    color: #ffffff; /* White text */
    font-size: 0.9rem;
    outline: none;
}

.mie-calculator .results {
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}
