.navbar {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #061d2d;
    padding: 0 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s;
    z-index: 1001;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    animation: fadeDown 1.5s forwards;
}

.transparent-navbar {
    background-color: rgba(6, 29, 45, 0.9);
}

.logo img {
    max-width: 150px;
    height: auto;
}

.menu {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
}

.menu a {
    position: relative;
    color: #ca9c6a;
    text-decoration: none;
    padding: 14px 20px;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    font-size: 14px;
}

.menu a::after {
    content: '';
    position: absolute;
    left: 10%;
    bottom: -5px;
    height: 2px;
    background-color: #ca9c6a;
    width: 80%;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu a:hover {
    color: #f5c898;
}

.menu a:hover::after {
    transform: scaleX(1);
}

.language-switcher {
    margin-left: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-switcher a {
    padding: 0 5px;
    color: #ca9c6a;
    text-decoration: none;
    letter-spacing: 0.1em;
    font-weight: 200;
    font-size: 80%;
}

.language-switcher .borderline{
    border-left: 1px solid #ca9c6a86;
}

.language-switcher a:hover {
    color: #f5c898;
}



.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
}

.line {
    height: 3px;
    width: 25px;
    background-color: #ca9c6a;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    -webkit-transition: opacity, .3s ease-out 0s;
    transition: opacity, .3s ease-out 0s;
    padding: 5vh 0;
    background: radial-gradient(circle, #061d2d, black);
    z-index: 2000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu .mobileMenulogo{
    height:180px; width: 150px;
    align-self: center;
    margin-bottom: 3vh;
}

.mobile-menu a {
    margin-top: 5vh;
    letter-spacing: 0.15em;
    font-size: 4.8vw;
    font-weight: 400;
    letter-spacing: .16em;
    text-align: center;
    text-decoration: none;
    display: block;
    color: #ca9c6a;
    opacity: 0;  
}

.mobile-menu .a1{
    opacity: 0;  
    transform: translateY(20px);
    animation: fadeUp 0.3s forwards;
}

.mobile-menu .a2{
    opacity: 0;  
    transform: translateY(20px);
    animation: fadeUp 0.3s 0.1s forwards;
}
.mobile-menu .a3{
    opacity: 0;  
    transform: translateY(20px);
    animation: fadeUp 0.3s 0.2s forwards;
}
.mobile-menu .a4{
    opacity: 0;  
    transform: translateY(20px);
    animation: fadeUp 0.3s 0.3s forwards;
}

.mobile-menu a:hover {
    color: #f5c898;
}

.mobile-language-menu {
    display: flex;          
    align-items: center;  
    margin-top: 2vh;
    margin-right: 5vw; 
    justify-content: flex-end;  
}   
.mobile-language-menu a{
    font-size: 4vw;
    padding: 0 2vw;
    opacity: 0;  
    transform: translateY(20px);
    animation: fadeUp 0.3s 0.4s forwards;
}


.mobile-language-menu .borderline{
    border-left: 1px solid #ca9c6a86;
}
.close-icon {
    display: block;
    justify-content: center;
    align-items: center;
    width: 3vh;
    height: 3vh;
    cursor: pointer;
    margin-top: 5vh;
    margin-left: 50%; transform: translateX(-50%);
}

.close-icon  img{
    height: 3vh;
    width: 3vh;
    opacity: 0;  
    animation: fadeUp 0.3s 0.5s forwards;
}


.bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #061d2d;
    color: #ca9c6a;
    padding: 0px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 1;
    animation: fadeUp 1.5s forwards;
}

.bottom-nav .slogan{
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.bottom-nav .social-icons {
    display: flex;
    gap: 30px;
}

.bottom-nav .social-icons a {
    color: white;
    font-size: 30px;
    text-decoration: none;
    transition: transform 0.3s;
}

.bottom-nav .social-icons a:hover {
    transform: scale(1.3);
}

.bottom-nav .copyright {
    font-size: 12px;
    margin-right: 40px;

}

.container {
    margin-top: px;
    margin-bottom: 60px;
    padding-bottom: 50px;
}

.spaceaftermenu{ height:0px; background: radial-gradient(circle, #082132, #000000);}

#goToTopButton {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #ca9c6a;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
    z-index: 1;
    opacity: 70%;
    padding: 0 2px;
}


html[lang="en"] .slogan{
    font-family: 'Lato', sans-serif;
}

html[lang="zh"] .slogan{
    font-family: 'Noto Sans TC', 'Source Han Sans TC', '思源黑體', sans-serif;   
}

.menu a, .language-switcher a, .mobile-menu a, .copyright{
    font-family: 'Lato', sans-serif;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}
@keyframes zoomIn {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}


@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
        /* Move title up by 50px */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /* Move title down to its original position */
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
        /* Move title down by 50px */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /* Move title up to its original position */
    }
}

@keyframes flipDown {
    0% {
        opacity: 0;
        transform: translateY(-20px); /* Start position */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End position */
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
    }

    .menu {
        display: none;
    }

    .navbar .language-switcher {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .bottom-nav {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 20px 0px;
        /* Adjusted padding for mobile */
        align-items: center;
    }
    .bottom-nav .slogan{
        font-size: 4vw;
    }

    .bottom-nav .social-icons{
        margin: 0 0 2vh;
    }

    .bottom-nav .social-icons a {
        font-size: 48px;
    }

    .bottom-nav .copyright {
        margin-top: 5px;
        margin: 0px;
        letter-spacing: 0.2ch;
    }

    .container {
        padding-top: 60px;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .spaceaftermenu{ height:99px;}

    #goToTopButton { bottom: 20px; z-index: 10;}
}

