:root {
    --primary: #003366;
    --secondary: #C5A059;
    --accent: #00A8E8;
    --dark: #1A1A1A;
    --light: #FFFFFF;
    --gray: #F5F5F7;
    --text: #333333;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

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

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

.btn-contact {
    background: var(--primary);
    color: var(--light);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.btn-contact:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Hero */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,51,102,0.4), rgba(0,51,102,0.4)), url('assets/images/vinhomes/vinhomes-green-paradise-can-gio-11.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--light);
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero .btn-main {
    background: var(--secondary);
    color: var(--light);
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.hero .btn-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.4);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title .divider {
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto;
}

/* Introduction */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h3 {
    font-size: 28px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.intro-text p {
    margin-bottom: 15px;
    font-size: 18px;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: var(--gray);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stat-item h4 {
    font-size: 32px;
    color: var(--primary);
}

.stat-item p {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
}

/* Location */
.location {
    background: var(--gray);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.location-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Utilities */
.utils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.util-card {
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.util-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.util-info {
    padding: 25px;
}

.util-info h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

/* Master Plan */
.plan-image {
    text-align: center;
}

.plan-image img {
    max-width: 100%;
    border-radius: 20px;
    cursor: zoom-in;
}

/* Form */
.contact-section {
    background: var(--primary);
    color: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.contact-form form {
    display: grid;
    gap: 20px;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--light);
    font-family: inherit;
}

.contact-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.modal .contact-form input::placeholder {
    color: #999;
}

.contact-form button {
    background: var(--secondary);
    color: var(--light);
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background: var(--light);
    color: var(--primary);
}

/* Footer Logos */
.footer-logos {
    padding: 60px 0;
    background: #fff;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
    opacity: 0.6;
}

.logos-grid img {
    height: 35px;
    filter: grayscale(1);
    transition: var(--transition);
}

.logos-grid img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Read More Content - Seamless Style */
.read-more-wrapper {
    position: relative;
    margin-top: 10px;
    transition: var(--transition);
}

.read-more-content {
    max-height: 120px; /* ~4-5 lines */
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: justify;
    padding-bottom: 0;
}

.read-more-wrapper.expanded .read-more-content {
    max-height: 600px; /* Limit height to prevent layout breakage but allow scrolling */
    overflow-y: auto;
    padding-right: 15px; /* Space for scrollbar */
}

/* Custom Scrollbar - Subtle */
.read-more-content::-webkit-scrollbar {
    width: 4px;
}
.read-more-content::-webkit-scrollbar-track {
    background: transparent;
}
.read-more-content::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.4);
    border-radius: 10px;
}

.read-more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1) 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 0;
    transition: var(--transition);
    z-index: 10;
}

/* For dark background sections (if any) */
.location .read-more-overlay, .policy .read-more-overlay {
    background: linear-gradient(to bottom, rgba(245,245,247,0), rgba(245,245,247,1) 100%);
}

.read-more-wrapper.expanded .read-more-overlay {
    opacity: 0;
    pointer-events: none;
}

.btn-read-more {
    color: var(--secondary);
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
    padding: 5px 0;
    text-decoration: underline;
}

/* Legal & Pricing Components */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.legal-card {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}

.legal-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px);
}

.legal-card h4 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 10px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    min-width: 400px;
}

.price-table th {
    background: rgba(199, 161, 94, 0.1);
    color: var(--secondary);
    padding: 15px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.1);
}

.price-table td {
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Timeline component */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    margin-bottom: 30px;
    padding-left: 30px;
    border-left: 2px solid rgba(255,255,255,0.1);
    position: relative;
}

.timeline-item.active {
    border-left-color: var(--secondary);
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #333;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
}

.timeline-item.active .timeline-dot {
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.timeline-item h4 {
    color: #fff;
    margin-bottom: 5px;
}

.timeline-item.active h4 {
    color: var(--secondary);
}

.news-link {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.news-link:hover {
    border-bottom-color: var(--secondary);
    padding-left: 5px;
}

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

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.8);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: var(--primary);
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 34, 68, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.success-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.success-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: 0.5s ease;
}

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

.success-content i {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-content h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.success-content p {
    color: #666;
    margin-bottom: 30px;
}

.success-content button {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
}

.btn-read-more:hover {
    color: var(--primary);
}

.read-more-wrapper.expanded .btn-collapse {
    display: block;
    text-align: right;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 0;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-collapse {
    display: none;
}

.scroll-box h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 22px;
}

.faq-item {
   border-bottom: 1px solid var(--gray);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary);
}

/* Mobile & Tablet Optimization */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    .hero-content h1 {
        font-size: 48px;
    }
    .intro-grid, .location-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .section-title h2 {
        font-size: 32px;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .stats {
        grid-template-columns: 1fr 1fr;
    }
    .utils-grid {
        grid-template-columns: 1fr;
    }
    header nav {
        display: none;
    }
    .intro-text p, .location-text p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    header nav {
        display: none; /* Can add hamburger menu later if needed */
    }
    .hero {
        padding: 100px 0;
    }
    .hero h1 {
        font-size: 32px;
    }
    .stats {
        grid-template-columns: 1fr 1fr;
    }
    .utils-grid {
        grid-template-columns: 1fr;
    }
    .floating-contact {
        gap: 10px;
    }
    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .btn-zalo {
        width: 45px;
        height: 45px;
    }
    section {
        padding: 50px 0;
    }
    .intro-text h3, .location-text h3 {
        font-size: 22px;
    }
}

.faq-item p {
    font-size: 15px;
    line-height: 1.7;
}

/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.contact-btn:hover {
    transform: scale(1.1);
}

.btn-phone {
    background: #008000; /* Green phone */
    animation: pulse-phone 2s infinite;
}

.btn-zalo {
    background: #0084FF; /* Zalo Blue */
    width: 55px;
    height: 55px;
}

.btn-zalo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.contact-btn .tooltip {
    position: absolute;
    right: 75px;
    background: #333;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    white-space: nowrap;
}

.contact-btn:hover .tooltip {
    opacity: 1;
}

@keyframes pulse-phone {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 128, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 128, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 128, 0, 0);
    }
}

/* Desktop styles for larger icons */
@media (min-width: 768px) {
    .floating-contact {
        right: 30px;
        bottom: 30px;
    }
}

.scroll-box p {
    margin-bottom: 15px;
    color: #555;
    text-align: justify;
}

footer {
    background: var(--dark);
    color: rgba(255,255,255,0.5);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 991px) {
    .intro-grid, .location-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    nav {
        display: none;
    }
}

.btn-contact-alt {
    display: inline-block;
    padding: 15px 35px;
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    text-decoration: none;
}

.btn-contact-alt:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(199, 161, 94, 0.4);
}

/* Interstitial CTA Styles */
.cta-interstitial {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-interstitial::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 25, 47, 0.4) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 60px 40px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.cta-interstitial h3 {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.cta-interstitial p {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.95;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .cta-interstitial {
        padding: 60px 0;
    }
    .cta-interstitial h3 {
        font-size: 1.6rem;
    }
    .cta-content {
        padding: 40px 20px;
        margin: 0 20px;
    }
}
