/* General styles for the website */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

/* Header layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;  /* Increased padding for better spacing */
    background-color: #fff;  /* White background */
    color: #333;  /* Dark text color for contrast */
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Soft shadow for a modern look */
    width: 100%;  /* Ensure the header spans the full width of the viewport */
    box-sizing: border-box;  /* Prevent padding from causing overflow */
}

/* Logo styling */
header .logo img {
    max-width: 180px;  /* Adjusted logo size to fit better */
    width: 100%;  /* Make logo responsive */
    height: auto;
}

/* Navigation styling */
header nav {
    max-width: 100%;  /* Prevent the navigation from exceeding the header width */
    overflow: hidden;  /* Hide any overflow in navigation */
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;  /* Increased gap between items for spacing */
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0;  /* Ensure no extra margins */
}

header nav ul li a {
    text-decoration: none;
    color: #333;  /* Dark color for contrast */
    font-weight: 600;  /* Slightly lighter than bold for a refined look */
    transition: color 0.3s ease-in-out;  /* Smooth color transition */
    font-size: 18px;  /* Larger font size for better readability */
    padding: 5px 0;  /* Added padding for spacing */
}

header nav ul li a#invest {
    color: #333;
}

header nav ul li a:hover {
    color: #f39c12;  /* Orange color on hover */
    transform: scale(1.05);  /* Slight scale effect on hover */
}

/* Optional: Prevent horizontal overflow */
body {
    overflow-x: hidden;  /* Prevent horizontal scrolling */
}

/* "Invest with us" button styling */
header .navbar .black-button {
    background-color: #000;  /* Black background */
    color: white;  /* White text color */
    padding: 15px 30px;  /* Adjust padding for button size */
    text-decoration: none;
    font-weight: bold;
    border-radius: 60px;  /* Rounded corners for the button */
    transition: background-color 0.3s;  /* Smooth transition for hover effect */
    display: flex;  /* Use flexbox to center text */
    justify-content: center;  /* Centers the text horizontally */
    align-items: center;  /* Centers the text vertically */
    font-size: 17px;  /* Text size */
    text-align: center;  /* Center the text inside the button */
    line-height: 1;  /* Ensures vertical text alignment */
}

header .navbar .black-button:hover {
    background-color: #555;  /* Darker shade on hover */
}



/* Menu button for mobile */
header .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: #333; /* Dark color for better visibility on white */
    cursor: pointer;
}

input {
    display: block;
}

/* Media queries for mobile responsiveness */
@media (max-width: 768px) {
    header nav ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: #fff; /* Ensure mobile menu has white background */
        padding: 10px;
        border-radius: 5px;
        width: 200px;
    }

    header .menu-toggle {
        display: block;
    }

    header nav ul.active {
        display: flex;
    }

    /* Make images responsive */
    img {
        max-width: 100%;  /* Ensure images are responsive */
        height: auto;
    }

    /* Hero Section adjustments for mobile */
    section.hero {
        padding: 40px 10px;  /* Less padding on small screens */
        text-align: center;
    }

    section.hero h1 {
        font-size: 28px; /* Adjust font size */
    }

    section.hero p {
        font-size: 16px; /* Adjust font size */
    }

    .invest-with-us .container {
        max-width: 100%; /* Adjust container width */
        padding: 20px;  /* Adjust padding for smaller screens */
    }
}
