/* Giá trị mặc định; Style:* trong appsettings (và StylePortrait:* ở màn dọc) ghi đè qua <style> trong Index.cshtml */
:root {
    --bg-dim: 0;
    --logo-x: 0;
    --logo-y: -29;
    --float-amp: 10px;
    --float-dur: 8s;
    --btn-y: 20;
    --btn-w: 900px;
    --btn-gap: 16px;
    --btn-blur: 3px;
    --btn-fill: .048;
    --btn-glow: 1.35;
    --btn-radius: 20px;
    --btn-bw: 1px;
    --btn-border: hsl(0, 0%, 100%);
    --btn-gc: 0, 0%, 100%;
    --footer-size: 12px;
    --flick-name: none;
    --flick-dur: 4s;
}

html {
    overscroll-behavior: none;
}

html,
body {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, sans-serif;
    background: #000;
    overflow-x: hidden;
}

/* phần đầu trang (hero): đúng 1 màn hình, giữ nguyên giao diện cũ; nội dung mới nằm bên dưới */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    isolation: isolate;
    background: #000;
}

/* nền: ảnh + lớp đổ màu, hiệu ứng điều khiển bởi site.js */
/* khung nền cố định theo màn hình lớn nhất (lvh), không co giãn khi thanh địa chỉ điện thoại ẩn/hiện */
#bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

#bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--bg-dim));
    pointer-events: none;
}

#stage {
    position: absolute;
    inset: 0;
    will-change: transform;
}

#stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#tint {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* logo và nút đặt theo % khung hình, tính từ tâm (giống trang mockup) */
.hero main {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#logoWrap {
    position: absolute;
    left: calc(50% + var(--logo-x) * 1%);
    top: calc(50% + var(--logo-y) * 1%);
    transform: translate(-50%, -50%);
    line-height: 0;
    animation: var(--flick-name) var(--flick-dur) linear infinite;
}

/* kích thước canvas do site.js đặt */
#logo {
    display: block;
    max-width: none;
    animation: float var(--float-dur) ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(calc(-1 * var(--float-amp)));
    }
}

/* nhấp nháy kiểu neon chập: thỉnh thoảng mờ đi rồi sáng lại (giống mockup) */
@keyframes flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
    }

    20%,
    24%,
    55% {
        opacity: .55;
    }
}

@media (prefers-reduced-motion: reduce) {
    #logo,
    #logoWrap {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }

    .marquee__track {
        animation: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.platforms {
    position: absolute;
    left: 50%;
    top: calc(50% + var(--btn-y) * 1%);
    transform: translateX(-50%);
    width: min(var(--btn-w), 96%);
    display: flex;
    gap: var(--btn-gap);
    pointer-events: auto;
}

.platform-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, var(--btn-fill));
    border: var(--btn-bw) solid var(--btn-border);
    border-radius: var(--btn-radius);
    backdrop-filter: blur(var(--btn-blur));
    -webkit-backdrop-filter: blur(var(--btn-blur));
    transition: background .2s, box-shadow .2s;
}

.platform-btn:hover {
    background: rgba(255, 255, 255, calc(var(--btn-fill) + .13));
    box-shadow:
        0 0 calc(8px * var(--btn-glow)) hsla(var(--btn-gc), calc(.7 * var(--btn-glow))),
        0 0 calc(20px * var(--btn-glow)) hsla(var(--btn-gc), calc(.35 * var(--btn-glow)));
}

.platform-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

footer.hero-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: #000;
    color: #fff;
    padding: 10px 16px;
    font-size: var(--footer-size);
    line-height: 1.4;
}

footer.hero-info p {
    margin: 1px 0;
}

@media (orientation: landscape) {
    footer.hero-info.single-line p {
        display: inline;
    }

    footer.hero-info.single-line p+p {
        margin-left: 6px;
    }
}

@media (orientation: portrait) {
    .platforms {
        flex-direction: column;
        width: min(var(--btn-w), calc(100% - 48px));
    }

    /* màn hình dọc (điện thoại không có hover): các nút phát sáng sẵn */
    .platform-btn {
        background: rgba(255, 255, 255, calc(var(--btn-fill) + .13));
        box-shadow:
            0 0 calc(8px * var(--btn-glow)) hsla(var(--btn-gc), calc(.7 * var(--btn-glow))),
            0 0 calc(20px * var(--btn-glow)) hsla(var(--btn-gc), calc(.35 * var(--btn-glow)));
    }

    footer.hero-info {
        font-size: calc(var(--footer-size) - 2px);
        padding: 8px 12px;
    }
}

/* ================= PHẦN DƯỚI HERO (từ mockup salonindex.html) ================= */
.content,
.site-footer {
    --bg: #0b0710;
    --bg-2: #120b19;
    --ink: #060408;
    --pink: #f0559c;
    --neon: #ff2bd6;
    --neon-core: #ffe4f7;
    --muted: rgba(255, 255, 255, .66);
    --line: rgba(255, 255, 255, .14);
    --display: "Anton", "Impact", "Arial Narrow", sans-serif;
    --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
    --gutter: clamp(16px, 5vw, 80px);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.9 0 0 0 0.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    font-family: var(--sans);
    line-height: 1.65;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

.content *,
.content *::before,
.content *::after,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.content {
    position: relative;
    z-index: 1;
}

.content img {
    display: block;
    max-width: 100%;
}

.content a,
.site-footer a {
    color: inherit;
}

.print {
    -webkit-mask-image: var(--noise);
    mask-image: var(--noise);
    -webkit-mask-size: 180px;
    mask-size: 180px;
}

.content section.block {
    padding: clamp(48px, 6vw, 85px) var(--gutter);
}

.wrap {
    max-width: 1280px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    font: 400 clamp(15px, 1.4vw, 19px)/1 var(--display);
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--pink);
    margin: 0 0 28px;
}

.eyebrow b {
    font-weight: 400;
    letter-spacing: .1em;
    color: #fff;
}

.content h2 {
    font: 400 clamp(52px, 8.4vw, 132px)/.9 var(--display);
    letter-spacing: -.005em;
    text-transform: uppercase;
    color: var(--pink);
    margin: 0 0 36px;
}

/* Overview */
.overview {
    background: var(--bg);
}

/* khoảng trống giữa hero và phần About: giảm còn một nửa */
.content section.overview {
    padding-top: clamp(32px, 4vw, 56px);
}

.overview__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(48px, 7vw, 112px);
    align-items: center;
}

.overview__lead {
    font-size: clamp(18px, 1.6vw, 21px);
    font-weight: 500;
    color: rgba(255, 255, 255, .92);
    max-width: 52ch;
    margin: 0 0 18px;
}

.overview__text {
    color: var(--muted);
    max-width: 58ch;
    margin: 0;
}

.pillars {
    list-style: none;
    padding: 0;
    margin: 52px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.pillars li {
    padding: 26px 20px 0 0;
}

.pillars li+li {
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.pillars b {
    display: block;
    font: 400 30px/1 var(--display);
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
}

.pillars span {
    font-size: 14px;
    color: var(--muted);
}

.overview__media img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

/* Marquee */
.marquee {
    overflow: hidden;
    background: var(--pink);
    color: var(--ink);
    border-block: 1px solid rgba(0, 0, 0, .4);
    padding: 18px 0;
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.marquee__track span {
    font: 400 clamp(28px, 3.6vw, 52px)/1 var(--display);
    text-transform: uppercase;
    padding-right: .6em;
    white-space: nowrap;
}

.marquee__track span::after {
    content: "✦";
    margin-left: .6em;
    font-size: .6em;
    vertical-align: .25em;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* Space */
.space {
    background: var(--bg-2);
}

.space__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 28px 56px;
    margin-bottom: clamp(28px, 3.5vw, 48px);
}

.space__head h2 {
    margin: 0;
}

.space__head p {
    margin: 0;
    color: var(--muted);
    max-width: 40ch;
    font-size: 17px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(240px, 27vw, 400px);
    gap: clamp(10px, 1.4vw, 18px);
}

.tile {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--ink);
}

.tile--wide {
    grid-column: span 2;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter .6s ease;
}

.tile:hover img {
    transform: scale(1.05);
    filter: brightness(1.08);
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(6, 4, 8, .75) 0%, rgba(6, 4, 8, 0) 45%);
}

.tile figcaption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 1;
    font: 400 clamp(22px, 2.2vw, 32px)/1 var(--display);
    text-transform: uppercase;
    color: #fff;
    transition: color .3s ease, text-shadow .3s ease;
}

.tile figcaption small {
    display: block;
    font: 600 11px/1 var(--sans);
    letter-spacing: .3em;
    color: var(--pink);
    margin-bottom: 8px;
}

.tile:hover figcaption {
    color: var(--neon-core);
    text-shadow: 0 0 6px var(--neon), 0 0 18px var(--neon);
}

/* Footer cuối trang */
.site-footer {
    position: relative;
    z-index: 1;
    background: var(--ink);
    padding: clamp(40px, 5vw, 60px) var(--gutter) 24px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px 64px;
    align-items: start;
}

.site-footer h3 {
    font: 400 17px/1 var(--display);
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--pink);
    margin: 4px 0 24px;
}

.site-footer__info p {
    margin: 0 0 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, .9);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.site-footer__links a {
    font-size: 15px;
    text-decoration: none;
    transition: color .3s ease, text-shadow .3s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    outline: none;
    color: var(--neon-core);
    text-shadow: 0 0 6px var(--neon), 0 0 16px var(--neon);
}

.site-footer__bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, .42);
}

.site-footer__bottom a {
    text-decoration: none;
}

.site-footer__bottom a:hover {
    color: #fff;
}

/* hiện dần khi cuộn tới */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (max-width: 960px) {
    .overview__grid {
        grid-template-columns: 1fr;
    }

    .overview__media {
        max-width: 440px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: clamp(220px, 50vw, 380px);
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .eyebrow {
        letter-spacing: .3em;
    }

    .pillars {
        grid-template-columns: 1fr;
    }

    .pillars li,
    .pillars li+li {
        padding: 20px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .gallery {
        grid-auto-rows: 200px;
        gap: 8px;
    }

    .tile figcaption {
        left: 12px;
        bottom: 12px;
    }
}

/* nút gợi ý kéo xuống ở cuối hero */
.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 6vh;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font: 600 12px/1 system-ui, sans-serif;
    letter-spacing: .32em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 0, 0, .6);
    transition: opacity .4s, color .3s;
}

.scroll-hint:hover,
.scroll-hint:focus-visible {
    outline: none;
    color: #ffe4f7;
}

.scroll-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint .chev {
    display: flex;
    flex-direction: column;
    margin-top: -4px;
    filter: drop-shadow(0 0 6px #ff2bd6) drop-shadow(0 0 14px #ff2bd6);
}

.scroll-hint svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: scroll-fade 1.8s ease-in-out infinite;
}

.scroll-hint svg+svg {
    margin-top: -12px;
    animation-delay: .25s;
}

@keyframes scroll-fade {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint svg {
        animation: none;
        opacity: 1;
    }
}
