/* ============================================
   NHÀ ĐẤT HOÀNG ANH - LANDING PAGE STYLES
   Premium Real Estate Landing Page
   ============================================ */

/* --- CSS Reset & Variables --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Warm Gold & Rich Dark */
    --color-primary: #d4a853;
    --color-primary-light: #f0d48a;
    --color-primary-dark: #b8872e;
    --color-accent: #e8563a;
    --color-accent-light: #ff7a5c;

    /* Background Colors */
    --bg-dark: #0a0a1a;
    --bg-card: rgba(15, 15, 35, 0.85);
    --bg-card-border: rgba(212, 168, 83, 0.15);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Button Colors */
    --btn-call: linear-gradient(135deg, #e8563a, #ff7a5c);
    --btn-zalo: linear-gradient(135deg, #0068ff, #4d94ff);
    --btn-youtube: linear-gradient(135deg, #ff0000, #ff4444);
    --btn-tiktok: linear-gradient(135deg, #e6b800, #f5d020);
    --btn-facebook: linear-gradient(135deg, #1877f2, #4a9eff);

    /* Sizing */
    --card-max-width: 460px;
    --avatar-size: 120px;
    --border-radius: 20px;
    --btn-radius: 16px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Styles --- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Particle Canvas --- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Background Gradient --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(212, 168, 83, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(232, 86, 58, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(10, 10, 26, 0.95) 0%, var(--bg-dark) 100%);
    z-index: 0;
}

/* --- Floating Shapes --- */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.3), transparent 70%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(232, 86, 58, 0.2), transparent 70%);
    bottom: -10%;
    right: -5%;
    animation-delay: -5s;
    animation-duration: 22s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.15), transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: -10s;
    animation-duration: 28s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.1), transparent 70%);
    bottom: 30%;
    left: 10%;
    animation-delay: -15s;
    animation-duration: 30s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

/* --- Main Container --- */
.landing-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* --- Glow Effects --- */
.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: rgba(212, 168, 83, 0.08);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: rgba(232, 86, 58, 0.06);
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Card --- */
.card {
    width: 100%;
    max-width: var(--card-max-width);
    background: var(--bg-card);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius);
    padding: 28px 24px 22px;
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.5;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 83, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Avatar Section --- */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.avatar-ring {
    position: relative;
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-primary-light));
    animation: avatarPulse 3s ease-in-out infinite, ringRotate 8s linear infinite;
    background-size: 200% 200%;
}

.avatar-ring-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    filter: blur(20px);
    opacity: 0.4;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes avatarPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes ringRotate {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-dark);
    display: block;
}

.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #4ade80;
    margin-top: 12px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* --- Info Section --- */
.info-section {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.name {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 6px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.tagline {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
    animation: fadeInUp 0.6s ease-out 0.35s both;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tagline-icon {
    font-size: 18px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.divider {
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.3));
}

.divider::after {
    background: linear-gradient(90deg, rgba(212, 168, 83, 0.3), transparent);
}

.divider-diamond {
    margin: 0 12px;
    color: var(--color-primary);
    font-size: 8px;
    opacity: 0.6;
}

/* --- CTA Buttons --- */
.cta-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--btn-radius);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    cursor: pointer;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--btn-radius);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-btn:hover::after {
    width: 400px;
    height: 400px;
}

.cta-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cta-btn:active {
    transform: translateY(0) scale(0.99);
}

/* Individual Button Styles */
.cta-call {
    background: var(--btn-call);
    animation: fadeInUp 0.5s ease-out 0.45s both;
    box-shadow: 0 4px 20px rgba(232, 86, 58, 0.25);
}
.cta-call:hover {
    box-shadow: 0 8px 32px rgba(232, 86, 58, 0.4);
}

.cta-zalo {
    background: var(--btn-zalo);
    animation: fadeInUp 0.5s ease-out 0.55s both;
    box-shadow: 0 4px 20px rgba(0, 104, 255, 0.2);
}
.cta-zalo:hover {
    box-shadow: 0 8px 32px rgba(0, 104, 255, 0.35);
}

.cta-youtube {
    background: var(--btn-youtube);
    animation: fadeInUp 0.5s ease-out 0.65s both;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.2);
}
.cta-youtube:hover {
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.35);
}

.cta-tiktok {
    background: var(--btn-tiktok);
    border: 1px solid rgba(230, 184, 0, 0.3);
    animation: fadeInUp 0.5s ease-out 0.75s both;
    box-shadow: 0 4px 20px rgba(230, 184, 0, 0.2);
    color: #1a1a1a;
}
.cta-tiktok .cta-sub {
    color: rgba(0, 0, 0, 0.6);
}
.cta-tiktok .cta-arrow {
    color: rgba(0, 0, 0, 0.4);
}
.cta-tiktok .cta-icon-wrapper {
    background: rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}
.cta-tiktok:hover {
    box-shadow: 0 8px 32px rgba(230, 184, 0, 0.4);
    border-color: rgba(230, 184, 0, 0.5);
}

.cta-facebook {
    background: var(--btn-facebook);
    animation: fadeInUp 0.5s ease-out 0.85s both;
    box-shadow: 0 4px 20px rgba(24, 119, 242, 0.2);
}
.cta-facebook:hover {
    box-shadow: 0 8px 32px rgba(24, 119, 242, 0.35);
}

/* Button Icon */
.cta-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    font-size: 18px;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.cta-btn:hover .cta-icon-wrapper {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Button Text */
.cta-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.cta-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cta-sub {
    font-size: 11px;
    opacity: 0.75;
    font-weight: 400;
    margin-top: 2px;
}

/* Button Arrow */
.cta-arrow {
    font-size: 12px;
    opacity: 0.5;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.cta-btn:hover .cta-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* --- Stats Section --- */
.stats-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 0;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out 0.9s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.stat-number {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-suffix {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(212, 168, 83, 0.3), transparent);
}

/* --- Trust Section --- */
.trust-section {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out 1s both;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 24px;
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.15);
    font-size: 12px;
    color: var(--color-primary-light);
    font-weight: 500;
}

.trust-badge i {
    color: var(--color-primary);
    font-size: 14px;
}

/* --- Phone Section --- */
.phone-section {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out 1.05s both;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--color-primary-light);
    transition: all var(--transition-normal);
    padding: 6px 0;
}

.phone-link i {
    font-size: 14px;
    color: var(--color-primary);
    animation: phoneRing 2s ease-in-out infinite;
}

.phone-link:hover {
    color: var(--color-primary);
    transform: scale(1.05);
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-12deg); }
    20% { transform: rotate(12deg); }
    30% { transform: rotate(-8deg); }
    40% { transform: rotate(8deg); }
    50% { transform: rotate(0deg); }
}

/* --- Footer --- */
.card-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out 1.1s both;
}

.card-footer p {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 300;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 83, 0.5);
}

/* --- Responsive Design --- */
@media (max-width: 480px) {
    .landing-container {
        padding: 20px 16px;
        align-items: flex-start;
        min-height: 100dvh;
    }

    .card {
        padding: 32px 20px 24px;
        border-radius: 16px;
    }

    :root {
        --avatar-size: 130px;
    }

    .name {
        font-size: 24px;
    }

    .tagline {
        font-size: 14px;
    }

    .cta-btn {
        padding: 12px 14px;
        gap: 12px;
    }

    .cta-icon-wrapper {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    .cta-label {
        font-size: 13px;
    }

    .stats-section {
        gap: 12px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .card {
        padding: 24px 16px 20px;
    }

    :root {
        --avatar-size: 110px;
    }

    .name {
        font-size: 22px;
    }

    .cta-label {
        font-size: 12px;
    }

    .cta-sub {
        font-size: 10px;
    }
}

/* --- Hover/Touch Optimizations --- */
@media (hover: none) {
    .cta-btn:hover {
        transform: none;
    }
    
    .cta-btn:active {
        transform: scale(0.98);
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Print Styles --- */
@media print {
    body::before,
    #particles-canvas,
    .floating-shapes,
    .glow-effect {
        display: none;
    }

    .card {
        background: white;
        color: black;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .name {
        -webkit-text-fill-color: #333;
    }

    .cta-btn {
        border: 1px solid #ddd;
        color: #333;
    }
}

/* Zalo icon specific */
.zalo-icon {
    width: 22px;
    height: 22px;
}
