/* --- Global & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased;
}

body.project-detail-open {
    overflow: hidden;
}

/* --- Header & Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 6rem;
}

.header-left {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 120px;
    height: 32px;
    cursor: pointer;
    z-index: 60;
}

.logo-text {
    font-size: 16.5px;
    transition: opacity 0.2s;
    display: flex;
    align-items: baseline;
}

.underline-sham {
    border-bottom: 2px solid black;
    padding-bottom: 3px;
    font-weight: 800;
    line-height: 0.7;
    margin-bottom: 0;
    display: inline-block;
}

.font-bold-mah {
    font-weight: 700;
    margin-left: 1px;
}

.logo-img-file {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    width: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.logo-wrapper:hover .logo-text,
.logo-wrapper.active .logo-text {
    opacity: 0;
}

.logo-wrapper:hover .logo-img-file,
.logo-wrapper.active .logo-img-file {
    opacity: 1;
}

.header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.nav-container {
    display: flex;
    gap: 25px;
}

.nav-item {
    position: relative;
    font-weight: 400;
    color: #9ca3af;
    transition: color 0.2s ease;
    font-size: 11px;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-item:link,
.nav-item:visited,
.nav-item:hover,
.nav-item:active {
    text-decoration: none;
}

.nav-item:hover {
    color: black;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: black;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-item:hover::before {
    opacity: 1;
}

.search-container {
    display: flex;
    align-items: center;
    border: 1px solid #efefef;
    padding: 4px 12px;
    border-radius: 9999px;
    background: #fff;
    cursor: text;
    min-width: 0;
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 11px;
    font-weight: 300;
    color: #b0b0b0;
    text-transform: uppercase;
    width: 90px;
    margin-left: 6px;
    cursor: text;
    transition: width 0.2s ease, color 0.2s ease;
    min-width: 0;
}

.search-input:focus {
    width: 160px;
    color: #000;
}

#dropdown-menu {
    position: absolute;
    top: 40px;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 12px;
    background: white;
    padding: 15px 0;
    z-index: 50;
}

#dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
    text-transform: uppercase;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
}

.dropdown-item:hover {
    color: black;
}

.dropdown-item:hover::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: black;
}
/* --- Section Back To Top --- */
.section-back-to-top-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 56px 0 12px;
}

.section-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    background: transparent;
    color: #000;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.section-back-to-top:hover {
    opacity: 0.58;
}

.section-back-to-top-logo {
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    display: inline-block;
}

.section-back-to-top-logo-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-left: 1.4px solid #000;
    border-top: 1.4px solid #000;
}

.section-back-to-top-logo-dot {
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 4px;
    background: #000;
}

.section-back-to-top-text {
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
