body {
    background-color: black;
    color: #f4c542;
    font-family: 'Georgia', sans-serif;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity .2s ease-in;
}

/* The pseudo-element for the background image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;


    opacity: 0; /* Initially hidden */
    transition: opacity .2s ease-in; /* Smooth fade-in */
    z-index: -1; /* Ensure it stays behind the content */
}

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

body.loaded {
    opacity: 1;
}

.fade-out {
    opacity: 0;
}

/* Header and navigation bar */
.header {
    background-color: #1a1a1a;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-family: 'Merriweather', serif;
    font-size: 2em;
    color: #d4af37;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #f4c542;
    text-decoration: none;
    font-size: 1.2em;
    position: relative;
}

.nav-links .active {
    color: #ffd700;
}

/* Grid for project tiles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    /*grid-template-columns: 1fr;*/
    font-family: 'Roboto';
    gap: 0; /* No margin between items */
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.project-tile {
    position: relative;
    overflow: hidden;
    height: 200px; /* Adjust height as needed */
    background-position: center;
    background-size: cover;
    margin: 18px;
    border-radius: 2px;
    box-shadow: 0 0 20px 0px #232326;
    /*box-shadow: 0 0 20px 0px #0000003d;*/

}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px; /* Adjust height as needed */
    background-position: center;
    background-size: cover;
    filter: grayscale(95%) brightness(50%);
    /*box-shadow: 0 0 27px 50px #232326 inset;*/
    /*filter: grayscale(95%);*/
    transition: filter 0.5s ease;
    /*box-shadow: 0 0 27px 50px #121212 inset;*/

}

.project-desc-tile {
    position: relative;

    background-position: center;
    background-size: cover;
    margin: 18px;
    border-radius: 8px;
    overflow: visible;
}

.project-image:hover {

    filter: grayscale(0%);

}

/* Project details */
.project-info {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    color: rgba(212, 175, 55, 0.95);
    text-align: left;
    font-size: 1.1em;
    padding-bottom: 30px;
    /*text-shadow: 4px 3px 7px black;*/
    /*line-height: 23px;*/
    filter: grayscale(60%);
}

.project-title {
    font-size: 1.2em;
    margin: 0;
}

.project-type, .project-role {
    font-size: 0.8em;
}

.project-desc {
    font-size: 0.8em;
    text-align: justify;
    filter: grayscale(.8);
}

h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 1px;
    color: #d4af37;
    margin-left: 20px;
    /*text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);*/
}

nav {
    margin-top: 6px;
    margin-left: 20px;
    margin-right: 20px;
    font-family: 'Roboto';
}

nav a {
    color: rgba(212, 175, 55, 0.73);
    /*text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);*/
    font-weight: 100;

    text-decoration: none;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    display: block;
    margin: 10px 0;
    text-align: center;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d4af37;
}

.active {
    color: #d4af37;
}

hr {
    width: 80px;
    border: none;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    margin: 10px auto;
}


.head {

    color: #f4c542;
    font-family: 'Georgia';

    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    margin: 37px;


    justify-content: center;
    align-items: center;
    height: 20vh; /* Take full screen height */
    margin: 0; /* Remove default margin */
    text-align: center;
    filter: grayscale(35%);
}

p i {
    font-weight: 700;
}

a {
    text-decoration: none;

}
.project-video {
            position: relative;
            overflow: hidden;
            height: auto; /* Adjust height as needed */
            background-position: center;
            background-size: cover;
            margin: 18px;
            filter: grayscale(1) brightness(50%);
    transition: filter 0.5s ease;


        }
.project-video:hover {
    filter: grayscale(0%);

}
.project-video iframe {
    border: none;
}
.project-desc-tile a {
    color: rgb(255 255 255 / 75%);
    transition: color  0.3s ease;

}
.project-desc-tile a:hover {
    color: rgb(255 255 255 / 100%);
    text-decoration: underline;
}
