@import "./styles.css";


:root{
    --h-title-color:#4a3f38;
    --text-color:#2f2a26;
    --muted-color:#6a625b;
    --accent-soft:#7a6a5b;
    --surface-light:#f6f3ef;
    --surface-mid:#eee8e1;
}

.header {
    border-bottom: none;
    z-index: 10000;
}

#page-top-title {
    display: none !important;
}

.bg-bottom {
    background-color: #eee6dc;
    border-top: 1px solid rgba(122, 106, 91, 0.25);
}

.top-section {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
    background-position: center 34%;
    background-size: cover;
    background-repeat: no-repeat;
    height: clamp(32rem, 72vh, 54rem);
    min-height: 32rem;
}

.top-section h2 {
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.4rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    text-align: center;
    margin-top: 1.8rem;
}

.top-section .top-section-content {
    position: relative;
    z-index: 3;
}

.top-quote {
    display: inline-block;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-align: left;
}

.top-quote .someday-line {
    display: block;
    text-align: right;
    padding-right: 0.48ch;
}

.top-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(8, 10, 18, 0.36),
        rgba(8, 10, 18, 0.28)
    );
    z-index: 1;
}

section header h2{
    font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    color: var(--h-title-color);
    font-size: 2.3rem;
    line-height: 4rem;
}

#awards-subtitle,
#experience-subtitle {
    color: #ffffff !important;
    text-shadow:
        -1px -1px 0 #4a3a2d,
         1px -1px 0 #4a3a2d,
        -1px  1px 0 #4a3a2d,
         1px  1px 0 #4a3a2d,
         0    2px 6px rgba(74, 58, 45, 0.22);
}

section .main-body{
    font-size: 1.3rem;
    font-weight: 200;
    line-height: 2.4rem;
    color: var(--text-color);
}

body {
    color: var(--text-color);
}

.nav-link,
.nav-link:visited,
.navbar-brand {
    color: var(--text-color) !important;
}

.nav-link:hover,
.navbar-brand:hover {
    color: var(--accent-soft) !important;
}

section .main-body a,
section .main-body a:visited {
    color: var(--h-title-color) !important;
}

section .main-body a:hover {
    color: var(--accent-soft) !important;
}

.publication-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.2rem 0 0.55rem;
}

.publication-links a,
.publication-links a:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.08rem 0.55rem;
    border: 1px solid rgba(74, 63, 56, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--h-title-color) !important;
    font-size: 0.78em;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.publication-links i {
    font-size: 0.9em;
    line-height: 1;
}

.publication-link-icon {
    width: 0.95em;
    height: 0.95em;
    flex: 0 0 auto;
    object-fit: contain;
}

.publication-link-icon--acl {
    width: 1.08em;
}

.publication-links a:hover {
    background: var(--h-title-color);
    color: #ffffff !important;
}


.bg-gradient-primary-to-secondary-light {
    background: linear-gradient(45deg, var(--surface-light), #ffffff) !important;
}

.bg-gradient-primary-to-secondary-gray {
    background: linear-gradient(45deg, var(--surface-mid), #f8fafb) !important;
}



.on-top {
    position: relative;
    z-index: 10000;
}

.top-bg {
    background-position: center;
    background-size: fill;
    width: 100%;
    height: 100%;
}

.top-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}


#avatar {
    position: absolute;
    left: 50%;
    top: 79%;
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
}

#avatar img {
    width: clamp(82px, 8.5vw, 132px);
    height: auto;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36);
}

#profile-links {
    position: absolute;
    left: 50%;
    top: calc(79% + 78px);
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 9px;
    align-items: center;
}

#profile-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(122, 106, 91, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    text-decoration: none;
    overflow: hidden;
}

.bg-bottom a,
.bg-bottom a:hover,
.bg-bottom .text-white-50 {
    color: var(--text-color) !important;
}

#profile-links img {
    width: 17px;
    height: 17px;
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    display: block;
}

@media screen and (max-width: 991px) {
    #avatar {
        left: 50%;
        top: 76%;
    }

    #profile-links {
        top: calc(76% + 74px);
    }
}

@media screen and (max-width: 768px) {
    .top-section {
        height: clamp(30rem, 82vh, 46rem);
        min-height: 30rem;
        background-position: center 30%;
    }

    #avatar {
        top: 73%;
    }

    #avatar img {
        width: clamp(78px, 20vw, 112px);
    }

    #profile-links {
        top: calc(73% + 64px);
        gap: 7px;
    }

    #profile-links a {
        width: 28px;
        height: 28px;
    }

    #profile-links img {
        width: 15px;
        height: 15px;
    }
}
