@font-face {
    font-family: 'SCDream6';
    src: url('../Fonts/SCDream6.otf') format('opentype');
}

;

@font-face {
    font-family: 'SCDream5';
    src: url('../Fonts/SCDream5.otf') format('opentype');
}

;

@font-face {
    font-family: 'SCDream4';
    src: url('../Fonts/SCDream4.otf') format('opentype');
}

;

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: block;
    font-family: 'SCDream5', sans-serif;
    line-height: 1.5;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
    color: #4A3627;
    background-color: #f5ede0;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

.highlight {
    color: #F4C04D;
    font-weight: bold;
}

header {
    width: 100%;
    padding: 5px auto 0 auto;
    height: 100px;
    background: #F5F0E8;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

header .title {
    color: #4A3627;
    font-size: 20px;
    font-family: 'SCDream6', sans-serif;
    align-items: center;
    text-align: center;
    display: flex;
    gap: 0.2em;
    height: 50px;
    margin-right: 25px;
}

header .title .text-group {
    display: flex;
    flex-direction: column;
}

header .logo {
    height: 50px;
    width: auto;
    margin-bottom: -2px;
}

header nav {
    display: flex;
    justify-content: space-between;
    margin: 20px 100px 5px 20px;
}
.hamburger{
    display: none;
}

header nav ul {
    display: flex;
    gap: 1vw;
    position: relative;
    list-style: none;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.navbar .menu a:not(.title) {
    display: inline-block;
    color: #4A3627;
    width: 140px;
    height: 50px;
}

.navbar .menu a:hover:not(.title, .submenu li a),
.navbar .menu a.active:not(.title, .submenu li a) {
    color: #F4C04D;
    border-bottom: 3px solid #F4C04D;
}

.navbar .language a {
    color: #9AC3C7;
}

.navbar .language li {
    height: 20px;
}

.navbar .language a:hover,
.navbar .language a.active {
    color: #F4C04D;
}

header nav ul li a {
    color: #4A3627;
    text-decoration: none;
    font-weight: bold;
}

.menu-item {
    position: relative;
    align-items: baseline;
    justify-content: baseline;
    font-size: 18px;
    top: 10px;
}

.menu-item .submenu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50px;
    left: 0;
    background: #f4bf4d59;
    border-radius: 0 0 5px 5px;
    width: 140px;
    z-index: 1000;
    padding: 0;
    font-size: 80%;
    gap: 0;
    border-top: 3px solid #f4bf4d;
    box-sizing: border-box;

}

.menu-item .submenu a {
    padding: 0;
    text-align: center;
}

.menu-item:hover .submenu {
    display: flex;
}

.submenu li:hover {
    background-color: #4a362767;
}

.submenu li:hover a {
    color: #f5ede0;
}

.submenu li {
    display: flex;
    line-height: 50px;
    margin: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #80808031;
    box-sizing: border-box;
}

.submenu li:nth-child(5) {
    border-radius: 0 0 5px 5px;
    border-bottom: none;
}

.slide-text {
    position: relative;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-family: 'SCDream6', 'sans-serif';
    font-size: 30px;
    left: 30%;
    width: 39%;
    height: 70px;
    text-wrap: nowrap;
}

.slider {
    --slider-height: 300px;
    --slider-gap: 12px;
    top: 80px;

    height: 500px;
    width: 80%;
    margin: 100px auto;
    overflow: hidden;
    position: relative;
}

.loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    background-color: #f5ede0;
    position: absolute;
    z-index: 9000;
    transition: opacity 0.6s ease;
}
.loading-wrap p{
    font-size: 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 8px solid #4A3627;
    border-top: 8px solid transparent;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

.loading-wrap.hide{
    opacity: 0;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


.slides, .slides.clone {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    position: absolute;
    gap: var(--slider-gap);
    will-change: transform;
}

.slides.clone .slider__item:first-child {
  margin-left: 12px;
}

.slider__item {
    flex: 0 0 auto;
    height: var(--slider-height);
    display: flex;
    align-items: center;
}

.slider__item img {
    height: 100%;
    width: auto;
    display: block;
}


section {
    display: block;
    margin: 0 auto 200px auto;
    padding: 0;
    width: 100%;
    min-width: 1000px;
    flex-wrap: wrap;
}

.container img.contentImg {
    display: block;
    margin: 0 auto;
    width: 50%;
    min-width: 40%;
    height: auto;
}

.container {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    margin: 20px 0 0 0;
}

.category {
    position: relative;
    left: 10%;
    color: #4A3627;
    display: block;
    justify-content: center;
    padding: auto;
    font-size: 28px;
    font-family: 'SCDream6', serif;
    margin-bottom: 20px;
}

.view {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 1000px;
    padding: 0 150px;
    text-align: center;
    box-sizing: border-box;
    gap: 70px;
}

.view li {
    /* display: flex; */
    list-style: none;
    margin: 20px 120px;
    padding: 20px;
    font-family: 'SCDream6', serif;
    font-size: 16px;
}

.symbol {
    background-color: rgba(154, 195, 199, 0.5);
    border-radius: 60px;
    text-align: center;
    justify-content: center;
    align-content: center;
    padding: 15px;
    width: 150px;
    height: 80px;
}

.meaning {
    background-color: rgba(154, 195, 199, 0.15);
    border-radius: 10px;
    text-align: center;
    align-content: center;
    justify-content: center;
    padding: 15px;
    width: 360px;
    min-width: 310px;
    height: 80px;
}

.symbol::after {
    content: '';
    display: flex;
    position: relative;
    top: -15px;
    left: 230px;
    height: 8px;
    width: 180px;
    background-image: linear-gradient(90deg, rgba(154, 195, 199, 0.5)50%, rgba(154, 195, 199, 0.15));
}

#history {
    background-color: rgba(154, 195, 199, 0.3);
    padding-top: 50px;
    width: 100%;
    min-width: 40%;
    height: auto;
}

.timeline-wrapper {
    position: relative;
    width: 70%;
    min-width: 60%;
    margin: 50px auto;
}

.timeline-container {
    overflow: hidden;
}

.timeline {
    display: flex;
    transition: transform 0.5s ease;
    min-width: 40%;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.timeline-item ul {
    list-style: circle;
    text-align: left;
    font-family: 'SCDream5', 'sans-serif';
    font-size: 18px;
}

.timeline-item {
    flex: 0 0 calc(33.333% - 20px);
    padding: 30px 0 0 0;
    min-width: 100px;
    position: relative;
    margin-top: 30px;
}

.timeline-item .year {
    display: block;
    text-align: center;
    font-size: 18px;
    font-family: 'SCDream6', 'sans-serif';
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #9AC3C7;
    z-index: 0;
}


.year::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background-color: #F4C04D;
    border-radius: 50%;
    z-index: 1;
}

.timeline-prev,
.timeline-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
}

.timeline-prev {
    left: -40px;
    display: none;
}

.timeline-next {
    right: -40px;
}

p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.memberList {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 100px auto 50px auto;
    padding: auto;
    place-content: center;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    min-width: 500px;
    height: auto;
}

.memberImg {
    width: 100%;
    height: auto;
    padding: 5px 0;
    border-radius: 15px 15px 0 0;
}

.memberName {
    font-family: 'SCDream6', 'sans-serif';
    font-size: 20px;
    justify-self: center;
    text-align: center;
    align-items: center;
    margin: 5px auto;
    height: 40px;
}

.member {
    justify-content: center;
    text-align: center;
    align-items: center;
    width: 20vw;
    min-width: 250px;
    padding: 20px auto;
    flex-shrink: 0;
}
.member ul{ padding: 5px;}

.career {
    font-size: 14px;
    height: fit-content;
    border-radius: 0 0 15px 15px;
    background-color: rgba(154, 195, 199, 0.3);
    padding: 10px 5px;
    white-space: pre-line;
}


#portfolio {
    margin-bottom: 70px;
    box-sizing: border-box;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
}

.portfolio-filters button {
    display: flex;
    align-items: center;
    margin: 40px 10px 60px 10px;
    padding: 20px;
    border: none;
    background-color: #f4bf4d63;
    cursor: pointer;
    border-radius: 6px;
    height: 30px;
    font-family: 'SCDream6', 'sans-serif';
    font-size: 15px;
    color: #4A3627;
}

.portfolio-filters button:hover,
.portfolio-filters button.active {
    background-color: #f4bf4dce;
    color: #fff;
}

.portfolio-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-wrap: wrap;
    justify-items: center;
    margin: 40px auto;
    width: 80vw;
}
.row-wrap {
  display: grid;
  grid-auto-flow: row; 
  gap: 15px;               
  justify-content: center; 
  align-items: center;
  margin: auto;
}

.portfolio-item {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
}

/* .portfolio-item.empty-item {
  background: transparent; 
  border: 3px solid#4A3627;
} */

.portfolio-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
    transition: filter 0.3s ease;
    flex-shrink: 0;
    border-radius: 20px;
}

.portfolio-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover img {
    filter: brightness(60%);
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

footer {
    padding: 10px;
    left: 0;
    bottom: 0;
    background-color: rgba(154, 195, 199, 0.3);
    color: #4A3627;
}

footer .category {
    margin: 30px 0 30px 70px;
}

footer .contact span {
    font-size: 15px;
    margin-left: 30px;
    padding: 5px 0 5px 30px;
}

footer .contact .label {
    display: inline-block;
    width: 100px;
}

footer .contact .value {
    display: inline-block;
}

footer .copyright {
    text-align: center;
    font-size: 14px;
}

footer img.logo {
    height: 14px;
    width: auto;
    margin-bottom: -2px;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
}