/* ============================================
   Thịnh Theme - Banner (Hero Section) Frontend CSS
   ============================================ */

.tt-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tt-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tt-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tt-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.45) 0%,
        rgba(0,0,0,0.15) 60%,
        transparent 100%
    );
    z-index: 1;
}

.tt-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 0 60px;
    color: #ffffff;
}

.tt-hero-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #D4B86A; /* Gold Light */
    margin-bottom: 20px;
    font-weight: 500;
}

.tt-hero h1 {
    color: #ffffff;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    margin-top: 0;
}

.tt-hero h1 em {
    font-style: italic;
}

.tt-hero-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Button */
.tt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    min-width: 200px;
    text-decoration: none;
}

.tt-btn-primary {
    background-color: #1A1A1A;
    color: #ffffff;
    border-color: #1A1A1A;
}

.tt-btn-primary:hover {
    background-color: #2D2D2D;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Scroll Down Button */
.tt-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
}

.tt-scroll-down-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tt-scroll-down-btn:hover {
    opacity: 1;
    color: #ffffff;
}

.tt-scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tt-scroll-line {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.tt-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    animation: scroll-drop 2s infinite;
}

@keyframes scroll-drop {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* Responsive */
@media (max-width: 768px) {
    .tt-hero-content {
        padding: 0 30px;
    }
}

/* Reveal Animation */
.tt-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tt-reveal.tt-revealed {
    opacity: 1;
    transform: translateY(0);
}

.tt-reveal-delay-1 { transition-delay: 0.1s; }
.tt-reveal-delay-2 { transition-delay: 0.2s; }
.tt-reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   Video Popup Styles
   ============================================ */
.tt-video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tt-video-popup.active {
    opacity: 1;
    visibility: visible;
}

.tt-video-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.tt-video-popup-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 2;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tt-video-popup.active .tt-video-popup-content {
    transform: scale(1);
}

.tt-video-popup-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.tt-video-popup-close-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: rotate(90deg);
}

.tt-video-popup-iframe-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.tt-video-popup-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Fix button appearance in Flatsome */
button.tt-btn-primary {
    background-color: #1A1A1A;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 0;
}
button.tt-btn-primary:hover {
    background-color: #2D2D2D;
    color: #ffffff;
}
