/* ==========================================================================
   Base Styles & Variables (Elyse Residence Style)
   ========================================================================== */
   :root {
    /* Colors - Onyx & Champagne / Dark Luxury Theme */
    --clr-bg: #0A0A0A; /* Deepest Onyx */
    --clr-bg-dark: #121212; /* Deep surface */
    --clr-text: #EAEAEA; /* Silver reading text */
    --clr-text-light: #FFFFFF; /* Pure White for hero */
    --clr-accent: #D4AF37; /* Champagne Gold */
    --clr-accent-hover: #F3E5AB; /* Lighter glow */
    --clr-brand-blue: #D4AF37; /* Mapped to gold for consistency */
    
    /* Typography */
    --font-heading: 'Cinzel', 'Noto Sans Myanmar', serif;
    --font-body: 'Jost', 'Noto Sans Myanmar', sans-serif;
    
    /* Spacing & Layout */
    --space-sm: 1.5rem;
    --space-md: 3rem;
    --space-lg: 6rem;
    --space-xl: 12rem;
    --container-w: 1200px;
    
    /* Shapes & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 30px rgba(212, 175, 55, 0.05); /* Soft gold glow */
    --shadow-hover: 0 20px 40px rgba(212, 175, 55, 0.15); /* Brighter gold glow */
    
    /* Transitions */
    --transition-smooth: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s ease, border-color 0.5s ease;
    --transition-slow: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Base */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
    text-wrap: balance; /* Prevents widows in headings */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    touch-action: manipulation; /* Prevents double-tap zoom delay */
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 4px;
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--space-xl) 0;
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.nav-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    white-space: nowrap;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--clr-text-light);
    text-transform: uppercase;
}

.logo .accent {
    color: var(--clr-accent);
}

.navbar.scrolled .logo a {
    color: var(--clr-text);
}

.lang-switch {
    display: flex;
    gap: 1rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--clr-text-light); /* Initially on dark hero */
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.navbar.scrolled .lang-btn {
    color: var(--clr-text);
}

.lang-btn.active {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lang-btn:hover, .lang-btn.active {
    opacity: 1;
    color: var(--clr-accent);
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
    .nav-links a {
        font-family: var(--font-body);
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--clr-text-light);
        transition: var(--transition-smooth);
    }
    .navbar.scrolled .nav-links a {
        color: var(--clr-text);
    }
    .nav-links a:hover {
        color: var(--clr-accent) !important;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--clr-text-light);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.25) 0%, rgba(10, 10, 10, 0.75) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 10;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--clr-accent);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--clr-accent);
    color: var(--clr-text-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: var(--clr-accent);
    color: var(--clr-text-light);
}

.btn-primary.dark-text {
    color: var(--clr-accent);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 1px solid var(--clr-text-light);
    border-radius: 20px;
    display: block;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 6px;
    background: var(--clr-text-light);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    animation: scroll 2s infinite;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--space-md);
    color: var(--clr-text);
}

.section-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--clr-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.dark-bg {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
}

.dark-bg .section-heading {
    color: var(--clr-text-light);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: var(--space-lg);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.project-card {
    cursor: pointer;
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.project-info {
    color: inherit;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(184, 156, 114, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    color: var(--clr-text-light);
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-loc {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-accent);
    position: relative;
}

.link-arrow::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; width: 0; height: 1px;
    background: var(--clr-accent);
    transition: var(--transition-smooth);
}

.project-card:hover .link-arrow::after {
    width: 100%;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: var(--clr-bg);
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0 3rem;
    flex-wrap: wrap;
}

.contact-primary {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    color: var(--clr-text);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

/* Brand Colors for Icons */
.social-btn i.fa-facebook { color: #1877F2; }
.social-btn i.fa-telegram { color: #0088CC; }

.phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--clr-accent);
    padding: 12px 32px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    background: rgba(212, 175, 55, 0.1);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.phone-pill:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.phone-pill i {
    font-size: 1.1rem;
}

.social-btn:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    transform: translateY(-5px);
}

.social-btn:hover i {
    color: var(--clr-text-light);
}

.fb-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.fb-card h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--clr-text);
    margin-bottom: 1.2rem;
}

.fb-card h4 i {
    font-size: 1.4rem;
}

.fb-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #1877F2; /* FB Blue */
}

/* ==========================================================================
   Partners Section
   ========================================================================== */
.partners-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.partners-logo-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 1rem 0;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.partners-logo-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: none;
    opacity: 0.9;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease, opacity 0.5s ease;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.1));
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: var(--radius-md);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #ccc;
}

.testimonial-card .author {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--clr-accent);
}



/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
/* ==========================================================================
   Buying Process Roadmap
   ========================================================================== */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.roadmap-item {
    position: relative;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.roadmap-item:hover {
    border-color: var(--clr-accent);
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.roadmap-dot {
    width: 45px;
    height: 45px;
    background: var(--clr-bg-dark);
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid var(--clr-accent);
    font-family: var(--font-heading);
}

.roadmap-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--clr-text);
}

.roadmap-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   Smart Guide & Tabs
   ========================================================================== */
.smart-guide {
    background-color: var(--clr-bg);
}

.guide-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1px;
}

.tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #888;
    padding: 1rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--clr-text);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--clr-brand-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active {
    color: var(--clr-brand-blue);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.guide-content-wrapper {
    position: relative;
    min-height: 400px; /* Prevent huge jumps */
}

.guide-panel {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.guide-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-dot {
    background: var(--clr-brand-blue) !important;
    color: #fff !important;
    border-color: var(--clr-brand-blue) !important;
}

.faq-container {
    max-width: 900px;
    margin: 2rem auto 0;
}

@media (min-width: 768px) {
    .faq-container.dual-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 4rem;
        row-gap: 0;
        max-width: 1000px;
    }
}

.faq-item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); /* Gold subtle border */
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    color: var(--clr-text);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: var(--clr-accent);
}

.faq-num {
    color: var(--clr-accent);
    font-weight: 700;
    margin-right: 0.8rem;
    font-family: var(--font-heading);
}

.faq-question i.brand-plus {
    color: #888;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-question i.brand-plus {
    color: var(--clr-brand-blue);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0, 1, 0, 1);
    color: #555;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    transition: all 0.8s ease-in-out;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    margin-bottom: 0.8rem;
}

.faq-answer ul {
    margin-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.faq-answer .note {
    font-size: 0.9rem;
    color: #888;
}



/* ==========================================================================
   Insights Section
   ========================================================================== */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.insight-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: var(--transition-smooth);
}

.insight-card:hover {
    border-color: var(--clr-accent);
    background: rgba(255, 255, 255, 0.05);
}

.insight-date {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--clr-accent);
    margin-bottom: 1.2rem;
}

.insight-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text-light);
}

.insight-card p {
    color: #aaa;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-stats {
        border-left: none;
        border-top: 1px solid rgba(0,0,0,0.1);
        padding-left: 0;
        padding-top: 2rem;
        flex-direction: row;
    }
}

/* ==========================================================================
   Myanmar (Burmese) Specific Styles
   ========================================================================== */
html[lang="my"] .hero-title {
    font-family: 'Pyidaungsu', 'Padauk', 'Myanmar Text', sans-serif;
    line-height: 1.5;
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    letter-spacing: normal;
    margin-bottom: 2rem;
}

html[lang="my"] h1, html[lang="my"] h2, html[lang="my"] h3, html[lang="my"] h4 {
    font-family: 'Pyidaungsu', 'Padauk', 'Myanmar Text', sans-serif;
    line-height: 1.5;
    letter-spacing: normal;
}

html[lang="my"] body, html[lang="my"] p, html[lang="my"] a, html[lang="my"] .btn-primary {
    font-family: 'Pyidaungsu', 'Padauk', 'Myanmar Text', sans-serif;
    line-height: 1.8;
    letter-spacing: normal;
}

html[lang="my"] .nav-links a {
    letter-spacing: normal;
    font-size: 0.95rem;
}

/* ==========================================================================
   Floating Action Buttons (FABs)
   ========================================================================== */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

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

.fab:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: #fff;
}

.fab-to-top {
    background-color: var(--clr-bg-dark);
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    margin-left: auto; /* Align smaller button to right */
}

.fab-to-top:hover {
    background-color: #555;
}

.fab-viber {
    background-color: #7360F2; /* Viber Purple */
}

/* WhatsApp Glowing Button */
.fab-whatsapp {
    background-color: #25D366; /* WhatsApp Official Green */
    animation: pulse-glow 2s infinite;
}

.fab-whatsapp:hover {
    background-color: #1EBE5D;
    animation: none;
    transform: translateY(-5px) scale(1.05);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .fab-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
