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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body covers the full height of the viewport */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #121212; /* Dark background color */
    color: #e0e0e0; /* Light text color for contrast */
}

header {
    position: relative; /* Set position to relative for positioning pseudo-element */
    padding: 10px 0;
    overflow: hidden; /* Hide overflow to prevent the pseudo-element from affecting layout */
}

header::before {
    content: '';
    background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)), url('header-background.jpg');
    background-size: cover;
    background-position: right;
    position: absolute; /* Position it absolutely within the header */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0; /* Start with the background invisible */
    transition: opacity 1s ease; /* Smooth transition for opacity */
    z-index: -1; /* Ensure it's behind other content */
}

header.loaded::before {
    opacity: 1; /* Fade in the background image */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between logo + text on left and nav on right */
    max-width: 1000px;
    margin: 0 auto; /* Center the header content */
}

.logo {
    width: 60px; /* Adjust logo size */
    height: auto;
    margin-right: 20px; /* Space between logo and text */
}

.header-text {
    text-align: left; /* Align text to the left */
}

.header-text h1 {
    font-size: 1.5em; /* Adjust name font size */
    color: #fff;
}

.header-text h2 {
    font-family: 'Hemi Head', sans-serif; /* Use the custom font */
    font-size: 2em; /* Keep your previous size or adjust as needed */
    color: #fff; /* Lighter color for the domain */
}

.header-text h3 {
    font-size: 1.2em; /* Adjust the size as needed */
    color: #b1b1b1; /* Light gray color */
    font-style: italic; /* Italic style */
    font-weight: 100;
    margin-top: 0.5em; /* Space above the h3 for better alignment */
}

/* Navigation inside the header */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-nav a {
    margin-left: 20px; /* Space between each nav item */
    color: #e0e0e0; /* Light text color for contrast */
    text-decoration: none;
    font-size: 18px;
}

.header-nav a:hover {
    color: #ffffff; /* Lighter on hover */
    background-color: transparent;
}

.container {
    flex: 1; /* Allow the container to grow and take available space */
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

#about p {
font-size: 1.2em;
margin-bottom: 10px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project {
    background: #1e1e1e; /* Darker background for projects */
    border: 1px solid #444; /* Dark border */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.project img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.project h3 {
    margin-top: 15px;
    font-size: 1.5em;
}

.project a {
    display: inline-block;
    margin-top: 10px;
    color: #e0e0e0; /* Light text color */
    text-decoration: none;
}

.project a:hover {
    color: #fff; /* Brighten the link on hover */
}

#contact {
text-align: center;
}

#contact p {
font-size: 1.2em;
}

footer {
    background-color: #333;
    color: #e0e0e0; /* Light text color */
    padding: 10px 0;
    text-align: center;
}

h2 {
    font-family: 'Hemi Head', sans-serif;
}
/* Remove the underline and set a custom color for all links */
a {
    text-decoration: none; /* Removes the underline */
    color: inherit; /* Keeps the color the same as surrounding text or you can set a custom color */
}

/* Optionally, you can define a hover state for the links */
a:hover {
    color: #ffffff; /* Example of a hover color */
    text-decoration: underline; /* Add underline back on hover if needed */
}

