@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Orbitron:wght@400;700;900&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --color-bg: #0a0a0f;
    --color-bg-alt: #12121a;
    --color-primary: #4ade80;
    --color-secondary: #f87171;
    --color-accent: #7b2cbf;
    --color-text: #e0e0e0;
    --color-text-dim: #888;
    --font-main: 'IBM Plex Mono', monospace;
    --font-title: 'Orbitron', 'IBM Plex Mono', monospace;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%234ade80" d="M4 4 L4 20 L8 16 L12 20 L8 12 L14 12 L4 4 Z"/><path fill="%23000" d="M5 5 L5 18 L7.5 15.5 L10.5 18.5 L7.5 12 L12 12 L5 5 Z"/></svg>'), auto;
}

button, a, .btn, .curl-command, .map-background, .sidebar-item {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23f87171" d="M12 2 L12 12 L22 12 L12 2 Z M12 12 L2 12 L12 22 L12 12 Z"/><circle cx="12" cy="12" r="3" fill="%234ade80"/></svg>'), pointer;
}

/* Music Toggle Button */
.music-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 0;
}

.music-toggle:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--color-secondary);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
    transform: scale(1.1);
}

.music-toggle:active {
    transform: scale(0.95);
}

.music-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.music-toggle:hover .music-icon {
    color: var(--color-secondary);
}

.music-toggle.muted {
    border-color: rgba(255, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

.music-toggle.muted .music-icon {
    color: #ff4444;
}

.music-toggle.muted .waves {
    display: none;
}

.music-toggle.muted .mute-x {
    display: block !important;
}

.music-toggle:not(.muted) .mute-x {
    display: none;
}

@media (max-width: 768px) {
    /* Mobile: grid becomes single column stack — simple since it's normal flow */
    .hero { min-height: auto; }

    .map-background { opacity: 0.3; }

    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: auto;
        padding: 12px;
        gap: 10px;
    }

    /* Stack order: title → mechanics → artifacts+feed */
    .hero-col-center { order: 1; }
    .hero-col-right  { order: 2; }
    .hero-col-left   { order: 3; }

    /* Left col: normal block, not flex stretch */
    .hero-col-left .activity-feed-hero { flex: none; }

    /* Title */
    .shellforge-title { font-size: clamp(2rem, 10vw, 2.8rem); margin-top: 0; }
    .shellforge-tagline { font-size: 0.78rem; margin-bottom: 0.8rem; }
    .main-panel { max-width: 100%; padding: 0; }
    .panel-image { max-width: 100%; }
    .curl-command { font-size: 0.72rem; padding: 8px 12px; }

    /* Mechanics: 3-col */
    .info-sidebar { padding: 10px; }
    .mechanics-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .mechanic-item { min-height: 36px; padding: 5px 4px; }
    .mechanic-name { font-size: 0.56rem; }
    .mechanic-tooltip,
    .mechanic-item::after,
    .mechanic-item::before { display: none !important; }

    /* Artifacts: 4-col */
    .items-sidebar { padding: 10px; }
    .sidebar-items-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .sidebar-item { width: 100%; height: 52px; }
    .sidebar-item::after,
    .sidebar-item::before { display: none !important; }

    /* Live feed */
    .activity-feed-hero { padding: 10px 12px; }
    .activity-console { max-height: 120px; min-height: 60px; }
    .activity-line { font-size: 0.7rem; white-space: normal; overflow: visible; text-overflow: unset; }
    .agent-login-link { width: 100%; }
    .login-button-link { display: block; text-align: center; padding: 10px; }

    /* Misc */
    .scroll-indicator { display: none; }
    .easter-egg { display: none; }
    .marker-dot { width: 10px; height: 10px; }
    .marker-label { font-size: 0.6rem; }
    .map-modal { padding: 50px 0 10px; }
    .map-modal-container { max-width: 98%; }
    .map-modal-close { top: 8px; right: 8px; font-size: 1.8rem; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
    .shellforge-title { font-size: 1.9rem; letter-spacing: 0.08em; }
    .mechanics-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-col-left,
    .hero-col-right { flex: 1 1 100%; }

    /* Hero grid: tighter on small phones */
    .hero-grid { padding: 10px; gap: 8px; }

    /* Readable fonts on small screens */
    .activity-line { font-size: 0.75rem; }
    .mechanic-name { font-size: 0.6rem; }
    .marker-label { font-size: 0.55rem; left: 18px; }

    /* Login button: bigger touch target */
    .login-button-link { padding: 12px; font-size: 0.85rem; min-height: 44px; }
    .agent-login-link { margin-top: 8px; }
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* ─── Hero 3-Column Grid (NORMAL FLOW, not absolute) ─── */
.hero-grid {
    position: relative;
    z-index: 2;
    pointer-events: none;
    display: grid;
    grid-template-columns: minmax(180px, 210px) 1fr minmax(200px, 240px);
    grid-template-rows: 1fr;
    min-height: 100vh;
    padding: 14px;
    gap: 10px;
    box-sizing: border-box;
}

/* Left column: flex column, live feed fills gap between artifacts and button */
.hero-col-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}
.hero-col-left .items-sidebar { flex-shrink: 0; }
.hero-col-left .activity-feed-hero { flex: 1; min-height: 100px; }
.hero-col-left .agent-login-link  { flex-shrink: 0; }

.hero-col-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}
.hero-col-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: auto;
}

/* ─── Panel base glass style ────────────────────────────── */
.items-sidebar,
.info-sidebar,
.activity-feed-hero {
    background: rgba(8, 12, 16, 0.82);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 5px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}



/* Map Background */
.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.map-background:hover {
    transform: scale(1.02);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* City Markers */
.city-marker {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid;
    animation: markerPulse 2s ease-in-out infinite;
    position: relative;
}

.nexarch-dot {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary);
}

.hashmere-dot {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary);
}

@keyframes markerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.marker-label {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-main);
    font-size: 0.75rem;
    color: rgba(74, 222, 128, 0.5);
    text-shadow: 0 0 5px rgba(74, 222, 128, 0.3);
    letter-spacing: 0.1em;
    white-space: nowrap;
    pointer-events: none;
}

.marker-label-pink {
    color: rgba(255, 0, 170, 0.5);
    text-shadow: 0 0 5px rgba(255, 0, 170, 0.3);
}

/* Easter Egg Locations */
.easter-egg {
    position: absolute;
    z-index: 2;
    width: 100px;
    height: 100px;
    cursor: help;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.easter-egg-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-main);
    font-size: 0.65rem;
    color: transparent;
    text-shadow: none;
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    background: transparent;
    border-radius: 3px;
}

.easter-egg:hover .easter-egg-label {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
}

.easter-egg:hover .easter-egg-label.easter-egg-red {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
    border: 1px solid #ff0000;
}

.city-name {
    background: rgba(0, 0, 0, 0.9);
    color: var(--color-primary);
    padding: 8px 16px;
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px var(--color-primary);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
    white-space: nowrap;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: inline-block;
    backdrop-filter: blur(5px);
}

/* Main Panel (Loading Screen Image) */
.main-panel {
    text-align: center;
    width: 100%;
    max-width: min(700px, 100%);
    padding: 0 12px;
}

.shellforge-title {
    font-family: var(--font-main);
    font-size: clamp(3rem, 8vw, 6rem);
    color: #ff0000;
    text-shadow: 
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        0 0 60px rgba(255, 0, 0, 0.5);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    margin-top: -2rem;
    font-weight: bold;
    animation: subtleGlitch 4s infinite;
}

@keyframes subtleGlitch {
    0%, 98%, 100% {
        transform: translate(0);
        opacity: 1;
    }
    98.5% {
        transform: translate(-2px, 0);
        opacity: 0.8;
    }
    99% {
        transform: translate(2px, 0);
        opacity: 0.9;
    }
    99.5% {
        transform: translate(0);
        opacity: 1;
    }
}

.shellforge-tagline {
    font-family: var(--font-main);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.panel-image-link {
    display: inline-block;
    position: relative;
}

.panel-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    border: 3px solid var(--color-primary);
    box-shadow: 0 10px 50px rgba(74, 222, 128, 0.5);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.panel-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 60px rgba(74, 222, 128, 0.8);
    border-color: var(--color-secondary);
}

/* Deploy Command */
.deploy-command {
    margin-top: 2rem;
    text-align: center;
}

.command-label {
    font-family: var(--font-main);
    color: var(--color-text-dim);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.curl-command {
    display: inline-block;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    padding: 15px 30px;
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}

.curl-command:hover {
    background: rgba(74, 222, 128, 0.1);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
    transform: scale(1.05);
}

.curl-command:active {
    transform: scale(0.98);
}

.command-text::before {
    content: '$ ';
    color: var(--color-secondary);
}

.deploy-command {
    position: relative;
}

.copy-feedback {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 8px 16px;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.copy-feedback.show {
    opacity: 1;
}

/* Agent Login Link (Below Activity Feed) */
.agent-login-link {
    width: 100%;
}

.login-button-link {
    font-family: var(--font-main);
    color: #ff0000;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 24px;
    border: 2px solid #ff0000;
    border-radius: 5px;
    transition: all 0.3s ease;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.7);
    display: inline-block;
}

.login-button-link:hover {
    color: #ff0000;
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.15);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
    transform: scale(1.08);
}

/* Mechanics Sidebar (Right) */
.info-sidebar {
    padding: 12px;
    width: 100%;
}

.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mechanic-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9px 8px;
    background: rgba(74, 222, 128, 0.04);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 46px;
}

.mechanic-item:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.2), inset 0 0 0 1px rgba(74, 222, 128, 0.1);
}

.mechanic-name {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--color-primary);
    font-size: 0.72rem;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.mechanic-name .blink-cursor {
    display: inline-block;
    margin-right: 0.15em;
    animation: blink 1s step-end infinite;
    color: rgba(74, 222, 128, 0.5);
    font-weight: 300;
}

/* Hardcore mechanic keeps red text (already red via terminal-title) */
.mechanic-item[data-mechanic="hardcore"] .mechanic-name {
    color: #f87171;
}

.mechanic-item[data-mechanic="hardcore"] .mechanic-name .blink-cursor {
    color: rgba(248, 113, 113, 0.5);
}

/* Mechanic Tooltips (Right side, tooltip appears LEFT) */
.mechanic-tooltip {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgb(10, 10, 15);
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    padding: 15px;
    min-width: 280px;
    max-width: 320px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text);
    box-shadow: 0 5px 30px rgba(74, 222, 128, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    white-space: pre-line;
    text-align: left;
}

.mechanic-item:hover .mechanic-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.mechanic-tooltip::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--color-primary);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-bg);
    box-shadow: 0 0 20px var(--color-secondary);
}

/* Artifacts Sidebar (Left) */
.items-sidebar {
    padding: 12px;
    width: 100%;
}

.sidebar-title-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.sidebar-title-link:hover .sidebar-title {
    color: #86efac;
    border-left-color: #86efac;
    background: rgba(74, 222, 128, 0.08);
}

.sidebar-title {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--color-primary);
    font-size: 0.65rem;
    text-align: left;
    margin-bottom: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 6px 8px 6px 10px;
    border-left: 2px solid var(--color-primary);
    background: rgba(74, 222, 128, 0.04);
    border-radius: 0 3px 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-title::before {
    content: '⊟';
    font-size: 0.8rem;
    opacity: 0.7;
}

.sidebar-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sidebar-item {
    width: 60px;
    height: 60px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.sidebar-item:hover {
    transform: scale(1.15);
    z-index: 10;
}

.sidebar-item-icon {
    width: 100%;
    height: 100%;
    background-image: url('images/items design1.jpg');
    background-size: 400% 300%;
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-item:hover .sidebar-item-icon {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.6);
    filter: brightness(1.3);
}

/* Rarity Color Classes */
.rarity-common {
    color: #888888;
}

.rarity-uncommon {
    color: #ffffff;
}

.rarity-rare {
    color: #4a9eff;
}

.rarity-epic {
    color: #a335ee;
}

.rarity-legendary {
    color: #ff8000;
}

.type-consumable {
    color: #888888;
}

/* Terminal Tooltip for Artifacts Items (Left side, tooltip appears RIGHT) */
.item-tooltip {
    position: absolute;
    left: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    padding: 12px;
    min-width: 250px;
    max-width: 300px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--color-primary);
    box-shadow: 0 5px 30px rgba(74, 222, 128, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
    white-space: pre-line;
    text-align: left;
}

.sidebar-item:hover .item-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.item-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--color-primary);
}

/* Map Modal */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    padding: 80px 0 20px;
    overflow: auto;
}

.map-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
}

.map-modal-container {
    position: relative;
    max-width: 90%;
    width: auto;
    margin: 0 auto;
}

.map-modal-image {
    width: 100%;
    height: auto;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 50px rgba(74, 222, 128, 0.5);
    border-radius: 10px;
    display: block;
}

/* City Hotspots in Modal */
.city-hotspot {
    position: absolute;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.city-hotspot .city-label {
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    transform: none;
}

.city-hotspot:hover .city-label {
    opacity: 1;
}

/* Cities are clickable - special styling */
.nexarch-hotspot:hover .city-name,
.hashmere-hotspot:hover .city-name {
    background: rgba(74, 222, 128, 0.2);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.7);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.map-modal-close {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    font-weight: bold;
    line-height: 1;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.map-modal-close:hover {
    color: var(--color-secondary);
    transform: scale(1.1);
    text-shadow: 0 0 20px var(--color-secondary);
    background: rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-text-dim);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--color-primary);
    margin: 10px auto 0;
}

/* Activity Feed in Hero (Left) */
.activity-feed-hero {
    padding: 10px 12px;
}

.activity-title {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--color-primary);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    margin-bottom: 5px;
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
}

.activity-console {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 4px;
    padding: 8px 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
    height: 100%;
    min-height: 80px;
    max-height: 220px;
    box-sizing: border-box;
}

.activity-console::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(74, 222, 128, 0.03) 2px,
        rgba(74, 222, 128, 0.03) 4px
    );
    pointer-events: none;
}

.activity-line {
    font-family: var(--font-main);
    color: var(--color-primary);
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 5px 0;
    opacity: 0;
    animation: fadeInActivity 0.5s ease forwards;
    position: relative;
}

.activity-line:nth-child(1) { animation-delay: 0s; }
.activity-line:nth-child(2) { animation-delay: 0.1s; }
.activity-line:nth-child(3) { animation-delay: 0.2s; }
.activity-line:nth-child(4) { animation-delay: 0.3s; }
.activity-line:nth-child(5) { animation-delay: 0.4s; }
.activity-line:nth-child(6) { animation-delay: 0.5s; }

@keyframes fadeInActivity {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-line.fade-out {
    animation: fadeOutActivity 0.5s ease forwards;
}

@keyframes fadeOutActivity {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.activity-line::before {
    content: '> ';
    color: var(--color-secondary);
}

.activity-line .agent-name {
    color: #ff0000;
    font-weight: bold;
}

.activity-line .action-text {
    color: var(--color-primary);
}

/* Section Styles */
.section {
    padding: 100px 20px;
    position: relative;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lead {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--color-text-dim);
    line-height: 1.8;
}

/* About Section */
.about {
    background: var(--color-bg-alt);
}

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

.about-item {
    text-align: center;
    padding: 2rem;
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(74, 222, 128, 0.3);
    border-color: var(--color-primary);
}

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

.about-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.about-item p {
    color: var(--color-text-dim);
    line-height: 1.7;
}

/* Features Section */
.features {
    background: transparent;
}

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

.feature-card {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.1) 0%, rgba(255, 0, 170, 0.1) 100%);
    border: 1px solid rgba(255, 0, 170, 0.3);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 0, 170, 0.4);
    border-color: var(--color-secondary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.feature-card .terminal-title {
    color: #ff3333;
    font-family: var(--font-main);
    letter-spacing: 0.05em;
}

.blink-cursor {
    display: inline-block;
    margin-right: 0.3em;
    animation: blink 1s step-end infinite;
    color: #ff3333;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.feature-card p {
    color: var(--color-text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Visuals Section */
.visuals {
    background: transparent;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid rgba(74, 222, 128, 0.3);
    aspect-ratio: 16/9;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--color-primary);
    font-weight: bold;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    transition: all 0.4s ease;
}

.carousel-container:hover {
    box-shadow: 0 10px 40px rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.4);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* Desktop: show 3 at a time with transform sliding */
.carousel-slide {
    min-width: calc(100% / 4);
    position: relative;
    flex-shrink: 0;
    background: #000;
    padding: 0 10px;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--color-primary);
    font-weight: bold;
    text-align: center;
    font-size: 0.95rem;
    border-radius: 0 0 4px 4px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: var(--color-primary);
    font-size: 2rem;
    padding: 0.4rem 0.8rem;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border-radius: 4px;
}

.carousel-btn:hover {
    background: rgba(74, 222, 128, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.3);
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: var(--color-primary);
}

/* Mobile carousel: 1 image at a time, no arrows */
@media (max-width: 768px) {
    .carousel-track {
        display: block;
    }
    .carousel-slide {
        display: none;
        width: 100%;
        min-width: 0;
        padding: 0;
        background: transparent;
    }
    .carousel-slide.active {
        display: block;
    }
    .carousel-slide img {
        width: 100%;
        height: auto;
        max-height: 70vh;
        object-fit: cover;
        border-radius: 0;
    }
    .carousel-caption {
        left: 0;
        right: 0;
        border-radius: 0;
    }
    .carousel-btn {
        display: none;
    }
}

/* Subscribe Section */
.subscribe {
    background: var(--color-bg);
    text-align: center;
}

.subscribe-form {
    max-width: 500px;
    margin: 3rem auto;
    display: flex;
    gap: 1rem;
}

.subscribe-form input {
    flex: 1;
    padding: 15px 20px;
    font-family: var(--font-main);
    font-size: 1rem;
    background: rgba(74, 222, 128, 0.1);
    border: 2px solid rgba(74, 222, 128, 0.3);
    color: var(--color-text);
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
}

.subscribe-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.subscribe-form button {
    padding: 15px 30px;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.social-link {
    color: var(--color-text-dim);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

/* Footer */
.footer {
    background: rgba(18, 18, 26, 0.7);
    padding: 3rem 20px;
    text-align: center;
    border-top: 1px solid rgba(74, 222, 128, 0.2);
}

.footer p {
    color: var(--color-text-dim);
    margin-bottom: 0.5rem;
}

.tagline-small {
    font-size: 0.85rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1400px) {
    .hero-grid { grid-template-columns: minmax(165px, 195px) 1fr minmax(185px, 220px); gap: 9px; }
    .sidebar-item { width: 50px; height: 50px; }
    .activity-line { font-size: 0.65rem; }
}





/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--color-primary);
    color: var(--color-bg);
}
/* ============================================
   ROADMAP TIMELINE STYLES
   ============================================ */

.roadmap {
    background: linear-gradient(135deg, rgba(10,10,15,0.5) 0%, rgba(26,15,46,0.5) 100%);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.roadmap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(74, 222, 128, 0.02) 2px,
            rgba(74, 222, 128, 0.02) 4px
        );
    pointer-events: none;
}

.roadmap .section-title {
    color: var(--color-primary);
    text-shadow: 0 0 30px var(--color-primary);
    margin-bottom: 1rem;
}

.roadmap .lead {
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/* Horizontal connecting line */
.timeline-line {
    position: absolute;
    top: 85px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--color-primary) 0%,
        var(--color-primary) 52%,
        rgba(74, 222, 128, 0.15) 52%,
        rgba(74, 222, 128, 0.15) 100%
    );
    z-index: 0;
}

/* Individual timeline items */
.timeline-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-10px);
}

.timeline-item:hover .timeline-dot {
    box-shadow: 0 0 40px var(--color-primary);
    transform: scale(1.15);
}

/* Dots/Nodes */
.timeline-dot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95), rgba(26, 15, 46, 0.95));
    border: 3px solid rgba(74, 222, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
}

.timeline-item[data-phase="1"] .timeline-dot,
.timeline-item[data-phase="2"] .timeline-dot,
.timeline-item[data-phase="3"] .timeline-dot {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px var(--color-primary);
}

.timeline-item[data-phase="1"] .timeline-dot::before,
.timeline-item[data-phase="2"] .timeline-dot::before,
.timeline-item[data-phase="3"] .timeline-dot::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.2), transparent);
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.phase-number {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.timeline-item[data-phase="1"] .phase-number,
.timeline-item[data-phase="2"] .phase-number,
.timeline-item[data-phase="3"] .phase-number {
    text-shadow: 0 0 15px var(--color-primary);
}
/* Content below dots */
.timeline-content {
    text-align: center;
    max-width: 200px;
}

.timeline-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.timeline-item[data-phase="1"] .timeline-title,
.timeline-item[data-phase="2"] .timeline-title,
.timeline-item[data-phase="3"] .timeline-title {
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary);
}
.timeline-desc {
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--color-text-dim);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Status badges */
.timeline-status {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.timeline-status.active {
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.timeline-status.upcoming {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.5);
    color: #ffcc00;
}

.timeline-status.completed {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.6);
    color: #4ade80;
    text-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}
.timeline-status.future {
    background: rgba(255, 0, 170, 0.1);
    border: 1px solid rgba(255, 0, 170, 0.5);
    color: var(--color-secondary);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .timeline {
        gap: 15px;
    }
    
    .timeline-content {
        max-width: 160px;
    }
    
    .timeline-title {
        font-size: 1rem;
    }
    
    .timeline-desc {
        font-size: 0.8rem;
    }
    
    .timeline-dot {
        width: 70px;
        height: 70px;
    }
    
    .phase-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 900px) {
    .timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-item {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
    }
    
    .timeline-item:hover {
        transform: translateX(10px);
    }
    
    .timeline-dot {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .timeline-content {
        text-align: left;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .roadmap {
        padding: 60px 15px;
    }
    
    .timeline {
        gap: 30px;
        padding: 30px 0;
    }
    
    .timeline-dot {
        width: 60px;
        height: 60px;
    }
    
    .phase-number {
        font-size: 1.2rem;
    }
    
    .timeline-title {
        font-size: 0.95rem;
    }
    
    .timeline-desc {
        font-size: 0.75rem;
    }
}
