/* Variables */
:root {
    --primary-color: #0d234a; /* Dark Blue from reference */
    --secondary-color: #c19a6b; /* Gold/Beige */
    --secondary-hover: #a88358;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #eaeaea;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-large: 0 10px 40px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.max-w-800 { max-width: 800px; }
.bg-light { background-color: var(--bg-light); }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.shadow-lg { box-shadow: var(--shadow-large); }
.rounded-lg { border-radius: 12px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 4px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-subtext {
    font-size: 0.45rem;
    letter-spacing: 1px;
    font-weight: 300;
}

.logo-large .logo-img {
    width: 100px;
    height: 100px;
}

.logo-large .logo-text { font-size: 1.6rem; }
.logo-large .logo-subtext { font-size: 0.6rem; }

.main-nav {
    display: none;
}

@media (min-width: 992px) {
    .main-nav {
        display: block;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--white);
    position: relative;
    padding-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3); /* better visibility on image */
}

.header.scrolled .nav-link {
    color: var(--primary-color);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-number {
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.header.scrolled .phone-number {
    color: var(--secondary-color);
    text-shadow: none;
}

/* Floating Actions */
.floating-actions-left {
    position: fixed;
    left: 20px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 900;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(13, 35, 74, 0.8);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    width: fit-content;
}

.float-btn i {
    font-size: 1.2rem;
}

.float-btn:hover {
    background-color: var(--primary-color);
    transform: translateX(5px);
}

.zalo-btn {
    background-color: rgba(0, 104, 255, 0.8);
}
.zalo-btn:hover { background-color: rgba(0, 104, 255, 1); }

.floating-dots-right {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 900;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.2);
    border: 2px solid transparent;
    transition: var(--transition);
}

.dot:hover, .dot.active {
    background-color: var(--secondary-color);
    border-color: rgba(193, 154, 107, 0.3);
    transform: scale(1.2);
}

/* Sections */
.section {
    padding: 80px 0;
}

.tagline {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.content-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.section-tongquan .content-container,
.section-vitri .content-container {
    align-items: flex-start;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.image-content {
    flex: 1;
    min-width: 300px;
}

.reverse-layout {
    flex-direction: row-reverse;
}

.content-img {
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 0; /* Remove offset so it sits under the transparent header */
}

.hero-image-container {
    width: 100%;
    height: auto;
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block; /* natural aspect ratio, no stretching */
}

/* Overview Table in Floating Box */
.overview-stats-box {
    margin-top: 20px; /* Space below the image */
    background-color: #0A4E9F; /* Màu xanh yêu cầu */
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--white);
}

.overview-table th,
.overview-table td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.4;
}

.overview-table th {
    color: var(--secondary-color);
    font-weight: 600;
    width: 35%;
}

.overview-table tr:last-child th,
.overview-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 992px) {
    .overview-stats-box {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
        background-color: var(--primary-color);
    }
}

/* Location Section */
.section-vitri {
    background-color: #0A4E9F;
    color: var(--white);
}

.section-vitri .section-title {
    color: var(--white);
}

.section-vitri .description {
    color: rgba(255, 255, 255, 0.9);
}

/* Location Highlights */
.highlight-list {
    margin: 2rem 0;
}

.highlight-list li {
    margin-bottom: 1.5rem;
    padding-left: 20px;
    border-left: 3px solid var(--secondary-color);
}

.highlight-title {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.highlight-desc {
    color: rgba(255, 255, 255, 0.85);
}

/* Strategic Infrastructure */
.strategic-infra {
    margin-top: 80px;
    padding-top: 50px;
}

.strategic-infra .section-title {
    text-align: center;
    margin-bottom: 40px;
}

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

.infra-card {
    background-color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.infra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

.infra-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.infra-content {
    padding: 25px;
}

.infra-title {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.infra-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .infra-grid {
        grid-template-columns: 1fr;
    }
}

/* Tien Ich Section Interactive Layout */
.section-tienich {
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../assets/tienich_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
}

.section-tienich .section-title {
    color: #0E172A;
}

.section-tienich .description {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Added shadow so white text is readable on light overlay */
}

.amenities-interactive {
    display: flex;
    flex-direction: row;
    background: #0d1527;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    height: 600px;
}

.amenities-sidebar {
    width: 35%;
    background-color: #0d1527;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.amenities-sidebar::-webkit-scrollbar {
    width: 6px;
}
.amenities-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.amenity-tab {
    padding: 25px 30px;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.amenity-tab:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.amenity-tab.active {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--secondary-color);
}

.amenity-tab h4 {
    color: #a0a5b1;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
    transition: color 0.3s;
}

.amenity-tab.active h4 {
    color: var(--secondary-color);
}

.amenity-tab p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.amenities-display {
    width: 65%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px;
    height: 100%;
    box-sizing: border-box;
}

.amenities-display-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.amenities-display-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(13, 21, 39, 0.9) 0%, rgba(13, 21, 39, 0.4) 100%);
    z-index: 2;
}

.amenities-display-content {
    position: relative;
    z-index: 3;
    max-width: 500px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    font-size: 1.2rem;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.display-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 400;
}

.display-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.display-divider {
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
    margin-bottom: 30px;
}

.display-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .amenities-interactive {
        flex-direction: column;
        height: auto;
    }
    .amenities-sidebar {
        width: 100%;
        max-height: 300px;
    }
    .amenities-display {
        width: 100%;
        padding: 40px 20px;
        min-height: 400px;
    }
    .display-title {
        font-size: 2.5rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #08162b 100%);
    color: var(--white);
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.brand-col .logo-circle {
    background-color: rgba(255,255,255,0.1);
}

.footer-title-text {
    letter-spacing: 2px;
    color: var(--white);
    font-weight: 500;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b8c6;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-col p {
    color: #b0b8c6;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.contact-col i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.view-map-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    margin-right: 10px;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 0.85rem;
    color: #b0b8c6;
}

.policy-links a {
    color: #b0b8c6;
    margin: 0 5px;
}

.policy-links a:hover {
    color: var(--white);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--primary-color);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    transform: translateY(-20px);
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255,255,255,0.4);
}

.modal-header {
    padding: 30px 30px 20px;
    text-align: center;
}

.modal-header h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
}

.modal-body {
    padding: 0 30px 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
    border: none;
    background-color: #f0f2f5;
    font-family: var(--font-main);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--white);
    user-select: none;
}

.checkbox-container.full-width {
    grid-column: 1 / -1;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--secondary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-download {
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

.btn-download:hover {
    background-color: var(--secondary-hover);
}

.modal-guarantees {
    margin-top: 25px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.modal-guarantees p {
    margin-bottom: 5px;
}

.modal-guarantees i {
    margin-right: 5px;
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    background-color: rgba(13, 35, 74, 0.7);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 800;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
    .header-actions { display: none; }
    .floating-actions-left { bottom: 20px; left: 10px; }
    .float-btn { padding: 10px 15px; font-size: 0.8rem; }
    .floating-dots-right { right: 10px; }
    .footer-bottom .container { flex-direction: column; text-align: center; gap: 10px; }
    .checkbox-grid { grid-template-columns: 1fr; }
}
