/* Main Style Sheet */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 20px;
    /* Add padding to the left and right */
    line-height: 1.6;

    /* Use the image as a background */
    background:
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('Images/White-Texture.jpg');
    /* Replace with your image path */
    background-size: cover;
}

header {
    padding: 10px 20px;
    text-align: center;
}

/* Navigation Styles */
nav {
    position: sticky;
    top: 0;
    margin-bottom: 20px;
    z-index: 1000;
    /* Keeps the nav on top of other elements */
    padding: 10px 0;
    /* Adjust padding to ensure consistent height */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-links {
    flex: 2;
    display: flex;
    justify-content: center;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

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

nav ul li {
    margin-right: 15px;
}

/*Navigation Button Styles*/
nav a {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.5s ease;
    /* Smooth background transition */
}

/*Dark Mode Toggle*/
.toggle-container {
    margin-left: auto;
    /* Push the toggle to the right */
}

#theme-label {
    font-size: 20px;
    /* Adjust the size as needed */
    padding: 4px 8px;
    /* Button text color */
    border-radius: 5px;
    /* Rounded corners */
    transition: background-color 0.8s ease;
    /* Smooth transition */
}

/*Regular links*/
a {
    text-decoration: none;
}

a:not(.button-link):hover {
    text-decoration: underline;
}

/* Button-Like Links for External Profiles */
a.button-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.5s ease;
    /* Smooth background transition */
}

/* Rainbow Hover Effect */
a.button-link:hover {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #7fff00, #00ff00, #00ff7f, #00ffff, #007fff, #0000ff, #7f00ff, #ff00ff, #ff007f, #ff7f00, #ffff00, #7fff00, #00ff00, #00ff7f, #00ffff, #007fff, #0000ff);
    background-size: 300%;
    /* Make the gradient larger to allow smooth animation */
    animation: rainbow 3s linear infinite;
    /* Run the rainbow animation */
}

/* Keyframes for Rainbow Animation */
@keyframes rainbow {
    0% {
        background-position: 0% 33%;
        /* Start position */
    }

    100% {
        background-position: 100% 33%;
        /* End position */
    }
}

/* Project Card Styles */
.project-card {
    border-radius: 10px;
    /* A deeper shadow for a sharper look */
    margin: 30px 0;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card h3 {
    margin-top: 0;
}

.project-card:hover {
    transform: translateY(-8px);
    /* Add more elevation on hover */
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

/* Contact Section */
#contactSubmissionForm {
    padding: 50px 20px;
}

#contactSubmissionForm h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-section {
    display: flex;
    justify-content: center;
    /* Center the form on the page */
    padding: 40px 0;
    /* Add vertical padding */
}

.form-container {
    padding: 40px;
    /* Add padding around the form */
    border-radius: 10px;
    /* Rounded corners for the form */
    max-width: 800px;
    /* Limit the width of the form */
    width: 100%;
    /* Make the form responsive */
}

/* Set up the form styling */
form {
    width: 100%;
    /* Form should take up the full width of the container */
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Make the name and email fields side by side */
.half-width {
    width: 48%;
    display: inline-block;
    margin-right: 2%;
    /* Add spacing between the two inputs */
}

.half-width:last-child {
    margin-right: 0;
    /* Remove the margin on the right of the second input */
}

/* Full width for the message */
.full-width {
    width: 100%;
}

/* Increase the size of the input fields and add padding */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    /* Add padding to make inputs bigger and more balanced */
    font-size: 1.1em;
    border-radius: 5px;
    box-sizing: border-box;
    margin-top: 5px;
    max-width: 100%;
    /* Prevent text boxes from overflowing beyond the form */
}

/* Prevent message box from being resized sideways */
textarea {
    height: 150px;
    /* Increase height */
    resize: vertical;
    /* Only allow vertical resizing */
}

/* Make the button bigger */
button {
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    /* Make the button take the full width */
}

/* Error/success message */
#form-message {
    margin-top: 20px;
    text-align: center;
    color: red;
}

/* Footer Styles */
footer {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

/* Section Styles */
section {
    margin-bottom: 60px;
}

/* Add Padding and Centering */
.container {
    overflow: visible;
    max-width: 1200px;
    margin: 0 auto;
    /* Centers content */
    padding: 20px;
}

/* Back to Top Button Styles */
#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px; /* Remove the left: 20px; */
    z-index: 99; /* Ensure it appears on top */
    border: none;
    outline: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

#backToTop:hover {
    opacity: 1; /* Increase opacity when hovered */
}

body,
header,
footer,
.form-container,
.project-card,
nav,
nav a,
#theme-label,
a.button-link,
h1,
h2,
h3,
h4,
button,
p,
a,
li,
#backToTop {
    transition: background-color .5s ease, color .5s ease;
}
