/* General Reset */
body, h1, h2, p, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    background-color: #1d3557; /* Ensure the header matches the navigation bar color */
    color: #f1faee;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #f1faee;
}

.header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.header .logo img {
    margin-right: 0.5rem;
    height: 35px;
}

/* General Navigation Styles */
.nav {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    background-color: #1d3557; /* Dark blue */
    transition: all 0.3s ease-in-out;
}

/* Navigation List */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: 1rem 1.5rem;
    color: #f1faee;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.nav-list a:hover {
    background-color: #457b9d; /* Lighter blue */
    color: #fff;
}

/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #f1faee;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
}

/* Mobile Navigation */

@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Place the menu directly below the header */
        right: 0; /* Align the menu to the right side of the screen */
        width: 100%; /* Make the menu 35% of the screen width */
        background-color: #1d3557; /* Match the header color */
        box-shadow: -2px 0 6px rgba(0, 0, 0, 0.3); /* Add a subtle shadow on the left */
        z-index: 1000;
        border-radius: 0 0 10px 10px; /* Add rounded corners to the bottom of the menu */
    }

    .nav.open {
        display: flex; /* Show the menu when toggled */
    }

    .nav-list {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .nav-list a {
        display: block;
        padding: 1rem;
        color: #f1faee;
        text-align: center;
        border-bottom: 1px solid #f1faee;
        text-transform: uppercase;
        font-size: 1rem;
        font-weight: bold;
    }

    .nav-list a:last-child {
        border-bottom: none; /* Remove the border for the last item */
    }

    .nav-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    color: #f1faee;
    text-align: center;
    padding: 5rem 0;
    margin-top: 80px;
    background-color: #e3f2fd; /* Light blue background */
}

.hero .text-box {
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent gray background */
    padding: 1.5rem 2rem;
    border: 1px solid #ddd; /* Light gray border */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    max-width: 600px; /* Limit the width */
    margin: 0 auto; /* Center horizontally */
    text-align: center; /* Center text */
}

.hero h2 {
    font-size: 2.5rem;
}

.hero p {
    margin: 0 0 1.5rem;
    color: #333;
    font-size: 1.2rem;
}

.hero .btn {
    display: inline-block;
    background: #e63946;
    color: #f1faee;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.hero .btn:hover {
    background: #a8dadc;
    transform: scale(1.05);
}

.hero .btn:active {
    transform: scale(1);
}

/* About Section */
.about {
    background-color: #fef7e7; /* Light yellow background */
}

/* Features Section */
.features {
    background-color: #e8f5e9; /* Light green background */
}

/* Download Section */
.download {
    background-color: #fff3e0; /* Light orange background */
}

/* Community Section */
.community {
    background-color: #ede7f6; /* Light purple background */

}

/* Vote Section */
.vote {
    background-color: #f5f5f5; /* Light orange background */
}


/* Section Styles */
section {
    padding: 4rem 0;
    text-align: center;
}

section h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #1d3557;
}

.about p {
    max-width: 700px;
    margin: 0 auto;
    color: #457b9d;
}

.features ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    color: #457b9d;
}

.features li {
    background: #f1faee;
    padding: 1rem 2rem;
    border: 1px solid #457b9d;
    border-radius: 5px;
}

/* Download Section */
.download p {
    margin-bottom: 1.5rem;
}

.download .btn {
    display: inline-block;
    background: #457b9d;
    color: #f1faee;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.download .btn:hover {
    background: #1d3557;
    transform: scale(1.05);
}

/* Community Section */
.community .btn {
    display: inline-block;
    background: #e63946;
    color: #f1faee;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.community .btn:hover {
    background: #a8dadc;
    transform: scale(1.05);
}

.community .btn:active {
    transform: scale(1);
}

/* Vote Section */
.vote .btn {
    display: inline-block;
    background: #e63946;
    color: #f1faee;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.vote .btn:hover {
    background: #a8dadc;
    transform: scale(1.05);
}

.vote .btn:active {
    transform: scale(1);
}

.vote p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

.vote h3 {
    font-size: 1.2rem;
    color: #1d3557;
    font-weight: bold;
    margin-bottom: 1rem;
}

.vote label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    color: #1d3557;
}

.vote input[type="text"] {
    width: 100%; /* Make the input box full width */
    max-width: 400px; /* Restrict maximum width */
    padding: 0.8rem;
    margin: 0 auto 1.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    display: block; /* Center the input */
}

/* Footer */
.footer {
    background: #1d3557;
    color: #f1faee;
    text-align: center;
    padding: 1rem 0;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-nav a {
    color: #f1faee;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #a8dadc;
}
