/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* Background Image for Entire Page */
body {
    background: url('images/heart_background.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

/* Black Sheet for Content */
.black-sheet {
    background: rgba(0, 0, 0, 0.8); /* Black with 80% opacity */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin: 2rem auto;
    max-width: 800px;
}

/* Header and Navigation */
header {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 5rem 1rem;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay specific to this section */
    color: white;
}

/* Section Styles */
section {
    padding: 2rem 1rem;
    color: white;
}

.project {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.6);
}

.publication {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.6);
}

.publication {
    margin-bottom: 1rem;
}
.publication h3 {
    font-size: 1.2rem;
    color: #007bff;
}
.publication p {
    font-size: 1rem;
    margin: 0.2rem 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }
	
    body {
        background-size: cover; /* Adjust for smaller screens */
		background-attachment: scroll; /* Prevents fixed background issues on mobile */
        height: auto; /* Allows content to dictate height */
        min-height: 100vh; /* Ensures at least the viewport height is covered */
    }

    #hero {
        padding: 2rem 1rem;
    }

    section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
	
    body {
        background-size: cover; /* Ensures full coverage */
        background-position: center top; /* Focuses the top of the image */
    }

    nav {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
    }

    #hero h1 {
        font-size: 1.5rem;
    }

    #hero p {
        font-size: 1rem;
    }

    section {
        padding: 1rem 0.5rem;
    }

    .project {
        padding: 0.5rem;
    }
}

/* Contact Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

form label {
    font-size: 1rem;
    font-weight: bold;
}

form input, form textarea, form button {
    font-size: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

form textarea {
    height: 150px; /* Adjust height for a larger message box */
    resize: vertical; /* Allow resizing vertically only */
}

form button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #0056b3;
}

/* Add spacing between the Send button and Homepage button */
.homepage-button {
    margin-top: 1.5rem; /* Adjust this value as needed */
}

.homepage-button a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
}