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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #111827;
    background: #0f172a;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

/* Header */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 70px;
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #10b981;
    text-decoration: none;
    z-index: 101;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #10b981;
}

.cta-button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Language Selector */
.language-selector {
    position: relative;
    z-index: 200;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.language-toggle:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.language-toggle .flag {
    font-size: 1rem;
}

.language-toggle .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: #94a3b8;
}

.language-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 140px;
    margin-top: 0.5rem;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.language-option:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.language-option.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.language-option .flag {
    font-size: 1rem;
}

/* Mobile Language Selector */
.mobile-language-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.mobile-language-option:hover,
.mobile-language-option.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.mobile-language-option .flag {
    font-size: 1.2rem;
}

/* Mobile Navigation Styles */
.hamburger-menu {
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 101;
}

@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #e2e8f0;
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
    top: 0;
}

.hamburger-menu span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu span:nth-child(3) {
    bottom: 0;
}

.hamburger-menu.is-active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.hamburger-menu.is-active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Fallback for browsers that don't support dvh */
    height: 100dvh;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
    padding-top: 60px;
    padding-bottom: env(safe-area-inset-bottom, 1rem);
    box-sizing: border-box;
    overflow-y: auto;
}

.mobile-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-overlay a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 8rem 0 4rem;
    margin-top: 70px;
    /* Offset for fixed header */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text .highlight {
    background: linear-gradient(135deg, #10b981, #1B365D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.cta-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    font-size: 1.0rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid transparent;
}

.cta-secondary {
    background: transparent;
    border: 2px solid #10b981;
    color: #10b981;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-secondary:hover {
    background: #10b981;
    color: white;
}

.cta-orange {
    background: linear-gradient(135deg, #F59E0B, #ef4444);
    border: 2px solid #F59E0B;
    color: white;
    font-size: 1.0rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-orange:hover {
    background: linear-gradient(135deg, #ef4444, #F59E0B);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.trust-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

.data-sources {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.data-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 500;
    position: relative;
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #1e293b;
    color: #f1f5f9;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.85rem;
    line-height: 1.4;
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.data-badge:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Interactive Map Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    /* Align items vertically */
    align-items: center;
    justify-content: center;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    visibility: hidden;
}

.map-slide.active {
    opacity: 1;
    visibility: visible;
}

.province-map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 10px 30px rgba(16, 185, 129, 0.3));
    object-fit: contain;
    overflow: visible;
}

/* Added CSS for map outline stroke */
.map-outline {
    stroke: #10b981;
    /* Your desired stroke color */
    stroke-width: 0.5;
    /* Your desired stroke width */
}

.data-info {
    position: absolute;
    display: flex;
    align-items: center;
    --score-color-rgb: 16, 185, 129;
    /* Default color */
}

.tooltip-connector {
    position: absolute;
    left: 50%;
    bottom: 50%;
    width: 2px;
    height: 120px;
    /* Vertical part */
    background-color: rgba(148, 163, 184, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -6px);
    /* Move up from center */
}

.tooltip-connector::after {
    content: '';
    position: absolute;
    left: 1px;
    /* Point to tooltip-header area */
    width: 50px;
    /* Horizontal part */
    height: 2px;
    background-color: rgba(148, 163, 184, 0.4);
}

.data-tooltip.active~.tooltip-connector {
    opacity: 1;
}

.data-tooltip {
    position: absolute;
    left: calc(50% + 42px);
    transform: translateY(-50%);
    /* Vertically center with the connector's end */
    background-color: rgba(17, 24, 39, 0.9);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    /* Increased space */
    padding-bottom: 0.75rem;
    /* Added padding for spacing */
    position: relative;
}

.tooltip-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.eiq-score {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #10b981, #1B365D);
    color: white;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Dynamic score coloring */
.eiq-score[data-score^="9"] {
    background: linear-gradient(135deg, #10b981, #1B365D);
}

/* 90-99 */
.eiq-score[data-score^="8"] {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

/* 80-89 */
.eiq-score[data-score^="7"] {
    background: linear-gradient(135deg, #f59e0b, #F59E0B);
}

/* 70-79 */
.eiq-score[data-score^="6"],
.eiq-score[data-score^="5"] {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

/* 50-69 */
.eiq-score[data-score^="4"],
.eiq-score[data-score^="3"],
.eiq-score[data-score^="2"],
.eiq-score[data-score^="1"],
.eiq-score[data-score^="0"] {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* 0-49 */

.eiq-score::after {
    content: 'EmlakIQ';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.data-tooltip ul {
    margin: 1rem 0 0 0;
    padding-left: 1.2rem;
    padding-top: 0.5rem;
}

.data-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.data-tooltip h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #10b981;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.5rem;
}

.data-tooltip ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

.data-tooltip li {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.data-tooltip li:last-child {
    margin-bottom: 0;
}

.tooltip-chart {
    margin-top: 1rem;
}

.chart-title {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #374151;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 60px;
    gap: 0.5rem;
}

.bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    height: 100%;
    /* This is the fix */
}

.bar {
    width: 100%;
    height: calc(var(--value, 0%));
    background: linear-gradient(135deg, #10b981, #1B365D);
    border-radius: 2px;
    animation: growBar 0.5s ease-out;
    position: relative;
    /* For positioning the value */
}

.bar-value {
    position: absolute;
    top: -1.2rem;
    /* Position above the bar */
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: #e2e8f0;
    font-weight: 600;
    white-space: nowrap;
}

.bar-label {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

@keyframes growBar {
    from {
        height: 0;
    }

    to {
        height: calc(var(--value, 0%));
    }
}

.indicator-up,
.indicator-down,
.indicator-stable {
    margin-right: 0.5rem;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.indicator-up {
    color: #22c55e;
    /* green-500 */
}

.indicator-down {
    color: #F59E0B;
    /* warm-orange */
}

.indicator-stable {
    color: #9ca3af;
    /* gray-400 */
}

.province-name-display {
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid rgba(16, 185, 129, 0.2);
    z-index: 10;
    backdrop-filter: blur(5px);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.province-name-text {
    font-size: 1.5rem;
    /* Increase font size */
    font-weight: 700;
    /* Make it bolder */
    color: #10b981;
    /* Use the primary accent color */
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    /* Add a subtle glow */
    transition: all 0.3s ease;
    /* Add transition for smoother changes if any */
}



.data-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: rgba(var(--score-color-rgb), 1);
    border-radius: 50%;
    animation: pulse 2s infinite;
    transform: translate(-50%, -50%);
}

.data-point::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(var(--score-color-rgb), 0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.7;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Problem/Solution Section */
.problem-solution {
    background: #1e293b;
    padding: 4rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.before-after-card {
    background: rgba(15, 23, 42, 0.8);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
    overflow: hidden;
}

.before-after-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.before-after-card.after::before {
    background: linear-gradient(90deg, #10b981, #1B365D);
}

.before-after-card h3 {
    color: #f1f5f9;
    font-size: 1.5rem;
    margin: 0;
}

.before-after-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    /* Increased margin-bottom */
}

.before-after-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    color: #F59E0B;
}

.after .before-after-icon {
    color: #10b981;
}

.pain-points {
    list-style: none;
    color: #cbd5e1;
}

.pain-points li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.pain-points li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #F59E0B;
    font-weight: bold;
}

.solution-points li::before {
    content: '✓';
    color: #10b981;
}

/* Interactive Diagram */
.interactive-diagram {
    background: rgba(15, 23, 42, 0.5);
    padding: 4rem 2rem;
    /* Increased horizontal padding */
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 4rem;
    text-align: center;
}

.interactive-diagram h3 {
    color: #f1f5f9;
    font-size: 2rem;
    /* Increased size */
    margin-bottom: 2rem;
    /* Increased margin */
}

.diagram-svg {
    width: 100%;
    max-width: 1100px;
    height: auto;
    aspect-ratio: 1100 / 600;
    margin: 0 auto;
    display: block;
    overflow: visible;
}

@keyframes pulse-scale {
    0% {
        transform: scale(0.95);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(0.95);
    }
}

.engine-node-group {
    transform-origin: center;
    animation: pulse-scale 2.5s ease-in-out infinite;
}

/* How It Works Section */
.how-it-works {
    background: #0f172a;
    padding: 6rem 0;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.how-it-works-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
}

.how-it-works-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #1B365D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.how-it-works-card h3 {
    color: #f1f5f9;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.how-it-works-card p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* Features Section */
.features {
    background: #0f172a;
    padding: 4rem 0;
}

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

.features .feature-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.features .feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #1B365D);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.5rem;
    color: #f1f5f9;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.features .feature-card h3 {
    color: #f1f5f9;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.features .feature-card p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    background: #1e293b;
    padding: 6rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    /* Reduced gap */
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
}

.faq-item {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow: hidden;
    /* To contain the border-radius */
}

.faq-item h3 {
    color: #f1f5f9;
    font-size: 1.1rem;
    /* Slightly smaller font */
    margin: 0;
    /* Remove margin */
    font-weight: 500;
}

.faq-item p {
    color: #cbd5e1;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
    /* Horizontal padding */
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    /* Reduced padding */
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #10b981;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-item.active p {
    max-height: 300px;
    /* Adjust as needed */
    padding: 0 1.5rem 1.5rem;
    /* Add bottom padding when active */
}

/* CTA Section */
.final-cta {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.8);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.5);
    color: #f1f5f9;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #0f172a;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #f1f5f9;
    margin-bottom: 1rem;
}

/* EmlakIQ brand name should match header styling */
.footer-section h3:first-of-type,
.footer-section:first-child h3 {
    color: #10b981;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #10b981;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: #64748b;
}

/* Mobile/Desktop Visibility Controls */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Ensure desktop diagram remains functional */
@media (min-width: 769px) {
    .desktop-only {
        display: block !important;
    }
    
    .mobile-only {
        display: none !important;
    }
}

/* Mobile Diagram Flow */
.mobile-diagram-flow {
    max-width: 100%;
    margin: 0 auto;
}

.diagram-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.diagram-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}


.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step-icon.ai-engine {
    animation: pulse-scale 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.6));
}

.step-header h4 {
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 0;
}

.data-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.data-source-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.data-source-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.data-source-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.data-source-card h5 {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.data-source-card p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 0;
}

.ai-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.process-item {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.process-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.process-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.process-item span {
    color: #f1f5f9;
    font-weight: 600;
}

.output-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-diagram-flow .feature-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-diagram-flow .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #1B365D);
}

.mobile-diagram-flow .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.mobile-diagram-flow .feature-icon {
    font-size: 2rem;
    margin: 0 auto 1rem auto;
    display: block;
}

.mobile-diagram-flow .feature-card h5 {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mobile-diagram-flow .feature-card p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 0;
}

.step-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem 0;
}

.step-indicators {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
}

.indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    position: relative;
    z-index: 2;
}

.indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        rgba(148, 163, 184, 0.4) 0,
        rgba(148, 163, 184, 0.4) 4px,
        transparent 4px,
        transparent 8px
    );
    transform: translate(22px, -50%);
    z-index: 1;
}

.indicator.active {
    background: linear-gradient(135deg, #10b981, #1B365D);
    color: white;
    transform: scale(1.1);
}

.indicator.active::after {
    background: repeating-linear-gradient(
        to right,
        rgba(16, 185, 129, 0.6) 0,
        rgba(16, 185, 129, 0.6) 4px,
        transparent 4px,
        transparent 8px
    );
}

.indicator:hover {
    background: rgba(16, 185, 129, 0.6);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav {
        height: 60px;
        /* More compact header */
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.6rem;
        /* Slightly smaller logo */
    }

    .hero {
        padding-top: 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }

    .before-after {
        grid-template-columns: 1fr;
    }

    .roi-grid {
        grid-template-columns: 1fr;
    }

    .nav-links,
    .desktop-cta {
        display: none;
    }

    .hamburger-menu {
        display: block;
        padding: 10px;
    }

    .mobile-nav-overlay {
        gap: 1rem;
        padding-top: 70px;
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mobile-nav-overlay a {
        font-size: 1.25rem;
    }

    /* Mobile Diagram Visibility */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Mobile Diagram Optimizations */
    .data-sources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .data-source-card {
        padding: 1.25rem;
    }

    .ai-process {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .output-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-header h4 {
        font-size: 1.25rem;
    }

    .step-header p {
        font-size: 0.9rem;
    }

    .indicator {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .indicator:not(:last-child)::after {
        width: 15px;
        transform: translate(19px, -50%);
    }

    /* Hide desktop language selector on mobile */
    .language-selector {
        display: none;
    }

    /* Mobile map and tooltip improvements */
    .hero-visual {
        height: auto;
        min-height: 400px;
    }
    
    .map-container {
        height: auto;
        min-height: 400px;
    }
    
    .province-map {
        opacity: 0.3;
        /* Deemphasize the map itself on mobile */
    }
    
    /* Hide connector completely on mobile */
    .tooltip-connector {
        display: none;
    }

    /* Mobile tooltip parent container override - force centering */
    .data-info {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Mobile tooltip - centered but pushed higher to avoid province name */
    .data-tooltip {
        position: absolute !important;
        top: 35% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 80px);
        max-width: 280px;
        padding: 0.75rem;
        z-index: 100;
        backdrop-filter: blur(20px);
        background-color: rgba(17, 24, 39, 0.95);
        border: 2px solid rgba(16, 185, 129, 0.3);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }
    
    .data-tooltip.active {
        position: absolute !important;
        top: 35% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        /* Force center positioning but higher to show province name */
    }
    
    /* Hide data points on mobile since tooltip is always centered */
    .data-point {
        display: none !important;
    }
    
}

/* Extra small screens (under 480px) */
@media (max-width: 480px) {
    .mobile-nav-overlay {
        gap: 0.75rem;
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    .mobile-nav-overlay a {
        font-size: 1.125rem;
    }
    
    .mobile-language-selector {
        margin: 0.5rem 0;
        padding: 0.5rem 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Floating elements */
.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}