/* Font Families */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* ==========================================================================
   1. Global Resets & Variables
   ========================================================================== */
:root {
    --primary-glow: rgba(144, 101, 255, 0.2);
    --dark-bg: #0f0e17;
    --card-bg: #1a1a2e;
    --text-light: #fffffe;
    --text-secondary: #a7a9be;
    --hover-bg: #f2f2f6;
    --hover-text: #000000;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, ul {
    margin: 0;
    padding: 0;
}

body {
    background-color: #000;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
header {
    width: 100%;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(144, 101, 255, 0.25);
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container img {
    height: 50px;
    transition: height 0.3s ease;
    display: block;
}

header.scrolled .logo-container img {
    height: 40px;
}

/* --- Desktop Navigation --- */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li > a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    padding-bottom: 5px;
}

.main-nav ul li:hover > a {
    color: #b58aff;
}

/* --- Submenu (Desktop) --- */
.main-nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 5px 0;
    min-width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    display: flex;
    flex-direction: column;
}

.main-nav li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.main-nav .submenu li {
    width: 100%;
}

.main-nav .submenu li a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.main-nav .submenu li a:hover {
    background: #1f1f28;
    color: #b58aff;
}

/* --- Header Actions & Contact Button --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-btn {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(217, 179, 255, 0.6);
    border-radius: 50px;
    color: #b58aff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.contact-btn:hover {
    background: rgba(217, 179, 255, 0.08);
    border-color: #b58aff;
    box-shadow: 0 0 14px #b58aff, 0 0 30px #9065ff; /* Glow on Hover */
}

/* --- Mobile Navigation (Hamburger & Side Menu) --- */
#hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
    background: none;
    border: none;
}

#hamburger-menu span {
    width: 25px;
    height: 3px;
    background: #b58aff;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

#side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: rgba(10, 10, 10, 0.95); /* Slightly more opaque */
    backdrop-filter: blur(15px);
    padding: 20px;
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
}

#side-menu.active {
    right: 0;
}

#side-menu .side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--primary-glow);
}

#side-menu .side-menu-header h3 {
    color: #b58aff;
    font-size: 1.5rem;
}

#close-menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

#side-menu .side-nav-list,
#side-menu .submenu-mobile {
    list-style: none;
}

#side-menu .side-nav-list > li {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#side-menu .side-nav-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 12px 5px;
    text-transform: uppercase;
}

#side-menu .side-nav-list li a:hover {
    color: #b58aff;
}

#side-menu .submenu-mobile {
    padding-left: 20px;
    display: none;
    margin-top: 10px;
}

#side-menu li.active > .submenu-mobile {
    display: block;
}

#side-menu li.active > a {
    color: #d84dff;
}

/* Zone IQ Section */
.zoneiq-section {
    padding: 100px 0;
    background-color: #060606;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: #94a3b8;
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.zoneiq-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px;
}

.content-inner {
    background: rgba(30, 41, 59, 0);
    backdrop-filter: blur(1px);
    padding: 20px;
    border-radius: 12px;
}

.feature-icon {
    font-size: 2rem;
    color: #a855f7;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.feature-card p {
    font-family: 'Inter', sans-serif;
    color: #f6f8fbca;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 14px;
}

/* Zone IQ Dashboard Section */
.zoneiq-dashboard {
    padding: 80px 0;
    background-color: #0c0c0c;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: #94a3b8;
    max-width: 800px;
    margin: 15px auto 0;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background: #111111;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.dashboard-card h3 {
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.dashboard-card h3 i {
    color: #a855f7;
    margin-right: 10px;
}

/* Metric Items */
.metric-item {
    margin-bottom: 15px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.metric-header span:first-child {
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
}

.metric-header span:last-child {
    color: white;
    font-weight: 600;
}

.metric-bar {
    height: 4px;
    background: #334155;
    border-radius: 2px;
}

.bar-fill {
    height: 100%;
    border-radius: 2px;
}

/* Landmark Items */
.landmark-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.landmark-icon {
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.landmark-icon i {
    color: #a855f7;
}

.landmark-name {
    color: white;
    font-family: 'Poppins', sans-serif;
}

.landmark-distance {
    color: #94a3b8;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

/* Livability Score */
.score-circle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.score-circle > div {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#10b981 70%, #334155 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-inner {
    width: 90px;
    height: 90px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-inner span {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.score-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-label {
    color: #94a3b8;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.detail-value {
    color: white;
    font-weight: 600;
}

/* Price Ranges */
.price-item {
    margin-bottom: 20px;
}

.price-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.price-header span:first-child {
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
}

.price-header span:last-child {
    color: white;
    font-weight: 600;
}

.price-bar {
    height: 8px;
    background: #334155;
    border-radius: 4px;
}

.price-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 15px;
    font-family: 'Inter', sans-serif;
}

/* Project Information */
.project-info {
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    margin-bottom: 5px;
}

.info-value {
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-status {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Recommendations */
/* Location Insights Card */
.dashboard-card .recommendation-item {
    background: rgba(168, 85, 247, 0.05);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.dashboard-card .recommendation-item:hover {
    background: rgba(168, 85, 247, 0.1);
}

.dashboard-card .recommendation-icon {
    width: 32px;
    height: 32px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #a855f7;
    font-size: 16px;
    flex-shrink: 0;
}

.dashboard-card .recommendation-text {
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.dashboard-card .recommendation-text strong {
    color: white;
    font-weight: 600;
}

/* Footer */
.footer-section {
    background-color: #000;
    padding: 80px 0 40px;
    font-family: 'Poppins', sans-serif;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.footer-menu a:hover {
    color: #fff !important;
}

.footer-col img {
    max-width: 150px;
    margin-bottom: 20px;
    filter: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.footer-col img:hover {
    opacity: 0.9;
}

.company-info {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
}

.company-info p {
    margin: 0 0 10px;
}

.company-info strong {
    color: #fff;
}


/* Copyright */
.glass-bottom-bar {
    background: rgba(0, 0, 0, 0.91);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-top: 1px solid rgba(181, 138, 255, 0.2);
    box-shadow: 0 -4px 12px rgba(181, 138, 255, 0.2);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    z-index: 99;
}

.glass-content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.glass-copyright {
    color: #94a3b8; /* Grey color matching icons */
    font-size: 14px;
    margin: 0;
}

.glass-copyright a {
    color: #94a3b8; /* Matching text color */
    text-decoration: none;
    font-weight: 500;
}

.glass-copyright a:hover {
    color: #FFFFFF; /* White on hover for consistency */
}

.glass-icons {
    display: flex;
    gap: 16px;
}

.icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8; /* Grey color */
    transition: all 0.3s ease;
    font-size: 15px;
    background-color: transparent;
    border: none;
}

.icon svg {
    height: 24px;
    width: 24px;
    fill: currentColor;
    transition: color 0.3s ease;
}

.icon:hover {
    background-color: transparent;
    box-shadow: none;
    transform: scale(1.2);
}

.icon.li:hover svg {
    color: #FFFFFF; /* White on hover */
}

.icon.tw:hover svg {
    color: #FFFFFF; /* White on hover */
}

.icon.ig:hover svg {
    color: #FFFFFF; /* White on hover */
}

/* Responsive Design */
@media (max-width: 1024px) {
    header > div {
        max-width: 90%;
        padding: 0 20px;
    }

    header > div > nav > ul {
        gap: 25px;
        font-size: 14px;
    }

    header > div > div:first-child img {
        height: 45px;
    }

    header > div > div:nth-child(3) > a {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    /* Hide main navigation and original contact button */
    .main-nav {
        display: none;
    }
    .header-actions .contact-btn {
        display: none;
    }

    /* Show hamburger menu */
    #hamburger-menu {
        display: flex;
    }

    /* Header padding and logo size for mobile */
    header {
        padding: 15px 20px;
    }
    .logo-container img {
        height: 35px;
    }

    /* Ensure desktop submenu is not visible even if somehow triggered */
    .main-nav .submenu {
        display: none !important;
    }

    /* Adjust section titles and grids for mobile */
    .section-title h2 {
        font-size: 2rem;
    }
    .zoneiq-features {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        flex-direction: column;
        gap: 30px;
    }
    .footer-col {
        min-width: 100%;
    }
}

@media (max-width: 600px) {
    .glass-content-wrap {
        flex-direction: column;
        gap: 10px;
    }

    .glass-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* These styles were in the user-provided code but do not apply to the current page. */
    /* .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    } */
}

/* ==========================================================================
   8. Floating Action Buttons
   ========================================================================== */

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    /* Positioned above the back-to-top button */
    bottom: 100px; 
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    /* Small adjustment for better icon centering */
    margin-top: 2px; 
}

/* --- Back to Top Progress Button --- */
.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 60px;
    width: 60px;
    cursor: pointer;
    display: block;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(144, 101, 255, 0.2);
    z-index: 99;
    /* Initially hidden and offset */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 400ms linear;
}

/* This class is added by JS when user scrolls down */
.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Faint background glow on hover */
.progress-wrap::after {
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #7e22ce 0%, #3b82f6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-wrap:hover::after {
    opacity: 0.1;
}

.progress-wrap .progress-icon {
    position: absolute;
    height: 100%;
    width: 100%;
    font-size: 18px;
    color: #9065ff;
    left: 0;
    top: 0;
    z-index: 1;
    transition: all 400ms linear;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-wrap:hover .progress-icon {
    color: #ffffff; /* Icon turns white on hover */
}

.progress-wrap svg path {
    fill: none;
}

.progress-wrap svg.progress-circle path {
    stroke: #9065ff; /* Progress circle color */
    stroke-width: 4;
    box-sizing: border-box;
    /* JS will animate stroke-dashoffset, transition smooths it */
    transition: all 200ms linear;
}