/* CSS Variables Setup based on requirements */
:root {
    --primary: #FF6F40;
    --white-1: #fbf1f0;
    --white: #fff;
    --dark: #1a1a1a;
    --text-color: #333;
    --text-light: #555;
    --gradient: radial-gradient(circle, #e98922, #cd4e2a);
    --bg-gradient: linear-gradient(180deg, #ffedeb, #fff);
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-gradient);
}

h1,
h2,
h3,
h4,
h5,
h6,
.cormorant-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}
.fp-watermark { 
display: none;}
/* Typography Utilities */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 500;
}

/* Glassmorphism Utilities */
.glass-effect {
    padding: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(255, 111, 64, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 111, 64, 0.6);
    background: radial-gradient(circle, #e98922, #cd4e2a);
}

.fp-arrow .fp-controlArrow .fp-prev {
    border-width: 15px 15px 13px 0;
}

/* Navigation */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.fixed-nav .logo img {
    height: 40px;
}

#main-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 35px;
}

#main-menu li a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

#main-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

#main-menu li.active a::after,
#main-menu li a:hover::after {
    width: 100%;
}

#main-menu li.btn-register-nav a {
    background: var(--gradient);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 111, 64, 0.3);
}

#main-menu li.btn-register-nav a::after {
    display: none;
}

#main-menu li.btn-register-nav a:hover {
    box-shadow: 0 6px 20px rgba(255, 111, 64, 0.5);
}

/* Section Common Styles */
.section {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 40%, rgba(255, 255, 255, 0.4) 100%);
    z-index: 1;
}

.section.fp-auto-height-responsive {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section .content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
    width: 100%;
}

/* Layout Utilities */
.grid-2-col,
.grid-2-col-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-2-col>*,
.grid-2-col-reverse>* {
    min-width: 0;
}

.align-left {
    text-align: left;
    max-width: 650px;
}

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

/* Specific Sections */

/* Sec 1: Giới thiệu */
/* Hero Section */
#sec-hero {
    background-image: url('../img/image1.png');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
}

#sec-hero::before {
    display: none;
    /* No overlay for hero banner */
}

#sec-gioi-thieu {
    background-image: url('../img/image9.png');
}

.main-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary);
}

.lead-text {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text-light);
}

.feature-bullets {
    margin-bottom: 30px;
}

.feature-bullets p {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    font-weight: 500;
}

.feature-bullets p::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.highlight-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 40px;
    padding: 15px;
    border-left: 4px solid var(--primary);
    background: rgba(255, 255, 255, 0.6);
}

/* Sec 2: Tổng quan */
#sec-tong-quan {
    background-image: url('../img/image8.png');
}

#sec-tong-quan::before {
    background: rgba(251, 241, 240, 0.9);
    /* white 1 */
}

.info-block {
    padding: 30px 40px;
}

/* Custom Slider */
.custom-slider {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.custom-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
}

.custom-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.form-block-horizontal {
    display: none;
}

.info-block h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.05rem;
}

.info-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-block-horizontal {
    padding: 30px;
    text-align: center;
    width: 100%;
}

.horizontal-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.horizontal-form input {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

.horizontal-form input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 111, 64, 0.1);
}

.horizontal-form button {
    padding: 15px 40px;
    min-width: 180px;
}

.inline-form input,
.vertical-form input,
.vertical-form textarea {
    padding: 15px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.vertical-form textarea {
    border-radius: 15px;
    resize: vertical;
}

.inline-form input:focus,
.vertical-form input:focus,
.vertical-form textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 111, 64, 0.1);
}

.hotline {
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Sec 3: Video */
#sec-video {
    background-image: url('../img/image3.png');
    background-position: center bottom;
}

#sec-video::before {
    background: rgba(0, 0, 0, 0.3);
    /* Darker overlay for video */
}

#sec-video .cormorant-heading {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 3rem;
}

.video-container {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Removed .play-btn and .video-container hover effects as iframe is now direct */

/* Sec 4: Vị trí */
#sec-vi-tri {
    background-image: url('../img/image4.png');
}

.text-block h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.text-block h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.location-list {
    list-style: none;
    margin: 30px 0;
}

.location-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.location-list i {
    color: var(--primary);
    font-size: 1.3rem;
    width: 24px;
    min-width: 24px;
    text-align: center;
    margin-top: 4px;
    /* Align with first line of text */
}

.rounded-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

.shadow {
    box-shadow: var(--glass-shadow);
}

/* Sec 5: Tiện ích */
#sec-tien-ich {
    background-image: url('../img/image5.png');
}

#sec-tien-ich h2 {
    font-size: 2.5rem;
}

#sec-tien-ich h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.amenity-card {
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-10px);
}

.amenity-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.amenity-card h4 {
    font-size: 1.2rem;
}

/* Sec 6: Loại hình */
#sec-loai-hinh {
    background-image: url('../img/image10.png');
}

#sec-loai-hinh h2 {
    font-size: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    padding: 0 0 30px 0;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-img {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.8rem;
    color: var(--primary);
    padding: 0 25px;
    margin-bottom: 15px;
}

.product-card ul {
    padding: 0 25px 0 45px;
}

.product-card ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Sec 7: Lý do */
#sec-ly-do {
    background: var(--bg-gradient);
    /* Overriding image for clean look */
}

#sec-ly-do::before {
    display: none;
}

#sec-ly-do h2 {
    font-size: 2.5rem;
}

.reasons-container {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.reason-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reason-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.reason-item.featured {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 40px;
    gap: 30px;
}

.reason-item.featured .reason-num {
    font-size: 8rem;
    margin-bottom: 0;
}

.reason-item.featured h4 {
    font-size: 2rem;
    line-height: 1.2;
}

.reason-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 111, 64, 0.15);
}

.reason-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
    opacity: 0.8;
}

.reason-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

/* Sec 8: Gallery - Simplified for Image Block */
#sec-gallery .image-block {
    width: 100%;
    margin: 0 auto;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#sec-tong-quan .swiper {
    height: 700px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

#sec-gallery .swiper {
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gal-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.gal-arrow {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 111, 64, 0.3);
}

.gal-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 111, 64, 0.5);
}

/* Sec 9: Liên hệ & SML */
#sec-lien-he {
    background-image: url('../img/image8.png');
    /* Swapped banner */
}

#sec-lien-he::before {
    background: rgba(251, 241, 240, 0.9);
}

/* Sec 9: Đăng ký */
#sec-dang-ky {
    background-image: url('../img/image7.png');
}

#sec-dang-ky::before {
    background: rgba(251, 241, 240, 0.85);
}

.sml-info h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.sml-info h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.sml-bullets {
    list-style: none;
    margin-top: 30px;
}

.sml-bullets li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.sml-bullets i {
    color: var(--white);
    background: var(--gradient);
    border-radius: 50%;
    padding: 5px;
    font-size: 0.8rem;
    margin-top: 4px;
}

.vertical-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.footer-text {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    z-index: 2;
}

/* Modal Form Specifics */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary);
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--dark);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#contact-form input {
    padding: 15px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.7);
}

#contact-form input:focus {
    border-color: var(--primary);
    background: var(--white);
}

/* Animations Trigger Classes */
.animate__animated {
    opacity: 0;
    /* Hidden initially, JS will add class and opacity 1 */
}

/* Responsive Overrides */
@media (max-width: 1024px) {

    .grid-2-col,
    .grid-2-col-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grid-2-col-reverse .image-block {
        grid-row: 1;
        /* Move image above text on mobile */
    }

    .amenities-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reasons-container {
        grid-template-columns: 1fr;
    }

    .reason-secondary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .main-title {
        font-size: 2.8rem;
    }

    .section .content {
        padding: 60px 5%;
    }

    .section::before {
        background: rgba(255, 255, 255, 0.85);
        /* More opaque on mobile for readability */
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    #main-menu {
        display: none;
        position: fixed;
        /* Changed from absolute to fixed for better mobile handling */
        top: 80px;
        /* Header height */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        padding: 40px 0;
        gap: 30px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 99;
        overflow-y: auto;
    }

    #main-menu.show {
        display: flex;
    }

    #main-menu li {
        width: 100%;
        text-align: center;
    }

    #main-menu li a {
        font-size: 1.2rem;
    }

    #main-menu li a::after {
        display: none;
    }

    .amenities-grid,
    .products-grid {
        grid-template-columns: 1fr, 1fr;
    }

    .reason-secondary-grid {
        grid-template-columns: 1fr, 1fr;
    }

    .reason-item.featured .reason-num {
        font-size: 5rem;
    }

    .reason-item.featured h4 {
        font-size: 1.5rem;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .content.align-left {
        max-width: 100%;
    }

    .reason-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

/* fullPage.js Arrow Styling */
.fp-controlArrow.fp-prev {
    border-width: 15px 15px 13px 0 !important;
    border-color: transparent var(--primary) transparent transparent !important;
    left: 15px !important;
}

.fp-controlArrow.fp-next {
    border-width: 15px 0 13px 15px !important;
    border-color: transparent transparent transparent var(--primary) !important;
    right: 15px !important;
}

@media (max-width: 1024px) {

    .grid-2-col,
    .grid-2-col-reverse,
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .section,
    .section.fp-section,
    .section.fp-auto-height-responsive,
    .fp-tableCell {
        min-height: auto !important;
        padding: 60px 0 !important;
        display: block !important;
        overflow: visible !important;
    }

    #fullpage {
        height: auto !important;
        overflow: visible !important;
    }

    html,
    body {
        overflow-x: hidden !important;
        height: auto !important;
    }

    .swiper {
        height: 350px !important;
    }

    .section .content {
        padding: 40px 20px !important;
    }

    .image-block {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 20px !important;
    }

    /* Section-specific Mobile Fixes */

    /* Vị trí - Map full width */
    #sec-vi-tri .image-block {
        margin: 20px -20px 0 -20px !important;
        width: 100vw !important;
        max-width: none !important;
    }

    #sec-vi-tri .rounded-img {
        border-radius: 0 !important;
    }

    /* Tổng quan - Image mapping 55% */
    /* Tổng quan mobile Swiper height */
    #sec-tong-quan .swiper {
        height: 300px !important;
    }

    .rounded-img {
        max-height: 400px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    /* Gallery Mobile Fix */
    #sec-gallery {
        padding: 40px 0 !important;
    }

    #sec-gallery .swiper {
        height: 300px !important;
        border-radius: 0;
    }

    #sec-gallery .image-block {
        margin: 0 -20px;
        width: calc(100% + 40px) !important;
    }

    .gal-arrows {
        margin-top: 20px;
    }
}

/* Door Decor Transition Refined */
.door-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    overflow: hidden;
}

.door {
    height: 100vh;
    width: 50vw;
    background: #FF6F40;
    /* Match HAUS primary color */
    transition: transform 0.4s cubic-bezier(0.85, 0, 0.15, 1);
    /* Even faster close */
    will-change: transform;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
}

.door img {
    height: 100%;
    width: auto;
    max-width: none;
    position: absolute;
    top: 0;
}

.door-left {
    transform: translateX(-100%);
    justify-content: flex-end;
}

.door-left img {
    right: -1px;
    /* Ensure it reaches the edge */
}

.door-right {
    transform: translateX(100%);
    justify-content: flex-start;
}

.door-right img {
    left: -1px;
    transform: scaleX(-1);
    /* Mirror the ornament */
}

/* Active State */
.door-transition.active .door-left,
.door-transition.active .door-right {
    transform: translateX(0);
}

/* Center Logos during transition */
.logo-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo-reveal img {
    height: 100px;
    /* Increased from 80px */
    width: auto;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.2));
}

.logo-reveal img.logo-smartland {
    height: 100px;
    /* Same height to make them 'bằng hơn' */
}

.door-transition.active .logo-reveal {
    opacity: 1;
    transition-delay: 0.7s;
}