@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

body {
    margin: 0;
    font-family: 'Orbitron', 'Nova Round', sans-serif;
    background-color: #FFFCF6;
    height: 100vh;
    overflow: hidden;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.home-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* width */
::-webkit-scrollbar {
    width: 20px;
}
  
  /* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}
  
  /* Handle */
::-webkit-scrollbar-thumb {
    background: #FF5F5F;
    border-radius: 10px;
}

.wrapper{
    display: flex;
    flex-direction: column;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}


.home-title {
    text-align: center;
    color: #FF5F5F;
}

h1 {
    margin: 0;
}

h3 {
    margin-top: 4px;
}

.menu {
    position: absolute;
    top: 10px;
    left: 0;
    display: flex;
    align-items: center;
    height: 40px;
    cursor: pointer;
}

.menu-background {
    background-color: #4B4949;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-square {
    width: 40px;
    height: 40px;
    background-color: #4B4949;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
}

.menu-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid #4B4949;
    border-bottom: 40px solid transparent;
}

.menu-items {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    background-color: #4B4949;
    position: absolute;
    top: 0;
    left: 40px;
    width: 0;
    height: 40px;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
}

.menu-items.open {
    width: auto;
    padding-left: 10px;
}

.menu-items a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
    font-size: 16px;
    font-family: 'Orbitron', 'Nova Round', sans-serif;
    white-space: nowrap;
}

.menu-items a:hover {
    background-color: #FF5F5F;
}

.footer-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2em;
    color: #FF5F5F;
    text-decoration: none;
}

.footer-text:hover {
    text-decoration: underline;
}

/* 
=====================================

Card Styling

=====================================
*/

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    padding: 16px;
}

@media (min-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr); /* Exactly three cards per row */
    }
}

.card {
    border: 4px solid #FF5F5F;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    transition: box-shadow 0.3s ease; /* Smooth shadow transition */
    text-decoration: none;
    color:#4B4949;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Adds a drop shadow on hover */
}

.card img {
    width: 100%;
    height: 85%;
    object-fit: cover;
    margin: 0;
}

.card h1 {
    text-align: center;
    margin: 0;
    padding: 8px;
    flex-grow: 1;
    background: #f8f8f8;
}

/* 
=====================================

About Page Styling

=====================================
*/
.page-title h1 {
    margin-top: 4vh;
    color: #FF5F5F;
    text-decoration: underline;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.content {
    line-height: 1.8;
}

.content h2 {
    color: #FF5F5F;
    margin-top: 20px;
}

.content p, .content ul {
    margin-bottom: 15px;
}

.content ul li {
    margin-left: 20px;
    list-style-type: disc;
}

.content ul li::marker {
    color: #FF5F5F;
}

.content p {
    text-indent: 1em;
}

.ability{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

/* 
=====================================

Project Page Styling

=====================================
*/
.back-btn {
    padding: 8px 24px;
    font-size: 18px;
    font-weight: 700;
    background-color: #f8f8f8;
    color: #FF5F5F;
    border: 2px solid #f8f8f8;
    border-radius: 64px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.project-navigation{
    display: flex;
    justify-content: flex-end;
}

.project-subtitle{
   text-align: center;
}

.project-title h1 {
    margin: 0;
    font-size: 2rem;
    flex-grow: 1; /* Ensures h1 takes available space */
    text-align: center; /* Centers h1 horizontally */
}

.project-img-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hover Effect */
.back-btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a drop shadow on hover */
}

.template{
    width: 80%;
    color: black;
    text-decoration: none ;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background-color: #f8f8f8;
    padding: 1rem;
    border: 2px solid #FF5F5F;
    border-radius: 8px;

}

.template strong{
    font-size: large;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .back-btn {
        font-size: 16px;
        padding: 12px 18px;
    }
}

@media (max-width: 480px) {
    .back-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .wrapper{
        margin-top: 0;
        width: 100%;
    }

    .template{
        margin-top: 2rem;
    }

    .ability{
        justify-content: flex-start;
    }
}

