:root {
    --primary-color: #d4af37;
    --secondary-color: #0a2540;
    --accent-color: #1a365d;
    --light-bg: #f8f9fa;
    --dark-bg: #121212;
}

body {
    font-family: "Montserrat", sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    font-family: "Playfair Display", serif;
    font-weight: 600;
}

/* Navbar Styling */
.navbar {
    background: rgba(10, 37, 64, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 60px;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section - ĐÃ SỬA */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 23, 45, 0), rgba(0, 23, 45, 0)),
        url("./img/phoi-canh.jpg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%,
            rgba(255, 215, 0, 0.15) 0%,
            transparent 30%),
        radial-gradient(circle at 70% 80%,
            rgba(255, 215, 0, 0.1) 0%,
            transparent 40%);
    animation: shimmer 15s ease-in-out infinite alternate;
}

/* Animation for main title - ĐÃ SỬA */
.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: goldRise 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.2s;
    margin-top: 2rem;
    /* Thêm margin-top để cách top */
    padding-top: 3rem;
    /* Thêm padding-top */
}

/* Luxury gold text effect */
.gold-text {
    position: relative;
    display: inline-block;
    font-weight: 800;

    /* MẶT TRƯỚC – VÀNG SÁNG */
    background: linear-gradient(180deg,
            #fffdf2 0%,
            #fff1a8 20%,
            #ffd84d 45%,
            #ffcc00 70%,
            #ffe680 100%);

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* VIỀN SÁNG */
    -webkit-text-stroke: 1px #ffda44;
}

/* THÂN KHỐI 3D */
.gold-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;

    /* ĐẨY KHỐI RA SAU */
    transform: translate(10px, 12px);

    /* GRADIENT THÂN KHỐI */
    background: linear-gradient(180deg,
            #e6b800 0%,
            #cfa000 50%,
            #a67c00 100%);

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    pointer-events: none;
}

/* BÓNG ĐỔ MƯỢT */
.gold-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -2;

    color: rgba(0, 0, 0, 0.35);
    transform: translate(18px, 20px);
    filter: blur(8px);

    pointer-events: none;
}

/* Staggered layout for subtitle - ĐÃ SỬA */
.staggered-subtitle {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.staggered-subtitle h1 {
    font-size: 2.8rem;
    font-weight: 600;
    opacity: 1;
    position: relative;
    padding: 0.8rem 3rem;
    overflow: visible;
}

.staggered-subtitle h1:nth-child(1) {
    align-self: flex-start;
    animation: slideInLeft 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 1.2s;
    border-left: 3px solid #ffd700;
    transform: translateX(0);
}

.staggered-subtitle h1:nth-child(2) {
    align-self: flex-end;
    animation: slideInRight 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 2.8s;
    border-right: 3px solid #ffd700;
    text-align: right;
    transform: translateX(0);
}

/* Button styling */
.btn-primary-custom {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 4.5s;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #000;
}

.btn-primary-custom::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.7s ease;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

/* Floating particles effect */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffd700;
    border-radius: 50%;
    animation: floatParticle 20s linear infinite;
    opacity: 0.3;
}

/* Animations - ĐÃ SỬA */
@keyframes goldRise {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    60% {
        opacity: 1;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    60% {
        opacity: 1;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmerGold {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes letterFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.letter {
    opacity: 1 !important;
    animation: none !important;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .staggered-subtitle h1 {
        font-size: 2.2rem;
        padding: 0.6rem 2rem;
        opacity: 1 !important;
        visibility: visible !important;
        animation: none !important;
    }

    .staggered-subtitle strong {
        opacity: 1 !important;
        visibility: visible !important;
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .staggered-subtitle h1 {
        font-size: 1.8rem;
        padding: 0.5rem 1.5rem;
    }

    .staggered-subtitle {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .staggered-subtitle h1 {
        font-size: 1.5rem;
        padding: 0.4rem 1rem;
    }

    .btn-primary-custom {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .staggered-subtitle {
        gap: 0.8rem;
    }
}

/* Section Styling */
.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Content Box */
.content-box {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.content-box:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
}

/* Gallery */
.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Amenities */
.amenity-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Pricing Cards */
.pricing-card {
    border: 2px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15);
}

.pricing-header {
    background: var(--secondary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Custom Utilities */
.bg-light-custom {
    background-color: #f8f9fa;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Video Section */
.video-section {
    background: linear-gradient(rgba(10, 37, 64, 0.9),
            rgba(10, 37, 64, 0.9));
    padding: 4rem 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading optimization */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Contact form */
.contact-form {
    max-width: 100%;
}

.contact-input-group {
    display: flex;
    flex-direction: column;
    /* xếp dọc */
    gap: 12px;
    /* khoảng cách đều giữa các dòng */
}

.contact-input-group .form-control {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    font-size: 15px;
    padding: 10px 14px;
}

.contact-input-group .btn {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    font-weight: 600;
}

.contact-input-group .form-control:focus {
    border-color: #0645a39a;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.contact-input-group .btn {
    letter-spacing: 0.5px;
}

@media (max-width: 576px) {
    .contact-input-group {
        flex-direction: column;
    }

    .contact-input-group .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .contact-input-group {
        flex-direction: column;
    }

    .contact-input-group .btn {
        width: 100%;
    }
}

/* style of overview */
.content-box img {
    cursor: zoom-in;
    /* chuyển con trỏ thành kính lúp */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* đổ bóng nhẹ */
    border-radius: 8px;
    /* bo viền ảnh */
}

.content-box img:hover {
    transform: scale(1.05);
    /* zoom nhẹ khi hover */
}

/* Modal (nền) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Nội dung Modal (Hình ảnh) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    animation-name: zoom;
    animation-duration: 0.6s;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@keyframes zoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Nút đóng (x) */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Zoom effect for images */
.zoomable {
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zoomable:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/*modal data*/
/* Lead Capture Popup Styles */
.lead-popup {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease;
}

.lead-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease;
    position: relative;
}

.lead-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--secondary-color);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lead-popup-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.lead-popup-body {
    padding: 40px;
}

.lead-popup-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.lead-popup-header h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.lead-popup-header p {
    color: #666;
    font-size: 1.1rem;
}

.lead-popup-form .form-control {
    height: 50px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.lead-popup-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.lead-popup-form textarea.form-control {
    height: 120px;
    resize: vertical;
}

.lead-popup-form .btn-submit {
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            #ffa500 100%);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.lead-popup-form .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.lead-popup-form .form-text {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

.lead-popup-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.lead-popup-success i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.lead-popup-success h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.lead-popup-success p {
    color: #666;
    margin-bottom: 25px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .lead-popup-content {
        width: 95%;
        margin: 10% auto;
    }

    .lead-popup-body {
        padding: 30px 20px;
    }

    .lead-popup-header h3 {
        font-size: 1.5rem;
    }
}

/* Make all buttons with lead popup function have pointer cursor */
.btn-outline-primary-custom,
.btn-primary-custom {
    cursor: pointer;
}

/* Ensure images in overview section have pointer cursor when clickable */
.content-box img.zoomable {
    cursor: pointer !important;
}

/* Remove hover effects that might interfere */
.content-box img.zoomable:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Prevent lightbox links from interfering */
a[data-lightbox] {
    cursor: zoom-in !important;
}

/* Our popup buttons should have priority */
.btn-outline-primary-custom,
.btn-primary-custom {
    cursor: pointer !important;
    position: relative;
    z-index: 10;
}

/* Disable lightbox for overview images when we want popup */
.content-box img.zoomable.popup-trigger {
    cursor: pointer !important;
}

.content-box img.zoomable.popup-trigger:hover {
    transform: none !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3) !important;
}

/* CSS cho phiên bản đơn giản */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.partner-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.partner-card:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-3px);
}

.partner-logo-container {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-container img {
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo-container img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-name span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Ghi đè background cho hero-section */
.hero-section {
    position: relative;
    background: none !important;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

/* Video background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Đảm bảo floating particles hiển thị trên video */
.hero-section .floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Container và text phải hiển thị trên video */
.hero-section .container {
    position: relative;
    z-index: 3;
}

/* Tối ưu hiển thị chữ trên nền video */
.hero-title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 4;
}

/* Staggered subtitle hiển thị rõ trên video */
.staggered-subtitle {
    position: relative;
    z-index: 4;
}

/* Phiên bản trong suốt hoàn toàn */
.staggered-subtitle h1 {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 1.5rem 3rem !important;
    box-shadow: none !important;
    border: none !important;
}

.gold-text strong {
    -webkit-text-fill-color: #ffd700 !important;
    color: #ffd700 !important;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2);
    padding: 1rem 2rem;
    display: inline-block;
}

/* Hiệu ứng phát sáng xung quanh chữ */
.staggered-subtitle h1 {
    position: relative;
}

.staggered-subtitle h1::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 40px);
    height: calc(100% + 20px);
    background: radial-gradient(circle at center,
            rgba(255, 215, 0, 0.1) 0%,
            transparent 70%);
    border-radius: 15px;
    z-index: -1;
    filter: blur(10px);
}

/* Gold text cải tiến để hiển thị tốt trên video */
.gold-text,
.gold-text-1 {
    position: relative;
    z-index: 4;
    text-shadow:
        0 2px 10px rgba(235, 235, 235, 0.262),
        0 4px 20px rgba(239, 237, 237, 0.359),
        0 0 30px rgba(255, 215, 0, 0.3);
    filter: drop-shadow(0 4px 8px rgba(231, 231, 231, 0.241));
}

/* Nút hiển thị rõ trên video */
.hero-section .btn-primary-custom {
    position: relative;
    z-index: 4;
    background: linear-gradient(135deg, #ffd700 0%, #ff9900 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(203, 193, 10, 0.599),
        0 0 20px rgba(255, 215, 0, 0.4);
    font-weight: 600;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hero-section .btn-primary-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(234, 234, 234, 0.171),
        0 0 25px rgba(255, 217, 0, 0.449);
}

/* Responsive cho video */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .staggered-subtitle h1 {
        padding: 1rem 1.5rem !important;
        font-size: 2rem;
    }

    .gold-text strong {
        padding: 0.75rem 1.5rem;
    }

    .staggered-subtitle h1::before {
        width: calc(100% + 20px);
        height: calc(100% + 10px);
        filter: blur(5px);
    }

    .hero-section .btn-primary-custom {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Tối ưu video autoplay */
.hero-section video {
    pointer-events: none;
}

/* Fallback cho trình duyệt không hỗ trợ video */
@supports not (object-fit: cover) {
    .hero-section::before {
        background: linear-gradient(rgba(175, 164, 13, 0.568), rgba(223, 201, 6, 0.821)),
            url('https://s.ladicdn.com/6644c5c39e093a0012fe5cbd/canh-bien-2-20250303034427-_ih_g.mp4');
        background-size: cover;
        background-position: center;
    }
}

.lead-popup-form input[type="hidden"] {
    display: none !important;
}

/* ================= HERO H1 MOBILE FIX ================= */

/* Desktop & tablet lớn: 1 dòng */
.hero-title {
    white-space: nowrap;
}

/* Mobile nhỏ: chia dòng có kiểm soát */
@media (max-width: 576px) {
    .hero-title {
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }

    /* Ẩn text gốc */
    .hero-title {
        color: transparent;
    }

    /* Dòng 1 */
    .hero-title::before {
        content: "Newtown Diamond";
        display: block;
        color: #ffffff;
    }

    /* Dòng 2 */
    .hero-title::after {
        content: "Đà Nẵng";
        display: block;
        color: #ffffff;
        margin-top: 0.2rem;
    }
}

.hero-title {
    aria-label: "Newtown Diamond Đà Nẵng";
}

.hero-title {
    text-align: center;
    line-height: 1.2;
}

.title-main,
.title-sub {
    display: inline;
}

/* Desktop: 1 dòng */
@media (min-width: 577px) {
    .title-main::after {
        content: " ";
    }
}

/* Mobile: xuống dòng có kiểm soát */
@media (max-width: 576px) {

    .title-main,
    .title-sub {
        display: block;
    }
}

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, .7),
            rgba(0, 0, 0, .4));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* ===== FOOTER SUBSCRIBE FORM ===== */
#footerForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#footerForm input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
}

#footerForm input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#footerForm input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

#footerForm button {
    height: 44px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    background: linear-gradient(135deg, #ffd700, #ff9900);
    color: #000;
    cursor: pointer;
    transition: all .3s ease;
}

#footerForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 215, 0, 0.35);
}

/* Mobile tối ưu */
@media (max-width: 576px) {

    #footerForm input,
    #footerForm button {
        height: 42px;
        font-size: 14px;
    }
}

/* =====================================================
   HERO SECTION – RESPONSIVE OVERRIDE (KHÔNG PHÁ CSS CŨ)
   Chỉ tác động #hero / .hero-section
===================================================== */

/* ---------- Base fix cho mọi thiết bị ---------- */
#hero.hero-section {
    display: flex;
    align-items: center;
}

#hero .container {
    position: relative;
    z-index: 3;
}

/* ---------- HERO TITLE ---------- */
#hero .hero-title {
    white-space: normal;
    /* bỏ ép 1 dòng cứng */
    text-align: center;
    line-height: 1.2;
}

/* Desktop lớn giữ 1 dòng */
@media (min-width: 992px) {

    #hero .title-main,
    #hero .title-sub {
        display: inline;
    }
}

/* ---------- Mobile nhỏ (≤576px) ---------- */
@media (max-width: 576px) {

    #hero.hero-section {
        min-height: 100vh;
        padding: 3rem 1rem 2.5rem;
    }

    /* Title chia dòng gọn */
    #hero .hero-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    #hero .title-main,
    #hero .title-sub {
        display: block;
    }

    /* Subtitle */
    #hero .staggered-subtitle {
        gap: .6rem;
        margin-bottom: 1.8rem;
        align-items: center;
    }

    #hero .staggered-subtitle h1 {
        font-size: 1.4rem;
        padding: .6rem .8rem !important;
        text-align: center !important;
        align-self: center !important;
        border: none !important;
        animation: none !important;
    }

    /* Tắt glow dư trên mobile */
    #hero .staggered-subtitle h1::before {
        display: none !important;
    }

    /* Gold text gọn */
    #hero .gold-text strong {
        padding: .4rem .6rem;
        line-height: 1.25;
        text-shadow:
            0 2px 6px rgba(0, 0, 0, .5),
            0 0 14px rgba(255, 215, 0, .35);
    }

    /* Button */
    #hero .btn-primary-custom {
        width: 100%;
        max-width: 280px;
        padding: .9rem 1.5rem;
        font-size: 1rem;
    }
}

/* ---------- Tablet (577px – 991px) ---------- */
@media (min-width: 577px) and (max-width: 991px) {

    #hero.hero-section {
        min-height: 90vh;
        padding: 4rem 2rem;
    }

    #hero .hero-title {
        font-size: 2.8rem;
    }

    #hero .staggered-subtitle h1 {
        font-size: 2rem;
        padding: .9rem 1.6rem;
    }
}

/* ---------- Desktop rất lớn ---------- */
@media (min-width: 1400px) {
    #hero .hero-title {
        font-size: 4.2rem;
    }

    #hero .staggered-subtitle h1 {
        font-size: 3rem;
    }
}

/* ---------- Safety: không tràn chữ ---------- */
#hero .staggered-subtitle h1,
#hero .hero-title {
    max-width: 100%;
    word-break: break-word;
}


/* =====================================================
   ROYAL BLACK & GOLD – CLASSIC ORNAMENT POPUP
===================================================== */

/* ===== NỀN TOÀN BỘ POPUP ===== */
#leadPopup.lead-popup {
    background:
        /* SVG hoa văn cổ điển */
        url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='0.18' stroke-width='1'%3E%3Cpath d='M150 20c20 40 60 40 80 60-20 20-20 60-40 80-20-20-60-20-80-40 20-20 20-60 40-80z'/%3E%3Cpath d='M150 280c-20-40-60-40-80-60 20-20 20-60 40-80 20 20 60 20 80 40-20 20-20 60-40 80z'/%3E%3Cpath d='M20 150c40-20 40-60 60-80 20 20 60 20 80 40-20 20-20 60-40 80-20-20-60-20-80-40z'/%3E%3Cpath d='M280 150c-40 20-40 60-60 80-20-20-60-20-80-40 20-20 20-60 40-80 20 20 60 20 80 40z'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at top,
            rgba(212, 175, 55, 0.25),
            rgba(0, 0, 0, 0.98) 55%),
        #000;
    background-size: 300px 300px, cover;
    background-blend-mode: soft-light;
    backdrop-filter: blur(6px);
}

/* ===== KHUNG POPUP ===== */
#leadPopup .lead-popup-content {
    background:
        linear-gradient(180deg,
            #58553313,
            #bbbc4e81);
    border-radius: 26px;
    border: 1px solid rgba(212, 206, 39, 0.504);
    box-shadow:
        0 40px 120px rgba(146, 144, 144, 0.49),
        0 0 60px rgba(212, 175, 55, .15),
        inset 0 0 120px rgba(212, 175, 55, .05);
    position: relative;
    overflow: hidden;
}

/* ===== VIỀN VÀNG TRANG TRÍ ===== */
#leadPopup .lead-popup-content::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, .35);
    pointer-events: none;
}

/* ===== HEADER ===== */
#leadPopup .lead-popup-header h3 {
    color: #ffd700;
    font-size: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow:
        0 2px 12px rgba(238, 238, 237, 0.705),
        0 0 40px rgba(226, 225, 221, 0.664);
}

#leadPopup .lead-popup-header p {
    color: rgba(255, 255, 255, .75);
}

/* ===== INPUT / SELECT ===== */
#leadPopup .form-control,
#leadPopup .form-select,
#leadPopup textarea {
    background: rgba(230, 230, 230, 0.473);
    border: 1px solid rgba(197, 160, 40, 0.473);
    color: #424242;
}

#leadPopup .form-control:focus,
#leadPopup .form-select:focus,
#leadPopup textarea:focus {
    border-color: #ffd700;
    box-shadow:
        0 0 0 2px rgba(212, 175, 55, .35),
        0 0 30px rgba(212, 175, 55, .25);
}

/* ===== BUTTON ===== */
#leadPopup .btn-submit {
    background:
        linear-gradient(135deg,
            #fff3b0,
            #d4af37,
            #a67c00);
    color: #64646494;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow:
        0 12px 35px rgba(212, 175, 55, .7),
        0 0 30px rgba(255, 215, 0, .6);
}

#leadPopup .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 50px rgba(212, 175, 55, .9),
        0 0 45px rgba(255, 215, 0, .8);
}

/* ===== SUCCESS ===== */
#leadPopup .lead-popup-success i {
    color: #ffd700;
    text-shadow:
        0 0 40px rgba(255, 215, 0, .8);
}

/* ===== MOBILE GIẢM HOA VĂN ===== */
@media (max-width: 576px) {
    #leadPopup.lead-popup {
        background:
            radial-gradient(circle at top,
                rgba(212, 175, 55, 0.22),
                #97959539 60%),
            #7a797979;
    }
}

/* ===== PLACEHOLDER LUXURY OVERRIDE ===== */

/* Chuẩn chung */
#leadPopup ::placeholder {
    color: rgba(255, 245, 200, 0.75);
    /* vàng trắng luxury */
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Chrome / Edge / Safari */
#leadPopup ::-webkit-input-placeholder {
    color: rgba(255, 245, 200, 0.75);
}

/* Firefox */
#leadPopup ::-moz-placeholder {
    color: rgba(255, 245, 200, 0.75);
    opacity: 1;
}

/* IE (fallback) */
#leadPopup :-ms-input-placeholder {
    color: rgba(255, 245, 200, 0.75);
}

/* Khi focus – dịu hơn cho sang */
#leadPopup input:focus::placeholder,
#leadPopup textarea:focus::placeholder {
    color: rgba(255, 245, 200, 0.4);
}

/* Giảm size chữ menu navbar */
#navbarNav .nav-link {
    font-size: 14px;
    /* mặc định Bootstrap ~16px */
    padding: 6px 10px;
    /* gọn lại cho đỡ dài */
    letter-spacing: 0.2px;
}

/* Dropdown item nhỏ hơn chút */
#navbarNav .dropdown-menu .dropdown-item {
    font-size: 13.5px;
}

/* Mobile: giữ dễ bấm */
@media (max-width: 991px) {
    #navbarNav .nav-link {
        font-size: 15px;
        padding: 8px 12px;
    }
}

.lead-popup-form ::placeholder {
    color: #000 !important;
    opacity: 1;
}