﻿
/* Hero Section - Slider Banner */
.hero {
    height: 50vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    opacity: 0;
    transform: scale(1.1);
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 8s ease-out;
    background-image: var(--dynamic-image-url);
}

.hero-slide.active .slide-background {
    transform: scale(1.08);
}
.pool-bg {
    background: linear-gradient(135deg, rgba(180, 240, 230, 0.6) 0%, rgba(216, 233, 241, 0.8) 100%), var(--dynamic-image-url);
    background-size: cover;
    background-position: center;
}

.boat-bg {
    background: linear-gradient(135deg, rgba(99, 207, 235, 0.75) 0%, rgba(216, 233, 241, 0.8) 100%), url('/Images/uploaded/12086c10791027cf4d923a265917bec7.jpg');
    background-size: cover;
    background-position: center;
}

.art-bg {
    background: linear-gradient(135deg, rgba(189, 156, 245, 0.75) 0%, rgba(216, 233, 241, 0.8) 100%), url('/Images/uploaded/1 (1).jpg');
    background-size: cover;
    background-position: center;
}

.resort-bg {
    background: linear-gradient(135deg, rgba(245, 171, 110, 0.75) 0%, rgba(216, 233, 241, 0.8) 100%), url('/Images/uploaded/z6809357320475_1f4203266c47af632ac3641e685d190d.jpg');
    background-size: cover;
    background-position: center;
}

.waterpark-bg {
    background: linear-gradient(135deg, rgba(173, 247, 200, 0.75) 0%, rgba(194, 253, 216, 0.75) 100%), url('/Images/uploaded/43b51cef148051c6e94cbb30031141a9.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 80%;
    z-index: 2;
    position: relative;
    /*top: 18%*/
    top: 0%;
}

.slide-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.nav-dot:hover {
    border-color: white;
    transform: scale(1.1);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5px;
}

.prev-arrow {
    left: 2rem;
}

.next-arrow {
    right: 2rem;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Hero Navigation Menu */
.hero-nav-menu {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 3rem;
    z-index: 15;
    margin-top: 4rem;
}

.hero-nav-item {
    position: relative;
}

.hero-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
}

.hero-nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-text {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Dropdown */
.hero-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-30px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 320px;
    z-index: 20;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-nav-item:hover .hero-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none !important;
}

.dropdown-content {
    padding: 1rem;
}

.dropdown-content h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1b93d2;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 3px solid rgb(190 233 255);
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 220px !important;
}

.dropdown-content ul li {
    margin-bottom: 0.5rem;
}

.dropdown-content ul li a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border-radius: 12px;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.dropdown-content ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgb(186 227 248) 0%, rgb(224 240 249) 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.dropdown-content ul li a:hover {
    color: #04a1f4;
    background: rgba(20, 184, 166, 0.08);
    transform: translateX(8px);
    border-left-color: #04a1f4;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.15);
}

.dropdown-content ul li a:hover::before {
    width: 100%;
}

.hero-tagline {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.6;
    transform: translateY(20px);
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}

.cta-button {
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, rgb(94 188 240) 0%, rgb(27 147 210) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(20, 184, 166, 0.4);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    color: #374151;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .mega-menu {
        width: 600px;
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
    }

    .mega-menu-image {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-actions {
        gap: 1rem;
    }

    .header-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .hero-tagline {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .intro-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /*.about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-title {
        font-size: 2rem;
    }*/

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-visual {
        height: 400px;
    }

    .visual-card {
        position: relative !important;
        width: 100% !important;
        margin-bottom: 1rem;
    }

    .main-card,
    .secondary-card,
    .accent-card {
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    .floating-elements {
        display: none;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .prev-arrow {
        left: 1rem;
    }

    .next-arrow {
        right: 1rem;
    }

    .slider-nav {
        bottom: 2rem;
    }

    .slide-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }

    .hero-nav-menu {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 14rem;
        left: 17%;
    }

    .hero-nav-link {
        padding: 1rem 1.5rem;
        min-width: 100px;
    }

    .nav-icon {
        font-size: 2rem;
    }

    .nav-text {
        font-size: 0.9rem;
    }

    .hero-dropdown {
        min-width: 280px;
        left: 0;
        transform: translateX(0) translateY(-20px);
    }

    .hero-nav-item:hover .hero-dropdown {
        transform: translateX(0) translateY(0);
    }

    .dropdown-content {
        padding: 1rem;
    }
}

.two-columns {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.dropdown-left {
    flex: 1;
}

.dropdown-preview {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dropdown-preview img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-dropdown {
    min-width: 720px !important;
    padding: 0;
}

.dropdown-content {
    display: flex;
    gap: 2rem;
    padding: 1rem;
}

.dropdown-content ul li a {
    white-space: nowrap;
}

/* Cột phải: hình */
.dropdown-preview {
    flex: 1;
    min-width: 320px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 65px;
}

.dropdown-preview-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform .4s ease, box-shadow .4s ease;
}

.dropdown-preview-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

/* Hiệu ứng menu xuống mượt hơn */
.hero-nav-item:hover .hero-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-list {
    border-right: none !important;
}

@media (max-width: 768px) {
    .hero-nav-menu {
        display: flex;
    }

    .hero-nav-menu {
        display: none;
    }
}

@media (min-width: 769px) {
    .hero-nav-menu {
        display: none;
    }

    .hero-nav-menu {
        display: flex;
    }
}
