
.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

  body {
    font-family: Helvetica, sans-serif;
    line-height: 1.6;
    margin: 24px;
    height: 100vh;
    margin-left: 5%;
    margin-right: 5%;
    padding-top: 40px;
    overflow: hidden;
}

header {
    position: fixed; /* Makes it stick to the top */
    top: 0; /* Ensures it stays at the top */
    left: 0;
    width: 90vw; /* Full width */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    overflow: hidden; /* Prevents scrolling inside the header */
    background-color: white; /* Add background to avoid content overlap */
    padding: 16px 5%;
    height: 56px;
}


.footer {
    position:relative;
    color: rgb(0, 0, 0); /* White text for readability */
    padding-top: 160px;
    padding-bottom: 24px;
    width: 90vw;
    font-size: 12px;
    text-align: center;
    align-items: center;
}

a {
    text-decoration: none;
}





.logo {
    font-family: 'Montserrat', sans-serif;
    
    color: black;
    white-space: nowrap;
}

#logo-zh{
    font-size: 24px;
}
#logo-en{
    font-size: 16px;
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: black;
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 2px 0;
    transition: all 0.3s ease;
}


/* Regular language toggle */
.language-toggle {
    display: flex !important;  /* Always show on desktop */
    margin-left: 1rem;
    margin-right: 0;
    order: 2;
}

/* Nav language toggle */
.nav-language-toggle {
    display: none;  /* Hidden by default on desktop */
}

.nav-language-toggle button {
    width: 80px;
    height: 24px;
    padding: 2px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid #fff;
    color: white;
}

.nav-language-toggle button:hover {
    background-color: white;
    color: #333;
}

.language-toggle button {
    width: 80px;
    height: 24px;
    padding: 2px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background-color: rgb(255, 255, 255);
    border: 1px solid #000;
    color: black;
}

.language-toggle button:hover {
    background-color: black;
    color: white;
}

section {
    padding: 4rem 2rem;
    min-height: 100vh;
}

h1, h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.project-card {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 0.5rem 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #444;
}

@media screen and (max-width: 768px) {
    /* Tablet styles */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #contact-form {
        width: 90%;
    }
}

@media screen and (max-width: 840px) {
    /* Remove all navigation-related styles */
}

@media screen and (max-width: 480px) {
    .image-list {
        height: calc(100vh - 24px - 60px - 2rem);
    }

    .image-container {
        height: calc((100vh - 24px - 60px - 2rem - 48px) / 4);
    }
}

.brand-container {
    width: 100%;
    margin-top: 24px;
    height: calc(100vh - 108px); /* Adjust height considering header */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 16px; /* Padding for scrollbar */
    display: flex;
    flex-wrap: wrap;
    gap: 2%; /* 10% space between videos */
    justify-content: center; /* Center content */
}

.brand-item {
    width: 49%; /* Each video takes 45% of the container width */
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 16px; /* Space between rows */
}

.brand-item iframe {
    width: 100%;
    height: 100%;
} 

@media screen and (max-width: 840px) {
    .hamburger {
        display: flex;
        order: 2;
        margin-left: 16px;
    }

    .language-toggle {
        display: none !important;  /* Hide header toggle on mobile */
    }

    .nav-language-toggle {
        display: block;  /* Show nav toggle in hamburger */
        margin: 1.5rem 0;
    }

    nav ul li.nav-language-toggle {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    nav ul li.nav-language-toggle a {
        display: flex;
        justify-content: center;
    }

    nav ul li.nav-language-toggle button {
        background-color: transparent;
        color: white;
        border-color: white;
        margin: 0 auto;  /* Center the button */
    }

    nav ul li.nav-language-toggle button:hover {
        background-color: white;
        color: #333;
    }

    .mobile-language-toggle {
        display: none;
    }

    .mobile-language-toggle button {
        width: 80px;
        height: 24px;
        padding: 2px 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border-radius: 8px;
        background-color: transparent;
        border: 1px solid #fff;
        color: white;
    }

    .mobile-language-toggle button:hover {
        background-color: white;
        color: #333;
    }

    .logo {
        font-size: 14px;
        white-space: normal;
        order: 0;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #333;
        transition: all 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        color: white;
    }


    .brand-container {
        justify-content: center; /* Center the single video */
        gap: 0; /* Remove unnecessary gaps */
    }

    .brand-item {
        width: 100%; /* Full width for single video per row */
    }

}

@media screen and (max-width: 480px) {
    body {
        margin: 12px;
    }


   
    .language-toggle {
        display: none;
    }
} 