*{
    margin: 0;
    padding: 0;
}

body{
    background-color: #141313;
    color: whitesmoke;
    font-family: "PT Serif", serif;
    font-weight: 400;
    font-style: normal;
}

header {
    position: relative;
    display: flex;
    justify-content: center; /* Centers the title */
    align-items: center;
    height: 60px; /* adjust as needed */
}

.brand {
    position: absolute;
    left: 20px; /* distance from the left */
    font-family: "Playwrite RO", cursive;
    font-size: 1.5em;
}

.title {
    font-family: "PT Serif", serif;
    font-weight: 700;
    font-style: normal;
}

#navbarMargin {
    background-color: #f0f0f0;
    height: 1px;
    width: 100%;
}

.nav-link {
    position: absolute;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-icon {
    position: relative;
    display: inline-block;
}

.std-icon, .hover-icon {
    position: absolute;
    transition: opacity 0.3s ease;
}

.std-icon {
    opacity: 1;
}

.hover-icon {
    opacity: 0;
}

.nav-icon:hover .std-icon {
    opacity: 0;
}

.nav-icon:hover .hover-icon {
    opacity: 1;
}

.nav-icon:focus {
    outline: none;
}
  
  

.canvas{
    display: flex;
    justify-content: center;
    align-items: center;
}


/* project card */

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    max-width: 50rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    align-items: center;
}

.project-snapshot img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.5s ease-in-out;
}

.project-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1.5rem;
    color: #fff;
}

.project-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 1rem;
    color: whitesmoke;
    text-align: center;
}

.project-link{
    text-decoration: none;
    color: whitesmoke;
}

.project-link:hover{
    color: rgb(252, 227, 195);
}

.project-snapshot img:hover {
    transform: scale(0.96);
}



/* change responsiveness*/

@media (max-width: 850px){
    .brand{
        display: none;
    }
}

@media (max-width: 768px) {

    .project-card {
    grid-template-columns: 1fr;
    text-align: center;
    }

    .project-snapshot img {
        max-height: 250px;
        height: 100%;
    }

    .project-info {
        padding: 1rem;
    }
}
