
/* ==========================================
   KW. — ABOUT ME
   LUXURY EDITORIAL DESIGN
========================================== */

:root {
    --about-red: #df1238;
    --about-black: #090909;
    --about-white: #ffffff;
    --about-text: #bcbcc3;
    --about-muted: #8e8e96;
    --about-line: rgba(255, 255, 255, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body.about-page {
    margin: 0;
    background: var(--about-black);
    color: var(--about-white);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

.about-page h1,
.about-page h2,
.about-page h3 {
    color: var(--about-white);
}

.about-page p {
    color: var(--about-text);
    line-height: 1.9;
}

.about-page a {
    color: inherit;
    text-decoration: none;
}

.about-page ::selection {
    color: white;
    background: var(--about-red);
}

.about-page :focus-visible {
    outline: 2px solid var(--about-red);
    outline-offset: 6px;
}


/* ==========================================
   01 / NAVIGATION
========================================== */

.about-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 7%;
    background: rgba(9, 9, 9, 0.94);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--about-line);
}

.about-logo {
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: bold;
    font-style: italic;
    letter-spacing: -2px;
    color: white;
}

.about-logo span {
    color: var(--about-red);
}

.nav-label {
    font-size: 10px;
    color: var(--about-muted);
    letter-spacing: 3px;
}

.back-home {
    font-size: 12px;
    color: #d4d4d8;
    transition: color 0.3s ease;
}

.back-home span {
    color: var(--about-red);
    margin-right: 7px;
}

.back-home:hover {
    color: var(--about-red);
}

.reading-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--about-red);
    transform: scaleX(0);
    transform-origin: left;
    box-shadow: 0 0 12px var(--about-red);
}


/* ==========================================
   02 / GENERAL LAYOUT
========================================== */

.biography-container {
    position: relative;
    width: min(1100px, 100%);
    margin: 0 auto;
    z-index: 1;
}

.biography-section {
    padding: 100px 8%;
    border-top: 1px solid var(--about-line);
}

.section-label {
    color: var(--about-red) !important;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.section-number {
    font-family: Georgia, serif;
    font-size: 100px;
    font-style: italic;
    line-height: 1;
    color: #42121f;
}

@supports (-webkit-text-stroke: 1px red) {
    .section-number {
        color: transparent;
        -webkit-text-stroke: 1px #78253c;
    }
}

.section-title {
    font-family: Georgia, serif;
    font-size: clamp(38px, 5.5vw, 76px);
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 12px 0 48px;
}

.section-title span {
    color: var(--about-red);
}

.section-description {
    max-width: 850px;
    font-size: 16px;
    margin: 20px 0;
}


/* ==========================================
   03 / HERO INTRODUCTION
========================================== */

.biography-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 8% 100px;
    background: radial-gradient(
        ellipse at 100% 0%,
        #3a0c19 0%,
        #090909 60%
    );
}

.hero-watermark {
    position: absolute;
    right: -30px;
    top: 20px;
    font-family: Georgia, serif;
    font-size: clamp(220px, 35vw, 550px);
    font-weight: bold;
    font-style: italic;
    letter-spacing: -30px;
    color: rgba(255, 255, 255, 0.025);
    pointer-events: none;
    user-select: none;
}

.biography-hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(62px, 12vw, 160px);
    font-weight: bold;
    line-height: 1;
    letter-spacing: -0.065em;
    color: #ffffff;
    margin: 35px 0;
}

.biography-hero h1 span {
    color: var(--about-red);
}

.personal-name {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: normal;
    letter-spacing: 1px;
    margin: 25px 0 10px;
}

.personal-tagline {
    color: var(--about-muted) !important;
    font-size: 11px;
    letter-spacing: 4px;
}

.introduction {
    margin-top: 54px;
    max-width: 900px;
}

.introduction blockquote {
    color: #ffffff;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: clamp(26px, 3.5vw, 42px);
    line-height: 1.5;
    border-left: 2px solid var(--about-red);
    padding-left: 25px;
    margin: 0 0 40px;
}

.introduction p {
    font-size: 16px;
    margin: 24px 0;
    line-height: 2;
}


/* ==========================================
   04 / PERSONALITY
========================================== */

.personality-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    margin-top: 65px;
}

.personality-item {
    position: relative;
    border-top: 1px solid #702238;
    padding: 24px 0;
    transition: transform 0.35s ease;
}

.personality-item::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--about-red);
    transition: width 0.5s ease;
}

.personality-item:hover::before {
    width: 100%;
}

.personality-item:hover {
    transform: translateY(-5px);
}

.personality-item > span {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--about-red);
}

.personality-item h3 {
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: normal;
    margin: 15px 0;
}

.personality-item p {
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

.discover-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 55px;
    font-size: 10px;
    letter-spacing: 3px;
}

.discover-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--about-red);
    border: 1px solid var(--about-red);
    border-radius: 50%;
    font-size: 20px;
    animation: discoverFloat 2s ease-in-out infinite;
}

@keyframes discoverFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}


/* ==========================================
   05 / EDUCATION TIMELINE
========================================== */

.education-timeline {
    position: relative;
    margin: 35px 0 0 12px;
    padding-left: 40px;
    border-left: 1px solid #732138;
}

.education-entry {
    position: relative;
    padding-bottom: 48px;
}

.education-entry:last-child {
    padding-bottom: 0;
}

.education-entry::before {
    content: "";
    position: absolute;
    top: 10px;
    left: -46px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--about-red);
    box-shadow: 0 0 15px #df123866;
}

.education-entry h3 {
    font-family: Georgia, serif;
    font-size: clamp(23px, 3.2vw, 34px);
    font-weight: normal;
    margin: 0 0 13px;
}

.education-meta {
    color: var(--about-muted);
    font-size: 13px;
    line-height: 1.9;
}

.education-entry p {
    max-width: 760px;
    font-size: 15px;
    margin-top: 18px;
}

.education-status {
    display: inline-block;
    padding: 9px 13px;
    margin-top: 15px;
    border: 1px solid #69404c;
    background: #df123808;
    color: #dfa8b7;
    font-size: 10px;
    letter-spacing: 1.3px;
}


/* ==========================================
   06 / SKILLS
========================================== */

.skills-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
    align-items: start;
    margin-top: 50px;
}

.skill-group h3 {
    color: var(--about-red);
    font-size: 11px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.8;
    margin: 0 0 20px;
}

.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 19px 0;
    min-height: 65px;
    border-bottom: 1px solid var(--about-line);
    color: white;
    font-size: 14px;
    transition:
        padding 0.3s ease,
        background 0.3s ease;
}

.skill-row:hover {
    padding-left: 10px;
    padding-right: 5px;
    background: rgba(223, 18, 56, 0.05);
}

.skill-level {
    color: var(--about-muted);
    font-size: 11px;
    text-align: right;
}


/* ==========================================
   07 / LANGUAGES
========================================== */

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.language-item {
    padding: 25px 0;
    border-top: 1px solid var(--about-red);
}

.language-item h3 {
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: normal;
    margin: 0 0 20px;
}

.language-item h3 span {
    color: var(--about-red);
}

.language-item p {
    font-size: 14px;
    margin: 0;
}


/* ==========================================
   08 / HOBBIES & INTERESTS
========================================== */

.interest-entry {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 25px;
    padding: 38px 0;
    border-bottom: 1px solid var(--about-line);
}

.interest-number {
    color: var(--about-red);
    font-family: Georgia, serif;
    font-size: 40px;
    font-style: italic;
}

.interest-entry h3 {
    font-family: Georgia, serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: normal;
    margin: 0 0 20px;
}

.interest-entry p {
    font-size: 15px;
    max-width: 800px;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.interest-tags span {
    font-size: 11px;
    color: #c9b9bf;
    padding: 8px 13px;
    border: 1px solid #492630;
    transition: 0.3s ease;
}

.interest-tags span:hover {
    color: white;
    border-color: var(--about-red);
    background: #df123812;
}


/* ==========================================
   09 / PERSONAL DEVELOPMENT
========================================== */

.growth-section {
    background: radial-gradient(
        ellipse at bottom left,
        #330b17,
        #090909 70%
    );
}

.growth-topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin: 45px 0;
}

.growth-topics span {
    font-size: 16px;
    color: white;
    padding: 16px 0;
    border-bottom: 1px solid var(--about-red);
}

.closing-quote {
    font-family: Georgia, serif;
    font-size: clamp(40px, 7vw, 90px);
    font-style: italic;
    letter-spacing: -2px;
    line-height: 1.2;
    color: white;
    margin-top: 80px;
}

.closing-quote span {
    color: var(--about-red);
}


/* ==========================================
   10 / FOOTER
========================================== */

.about-footer {
    border-top: 1px solid var(--about-line);
    padding: 35px 8%;
}

.footer-content {
    width: min(1100px, 100%);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-content p {
    font-size: 10px;
    letter-spacing: 3px;
}

#back-to-top {
    background: transparent;
    color: white;
    font-size: 11px;
    border: 1px solid #702238;
    border-radius: 30px;
    padding: 14px 22px;
    cursor: pointer;
    transition: 0.3s ease;
}

#back-to-top:hover {
    background: var(--about-red);
    border-color: var(--about-red);
    box-shadow: 0 0 20px #df123833;
}


/* ==========================================
   11 / SCROLL ANIMATION
========================================== */

body.about-animation-ready .about-reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(45px);
}

.about-reveal {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.biography-hero h1 {
    animation: aboutTitleReveal 1.1s ease both;
}

@keyframes aboutTitleReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================
   12 / TABLET & MOBILE
========================================== */

@media (max-width: 1000px) {

    .personality-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skills-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .biography-section {
        padding: 75px 7%;
    }

    .section-number {
        font-size: 75px;
    }
}

@media (max-width: 600px) {

    .about-navbar {
        padding: 15px 6%;
    }

    .nav-label {
        display: none;
    }

    .about-logo {
        font-size: 30px;
    }

    .biography-hero {
        padding: 75px 6% 65px;
    }

    .biography-hero h1 {
        font-size: clamp(58px, 12vw, 85px);
    }

    .personal-tagline {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .section-label {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .section-number {
        font-size: 52px;
    }

    .section-title {
        font-size: 37px;
        letter-spacing: -1px;
        margin-bottom: 32px;
    }

    .introduction p {
        font-size: 14px;
    }

    .personality-grid {
        gap: 20px;
    }

    .personality-item h3 {
        font-size: 21px;
    }

    .personality-item p {
        font-size: 12px;
    }

    .education-timeline {
        padding-left: 23px;
        margin-left: 5px;
    }

    .education-entry::before {
        left: -29px;
    }

    .interest-entry {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 12px;
    }

    .interest-number {
        font-size: 23px;
    }

    .language-grid {
        gap: 20px;
    }

    .language-item h3 {
        font-size: 30px;
    }

    .footer-content p {
        display: none;
    }

    .growth-topics {
        gap: 15px;
    }

    .growth-topics span {
        font-size: 13px;
    }

}


/* ==========================================
   13 / REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .about-page *,
    .about-page *::before,
    .about-page *::after {
        animation: none !important;
        transition: none !important;
    }

    body.about-animation-ready .about-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
/* ==========================================
   14 / ABOUT ME LANGUAGE SWITCHER
========================================== */

.about-navbar .kw-language-switch {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    flex-shrink: 0;
    margin: 0;
}

html[lang="th"] .about-page {
    font-family: "Noto Sans Thai", Tahoma, sans-serif;
}

html[lang="th"] .about-page h1,
html[lang="th"] .about-page h2,
html[lang="th"] .about-page h3,
html[lang="th"] .introduction blockquote,
html[lang="th"] .closing-quote {
    font-family: "Noto Sans Thai", Tahoma, sans-serif;
    letter-spacing: normal;
}

html[lang="th"] .biography-hero h1 {
    font-size: clamp(48px, 9vw, 115px);
}

html[lang="th"] .section-label,
html[lang="th"] .personal-tagline {
    letter-spacing: 1px;
}

html[lang="th"] .introduction p {
    line-height: 2.1;
}

@media (max-width: 600px) {

    .about-navbar {
        gap: 12px;
    }

    .about-navbar .kw-language-switch {
        margin-left: 0;
    }

    .about-navbar .back-home {
        font-size: 10px;
    }

}
/* 15 / LANGUAGE BUTTON DESIGN */

.about-navbar .kw-language-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #151515;
    border: 1px solid #653044;
    border-radius: 50px;
    isolation: isolate;
}

.about-navbar .kw-language-indicator {
    display: none;
}

.about-navbar .kw-language-button {
    position: relative;
    width: 44px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: #999999;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-navbar .kw-language-button.active {
    background: #df1238;
    color: #ffffff;
    box-shadow: 0 0 15px #df123833;
}

.about-navbar .kw-language-button:hover {
    color: #ffffff;
}
/* 16 / BACK TO HOME BUTTON POSITION */

.about-navbar {
    justify-content: flex-start;
    gap: 20px;
}

.about-navbar .about-logo {
    order: 0;
}

.about-navbar .back-home {
    order: 1;
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border: 1px solid #df1238;
    border-radius: 50px;
    color: #ffffff;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.about-navbar .back-home:hover {
    background: #df1238;
    color: #ffffff;
    box-shadow: 0 0 20px #df123844;
}

.about-navbar .back-home:hover span {
    color: #ffffff;
}

.about-navbar .nav-label {
    display: none;
}

.about-navbar .kw-language-switch {
    order: 2;
    margin-left: auto;
}

@media (max-width: 600px) {

    .about-navbar {
        gap: 10px;
    }

    .about-navbar .back-home {
        padding: 9px 12px;
        font-size: 10px;
    }

}