/* --- CSS Variables & Reset --- */
:root {
    --bg-dark: #070B14;
    --bg-card: rgba(20, 26, 40, 0.7);
    --primary: #00e5ff;
    --primary-glow: rgba(0, 229, 255, 0.5);
    --secondary: #2962ff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-stack: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-stack);
    overflow-x: hidden;
}

/* --- Typography & Global --- */
h1, h2, h3, h4 {
    font-weight: 800;
}
a {
    text-decoration: none;
    color: inherit;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 11, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo i {
    color: var(--primary);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-links li a {
    font-weight: 400;
    transition: color 0.3s ease;
}
.nav-links li a:hover {
    color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    overflow: hidden;
}
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.hero-content {
    max-width: 800px;
    z-index: 1;
}
.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-title span {
    color: var(--primary);
    position: relative;
}
/* Subtitle */
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* --- Services Section --- */
.services {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Heatmap Section --- */
.heatmap-section {
    padding: 6rem 5%;
    background: linear-gradient(to bottom, transparent, rgba(41, 98, 255, 0.05));
}
.heatmap-toggles {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.btn-toggle {
    padding: 0.8rem 1.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 400;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-toggle:hover {
    border-color: rgba(0, 229, 255, 0.5);
    background: rgba(0, 229, 255, 0.05);
}
.btn-toggle.active {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    font-weight: 600;
}
.map-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
}
#rf-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}
.canvas-instructions {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid var(--primary);
    color: var(--text-main);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}
.btn-clear {
    background: rgba(255, 50, 50, 0.2);
    border: 1px solid #ff3232;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
}
.btn-clear:hover {
    background: rgba(255, 50, 50, 0.4);
}
.zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}
.btn-icon {
    width: 40px;
    height: 40px;
    background: rgba(10, 15, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.btn-icon:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}
.map-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 15, 25, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000; /* Leaflet UI is around 400-800 usually */
}
.map-overlay h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.legend-scale {
    display: flex;
    height: 10px;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}
.legend-scale span {
    flex: 1;
    height: 100%;
}
.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Contact Section --- */
.contact {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
}
.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.contact-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .contact-card {
        padding: 2rem;
    }
}
