/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 85%; /* This sets the base font-size to 90% of the default */
}

/* Body takes full height */
html, body {
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 10vh;
    background-color: rgb(19, 18, 18);
    outline: 5px solid black; 
    color: white;
    padding: 0 20px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
}

/* Left section of the nav bar */
nav .left {
    flex: 1;
}

/* Right section of the nav bar */
nav .right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

nav h1 {
    margin: 0;
    font-size: 1.5em;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.nav-link i {
    margin-right: 8px;
}

.nav-link:hover {
    color: rgba(0, 140, 255, 0.932);
}

/* Grid container */
main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5px;
    height: 100vh; /* Adjusted to fill screen height */
    width: 100%;
    padding-top: 10vh; /* Account for fixed nav height */
}

/* Grid Items */

aside {
    background-color: rgb(232, 216, 182);
    outline: 5px solid black; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

aside img {
    max-width: 100%;
    height: auto;
    border-radius: 50%; /* Circular image */
}

article {
    padding: 40px;
}

article img{
    max-width: 100%;
    height: auto;
}

h1 {
    font-size: 2.5em; /* Increased font size for h1 */
    margin-bottom: 20px;
}

h2 {
    font-size: 2em; /* Increased font size for h2 */
    margin-bottom: 20px;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
}

li {
    font-size: 1.2em; /* Increased font size for list items */
    margin-bottom: 15px;
}

.topBar {
    background-color: rgb(19, 18, 18);
    color: white; /* Text color */
    text-align: center;
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav h1 {
        font-size: 1.2em;
    }

    .nav-link {
        font-size: 0.9em;
    }

    main {
        grid-template-columns: 1fr; /* Single column layout */
        padding-top: 10vh; /* Account for fixed nav height */
    }

    article {
        padding: 20px;
    }

    aside {
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    li {
        font-size: 1em;
    }
}

/* Footer styling */
footer {
    background-color: rgb(19, 18, 18);
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Grid container styling */
/* Grid container styling */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 1200px;
    overflow-y: auto; /* Allow vertical scrolling if content overflows */
}

.project {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth transition for transform and box-shadow */
}

.project-title {
    text-decoration: underline;
    margin-bottom: 10px;
}
.project-description {
    list-style-type: disc;
    margin-left: 20px;
} 

.project:hover {
    transform: scale(1.05); /* Slightly increase the size of the project box */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* Enhance the shadow on hover */
}

/* Home Background */
.homeBackground {
    background-image: url('./docs/files/images/background.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: relative; /* Ensures positioning of child elements */
}

/* Home Text */
.homeText {
    background-color: #ffffff;
    color: black;
    padding: 20px;
    border-radius: 10px;
    width: 60%; /* Adjust width as needed */
    margin: 0 auto; /* Center the text horizontally */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the text vertically and horizontally */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: add a shadow for better visibility */
}

@media (max-width: 768px) {
    .homeText {
        width: 80%; /* Adjusted width for smaller screens */
    }
}

/* Basic form styling */
.contactBackground{
    background-image: url('./docs/files/images/background.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: relative; /* Ensures positioning of child elements */
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: auto;
}

label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

input, textarea, button {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

#home-view {
    display: block;
}

#contact-view {
    display: none;
}