html {
    overflow-x: hidden;
}

* {
    padding: 0;
    box-sizing: border-box;
}

*,
body {
    margin: 0;
}

body {
    font-family: Montserrat, sans-serif;
    background-color: #000;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background-color: rgba(0, 0, 0, .2);
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 80px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    animation: .8s ease-out slideFadeIn;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 40px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    position: relative;
    color: #fffdd0;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    padding-bottom: 4px;
    text-decoration: none;
    transition: color .3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #daa520;
    transition: width .3s;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active,
.nav-links a:hover {
    color: #daa520;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 28px;
    height: 3px;
    background-color: #fffdd0;
    margin: 5px 0;
    transition: .3s;
    border-radius: 2px;
}

/* Hero Section */
.video-hero {
    margin-top: 0;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, .3);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(.8);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero-content .hero-logo {
    max-width: 200px;
    margin-bottom: 10px;
}

.hero-content h1 {
    margin-top: 30px;
    font-family: 'Dancing Script', cursive;
    font-size: 3em;
    font-weight: 700;
    color: #fffdd0;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .7);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .7);
}

.hero-button {
    margin-top: 10px;
    background-color: #e24c4b;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color .3s, transform .2s;
}

.hero-button:hover {
    background-color: #ff5a5a;
    transform: translateY(-2px);
}

/* Mascot Info Section */
.mascot-info-section {
    position: relative;
    overflow: hidden;
    color: #f0f0f0;
    padding: 40px 30px 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    margin-top: -70px;
}

.section-header-title {
    font-family: Montserrat, sans-serif;
    position: relative;
    z-index: 10;
    text-align: center;
    font-size: 3em;
    font-weight: 1500;
    color: #262357;
    margin-top: 60px;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1.reasons-slogan {
    font-family: Montserrat, sans-serif;
    position: relative;
    z-index: 10;
    text-align: center;
    color: #cda453;
    font-size: 2em;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 20px;
    background-color: rgba(255, 251, 231, .5);
    padding: 0 5px;
    border-radius: 100px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

h1.reasons-slogan span {
    color: #cda453;
}

.mascot-section-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(90%) contrast(90%);
}

.mascot-info-container {
    display: flex;
    max-width: 1400px;
    width: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.mascot-main-display {
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    background-color: transparent; /* THAY ĐỔI QUAN TRỌNG: Thêm dòng này */
}

.main-mascot-video {
    max-width: 600px;
    height: auto;
    display: block;
    object-fit: contain;
}
.main-mascot-image {
    max-width: 400px;
    height: auto;
    display: block;
    object-fit: contain;
}
/* Mascot Details & Cards */
.mascot-details-left {
    position: absolute;
    left: 100px;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding-left: 20px;
    max-width: 300px;
}

.mascot-card {
    background-color: #2b2b2b;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    border: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
}

.mascot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
}

.mascot-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

.rarity-score {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: .85em;
    color: #fffdd0;
    font-weight: 700;
}

.mascot-info-text {
    text-align: left;
    color: #b0b0b0;
}

.mascot-name {
    font-size: 2.2em;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.mascot-description {
    font-size: 1.05em;
    color: #fff;
    line-height: 1.6;
}

/* Video Popup */
.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.video-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-popup-content {
    position: relative;
    background-color: #000;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .7);
    max-width: 500px;
    width: 85%;
}

.video-popup-content video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.close-popup-button {
    position: absolute;
    top: -30px;
    right: 0;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    background: 0 0;
    border: none;
    line-height: 1;
    z-index: 2001;
    text-shadow: 0 0 5px rgba(0, 0, 0, .5);
}

.close-popup-button:hover {
    color: #e24c4b;
}

/* Mascot Stats (Right Side) */
.mascot-stats-right {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 400px;
    background-color: rgba(255, 251, 231, .2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 251, 231, .4);
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .2);
}

.mascot-stats-right .stat-item {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: right;
}

.mascot-stats-right .stat-number {
    font-size: 2.8em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.mascot-stats-right .stat-description {
    font-size: 1em;
    color: #fff;
}

/* "Made By" Text */
.made-by-text {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    font-size: .8em;
    color: #999;
}

.made-by-text img {
    height: 18px;
    margin-left: 5px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fffbe7;
    text-align: center;
    padding: 30px 20px;
    font-size: .9em;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, .1);
}

footer .social-links a {
    color: #ffdf3d;
    margin: 0 10px;
    text-decoration: none;
    transition: color .3s;
}

footer .social-links a:hover {
    color: #fff;
}

/* Animations */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flowing Content Section */
.flowing-content-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    text-align: center;
    color: #333;
    z-index: 1;
    margin-top: -70px;
}

.flowing-section-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.flowing-section-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .2);
    z-index: -1;
}

.flowing-content-section .section-header-title {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, .5);
    z-index: 2;
}

.flowing-track {
    display: flex;
    white-space: nowrap;
    margin: 20px 0;
    overflow: hidden;
    pointer-events: none;
}

.flowing-content-wrapper {
    display: flex;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
}

.flowing-track:hover .flowing-content-wrapper {
    animation-play-state: paused;
}

.flowing-item {
    flex-shrink: 0;
    margin: 0 15px;
    width: 250px;
    height: 180px;
    background-color: rgba(255, 255, 255, .5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
    border: 1px solid rgba(0, 0, 0, .1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.flowing-item img,
.flowing-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Scrolling Animations */
@keyframes scrollRightToLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes scrollLeftToRight {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

.track-right-to-left .flowing-content-wrapper {
    animation-name: scrollRightToLeft;
    animation-duration: 60s;
}

.track-left-to-right .flowing-content-wrapper {
    animation-name: scrollLeftToRight;
    animation-duration: 60s;
}

/* Partners Section */
.partners-section {
    position: relative;
    padding: 80px 30px;
    text-align: center;
    overflow: hidden;
    color: #333;
}

.partners-section .section-header-title {
    color: #333;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, .5);
    margin-bottom: 30px;
}

.partners-section-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.partners-intro {
    max-width: 800px;
    margin: 0 auto 50px;
}

.partners-intro .intro-text {
    font-size: 1.2em;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.partners-intro .intro-description {
    font-size: .95em;
    line-height: 1.6;
    color: #666;
}

/* 3D Carousel */
.carousel-3d-container {
    width: 100%;
    max-width: 900px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-3d-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    left: 0;
    transform: none;
    transition: none;
}

.carousel-3d-item {
    position: absolute;
    width: 280px;
    height: 220px;
    background-color: rgba(255, 251, 231, .2);
    border: 1px solid rgba(255, 251, 231, .4);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    transition: transform .5s ease-out, opacity .5s ease-out, z-index .5s ease-out;
    cursor: pointer;
    transform: translateX(0) scale(1) translateZ(0);
    opacity: 1;
    z-index: 1;
}

.carousel-3d-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter .5s;
}

.carousel-3d-item:hover img {
    filter: grayscale(0%);
}

.carousel-3d-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
}

.carousel-3d-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(100, 100, 100, .7);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8em;
    z-index: 100;
    transition: background-color .3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
}

.carousel-3d-nav:hover {
    background-color: rgba(0, 0, 0, .9);
}

.carousel-3d-nav.prev {
    left: 10%;
}

.carousel-3d-nav.next {
    right: 10%;
}

/* Placeholder for other pages */
.main-content-placeholder {
    min-height: calc(100vh - 80px - 100px);
    padding-top: 80px;
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* --- Media Queries --- */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .navbar {
        padding: 0 20px;
        height: 70px;
    }

    .navbar-brand img {
        height: 35px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, .85);
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
        z-index: 990;
        transform: none;
        margin: 0;
    }

    .nav-links.show {
        display: flex;
        animation: .4s ease-in-out slideFadeIn;
    }

    .nav-links a {
        font-size: 16px;
        padding: 12px 0;
        width: 100%;
        color: #fffdd0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .mascot-info-section {
        margin-top: -70px;
        position: relative;
        padding: 80px 20px 60px;
        z-index: 2;
    }

    .section-header-title {
        font-size: 2.2em;
        margin-bottom: 20px;
        margin-top: 0;
    }

    h1.reasons-slogan {
        font-size: 1.5em; /* Giảm kích thước font */
    }

    .mascot-info-container {
        flex-direction: column;
        gap: 40px; /* Giảm khoảng cách giữa các phần tử */
    }

    /* Đặt lại position cho các khối thông tin */
    .mascot-details-left,
    .mascot-stats-right {
        position: static; /* Quan trọng: Chuyển về layout tĩnh */
        transform: none;
        width: 100%;
        max-width: 450px; /* Giới hạn chiều rộng tối đa */
        padding: 25px 20px;
        background-color: rgba(0, 0, 0, .3);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, .1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
        margin: 0 auto;
    }

    .mascot-main-display {
        order: 1;
        margin: 0;
        max-width: 500px;
    }

    .mascot-details-left {
        order: 2;
        margin-top: 20px; /* Giảm margin top */
    }

    .mascot-stats-right {
        order: 3;
        margin-top: 20px;
    }

    .main-mascot-video {
        max-width: 100%; /* Đảm bảo video co dãn theo container */
    }

    .mascot-info-text,
    .mascot-stats-right .stat-item {
        text-align: center;
    }

    .mascot-card {
        margin: 0 auto 20px;
    }

    .made-by-text {
        display: none; /* Ẩn trên mobile cho gọn */
    }

    /* Carousel */
    .carousel-3d-item {
        width: 260px;
        height: 200px;
    }

    .carousel-3d-nav.prev {
        left: 5%;
    }

    .carousel-3d-nav.next {
        right: 5%;
    }
}


/* Small Tablet & Large Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .section-header-title {
        font-size: 1.8em;
    }

    h1.reasons-slogan {
        font-size: 1.3em;
        padding: 5px 15px;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    /* Flowing content */
    .flowing-item {
        width: 180px;
        height: 120px;
    }

    /* Carousel */
    .carousel-3d-container {
        height: 250px;
    }

    .carousel-3d-item {
        width: 240px;
        height: 180px;
    }

    .carousel-3d-nav {
        padding: 10px 15px;
        font-size: 1.5em;
    }
}


/* iPhone 11 Pro Max và nhỏ hơn (max-width: 428px) */
@media (max-width: 428px) {
    .navbar {
        height: 60px;
        padding: 0 15px;
    }

    .nav-links {
        top: 60px;
    }

    .navbar-brand img {
        height: 30px;
    }

    .hero-content h1 {
        font-size: 1.8em;
        line-height: 1.4;
    }

    .hero-button {
        padding: 12px 24px;
        font-size: 1em;
    }

    .section-header-title {
        font-size: 1.5em;
    }

    h1.reasons-slogan {
        font-size: 1.1em;
    }

    .mascot-info-section {
        padding: 60px 15px 40px;
    }

    .mascot-details-left,
    .mascot-stats-right {
        padding: 20px 15px;
    }

    .mascot-name {
        font-size: 1.5em;
    }

    .mascot-stats-right .stat-number {
        font-size: 2em;
    }

    .mascot-stats-right .stat-description {
        font-size: .85em;
    }

    /* Flowing content */
    .flowing-item {
        width: 150px;
        height: 100px;
        margin: 0 8px;
    }

    /* Carousel */
    .carousel-3d-container {
        height: 200px;
    }

    .carousel-3d-item {
        width: 180px;
        height: 130px;
    }

    .carousel-3d-nav {
        font-size: 1em;
    }

    .carousel-3d-nav.next {
        right: 5px; /* Điều chỉnh lại vị trí nếu cần */
    }

    /* Nút liên hệ nổi */
    .floating-contact {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
    }

    .float-btn img {
        width: 28px;
        height: 28px;
    }
}
