body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal overflow */
    font-family: Arial, sans-serif;
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(1, 17, 167, 0.9);
    color: rgb(255, 255, 255);
    display: flex;
    justify-content: space-between; /* Space between the logo and the menu */
    align-items: center;
    padding: 30px 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between; /* Ensure space between logo and menu */
    align-items: center;
    width: 100%;
    padding: 0 80px; /* Add padding to the left and right */
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

nav .menu {
    display: flex;
    gap: 20px;
}

nav .menu-item {
    cursor: pointer;
}

nav .menu-item a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
}

nav .menu-item a.active {
    background-color: rgba(255, 255, 255, 0.3);
}

nav .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

nav .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

.hero {
    background-image: url('dougbg.png'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 60px 20px; /* Adjust padding for fixed header */
    overflow: hidden; /* Ensures overflow is hidden */
    width: 100%;
    box-sizing: border-box; /* Ensure padding is included in the element's width and height */
}

.hero-content {
    padding: 20px;
    border-radius: 10px;
    color: rgb(255, 255, 255);
    max-width: 300px; /* Adjust width as needed */
    margin-right: 20px; /* Adjust margin to keep it off the edge */
    text-align: left; /* Align text to the right */
    box-sizing: border-box; /* Ensure padding is included in the element's width and height */
}

.hero h1 {
    color:rgba(1, 17, 167, 0.9);
    font-size: 3em;
    margin: 0;
}

.hero p {
    color: black; /* Change the paragraph text color to black */
    font-size: 1.2em;
    margin: 10px 0;
}

.hero button {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 5px;
}

@media (max-width: 1200px) {
    .hero-content {
        margin-right: 20px; /* Adjust margin for smaller screens */
    }
}

@media (max-width: 400px) {
        .hero {
            background-image: none;
        }
        
        nav .menu.active {
        top: 90px;
        }
        
        .logo {
            font-size: 1em;
        }

        .hero h1 {
            color:rgba(1, 17, 167, 0.9);
            font-size: 2.5em;
            margin: 0;
        }
    }

@media (max-width: 768px) {
    
    nav .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(1, 17, 167, 0.9);
        position: absolute;
        top: 115px;
        left: 0;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav .menu.active {
        display: flex;
    }

    nav .hamburger {
        display: flex;
    }

    nav .menu-item {
        padding: 10px 0;
    }

    nav .menu-item:first-child {
        border-top: none;
    }

    .hero {
        padding-right: 20px; /* Adjust padding for smaller screens */
        padding-top: 60px; /* Adjust for fixed header */
        justify-content: center; /* Center content on smaller screens */
    }

    .hero-content {
        max-width: 90%;
        text-align: center; /* Center text on smaller screens */
    }
}

@media (min-width: 1200px) {
    .hero {
        justify-content: flex-end; /* Align content to the right */
    }

    .hero-content {
        max-width: 40%; /* Adjust width as needed for larger screens */
        margin-right: 10%; /* Adjust margin to position content center-right */
        text-align: left; /* Keep text aligned to the right */
    }
    
    .hero p{
        color: black;
    }
}

footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-form {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.contact-form h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
}

.contact-form button {
    width: 100px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #01a7ff;
    color: white;
    cursor: pointer;
    font-size: 1em;
    align-self: center; /* Center the button horizontally */
}

.contact-form button:hover {
    background-color: #008cba;
}

.footer-content p {
    margin: 0;
    padding: 5px;
}

.footer-content .youtube-link {
    margin-top: 10px;
}

.footer-content .youtube-icon {
    width: 30px;
    height: 30px;
}

@media (max-width: 768px) {
    
    .footer-content {
        padding: 10px;
    }

    .contact-form {
        width: 80%;
    }
}
