* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #121212;
    color: #fff;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background: #f5f5f5;
    color: #333;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Header with Video Background */
header {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7);
}

.header-content {
    z-index: 1;
    padding: 20px;
}

.header-content h1 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Sticky Navbar */
nav {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

nav.light-mode {
    background: rgba(255, 255, 255, 0.8);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease;
    margin-right: 25px;
}

.logo:hover {
    color: #ffd700;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding: 8px 15px;
    transition: color 0.3s ease;
}

.nav-links li a .icon {
    margin-right: 8px;
}

.nav-links li a:hover {
    color: #ffd700;
}

.nav-links li a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6f61, #ffd700);
    bottom: -5px;
    left: 0;
    animation: underline 0.3s forwards;
}

@keyframes underline {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 10;
    transition: opacity 0.2s ease;
    opacity: 0;
}

.dropdown-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
    font-size: 1rem;
    width: 180px;
    transition: width 0.3s ease;
}

.search-bar input:focus {
    width: 220px;
}

/* Login Button */
.login-btn {
    padding: 8px 20px;
    background: #ff6f61;
    border: none;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.login-btn:hover {
    background: #ffd700;
    transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 200;
    padding: 20px;
    transition: left 0.5s ease;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 50px;
}

.mobile-menu ul li {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Hamburger */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
    margin-right: 15px;
    z-index: 201;
    /* Đảm bảo hamburger ở trên cùng */
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    padding: 100px 20px;
    text-align: center;
}

/* Video Background for Main Content */
.content-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.content-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

/* Content Sections */
.content-section {
    margin-bottom: 100px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    max-width: 800px;
    margin: 0 auto 20px;
}

.explore-btn,
.event-btn {
    padding: 10px 25px;
    background: #ff6f61;
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.explore-btn:hover,
.event-btn:hover {
    background: #ffd700;
    transform: scale(1.05);
}

/* Gallery Section */
.gallery {
    padding: 60px 20px;
}

.gallery-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-item {
    display: none;
    position: relative;
    width: 100%;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    text-align: left;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
}

.carousel-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-controls button {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.carousel-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Decorative Boxes (for Gallery, Events, Community) */
.decorative-boxes {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.decorative-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.decorative-box .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    transition: background 0.3s ease;
}

.decorative-box:hover .overlay {
    background: rgba(0, 0, 0, 0.7);
}

.decorative-box h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.decorative-box button {
    padding: 10px 20px;
    background: #ff6f61;
    border: none;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.decorative-box button:hover {
    background: #ffd700;
}

/* Events Section */
.events .event-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.events .event-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    width: 300px;
    text-align: center;
}

.events .event-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.events .event-card p {
    color: #bbb;
    margin-bottom: 15px;
}

/* Community Section */
.community {
    text-align: center;
}

/* Discover Section */
.discover .discover-boxes {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
    width: 100%;
    padding: 0 20px;
}

.discover-box {
    display: flex;
    align-items: center;
    height: 600px;
    background: #333;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: none;
}

.discover-box:hover {
    transform: translateY(-15px);
}

.discover-box.reverse {
    flex-direction: row-reverse;
}

.discover-text {
    width: 40%;
    padding: 50px;
    color: #fff;
    text-align: left;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.discover-text.right {
    text-align: right;
}

.discover-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.discover-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 30px;
}

.discover-text .discover-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6f61;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    width: fit-content;
    align-self: flex-start;
}

.discover-text.right .discover-btn {
    align-self: flex-end;
}

.discover-text .discover-btn:hover {
    background: #ffd700;
    transform: scale(1.1);
}

.discover-image {
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Footer */
footer {
    background-color: rgba(34, 34, 34, 0.95);
    padding: 40px 20px;
    color: var(--light-text);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--light-text);
    opacity: 0.8;
    font-size: 16px;
    transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(-2px);
    display: inline-block;
}

footer p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-social {
    margin: 20px 0;
}

.footer-social a {
    margin: 0 15px;
    color: var(--light-text);
    font-size: 24px;
    transition: all var(--transition-speed) ease;
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(230, 184, 0, 0.5);
}

/* Dark/Light Mode Toggle */
.mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background: #ff6f61;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 2;
}

.mode-toggle:hover {
    background: #ffd700;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {

    .nav-links,
    .nav-right {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .search-bar input {
        width: 120px;
    }

    .search-bar input:focus {
        width: 150px;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .gallery-carousel {
        max-width: 100%;
    }

    .carousel-item img {
        height: 300px;
    }

    .events .event-grid {
        flex-direction: column;
        align-items: center;
    }

    .decorative-boxes {
        flex-direction: column;
        align-items: center;
    }

    .decorative-box {
        max-width: 100%;
        height: 200px;
    }

    .discover-box {
        flex-direction: column;
        height: auto;
    }

    .discover-box.reverse {
        flex-direction: column;
    }

    .discover-text,
    .discover-image {
        width: 100%;
    }

    .discover-text {
        padding: 20px;
        text-align: center;
    }

    .discover-text.right {
        text-align: center;
    }

    .discover-image {
        height: 300px;
    }

    .discover-text .discover-btn {
        align-self: center;
    }
}