/* Import from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gaegu&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --light-pink-color: #faf4f5;
    --medium-gray-color: #ccc;
    --cream:      #FDF6EC;
    --cream-deep: #F6E9D7;
    --paper:      #FFFDF9;
    --beige:      #E9D7BC;
    --sage:       #7F9265;
    --sage-soft:  #A8B892;
    --coral:      #E1633E;
    --coral-soft: #F0A48B;
    --ink:        #2E2622;
    --ink-soft:   #6B5C51;
    --line:       rgba(46, 38, 34, .12);

    /* Font-size */
    --font-size-s: 0.9rem;
    --font-size-n: 1rem;
    --font-size-m: 1.12rem;
    --font-size-l: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.3rem;

    /* Font-weight */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Border radius */
    --border-radius-s: 8px;
    --border-radius-m: 30px;
    --border-radius-circle: 50%;
    --radius-m: 22px;

    /* Shadow */
    --shadow-s: 0 2px 10px rgba(46, 38, 34, .06);
    --shadow-m: 0 14px 34px rgba(46, 38, 34, .10);

    /* Site max width */
    --site-max-width: 1300px;

    /* Chieu cao thanh header - hero tru di so nay de vua dung 1 man hinh */
    --header-h: 44px;

    /* Animation time */ 
    --fade-in-time: 0.75s;  
    --loop-time: 3s;        
}

body {
    margin: 0;
    background-color: #FEFCF3;
}

a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

img {
    width: 100%;
    margin: 0;
    padding: 0;
}

.section-content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.title {
    margin: 0;
    padding: 0;
}

@keyframes gradient-shift {
    to {
        background-position: 200% center;
    }
}

p {
    margin: 0;
    padding: 0;
}

/* Navbar styling */
header {
    position: relative;
    z-index: 10;
}

header .navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(60px);
}

.navbar .nav-menu {
    display: flex;
    gap: 10px;
}

.navbar .nav-menu .nav-item {
    display: flex;

}
.navbar .nav-menu .nav-link {
    padding: 10px 18px;
    color: black;
    font-family: "Lora", sans-serif;
    font-weight: 300;
    font-size: 15px;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 1.5px;
    background-color: #EB7D00;
    border-radius: 1000px;
    
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;    
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(0.75);
}

.navbar .nav-close-item,
.navbar #menu-close-button,
.navbar #menu-open-button {
    display: none;
}

.nav-icon {
    display: block;
    width: 24px;
    height: 24px;
    color: black;
}

/* Hero Section Styling */

.hero-section {
    /* tru chieu cao header => hero + header = dung 1 man hinh,
       khong bi thua mot khoang tut xuong duoi man */
    /* min(): tren man hinh rat cao thi hero dung lai o 820px thay vi cang ra
       mai - anh landing da bi chan o 1000px roi nen keo cao them chi tao
       khoang trong o duoi */
    min-height: min(calc(100vh - var(--header-h)), 820px);
    min-height: min(calc(100svh - var(--header-h)), 820px);  /* svh = tru thanh dia chi tren mobile */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(10px, 3vw, 30px);
    padding-inline: 16px;
}

.greeting-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(clamp(20px, 6.5vw, 85px));
}

.greeting {
    /* 16.5ch trong @keyframes typing tính theo font-size này, nên chữ co
       lại là chiều rộng gõ máy cũng co theo — không bao giờ bị cắt mất chữ */
    font-size: clamp(1.35rem, 6.2vw, 3rem);
    font-weight: 500;
    color: black;
    text-align: center;
    font-family: 'Playfair Display', serif;
    animation: typing 2s steps(20) forwards,
               blink 0.5s step-end 4 forwards;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid transparent;
}

@keyframes typing {
    from { width: 0;}
    to { width: 16.5ch;}
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50%      { border-color: currentColor; }
}

/* "Alice": dùng em để luôn bằng 1.25 lần cỡ chữ lời chào
   (ở desktop: 3rem x 1.25 = 60px, đúng như bản cũ) */
.greeting .greeting-name {
    font-family: 'Gaegu', cursive;
    font-size: 1.25em;
    color: #E1633E;
}

/* Ban tay vay - chi chay sau khi go xong chu (delay 2s) */
.greeting .wave {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: wave 2.2s ease-in-out 2s infinite;
}

@keyframes wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30%, 50% { transform: rotate(14deg); }
    20%, 40%      { transform: rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
    .greeting .wave { animation: none; }
}

/* ─── Social buttons (port từ mee-site) ─── */

.socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    animation: hero-fade-in 3s ease-out both;
}

/* chỉ ở hero mới kéo lên sát ảnh landing — co lại trên màn nhỏ để không đè
   lên ảnh. Tách riêng để .socials còn dùng lại được ở chỗ khác. */
.hero-section .socials {
    /* margin am chu khong phai transform: transform chi doi cho luc ve, o
       trong layout van chiem cho cu -> de lai 90px trong o day hero */
    margin-top: clamp(-90px, -7vw, -24px);
}

/* cụm social ở cuối phần contact */
.contact-section .socials {
    margin-top: 30px;
}

.socials a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #FFFDF9;
    border: 1px solid rgba(46, 38, 34, .12);
    box-shadow: 0 2px 10px rgba(46, 38, 34, .06);
    transition: transform .22s ease, background .22s ease;
}

.socials a:hover {
    transform: translateY(-3px) rotate(-4deg);
    background: #F6E9D7;
}

.socials svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #2E2622;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* logo GitHub là một khối đặc, không phải nét vẽ */
.socials a[aria-label="GitHub"] svg {
    fill: #2E2622;
    stroke: none;
}

.hero-art {
    /* Chinh toc do o day, khong can dung toi @keyframes */
    --fade-in-time: 1.2s;   /* fade in luc moi vao trang */
    --swap-time: 1s;        /* 1 vong: anh 1 (0.5s) -> anh 2 (0.5s) */

    position: relative;
    width: min(71.5vw, 1000px);   /* màn siêu rộng thì dừng lại, đừng phóng mãi */
    max-width: 100%;
    margin: 0 auto;
    animation: hero-fade-in var(--fade-in-time) ease-out both;
}

.hero-art .hero-frame {
    display: block;
    width: 100%;
    height: auto;
}

/* Anh 2 nam de len anh 1, cung vi tri cung kich thuoc */
.hero-art .frame-2 {
    position: absolute;
    inset: 0;
}

/* step-end = cat thang, khong mo dan. backwards = giu opacity cua moc 0%
   trong luc cho delay, nen luc fade-in khong bi hien chong 2 anh. */
.hero-art .frame-1 {
    animation: hero-swap-1 var(--swap-time) step-end var(--fade-in-time) infinite backwards;
}

.hero-art .frame-2 {
    animation: hero-swap-2 var(--swap-time) step-end var(--fade-in-time) infinite backwards;
}

@keyframes hero-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-swap-1 {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes hero-swap-2 {
    0%   { opacity: 0; }
    50%  { opacity: 1; }
    100% { opacity: 0; }
}

/* Ton trong nguoi dung da tat hieu ung chuyen dong trong he dieu hanh */
@media (prefers-reduced-motion: reduce) {
    .hero-art,
    .hero-art .frame-1,
    .hero-art .frame-2 {
        animation: none;
    }
    .hero-art .frame-2 { opacity: 0; }
}

/* Responsive media query code for max width 900px */
@media screen and (max-width: 900px) {

    :root {
        --font-size-m: 1rem;
        --font-size-l: 1.3rem;
        --font-size-xl: 1.5rem;
        --font-size-xxl: 1.7rem;
    }

    .hero-section .section-content {
        text-align: center;
        padding: 30px 20px 20px;
    }

    /* màn hẹp: cho ảnh landing rộng gần hết khung, đỡ bị bé tí */
    .hero-art {
        width: 92vw;
    }

    /* Tren dien thoai, anh landing rat thap (~160px) nen ep hero cao ca man
       hinh se de lai hai khoang trong to o tren va duoi. Bo min-height, de
       padding quyet dinh khoang cach -> deu va doan truoc duoc. */
    .hero-section {
        min-height: auto;
        padding-block: clamp(40px, 11vw, 80px);
    }
}

    /* About section styling */
    .about-section {
        position: relative;
    }

    .about-section .section-content {
        display: flex;
        position: relative;
        z-index: 1;
    }

    .about-image-wrapper {
        margin-left: 75px;
        display: grid;
        place-items: center;
    }

    .location-button {
        border-radius: 20px;
        border: 0px solid red;
        padding: 8px;
        background-color: white;
        translate: -20px 0;
        font-family: "Poppins";
        font-size: 1.2rem;
        box-shadow: 0px 0px 20px rgba(184, 24, 24, 0.15);    
    }

    .about-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text .subtitle {
        font-family: "Gaegu", "Playfair Display", cursive;
        font-size: 1.5rem;
        line-height: 1.5;
        color: var(--coral);
    }

    .about-text .title {
        margin: 15px;
        font-family: "Lora", serif;
        font-size: clamp(1.9rem, 5.2vw, 50px);
        font-weight: 500;
    }

    .text-head {
        font-size: 1.1rem; 
        color: var(--ink-soft);
        font-family:"Poppins", "Quicksand", sans-serif;
        padding: 8px;
    }

.fact-list { display: grid; gap: 12px; text-align: left; }
.fact-list li {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px 18px;
  box-shadow: var(--shadow-s);
  transition: transform .22s ease, box-shadow .22s ease;
  text-align: left;
}
.fact-list li:hover { transform: translateX(6px); box-shadow: var(--shadow-m); }
.fact-list span { font-size: 1.5rem; }
.fact-list b { display: block; font-size: 1rem; text-align: left; }
.fact-list small { color: var(--ink-soft); font-size: .88rem; }



@media screen and (max-width: 800px) {
    .about-image-wrapper {
        margin-left: 0;
    }

    .about-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-section .section-content {
        display: block;
        align-items: center;
    }

}


/* Eperience section */
.experience-section {
    padding: 80px 0 120px;
}

.experience-section .section-content {
    display: flex;
    justify-content: space-between;
}

.experience-section-title {
    margin: 20px;
}

.experience-section .subtitle {
    font-family: "Gaegu", "Playfair Display", cursive;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--coral);
    }

.experience-section .title {
    font-family: "Lora", serif;
    font-size: clamp(1.9rem, 5.2vw, 50px);
    font-weight: 500;
    }

@media screen and (max-width: 800px) {
    .experience-section .section-content {
        display: flex;
        flex-direction: column;
    }
}
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    
}

.exp-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 26px 32px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.04);
    transition: background 0.25s ease;
}

.exp-card:hover {
    background: rgba(0, 0, 0, 0.1);
}

.exp-logo {
    flex: 0 0 90px;
    position: relative;
    z-index: 1;
}

.exp-logo img {
    width: 100%;
    height: auto;
}

.exp-body {
    position: relative;
    z-index: 1;
}

.exp-role {
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-semibold);
}

.exp-sub {
    color: #6b6b6b
}

.exp-tags-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-card:hover .exp-tags-wrap {
    grid-template-rows: 1fr;
}

.exp-tags-clip {
    overflow: hidden;
    min-height: 0;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;

}

.exp-tags span {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-semibold);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.exp-card:hover .exp-tags span {
    opacity: 1;
    transform: none;
}

/* Anh nen */
.exp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--photo);
    background-size: cover;
    background-position: right center;
    opacity: 0;
    transition: opacity 0.45s ease;

    -webkit-mask-image: linear-gradient(to right, transparent 40%, black 75%);
            mask-image: linear-gradient(to right, transparent 40%, black 75%);
}

.exp-card:hover::before {
    opacity: 1;
}

/* ============================================================
   Portfolio Showcase
   Bo cuc theo video 1 (tieu de giua + thanh tab + luoi the),
   kieu the va popup theo video 2.
   ============================================================ */

.showcase-section {
    padding: 20px 0 130px;
}

.showcase-title {
    text-align: center;
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    line-height: 1.15;
}

.showcase-subtitle {
    max-width: 620px;
    margin: 16px auto 0;
    text-align: center;
    color: #9a8d78;
    line-height: 1.65;
}

    .showcase-section .subtitle {
        font-family: "Gaegu", "Playfair Display", cursive;
        font-size: 1.5rem;
        line-height: 1.5;
        color: var(--coral);
        text-align:center
    }

    .showcase-section .title {
        margin: 15px;
        font-family: "Lora", serif;
        font-size: clamp(1.9rem, 5.2vw, 50px);
        font-weight: 500;
        text-align: center;
    }

/* --- Thanh tab --- */
.showcase-tabs {
    position: relative;
    display: flex;
    max-width: 900px;
    margin: 48px auto 0;
    padding: 8px;
    border-radius: 20px;
    background: rgba(180, 124, 56, 0.07);
    border: 1px solid rgba(180, 124, 56, 0.14);
}

/* Mieng trang truot ben duoi tab dang chon.
   --active (0/1/2) do JS set moi khi bam tab. */
.tab-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc((100% - 16px) / 3);
    height: calc(100% - 16px);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(180, 124, 56, 0.18);
    transform: translateX(calc(var(--active, 0) * 100%));
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-tab {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 14px;
    color: #9a8d78;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-medium);
    transition: color 0.25s ease;
}

.showcase-tab .tab-icon {
    font-size: 15px;
    line-height: 1;
}

.showcase-tab.is-active {
    color: #b47c38;
    font-weight: var(--font-weight-semibold);
}

/* --- Cac panel --- */
.showcase-panel {
    display: none;
}

.showcase-panel.is-active {
    display: block;
    animation: showcase-fade 0.4s ease;
}

@keyframes showcase-fade {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

/* --- Luoi the --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
    margin-top: 44px;
}

.s-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #efe8dc;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.s-card:hover {
    transform: translateY(-6px);
    border-color: #e2d5bf;
    box-shadow: 0 16px 32px rgba(120, 90, 50, 0.14);
}

.card-thumb {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(140deg, #fdf6e7, #f1ece0);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.s-card:hover .card-thumb img {
    transform: scale(1.05);
}

.card-thumb-fallback {
    font-size: 46px;
    opacity: 0.55;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px 22px;
}

.card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.card-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-semibold);
}

.card-emoji {
    font-size: 1em;
}

.card-date {
    flex-shrink: 0;
    color: #a89b86;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span {
    padding: 4px 12px;
    border-radius: 999px;
    background: #f5f1e8;
    color: #8a7c66;
    font-size: 0.78rem;
}

.card-blurb {
    color: #6f6455;
    font-size: var(--font-size-s);
    line-height: 1.6;
}

/* --- Tab Tech Stack --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 44px;
}

.tech-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #efe8dc;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-medium);
    transition: transform 0.25s ease, border-color 0.25s ease;

}

.tech-tile:hover {
    transform: translateY(-10px);
    border-color: #e2d5bf;
}

.tech-emoji {
    font-size: 22px;
}

/* --- Popup chi tiet --- */
body.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: white;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* BAT BUOC: .modal-backdrop dat display:grid, ma luat cua minh thang luat
   [hidden]{display:none} cua trinh duyet. Thieu dong nay thi popup tuy trong
   suot van nam de len ca trang va nuot het click/hover cua moi thu ben duoi. */
.modal-backdrop[hidden] {
    display: none;
}

.modal-backdrop.is-open {
    opacity: 1;
}

.modal {
    position: relative;
    width: min(880px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(60, 40, 15, 0.28);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.is-open .modal {
    transform: none;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #6f6455;
    font-size: 22px;
    line-height: 1;
    transition: background 0.25s ease;
}

.modal-close:hover {
    background: #f0e9db;
}

.modal-media {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(140deg, #fdf6e7, #f1ece0);
}

.modal-media img,
.modal-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

}

.modal-media-fallback {
    font-size: 64px;
    opacity: 0.5;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 30px 32px;
}

.modal-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-semibold);
}

.modal-date {
    flex-shrink: 0;
    color: #a89b86;
    font-size: 0.82rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-tags span {
    padding: 5px 14px;
    border-radius: 999px;
    background: #f5f1e8;
    color: #8a7c66;
    font-size: 0.8rem;
}

/* Mo ta ben trai, nut hanh dong ben phai */
.modal-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-top: 6px;
}

.modal-desc {
    color: #6f6455;
    font-size: var(--font-size-s);
    line-height: 1.7;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.try-button {
    padding: 10px 20px;
    border-radius: 999px;
    background: #f2ece0;
    color: #6f6455;
    font-size: var(--font-size-s);
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease;
}

.try-button:hover {
    background: #b47c38;
    color: #fff;
}

.gh-button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e7dfd0;
    transition: background 0.25s ease;
}

.gh-button:hover {
    background: #f5f1e8;
}

.gh-button svg {
    width: 20px;
    height: 20px;
    fill: #4a4033;
}

@media screen and (max-width: 700px) {
    .showcase-tab .tab-icon {
        display: none;
    }

    .showcase-tab {
        padding: 12px 6px;
    }

    .modal-bottom {
        flex-direction: column;
        gap: 18px;
    }

    .modal-body {
        padding: 22px 20px 26px;
    }
}

/* ============================================================
   The Experience: hover thi nay len, bam vao thi mo popup
   (dung chung popup voi Portfolio Showcase)
   ============================================================ */

.exp-card {
    /* .exp-card gio la <button> nen phai tra lai chieu rong va can le trai */
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;

    /* cubic-bezier nay vot qua diem dich roi lui lai -> cam giac nay len */
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.25s ease;
}

.exp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(120, 90, 50, 0.16);
}

/* Nhan xuong thi lun lai mot chut cho co phan hoi */
.exp-card:active {
    transform: translateY(-2px);
    transition-duration: 0.1s;
}

/* Logo cong ty dung truoc ten trong popup */
.modal-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Contact Us */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section .section-content {
    background: linear-gradient(150deg, #FFFDF8, #d3c0b3);
    width: min(680px, 92vw);      /* truoc day be ngang do 50vw cua o input quyet dinh */
    padding: clamp(28px, 5vw, 50px);
    border-radius: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-section .contact-form .form-input {
    width: 100%;
    height: 50px;
    padding: 0 12px;
    margin-bottom: 16px;
    background: white;
    outline: none;
    border-radius: var(--border-radius-s);
    border: 1px solid var(--medium-gray-color);
}

.contact-section .contact-form .form-input:focus {
    border-color:#4a4033
}
.contact-section .contact-form .input-combo textarea {
    height: 100px;
    padding: 12px;
    resize: vertical;
}

.contact-section .contact-form .submit-button {
    padding: 10px 26px;
    color: white;
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    background: var(--sage); color: #FFF9EF;
    box-shadow: 0 10px 22px rgba(127, 146, 101, .32);
    border-radius: var(--border-radius-m);
    border: 1px solid #6f6455;
    transition: 0.3s ease;
}

.contact-section .contact-form .submit-button:hover {
    color: #6f6455;
    background: transparent;
}

.contact-section .contact-form .input-combo {
    width: 100%;
}

.contact-section .contact-form label {
    font-family: "Poppins", "Quicksand", sans-serif;
    font-size: var(--font-size-m);
    color: var(--ink-soft);
    margin-bottom: 12px;
    font-weight: var(--font-weight-medium);
}

.form-input::placeholder {
    color: var(--medium-gray-color);
    font-family: "Poppins", "Quicksand", sans-serif;
}
.contact-section .section-content .subtitle {
    font-family: "Gaegu", "Playfair Display", cursive;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--coral);
    text-align: center;
    }

.contact-section .section-content .title {
    font-family: "Lora", serif;
    font-size: clamp(1.9rem, 5.2vw, 50px);
    font-weight: 500;
    text-align: center;
    }

.contact-section .section-content .contact-text {
    font-family: "Poppins", "Quicksand", sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 15px auto 28px;
    max-width: 30rem;
    text-align: center;
}



/* ============================================================
   About section — khung ảnh minh hoạ nhún vai (port từ mee-site)
   Hiệu ứng: khung vòm + bóng đổ, blob nền, vòng lặp nhún vai,
   bong bóng thoại, và mấy sticker lơ lửng.
   ============================================================ */

.about-image-wrapper {
    position: relative;          /* mốc cho blob / bubble / sticker */
}

/* blob mềm phía sau khung, đổi hình chậm */
.art-glow {
    position: absolute;
    width: 86%;
    aspect-ratio: 1 / 1.08;
    border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
    background: linear-gradient(150deg, #E9D7BC, #F2DCC0 45%, #A8B892);
    opacity: .5;
    filter: blur(2px);
    animation: blob 14s ease-in-out infinite;
}

@keyframes blob {
    0%, 100% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; transform: rotate(0deg) scale(1); }
    50%      { border-radius: 56% 44% 58% 42% / 44% 56% 44% 56%; transform: rotate(4deg) scale(1.03); }
}

/* khung vòm cắt ảnh */
.art-frame {
    position: relative;
    grid-area: 1 / 1;
    width: 430px;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 210px 210px 34px 34px;
    background: linear-gradient(180deg, #FFFDF8, #F7EEDF);
    border: 1px solid rgba(46, 38, 34, .08);
    box-shadow: 0 30px 70px rgba(46, 38, 34, .16);
    overflow: hidden;
}

/* lớp chạy animation — để to hơn khung một chút để lúc nhấc/nghiêng
   không bao giờ lòi mép khung ra sau ảnh */
.art-shrug {
    position: absolute;
    inset: -3% -2.5%;
    transform-origin: 50% 100%;
    animation: shrug 4.2s cubic-bezier(.42, 0, .3, 1) infinite;
    will-change: transform;
}

.art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
    transform: scale(1.06);      /* zoom nhẹ cho ảnh lấp đầy vòm */
    transform-origin: 50% 25%;
}

/* vòng lặp nhún vai */
@keyframes shrug {
    /* đứng yên */
    0%, 26%   { transform: translateY(0)     rotate(0deg)     scale(1, 1); }
    /* nhấc vai lên — nhanh, dứt khoát */
    38%       { transform: translateY(-8px)  rotate(-.75deg)  scale(.995, 1.012); }
    /* giữ một nhịp ở đỉnh */
    48%, 56%  { transform: translateY(-10px) rotate(-.95deg)  scale(.994, 1.015); }
    /* thả xuống, nảy nhẹ rồi ổn định */
    72%       { transform: translateY(1.5px) rotate(.22deg)   scale(1.002, .997); }
    84%       { transform: translateY(-1px)  rotate(-.06deg)  scale(1, 1.001); }
    100%      { transform: translateY(0)     rotate(0deg)     scale(1, 1); }
}

/* bong bóng thoại, hiện đúng lúc nhún */
.bubble {
    position: absolute;
    top: 4%;
    left: -4%;
    z-index: 2;
    padding: 8px 15px;
    background: #FFFDF9;
    border: 1px solid rgba(46, 38, 34, .12);
    border-radius: 18px 18px 18px 4px;
    font-family: 'Gaegu', cursive;
    font-size: 1.25rem;
    line-height: 1.2;
    color: #2E2622;
    box-shadow: 0 2px 10px rgba(46, 38, 34, .06);
    opacity: 0;
    transform: translateY(6px) scale(.92);
    animation: bubble 4.2s ease-in-out infinite;
}

@keyframes bubble {
    0%, 30%   { opacity: 0; transform: translateY(6px) scale(.92); }
    42%, 58%  { opacity: 1; transform: translateY(0) scale(1); }
    70%, 100% { opacity: 0; transform: translateY(-4px) scale(.96); }
}

/* sticker lơ lửng quanh khung */
.sticker {
    position: absolute;
    font-size: 1.9rem;
    filter: drop-shadow(0 6px 12px rgba(46, 38, 34, .18));
    animation: float 7s ease-in-out infinite;
}
.sticker-1 { top: 2%; right: -6%; animation-delay: -1s; }
.sticker-2 { bottom: 22%; left: -6%; animation-delay: -3s; color: #E1633E; }
.sticker-3 { bottom: 12%; right: -5%; animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%      { transform: translateY(-14px) rotate(6deg); }
}

.location-button {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    padding-right: 12px;
}

@media screen and (max-width: 800px) {
    .art-frame { width: 340px; }
    .bubble { font-size: 1.05rem; left: 0; }
    .sticker { font-size: 1.5rem; }
}

/* ai bật giảm chuyển động thì mọi thứ đứng yên */
@media (prefers-reduced-motion: reduce) {
    .art-shrug, .bubble, .sticker, .art-glow { animation: none; }
    .bubble { opacity: 1; transform: none; }
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: .98rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.btn-primary {
    background: #7F9265;
    color: #FFF9EF;
    box-shadow: 0 10px 22px rgba(127, 146, 101, .32);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(127, 146, 101, .40);
}

.btn-ghost {
    background: transparent;
    border-color: #2E2622;
    color: #2E2622;
}
.btn-ghost:hover {
    background: #2E2622;
    color: #FDF6EC;
    transform: translateY(-2px);
}

/* ============================================================
   Sunny's Corner
   ============================================================ */

.sunny-panel {
    /* BAT BUOC: .modal-close la position:absolute. Thieu dong nay thi no
       neo vao .modal-backdrop (position:fixed) -> nut X bay ra goc man hinh. */
    position: relative;

    display: grid;
    grid-template-columns: 1fr minmax(210px, 290px);
    align-items: center;
    gap: 40px;

    /* Khong gioi han thi panel keo dai bang ca man hinh, chu chay het chieu
       ngang rat kho doc. 70 ky tu mot dong la thoai mai nhat. */
    width: min(880px, 100%);
    max-height: 88vh;
    overflow-y: auto;

    padding: 48px 50px;
    border-radius: 26px;
    background: linear-gradient(135deg, #FFF6F0 0%, #FFE3D0 100%);
    box-shadow: 0 30px 70px rgba(120, 70, 40, 0.28);

    transform: translateY(18px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Luat o tren chi nham vao .modal, khong dinh .sunny-panel. Thieu dong nay
   thi panel dung yen mot cho, chi co nen mo fade - trong nhu bi giat cuc. */
.modal-backdrop.is-open .sunny-panel {
    transform: none;
}

.sunny-text h1,
.sunny-text h3 {
    font-family: "Lora", serif;
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
}

.sunny-sub {
    font-family: "Gaegu", "Playfair Display", cursive;
    font-size: 1.45rem;
    line-height: 1.3;
    color: #C2521F;
    margin: 4px 0 24px;
}

/* :not(.sunny-sub) de dong phu de giu khoang cach rieng cua no */
.sunny-text p:not(.sunny-sub) {
    color: #6B4F3F;
    font-size: 0.96rem;
    line-height: 1.85;
    margin-bottom: 13px;
}

.sunny-text p:last-child {
    margin-bottom: 0;
}

/* Anh nghieng nhe kieu dan sticker - hop voi mach cua trang */
.sunny-gallery img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 8px solid #fff;
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(120, 70, 40, 0.22);
    transform: rotate(2.5deg);
    transition: transform 0.3s ease;
}

.sunny-gallery img:hover {
    transform: rotate(0deg) scale(1.02);
}

@media screen and (max-width: 700px) {
    .sunny-panel {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 36px 26px;
    }

    /* Anh len tren cho de nhin trong man hinh doc */
    .sunny-gallery {
        order: -1;
    }

    .sunny-gallery img {
        aspect-ratio: 4 / 3;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sunny-panel,
    .sunny-gallery img {
        transition: none;
        transform: none;
    }
}
.sunny-corner {
    background: #e05927db;
    color: #FFF9EF;
    box-shadow: 0 10px 22px rgba(146, 129, 101, 0.32);  
}

.site-footer p {
  text-align: center;
  padding: 34px 20px 46px;
  color: var(--ink-soft);
  font-size: .9rem;
  font-family: "Poppins", "Quicksand", sans-serif;
}

.site-footer span {
    font-family: "poppins", "Quicksand", sans-serif;
}


/* ============================================================
   Hoan thien truoc khi publish: focus cho ban phim, skip link,
   va ton trong prefers-reduced-motion tren toan trang.
   ============================================================ */

/* Vien focus - nguoi dung ban phim (Tab) can nhin thay minh dang o dau.
   :focus-visible chi hien khi dung Tab, khong hien khi bam chuot. */
:where(a, button, input, textarea, [tabindex]):focus-visible {
    outline: 2.5px solid var(--coral);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Link nhay thang toi noi dung - hien ra khi bam Tab lan dau */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 10px 18px;
    background: var(--ink);
    color: #FDF6EC;
    font-weight: 600;
    border-radius: 0 0 var(--border-radius-s) 0;
}
.skip-link:focus {
    left: 0;
}

/* Dong trang thai duoi form lien he */
.form-status {
    margin-top: 4px;
    min-height: 1.4em;
    font-size: var(--font-size-s);
    color: var(--ink-soft);
}
.form-status.is-error {
    color: #B3402A;
}

/* Cuon muot khi bam link tren thanh dieu huong */
html {
    scroll-behavior: smooth;
}

/* May ai bat "giam chuyen dong" trong cai dat he dieu hanh thi tat het
   animation - keo dai 0.01ms thay vi none de animation van "chay xong"
   mot lan, tranh viec phan tu ket thuc o trang thai an. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* chu chao va bong bong thoai von an truoc khi animation chay,
       nen phai tra ve trang thai hien */
    .greeting {
        width: auto !important;
        border-right-color: transparent !important;
    }
    .bubble {
        opacity: 1 !important;
        transform: none !important;
    }
}
