@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&family=Kulim+Park:ital,wght@0,200;0,300;0,400;0,600;0,700;1,200;1,300;1,400;1,600;1,700&family=Silkscreen:wght@400;700&family=Ubuntu+Sans+Mono:ital,wght@0,400..700;1,400..700&display=swap');

:root {
    --bg-dark: #070709;
    --card-bg: rgba(13, 14, 20, 0.45);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 240, 255, 0.3);
    --neon-cyan: #00f0ff;
    --neon-cyan-glow: rgba(0, 240, 255, 0.15);
    --text-muted: #8e909a;
    --text-light: #f3f4f6;
}

body {
    background-color: var(--bg-dark) !important;
    background-image: radial-gradient(circle at 50% 30%, #0d1224 0%, #050508 100%) !important;
    color: var(--text-light);
    font-family: 'Kulim Park', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.back_cover {
    background-color: transparent !important;
    inset: 0;
    position: fixed;
    z-index: -2;
}

/* Nav header adjustment for cohesive dark mode */
.container {
    background-color: rgba(7, 7, 9, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    margin-bottom: 1rem !important;
}

/* Base structural content wrap */
.content_wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: transparent !important;
}

.content_container {
    width: 85% !important;
    max-width: 1200px;
    background-color: transparent !important;
    border: none !important;
    margin: 2rem auto 0 auto !important;
    padding: 1.5rem 1rem !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

h1.title {
    font-family: 'Silkscreen', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem) !important;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: lowercase;
    position: relative;
    letter-spacing: -0.05em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

h1.title::after {
    content: "()";
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Disclaimer text section */
.caption_text {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
}

.caption_text > p {
    font-family: 'Ubuntu Sans Mono', monospace !important;
    font-size: clamp(0.85rem, 1.5vw, 1.1rem) !important;
    color: var(--text-muted) !important;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 2rem !important;
    margin: 1rem 0 !important;
    text-align: left !important;
    line-height: 1.6 !important;
    box-sizing: border-box;
}

/* Main Grid & Alternating Showcases */
.body_content {
    width: 85%;
    max-width: 1200px;
    margin: 2rem auto 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.gis_showcase_card {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    width: 100%;
}

.gis_showcase_card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 240, 255, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.4s ease;
}

.gis_showcase_card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 45px rgba(0, 240, 255, 0.06), 0 0 1px var(--neon-cyan);
    transform: translateY(-4px);
}

.gis_showcase_card:hover::before {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(0, 240, 255, 0.2) 100%);
}

/* Showcase card alternating layout */
.gis_showcase_card:nth-child(even) {
    flex-direction: row-reverse;
}

/* Media section of showcase */
.gis_media_wrapper {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    background-color: #0c0d12;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.gis_showcase_card:nth-child(even) .gis_media_wrapper {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

.refit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gis_showcase_card:hover .refit {
    transform: scale(1.05);
}

/* Geospatial hud scanner decoration overlay */
.gis_hud_scanner {
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 8px;
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s ease;
}

.gis_hud_scanner::before, .gis_hud_scanner::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: var(--neon-cyan);
    border-style: solid;
    opacity: 0.4;
    transition: all 0.3s ease;
}

/* Top-Left / Bottom-Right HUD corners */
.gis_hud_scanner::before {
    top: -1px; left: -1px;
    border-width: 2px 0 0 2px;
}
.gis_hud_scanner::after {
    bottom: -1px; right: -1px;
    border-width: 0 2px 2px 0;
}

.gis_showcase_card:hover .gis_hud_scanner {
    border-color: rgba(0, 240, 255, 0.25);
}
.gis_showcase_card:hover .gis_hud_scanner::before, 
.gis_showcase_card:hover .gis_hud_scanner::after {
    opacity: 1;
    width: 20px;
    height: 20px;
    box-shadow: 0 0 8px var(--neon-cyan);
}

.gis_hud_coord {
    position: absolute;
    bottom: 8px;
    left: 10px;
    font-family: 'Fira Code', 'Ubuntu Sans Mono', monospace;
    font-size: 9px;
    color: rgba(0, 240, 255, 0.6);
    background-color: rgba(7, 7, 9, 0.75);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* Content details section */
.gis_details {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.gis_tech_badge {
    align-self: flex-start;
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.07);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.caption_title {
    font-family: 'Ubuntu Sans Mono', monospace !important;
    font-size: clamp(1.4rem, 2.2vw, 1.8rem) !important;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0 !important;
    text-align: left !important;
    line-height: 1.2;
}

.caption_subtitle {
    font-family: 'Kulim Park', sans-serif !important;
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.6 !important;
}

/* Video specific tweaks */
video.refit {
    background-color: #000000;
}

/* Media Queries for responsive maps */
@media screen and (max-width: 900px) {
    .gis_showcase_card, .gis_showcase_card:nth-child(even) {
        flex-direction: column !important;
    }
    
    .gis_media_wrapper {
        min-height: 250px;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid var(--border-color);
    }
    
    .gis_details {
        padding: 1.75rem;
    }
    
    .body_content {
        gap: 2.5rem;
    }
}