@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #103934;
    --primary-light: #18524a;
    --primary-dark: #0a2622;
    --secondary: #efd8c2;
    --secondary-dark: #dfc4ab;
    --secondary-light: #faf0e6;
    --text-white: #ffffff;
    --text-gold: #efd8c2;
    --text-muted: rgba(255, 255, 255, 0.75);
    --bg-main: #103934;
    --bg-card: rgba(24, 82, 74, 0.5);
    --border-gold: rgba(239, 216, 194, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: auto; /* Handled by JS offset scroll */
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: 'Google Sans Flex', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-gold);
}

h2 {
    font-size: clamp(26px, 4vw, 32px);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-gold);
    margin-bottom: 1rem;
}

p {
    font-size: clamp(15px, 2.5vw, 17px);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-gold);
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--primary-dark);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

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

/* Fixed Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--primary);
    border-bottom: 1px solid var(--border-gold);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    background-color: rgba(16, 57, 52, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 42px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-white);
    padding: 5px 0;
    position: relative;
}

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

nav ul li a:hover {
    color: var(--text-gold);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Nav Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1010;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

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

.nav-mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--primary-dark);
    z-index: 1002;
    padding: 100px 30px 40px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-mobile-drawer.active {
    right: 0;
}

.nav-mobile-drawer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-mobile-drawer ul li a {
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(239, 216, 194, 0.1);
}

.nav-mobile-drawer ul li a:hover {
    color: var(--text-gold);
    padding-left: 10px;
}

/* CTA & Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: var(--primary);
    padding: 15px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--secondary);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.btn:hover {
    background: transparent;
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 216, 194, 0.25);
}

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

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

.btn-cta-section {
    margin-top: 1.5rem;
    font-size: 16px;
    padding: 16px 36px;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #efd8c2 0%, #dcc2aa 100%);
    border: none;
    color: var(--primary-dark);
    display: inline-block;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-section:hover {
    background: var(--primary-light);
    color: var(--text-gold);
    border: 1px solid var(--secondary);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 30%, rgba(239, 216, 194, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 650px;
}

.hero-tagline {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    display: inline-block;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 5px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-gold);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-image-wrapper:hover img {
    transform: scale(1.05);
}

.hero-mobile-banner {
    display: none;
}

/* Multi-image layouts */
.image-gallery-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.image-gallery-2 img {
    height: 280px;
    width: 100%;
    object-fit: cover;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow);
}

.image-gallery-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.image-gallery-3 img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border: 1px solid var(--border-gold);
}

.img-hover-effect {
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow);
}

.img-hover-effect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-hover-effect:hover img {
    transform: scale(1.06);
}

/* Feature Bullets */
.bullet-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bullet-list li {
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    color: var(--text-muted);
}

.bullet-list li strong {
    color: var(--text-gold);
}

.bullet-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-size: 18px;
}

/* Section specific styling */
/* Phân khu styling */
.park-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 35px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.park-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.park-card-header {
    margin-bottom: 1.5rem;
}

.park-badge {
    background: rgba(239, 216, 194, 0.1);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

/* Section 12 (Bàn giao) Grid & Custom layout */
.handover-showcase {
    margin-top: 30px;
}

.main-handover-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-gold);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.handover-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.handover-thumbnails img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--border-gold);
}

.handover-thumbnails img:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
}

/* Section 14 (Tiến độ) Custom Grid */
.progress-main-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-gold);
    box-shadow: var(--shadow);
}

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

.progress-grid img {
    height: 120px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-gold);
}

/* Section 15: Contact Form Section */
.contact-section {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #081d1a 100%);
    position: relative;
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-header h2 {
    display: inline-block;
    margin-bottom: 10px;
}

.contact-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-header p {
    font-size: 18px;
    color: var(--secondary);
}

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

.form-group label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background-color: rgba(10, 38, 34, 0.8);
    border: 1px solid var(--border-gold);
    color: var(--text-white);
    font-size: 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(239, 216, 194, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Footer Section */
footer {
    background-color: #081d1a;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-gold);
    font-size: 14px;
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    text-decoration: underline;
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary);
}

.footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .footer-logo-container {
        align-items: center;
        text-align: center;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    margin-bottom: 1.5rem;
}

.footer-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-info ul li {
    font-size: 15px;
}

.footer-info ul li strong {
    color: var(--text-gold);
}

.footer-disclaimer {
    border-top: 1px solid rgba(239, 216, 194, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}

.footer-disclaimer p {
    font-size: 13px;
    margin-bottom: 10px;
}

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

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

.modal-content {
    background-color: var(--primary-dark);
    border: 2px solid var(--secondary);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: var(--secondary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-white);
    transform: rotate(90deg);
}

/* Floating Action Widgets */
.floating-widgets {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-3px);
}

/* Call Button (Hotline) */
.btn-hotline {
    background-color: #e65100;
    border: 2px solid var(--secondary);
}

.btn-hotline svg {
    width: 26px;
    height: 26px;
    fill: var(--text-white);
    animation: phone-vibrate 0.8s infinite alternate;
}

/* Zalo Button */
.btn-zalo {
    background-color: #0084ff;
    border: 2px solid var(--text-white);
    padding: 0;
    overflow: hidden;
}

.btn-zalo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tải Bảng Giá Button (Floating text button below them) */
.btn-float-cta {
    background: linear-gradient(135deg, #efd8c2 0%, #d8beaa 100%);
    color: var(--primary-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--primary-dark);
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    align-self: center;
}

.btn-float-cta:hover {
    background: var(--text-white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Vibration Animation */
@keyframes phone-vibrate {
    0% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(-15deg) scale(1.05); }
    20% { transform: rotate(15deg) scale(1.05); }
    30% { transform: rotate(-15deg) scale(1.05); }
    40% { transform: rotate(15deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); }
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-section {
        padding-top: 120px;
        padding-bottom: 60px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .hero-text-content {
        display: none;
    }
    
    .hero-image-wrapper {
        display: none;
    }
    
    .hero-mobile-banner {
        display: block;
        width: 100%;
        margin-bottom: 20px;
        border-radius: var(--radius-md);
        overflow: hidden;
        border: 2px solid var(--border-gold);
        box-shadow: var(--shadow);
    }
    
    .hero-mobile-banner img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 0;
    }
    
    .hero-tagline {
        margin: 0 auto 1rem;
    }
    
    nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .image-gallery-2 {
        grid-template-columns: 1fr;
    }
    
    .image-gallery-2 img {
        height: 220px;
    }
    
    .image-gallery-3 {
        grid-template-columns: 1fr;
    }
    
    .image-gallery-3 img {
        height: 180px;
    }
    
    .handover-thumbnails {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .handover-thumbnails img {
        height: 120px;
    }
    
    .progress-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .progress-grid {
        grid-template-columns: 1fr;
    }
    .btn-float-cta {
        font-size: 11px;
        padding: 8px 15px;
    }
    .floating-widgets {
        right: 15px;
        bottom: 15px;
    }
}
