@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;600&display=swap');
:root {
    --bg-color: #0c0c0c;
    --card-bg: rgba(26, 26, 26, 0.6);
    --accent-color: #e0c068;
    --accent-hover: #f0d078;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: rgba(224, 192, 104, 0.2);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --glass: rgba(255, 255, 255, 0.03);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(224, 192, 104, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(224, 192, 104, 0.05) 0%, transparent 20%);
}
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(224, 192, 104, 0.1);
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}
.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: var(--accent-color);
}
.nav-links a:hover::before {
    width: 100%;
}
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)),
        url('../images/hero.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}
.hero h1 {
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #cfc09f, #ffecb3, #c4a747);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) perspective(500px) rotateX(10deg);
    opacity: 0;
    animation: slideUp3D 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    letter-spacing: -2px;
}
.hero p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    max-width: 700px;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}
@keyframes slideUp3D {
    to {
        transform: translateY(0) perspective(500px) rotateX(0);
        opacity: 1;
    }
}
.smoke-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.smoke {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url('../images/smoke.png') no-repeat center;
    background-size: cover;
    opacity: 0;
    mix-blend-mode: screen;
}
.smoke-1 {
    animation: smokeAnim 15s infinite linear;
    opacity: 0.4;
}
.smoke-2 {
    animation: smokeAnim 20s infinite reverse linear;
    animation-delay: -5s;
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.2);
}
.smoke-3 {
    animation: smokeAnim 25s infinite linear;
    animation-delay: -10s;
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1.5);
}
@keyframes smokeAnim {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1.1);
        opacity: 0.2;
    }
}
.hero h1,
.hero p,
.hero .btn {
    position: relative;
    z-index: 2;
}
.btn-hero {
    margin-top: 2rem;
    opacity: 0;
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    box-shadow: 0 0 30px rgba(224, 192, 104, 0.4);
    background: var(--accent-color);
    color: #000;
}
.btn-hero:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.6);
}
section {
    padding: 6rem 5%;
}
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}
.section-title h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--accent-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
    border-radius: 2px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    perspective: 2000px;
}
.card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    position: relative;
    backdrop-filter: blur(10px);
    cursor: pointer;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}
.card:hover {
    transform: translateY(-20px) rotateX(5deg) scale(1.02);
    box-shadow:
        0 40px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px var(--accent-color);
    border-color: transparent;
}
.card:hover::before {
    opacity: 1;
}
.card-img {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
}
.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #1a1a1a 0%, transparent 60%);
    z-index: 1;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
}
.card:hover .card-img img {
    transform: scale(1.15);
}
.card-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}
.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}
.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
#regions {
    background: linear-gradient(180deg, var(--bg-color) 0%, #151515 100%);
    position: relative;
    overflow: hidden;
}
.regions-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.regions-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.map-wrapper {
    flex: 1.2;
    text-align: center;
    perspective: 1000px;
}
.vietnam-map {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    animation: floatMap 6s ease-in-out infinite;
    transform-style: preserve-3d;
}
@keyframes floatMap {
    0%,
    100% {
        transform: translateY(0) rotateY(0deg);
    }
    50% {
        transform: translateY(-20px) rotateY(3deg);
    }
}
.region-block {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.region-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            var(--accent-color),
            transparent);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.region-block:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(224, 192, 104, 0.05);
}
.region-block h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}
.region-block p {
    color: var(--text-muted);
    line-height: 1.7;
}
#recipe {
    background: var(--bg-color);
    position: relative;
}
.recipe-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}
.recipe-video {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.recipe-video::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1));
    z-index: 1;
    pointer-events: none;
}
.recipe-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s ease;
}
.recipe-video:hover video {
    transform: scale(1.02);
}
.recipe-info {
    padding: 2rem;
}
.recipe-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}
.recipe-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.recipe-info ul {
    list-style: none;
    margin-bottom: 2.5rem;
}
.recipe-info li {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.recipe-info i {
    color: var(--accent-color);
    width: 20px;
}
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(45deg, transparent 50%, var(--accent-color) 50%);
    background-size: 250%;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}
.btn:hover {
    background-position: 100%;
    color: #000;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
    border-color: var(--accent-hover);
}
.btn::before {
    display: none;
}
.btn span {
    position: relative;
    z-index: 1;
}
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.info-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}
.info-text h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}
.info-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.info-section img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
}
.info-section img:hover {
    transform: scale(1.02);
}
footer {
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(to top, #000 0%, #111 100%);
    position: relative;
    overflow: hidden;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}
.social-links a:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 0 20px var(--accent-color);
}
footer p {
    color: var(--text-muted);
    margin-top: 2rem;
    font-size: 0.9rem;
}
@media (max-width: 992px) {
    .regions-content {
        flex-direction: column;
    }
    .map-wrapper {
        order: -1;
    }
    .nav-links {
        display: none;
    }
    .recipe-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .info-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}
@media (max-width: 768px) {
    section {
        padding: 4rem 5%;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .section-title h2 {
        font-size: 2.2rem;
    }
    .card-content {
        padding: 1.5rem;
    }
    .region-block {
        padding: 1.5rem;
    }
}
#feedback {
    background: #0a0a0a;
    position: relative;
}
.feedback-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}
.form-group {
    margin-bottom: 1.5rem;
}
.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}
.feedback-form input:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}
.feedback-form button {
    width: 100%;
    margin-top: 1rem;
}
@media (max-width: 480px) {
    nav {
        padding: 1rem 5%;
    }
    .logo {
        font-size: 1.4rem;
    }
    .hero {
        padding: 0 1rem;
    }
    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}
.modal-content {
    background: #111;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 25px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    animation: modalScale 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}
@keyframes modalScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.close-btn {
    position: absolute;
    right: 25px;
    top: 20px;
    color: #fff;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    line-height: 1;
}
.close-btn:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}
.modal-header img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}
.modal-body {
    padding: 3rem;
    color: var(--text-color);
}
.modal-body h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 2.8rem;
    letter-spacing: -1px;
}
.gem-tags {
    margin-bottom: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.gem-tags span {
    background: rgba(224, 192, 104, 0.1);
    color: var(--accent-color);
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.modal-body p {
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 1.1rem;
}
.gem-specs {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.spec-item {
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}
.spec-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.spec-item strong {
    color: var(--accent-color);
}
.btn-modal {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1.2rem;
    font-size: 1rem;
    letter-spacing: 2px;
}
@media (max-width: 768px) {
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
    }
    .modal-header img {
        height: 300px;
    }
    .modal-body {
        padding: 2rem;
    }
    .modal-body h2 {
        font-size: 2rem;
    }
}

/* --- BỔ SUNG FIX LỖI TRÀN MÀN HÌNH TRÊN ĐIỆN THOẠI (BẢN CUỐI CÙNG) --- */
@media screen and (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden !important;
        position: relative; /* Khoá cứng khung trên iPhone */
    }
    * {
        box-sizing: border-box !important;
        max-width: 100vw;
    }
    .hero, section, footer, nav {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .info-section, .recipe-preview {
        grid-template-columns: 1fr !important;
    }
    .grid {
        grid-template-columns: 1fr !important;
    }
    .regions-content {
        flex-direction: column;
        gap: 2rem;
    }
    .hero h1 {
        font-size: 2.5rem !important;
        transform: none !important;
        word-wrap: break-word; /* Ép chữ tự xuống dòng nếu quá dài */
    }
    .hero p {
        font-size: 1rem !important;
    }
    .nav-links {
        display: none !important; 
    }
    .logo {
        font-size: 1.2rem;
    }
    section {
        padding: 2rem 1rem !important;
        width: 100%;
    }
}