/* ===== BASE STYLES ===== */
:root {
    --primary-color: #1a0b3b;
    --secondary-color: #f5f5f5;
    --accent-color: #2f2d25;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-bg: #0d0d0d;
    --border-color: #dddddd;
    --transition-speed: 0.4s;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: linear-gradient(135deg, #2a004a 0%, #0d0d0d 70%, #47453b 100%);
    position: relative;
    animation: gradientAnimation 20s ease infinite;
}

@keyframes gradientAnimation {
    0% { background: linear-gradient(135deg, #2a004a 0%, #0d0d0d 70%, #47453b 100%); }
    50% { background: linear-gradient(135deg, #0d0d0d 0%, #47453b 30%, #2a004a 100%); }
    100% { background: linear-gradient(135deg, #2a004a 0%, #0d0d0d 70%, #47453b 100%); }
}

body.light-mode {
    background: linear-gradient(135deg, #f0e6d2 0%, #fff5e1 70%, #ffd700 100%);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../Images/art-background.jpg') no-repeat center/cover;
    opacity: 0.3;
    z-index: -1;
    filter: blur(5px);
}

body.light-mode::before {
    background: url('../../Images/art-background-light.jpg') no-repeat center/cover;
    opacity: 0.4;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== PARTICLES BACKGROUND ===== */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@media (max-width: 768px) {
    .particles-bg {
        display: none;
    }
}

/* ===== NAVBAR STYLES ===== */
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 */
}


/* ===== FULL-SCREEN SECTIONS ===== */
.full-screen-sections {
    min-height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
    padding: 0 20px;
}

/* ===== INTRO SECTION (HEADER) ===== */
.intro-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.intro-content {
    position: relative;
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    color: var(--light-text);
    text-shadow: 0 5px 15px rgba(230, 184, 0, 0.7);
}

.intro-text {
    font-size: 24px;
    color: var(--light-text);
    opacity: 0.9;
    margin: 20px 0;
}




/* ===== FOOTER ===== */
footer {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #2a004a 0%, #0d0d0d 100%);
    color: var(--light-text);
    border-top: 1px solid rgba(230, 184, 0, 0.2);
}

.footer-links {
    margin-bottom: 20px;
}

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

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

.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);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    .intro-title, .hero-content h1 {
        font-size: 48px;
    }
    .intro-text, .hero-content p {
        font-size: 18px;
    }
    .section {
        flex-direction: column;
        padding: 0 20px;
    }
    .intro-content, .hero-content, .registration-content, .testimonial-content {
        width: 100%;
        height: auto;
        padding: 20px;
    }
    .event-card {
        flex-direction: column;
        padding: 20px;
    }
    .event-card-content, .event-card-media {
        height: auto;
        width: 100%;
    }
    .event-card-media img {
        height: 50vh;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .register-btn, .cancel-btn {
        width: 100%;
    }
    .testimonial-carousel {
        flex-direction: row;
    }
}

@media (max-width: 576px) {
    .intro-title, .hero-content h1 {
        font-size: 36px;
    }
    .intro-text, .hero-content p {
        font-size: 16px;
    }
    .event-card-content h3 {
        font-size: 36px;
    }
    .registration-content h2, .testimonial-content h2 {
        font-size: 32px;
    }
}

/* ===== SLIDE STYLES ===== */
.container {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 1000px;
    height: 500px;
    background: #f5f5f5;
    box-shadow: 0 30px 50px #dbdbdb;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px
}

.container .slide .item {
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 30px; /* Tăng từ 20px lên 30px để bo góc nhiều hơn */
    box-shadow: 0 30px 50px #505050;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0; /* Giữ nguyên vì là full-width */
    width: 100%;
    height: 100%;
}

.slide .item:nth-child(3) {
    left: 50%;
}
.slide .item:nth-child(4) {
    left: calc(50% + 220px);
}
.slide .item:nth-child(5) {
    left: calc(50% + 440px);
}

/* here n = 0, 1, 2, 3,... */
.slide .item:nth-child(n + 6) {
    left: calc(50% + 660px);
    opacity: 0;
}

.item .content {
    position: absolute;
    top: 50%;
    left: 150px;
    width: 300px;
    text-align: left;
    color: #eee;
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
    z-index: -1;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px; /* Thêm bo góc cho content */
}

.slide .item:nth-child(2) .content {
    display: block;
}

.content .name {
    font-size: 37px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
}

.content .des {
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
    border-radius: 10px; /* Thêm bo góc cho button */
}

@keyframes animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.button {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
    z-index: 1;
}

.button button {
    width: 40px;
    height: 35px;
    border-radius: 12px; /* Tăng từ 8px lên 12px để bo góc nhiều hơn */
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #000;
    transition: 0.3s;
}

.button button:hover {
    background: #ababab;
    color: #fff;
}

/* ===== RESPONSIVE FOR SLIDE ===== */
@media (max-width: 1024px) {
    .container {
        width: 800px;
        height: 400px;
    }
    .item .content {
        left: 120px;
        width: 250px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 600px;
        height: 300px;
    }
    .item .content {
        left: 100px;
        width: 200px;
    }
    .content .name {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        height: 250px;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
    }
    .slide .item {
        width: 150px;
        height: 200px;
        border-radius: 20px; /* Giảm một chút cho responsive */
    }
    .item .content {
        left: 80px;
        width: 150px;
    }
    .content .name {
        font-size: 20px;
    }
    .button {
        bottom: 10px;
    }
}




/* ===== TREND EXPLORATION STYLES ===== */
.trend-exploration {
    padding: 50px 20px;
    background: #2a2a2a;
    color: #fff;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ccc;
}

.trend-container {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.trend-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.trend-card {
    min-width: 300px;
    background: #3a3a3a;
    padding: 20px;
    border-radius: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.trend-card:hover {
    transform: translateY(-5px);
}

.trend-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.trend-content {
    text-align: left;
}

.trend-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.trend-description {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 10px;
}

.trend-content p {
    font-size: 0.85rem;
    color: #ddd;
    margin-bottom: 10px;
}

.trend-content b, .trend-content i {
    color: #fff;
}

.trend-button {
    display: inline-block;
    padding: 10px 20px;
    background: #5372F0;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.trend-button:hover {
    background: #3e5ac0;
}

.trend-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #5372F0;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    z-index: 10;
    transition: background 0.3s ease;
}

.trend-nav.prev {
    left: 10px;
}

.trend-nav.next {
    right: 10px;
}

.trend-nav:hover {
    background: #3e5ac0;
}

.trend-features {
    margin-top: 40px;
}

.feature-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.feature-link {
    color: #5372F0;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 15px;
    border: 1px solid #5372F0;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-link:hover {
    background: #5372F0;
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .trend-card {
        min-width: 250px;
    }
    .trend-image {
        height: 150px;
    }
    .trend-nav {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    .trend-description {
        font-size: 0.8rem;
    }
    .trend-content p {
        font-size: 0.75rem;
    }
    .trend-card {
        min-width: 200px;
    }
    .trend-image {
        height: 120px;
    }
    .trend-nav {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    .feature-list {
        flex-direction: column;
        gap: 10px;
    }
}


/* ===== UPCOMING EVENTS STYLES ===== */
.upcoming-events {
    padding: 50px 20px;
    background-color: #2a2a2a;
    color: #fff;
    text-align: center;
    margin-top: 40px;
}

/* .events-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
} */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background-color: #34495e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 15px;
    text-align: left;
}

.event-content h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: #ecf0f1;
}

.event-content p {
    font-size: 0.9rem;
    margin: 0 0 15px;
    color: #bdc3c7;
}

.event-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
}

.event-btn:hover {
    background-color: #c0392b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .events-title {
        font-size: 2rem;
    }

    .event-card img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .events-title {
        font-size: 1.5rem;
    }

    .event-card img {
        height: 120px;
    }

    .event-content h3 {
        font-size: 1rem;
    }

    .event-content p {
        font-size: 0.8rem;
    }
}