/* ==========================================
   HERO SECTION 3 CỘT (TĂNG CHIỀU CAO CHO ĐẸP PC)
   ========================================== */

.hero-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    height: 480px; /* Có thể nâng lên 530px nếu muốn hình ảnh thoáng hơn */
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

/* Hai slider hai bên */
.hero-slider {
    position: relative;
    overflow: hidden;
    background-color: rgba(15, 15, 15, 0.9);
    height: 100%;
    z-index: 1;
    transition: all 0.3s ease;
}

.hero-slider.slider-left {
    flex: 1.65;
    clip-path: polygon(0 0, 100% 0, 68% 100%, 0 100%);
    margin-right: -8%;
}

.hero-slider.slider-right {
    flex: 1.65;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 32% 100%);
    margin-left: -8%;
}

.hero-slider.slider-left,
.hero-slider.slider-right {
    filter: drop-shadow(0 0 2px rgba(197, 160, 89, 0.65));
}

/* --- SLIDE STYLE --- */
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    z-index: 1;
    transform: scale(1.04);
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    z-index: 3;
    transform: scale(1);
}

.slide.last-active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
    transition: none !important;
}

.slider-left .slide {
    opacity: 1 !important;
    z-index: 3 !important;
    transform: scale(1) !important;
    transition: none !important;
}

/* --- CỘT GIỮA --- */
.hero-center {
    flex: 1; 
    max-width: 650px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 0;
    z-index: 10;
    position: relative;
    overflow: visible !important;
}

.hero-center-content {
    background: transparent;
    width: 100%;
    height: auto;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible !important; 
}

/* ==========================================
   KHUNG CHỨA LOGO & HIỆU ỨNG ÁNH SÁNG
   ========================================== */
.logo-container {
    display: grid; 
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto 20px auto;
    z-index: 15;
    position: relative;
    overflow: hidden;
    pointer-events: none; 
}

.hero-center .logo-img {
    grid-area: 1 / 1 / 2 / 2;
    width: 100% !important;
    height: auto !important;
    display: block;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative;
    z-index: 1;
}

/* Dải sáng lướt qua logo (Dùng mask để ôm khít viền hình con cá) */
.shimmer-overlay {
    grid-area: 1 / 1 / 2 / 2;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;

    /* Đường dẫn tuyệt đối từ root - giải quyết triệt để lỗi 404 */
    -webkit-mask-image: url('/images/logo.png');
    mask-image: url('/images/logo.png');
    -webkit-mask-size: 100% auto;
    mask-size: 100% auto;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.shimmer-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        115deg,
        rgba(197, 160, 89, 0) 0%,
        rgba(255, 223, 137, 0.75) 45%,
        rgba(197, 160, 89, 0.85) 50%,
        rgba(197, 160, 89, 0) 100%
    );
    transform: skewX(-20deg);
    animation: logo-shine-sweep 7.5s ease-in-out infinite;
}

/* Chuyển động lướt sáng qua logo */
@keyframes logo-shine-sweep {
    0% {
        left: -150%;
    }
    25% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* ==========================================
   SLOGAN & CTA BUTTONS
   ========================================== */
.hero-text-actions {
    transform: translateY(-10px); 
    position: relative;
    z-index: 20; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-center p.slogan {
    font-size: 0.9rem;
    color: var(--gold-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
    white-space: nowrap;
}

.slogan-words {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
}

.slogan-words span {
    display: inline-block;
    position: relative;
    transform-origin: center center;
    animation: word-magnify 7s ease-in-out infinite;
}

.slogan-words span:nth-child(1) { animation-delay: 0s; }
.slogan-words span:nth-child(2) { animation-delay: 0.65s; }
.slogan-words span:nth-child(3) { animation-delay: 1.3s; }

@keyframes word-magnify {
    0%, 12%, 100% {
        transform: scale(1);
        color: var(--gold-color);
        text-shadow: none;
        filter: brightness(1);
    }
    6% {
        transform: scale(1.15) translateY(-2px);
        color: var(--gold-hover);
        text-shadow:
            0 0 8px rgba(197, 160, 89, 0.85),
            0 0 18px rgba(197, 160, 89, 0.5);
        filter: brightness(1.2);
    }
}

/* CTA BUTTONS */
.hero-center .cta-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: 470px;
}

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 205px;
    min-height: 54px;
    padding: 12px 18px;
    border-radius: 4px;
    border: 1px solid var(--gold-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.78rem;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-22deg);
    transition: left 0.55s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(197, 160, 89, 0.28);
}

.btn:hover::before {
    left: 130%;
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.22);
}

.btn-gold {
    background-color: var(--gold-color);
    color: #000;
    border-color: var(--gold-color);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #000;
}

.btn-outline {
    background-color: transparent;
    color: var(--gold-color);
    border-color: var(--gold-color);
}

.btn-outline:hover {
    background-color: var(--gold-color);
    color: #000;
    border-color: var(--gold-color);
}