body {
    background-color: #fff9f0;
    font-family: 'Poppins';
    font-size: 1em;
    padding: 0 0 0 0;
    margin: 0;
}

#page-section {
    padding: 5em;
    padding-bottom: 0;
}

/* #region Navbar Section */

/* Add a black background color to the top navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    background-color: #333;
    overflow: hidden;
    padding: 0.5em;
}

.navbar .nav-name {
    margin-right: auto;
    font-size: 1.4em;
    font-weight: bolder;
    padding: 0.2em 16px 0.2em 16px;
    margin-left: 20px;
}

/* Style the links inside the navigation bar */
.navbar a {
    line-height: 1em;
    margin: 0 10px 0 10px;
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 0.4em 16px;
    text-decoration: none;
    font-size: 1em;
}
  
/* Change the color of links on hover */
.navbar a:hover {
    border-radius: 2px;
    background-color: #f3e9dc;
    color: black;
}

/* #endregion */

/* #region Title Name Section */

.name {
    font-size: 1.5em;
    margin-top: 5em;
    margin-bottom: 4em;
    text-align: center;
}

.name > h1 {
    margin: 0;
}

.name > p {
    padding: 0 20% 0 20% ;
    width: 60%;
    margin: 0.2em;
    font-size: 0.8em;
}

/* #endregion */

/* #region About Section */
.thumbnail {
    background-color: #00aaff;
    width: 380px;
    object-fit: cover;
    object-position: top;
    float: left;           /* floats image to the left */
    margin: 20px 20px 0 0; /* space on right and bottom for text */
    border-radius: 0;      /* square corners */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1; /* forces square ratio */
}

@media (max-width: 1200px) {
    .thumbnail {
        width: 300px;
    }
}

@media (max-width: 800px) {
    .thumbnail {
        width: 200px;
    }
}

@media (max-width: 525px) {
    .name > p {
        padding: 0 10% 0 10% ;
        width: 80%;
        margin: 0.2em;
        font-size: 0.8em;
    }

    #page-section {
        padding: 1em;
        width: calc(100% - 2em);
        padding-bottom: 0;
    }

    .thumbnail {
        margin-bottom: 2em;
        width: 100%;
    }
}

.information {
    overflow: hidden; /* contain floated elements */
}
  
/* #endregion */

/* #region Projects Section */

.flex-container {
    background-color: 	#f3e9dc;
    width: 90%;
    padding: 5%;
    /* padding-bottom: 3%; */
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;                       
}
  
@media (max-width: 1290px) {
    .flex-container {
        grid-template-columns: repeat(2, 1fr); 
    }
}
  
@media (max-width: 910px) {
    .flex-container {
        grid-template-columns: 1fr;
    }
}

.flex-container > div {
    background-color: #f1f1f1;
    text-align: center;
    line-height: 75px;
    font-size: 30px;
}

#card {
    height: fit-content;
    color: black;
    text-decoration: none;
    border-radius: 2px;
    min-width: 300px;
    background-color: #ffffff;
    padding: 0;
    margin: 1%;
    margin-top: 0;
    margin-bottom: 2%;
}

#card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

#project-image {
    border-top-right-radius: 2px;
    border-top-left-radius: 2px;
    aspect-ratio: 20 / 17; /* forces square ratio */
    width: 100%;
    background-color: #00aaff;
    overflow: hidden;
}

#project-image img {
    width: 100%;
    height: calc(100% - 4px);
    object-fit: cover;
}

.tags {
    padding: 0 15px;
    
    height: 2rem;           
    gap: 20px;
    display: flex;

    flex-wrap: nowrap;
    overflow-x: auto;         /* or auto if you want scroll */
    overflow-y: hidden;
    white-space: nowrap;

    -ms-overflow-style: none;     /* IE 10+ */
    scrollbar-width: none;
}

.tags::-webkit-scrollbar {
    display: none;                /* Safari and Chrome */
}

.tags-wrapper {
    width: calc(100% - 30px);
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}
  
/* Right fade */
.tags-wrapper::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 15px;
    background: linear-gradient(to right, transparent, white); /* adjust to match card bg */
    pointer-events: none;
}

#tag {
    margin: 0;
    color: white;
    border-radius: 2px;
    padding: 2px 10px;
    background-color: #333;
    /* text-wrap: nowrap; */
    /* flex-shrink: 0; */
    white-space: nowrap;
}

#project-text {
    padding: 0 15px 15px 15px;
    margin: 0;
}

#project-name {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
}

#project-desciption {
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 4;        /* number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: normal;
    margin: 0;
    font-size: 1em;
}
/* #endregion */

/* #region Footer */
.site-footer {
    margin-top: 10em;
    background-color: #f3e9dc; /* container beige */
    color: #333; /* soft warm taupe */
    padding: 40px 20px 20px;
    font-size: 16px;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
  }
  
  .footer-about, .footer-links, .footer-contact {
    flex: 1 1 250px;
    min-width: 250px;
  }
  
  .footer-about h3 {
    margin-bottom: 12px;
    color: #00aaff; /* electric blue highlight */
  }
  
  .footer-links h4,
  .footer-contact h4 {
    margin-bottom: 12px;
    font-weight: 600;
  }
  
  .footer-links ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-links ul li {
    margin-bottom: 8px;
  }
  
  .footer-links ul li a,
  .footer-contact a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-links ul li a:hover,
  .footer-contact a:hover {
    color: #00aaff;
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
  }
/* #endregion */