/* --- KHAI BÁO CUSTOM FONT: BEAUTIQUE DISPLAY --- */
@font-face {
    font-family: 'Beautique Display';
    src: url('./fonts/BeautiqueDisplay-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 1. Cài đặt font nét thường (Regular) */
@font-face {
    font-family: 'Beautique Display';
    src: url('./fonts/BeautiqueDisplay-Regular.otf') format('opentype');
    font-weight: normal; 
    font-style: normal;
    font-display: swap;
}

/* 2. Cài đặt font nét mỏng (Light) */
@font-face {
    font-family: 'Beautique Display';
    src: url('./fonts/BeautiqueDisplay-Light.otf') format('opentype');
    font-weight: 300; 
    font-style: normal;
    font-display: swap;
}

/* 3. Cài đặt font nét đậm (Bold) */
@font-face {
    font-family: 'Beautique Display';
    src: url('./fonts/BeautiqueDisplay-Bold.otf') format('opentype');
    font-weight: bold; 
    font-style: normal;
    font-display: swap;
}

/* Base styles */
body {
    background-color: #FCF6E8;
    color: #1a1a1a;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar tinh tế */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FCF6E8; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Hiệu ứng Fade-in / Slide-up */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

.quote-box { position: relative; }
.quote-box::before {
    content: "“";
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 120px;
    font-family: "Playfair Display", serif;
    color: rgba(192, 86, 33, 0.1);
    line-height: 1;
    z-index: -1;
}

.parallax-container { overflow: hidden; position: relative; }
.parallax-img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: -15%;
    left: 0;
    will-change: transform;
}

.drop-cap::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: bold;
    color: #C05621;
    float: left;
    line-height: 0.8;
    margin-right: 0.15em;
    margin-top: 0.1em;
}

/* --- CSS Flip Card Vuông vức --- */
.flip-card {
    position: relative;
    cursor: pointer;
    border-radius: 0px; 
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}
.flip-card:hover {
    transform: translateY(-10px);
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}
.flip-card-front, .flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.flip-card-front {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    border: 1px solid #f3f4f6;
    transform: translateX(0);
    z-index: 2;
}
.flip-card-back {
    background-color: #FCF6E8;
    color: #1a1a1a;
    padding: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    display: block;
    transform: translateX(100%);
    z-index: 3;
}
.flip-card.flipped .flip-card-front { transform: translateX(-100%); }
.flip-card.flipped .flip-card-back { transform: translateX(0); }

.flip-card-back::-webkit-scrollbar { width: 4px; }
.flip-card-back::-webkit-scrollbar-track { background: transparent; }
.flip-card-back::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.scroll-fade-out { transition: opacity 0.1s linear, transform 0.1s linear; }

.group-frame:hover img { transform: scale(1.05); }
.group-frame:hover .overlay-title { background: rgba(192, 86, 33, 0.9); }
.smooth-transition { transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

.card-wrapper {
    width: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s ease;
}
@media (min-width: 640px) {
    .card-wrapper { width: calc(50% - 1rem); }
    .card-wrapper.expanded { width: 100%; }
}
@media (min-width: 1024px) {
    .card-wrapper { width: calc(33.333% - 1.333rem); }
    .card-wrapper.expanded { width: calc(66.666% - 0.666rem); }
}
@media (min-width: 1280px) {
    .card-wrapper { width: calc(25% - 1.5rem); }
    .card-wrapper.expanded { width: calc(50% - 1rem); }
}

/* --- MAP INTERACTIVE COMPONENT CSS --- */
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes fadeInSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); } 70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }

.path-animated { 
    animation: dash 2.5s ease-in-out forwards; 
}
.info-panel { animation: fadeInSlideUp 0.6s ease-out forwards; }
.node-pulse { animation: pulseGlow 2s infinite; }

.custom-scrollbar::-webkit-scrollbar, .map-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track, .map-scrollbar::-webkit-scrollbar-track { background: #0f172a; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb, .map-scrollbar::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover, .map-scrollbar::-webkit-scrollbar-thumb:hover { background: #475569; }
