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

body {
    font-family: "Jost", sans-serif;
    font-style: normal;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}
header {
    background-color: #121d46;
    font-family: "Reddit Mono", monospace;
    font-style: normal;
    color: #fff;
    padding: 1em 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Container to center content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1em;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    position: relative;
    z-index: 1; /* Ensures that the content is above the background image */
    height: 100%; /* Ensure the container takes the full height of the header */
    flex-direction: column; /* Column direction for top-left and bottom-right alignment */
}

/* Header styling */
header {
    background-image: url('header_background.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    padding: 1em 0; /* Adjust padding as needed */
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items:flex-start;
    justify-content: space-between;
    flex-direction: column; /* Column direction for top-left and bottom-right alignment */
}

/* Adding a semi-transparent overlay for better text readability */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed */
    z-index: 0;
}

/* Logo styling */

.logo {
    font-size: 6em;
    font-weight: 500;
    margin: 0;
    align-self: flex-start; /* Align the logo to the top-left */
    padding: 1em; /* Add some padding around the logo */
}
.logo h2{
    font-size: 2em;
}

.quote{
    background-color: #be3f0481;
    font-size: 2em;
    margin: 0;
    padding: 0.25em;
    width:auto;

}



/* Navigation styling */
nav {
    align-self: flex-end; /* Align the nav to the bottom-right */
    margin-bottom: 1em; /* Add some margin to the bottom of the nav */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0;
}

nav ul li {
    margin-left: 1.5em;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(87, 87, 87, 0.7); /* Semi-transparent background */
    color: #fff;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center; /* Center align items for smaller screens */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5em 0;
    }
}

section {
    padding: 2em;
    background-color: #fff;
    margin: 1em 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.about-section {
    padding: 4em 0;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
}

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

.about-section h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #333;
}

.about-section p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 1.5em;
    color: #666;
}


footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

#about {
    background-color: #e2e2e2;
    text-align: center;
}

#about h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

#about p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

#portfolio {
    text-align: center;
}

#portfolio h2 {
    font-size: 2em;
    margin-bottom: 1em;
}

.project {
    background-color: #fff;
    margin: 1em auto;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    text-align: left;
}

.project h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.project p {
    font-size: 1.1em;
}

#contact {
    background-color: #e2e2e2;
    text-align: center;
}

#contact h2 {
    font-size: 2em;
    margin-bottom: 1em;
}

form {
    max-width: 600px;
    margin: 0 auto;
    padding: 1em;
    background-color: #ffffffa2;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

form input[type="text"]
{
    width: 100%;
    padding: 0.5em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}
form input[type="email"] 
{
    width: 60%;
    padding: 0.5em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form input[type="submit"] {
    background-color: #333;
    color: #fff;
    padding: 0.5em 2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form input[type="submit"]:hover {
    background-color: #575757;
}

#submit_button{
    font-size: 20px;
    margin: 10px 30px;
    cursor: pointer;
    padding: 14px 40px;
    background-color: rgb(39, 47, 57);
    color:rgb(224, 233, 231);
    border-color: rgb(26, 24, 24);
    box-shadow: 10px 5px 5px rgb(17, 16, 16);
    font-family: 'Rowdies', cursive;
}

#message{
    width: 60%;
    height: 150px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    }

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0.5em 0;
    }

    section {
        padding: 1em;
        margin: 0.5em 0;
    }

    .project {
        margin: 0.5em auto;
        padding: 0.5em;
    }

    form {
        padding: 0.5em;
    }

    form input[type="submit"] {
        padding: 0.5em 1em;
    }
}
