body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    min-height: 100vh;
    font-family: SansSerif, serif;
}

h1, h2, h3, h4, h5, h6, p{
    color: #ffffff;
}

.h2-black{
    color: #000000 !important;
}

.h2-dark-green{
    color: rgba(1, 44, 2, 0.6) !important;
}

.title {
    margin-bottom: 40px;
}

#app {
    max-width: 1280px;
}

.logo {
    margin-top: 0;
    margin-left: 20%;
    align-self: flex-start;
}

img {
    max-width: 100%;
    height: auto;
}

.grid-container-frosted {
    display: flex;
    padding: 5%;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    flex-direction: column;
    background-color: rgba(129, 129, 129, 0.31);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    height: 300px;
}
@media screen and (max-width: 600px) {
    .grid-container-frosted {
        height: 150px;
    }
}

.grid-container-partner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: auto;
    background-color: rgb(255, 255, 255);
}

.grid-container-about {
    display: grid;
    padding: 6%;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto auto;
}
@media screen and (max-width: 800px) {
    .grid-container-about {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
}

.grid-container-project {
    display: grid;
    padding: 10%;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: auto auto;
}

.grid-container-about-vertical {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.flex-container {
    display: flex;
    flex-direction: row;
    padding: 5%;
    gap: 5%;
    background-color: rgb(25, 26, 29);
}
@media (max-width: 1024px) {
    .flex-container {
        flex-direction: column;
        gap: 30px
    }
}

.iso-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: auto auto auto;
    background-color: white;
}

.masonry-grid {
    column-count: 4;
    column-gap: 0;
    background-color: #333333;
}
@media (max-width: 900px) {
    .masonry-grid {
        column-count: 3;
    }
}
@media (max-width: 600px) {
    .masonry-grid {
        column-count: 2;
    }
}

img.grid-item {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 3px;
}


.hero-section {
    background-image: url("../images/background_1.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-top: 10px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.hero-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.menu-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #3D5A49;
    color: white;
    height: 80px;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    transition: height 0.3s ease;
}
.menu-items {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #3D5A49;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
}

.menu-items a {
    color: white;
    text-decoration: none;
    padding: 15px 0;
    display: block;
    font-size: 18px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-bar.expanded .menu-items {
    max-height: 300px;
}

.menu-bar.expanded .menu-items a {
    opacity: 1;
    transform: translateY(0);
}

.menu-bar.expanded .menu-items a:nth-child(1) {
    transition-delay: 0.1s;
}
.menu-bar.expanded .menu-items a:nth-child(2) {
    transition-delay: 0.2s;
}
.menu-bar.expanded .menu-items a:nth-child(3) {
    transition-delay: 0.3s;
}
.menu-bar.expanded .menu-items a:nth-child(4) {
    transition-delay: 0.4s;
}


.logo-container {
    display: flex;
    align-self: flex-start;
}

.logo {
    width: 275px;
    height: 50px;
    margin-right: 15px;
    margin-left: 15px;
}

.top-text {
    position: absolute;
    margin: 0;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    z-index: 1;
    font-family: SansSerif, serif;
}

@media (max-width: 700px) {
    .top-text {
        font-size: 1.0rem;
    }
}


.card {
    padding: 20px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    /* Smooth hover transition */
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.card:hover {
    /* Subtle shadow on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Optional: lift effect */
    transform: translateY(-2px);
}

.project_card {
    break-inside: avoid;
    display: block;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.project_card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    border-radius: 5px;
}


.footer{
    display: grid;
    align-items: start;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: rgba(61, 94, 73);
    color: white;
    box-sizing: border-box;
    z-index: 1000;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;

}

.footer-grid-item {
    display: flex;
    flex-direction: column;
}

.footer-grid-item-full-width {
    display: flex;
    flex-direction: row;
    grid-column: span 2;
    justify-content: space-between;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 1200px;
    font-family: "Microsoft JhengHei", sans-serif;
    margin: 20px auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.project-table th {
    background-color: #d9f2f3;
    padding: 12px 16px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #2c5aa0;
}

.project-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;

}

.project-table td:first-child,
.project-table th:first-child {
    width: auto;
}

.project-table td:nth-child(2),
.project-table th:nth-child(2) {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

.project-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.project-table tr:nth-child(odd) {
    background-color: #fff;
}

.project-table tr:hover {
    background-color: #e8f4fc;
}
