:root {
    --bg-dark: #0a0e14;
    --bg-card: rgba(20, 26, 35, 0.7);
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #ff4d4d;
    --text-main: #e0e6ed;
    --text-dim: #94a3b8;
    --navbar-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scroll Offset for Fixed Navbar */
section[id] {
    scroll-margin-top: var(--navbar-height);
}

/* Loading State */
body.is-loading .navbar,
body.is-loading main,
body.is-loading .footer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.navbar,
main,
.footer {
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
}

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

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-logo {
    font-size: clamp(1.8rem, 8vw, 3rem);
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 1rem;
    text-align: center;
}

.loader-logo img {
    height: clamp(50px, 15vw, 80px);
    width: auto;
}

.loader-logo span {
    color: var(--primary);
}

.loader-bar-container {
    width: 80%;
    max-width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
}

/* Navbar */
.navbar {
    height: var(--navbar-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 38px;
    width: auto;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--navbar-height) + 100px);
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
}

/* Visual Container */
.visual-container {
    position: relative;
    height: 500px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.map-preview {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.05) 0%, transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 50%;
}

.police-unit,
.fugitive-unit {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.police-unit {
    background: var(--primary);
    color: #000;
}

.fugitive-unit {
    background: var(--accent);
    color: #fff;
}

.unit-1 {
    top: 30%;
    left: 40%;
}

.unit-2 {
    top: 60%;
    left: 70%;
}

.fugitive-unit {
    top: 45%;
    left: 55%;
}

/* Features */
.features {
    padding: 100px 0;
    position: relative;
    background-image: linear-gradient(rgba(10, 14, 20, 0.95), rgba(10, 14, 20, 0.95)), url('assets/tactical_map_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header h2 span {
    color: var(--primary);
}

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

.feature-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-card i {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    min-height: 5rem;
    display: flex;
    align-items: center;
}

.feature-card p {
    color: var(--text-dim);
}

/* Interactive Map / SOS Section */
.interactive-map {
    position: relative;
    padding: 150px 0;
    min-height: 750px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.map-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 14, 20, 0.4) 0%, var(--bg-dark) 85%);
    z-index: 2;
}

#tactical-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    z-index: 1;
    opacity: 0.6;
}

.sos-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.sos-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.sos-content h2 span {
    color: var(--accent);
}

.badge-alert {
    background: rgba(255, 77, 77, 0.1);
    color: var(--accent);
    border-color: rgba(255, 77, 77, 0.2);
}

.sos-blink {
    animation: pulse 1.5s infinite alternate;
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    background: #05070a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.8rem;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Ecosystem Section */
.ecosystem {
    padding: 100px 0;
    position: relative;
    background-image: linear-gradient(rgba(10, 14, 20, 0.95), rgba(10, 14, 20, 0.95)), url('assets/tactical_map_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.eco-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.eco-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eco-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.eco-card p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.eco-visual {
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.05);
}

.eco-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.eco-list {
    list-style: none;
}

.eco-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.eco-list li i {
    color: var(--primary);
    width: 20px;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: #05070a;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: background 0.3s;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.benefit-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

@media (max-width: 768px) {

    .ecosystem-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .loader-logo {
        flex-direction: column;
        gap: 1rem;
    }
}