/* Global Styles & Fonts */
body {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    background-color: #000000; /* Pure black */
    color: #00ffcc; /* Electric cyan */
    overflow-x: hidden; /* Prevent horizontal scroll due to parallax */
    /* Custom cursor (replace with your own if desired) */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="8" cy="8" r="4" fill="%2300ffcc" stroke="%23ff00ff" stroke-width="1.5"/></svg>') 8 8, auto;
}

/* NEW: Global Animated Grid Background */
.animated-grid-bg-global {
    position: fixed; /* Fixed to viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 204, 0.05) 25%, rgba(0, 255, 204, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 204, 0.05) 75%, rgba(0, 255, 204, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 255, 204, 0.05) 25%, rgba(0, 255, 204, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 204, 0.05) 75%, rgba(0, 255, 204, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    animation: pan-grid 60s linear infinite;
    z-index: -3; /* Placed behind video and content */
    pointer-events: none; /* Allow clicks through */
}

@keyframes pan-grid {
    0% { background-position: 0 0; }
    100% { background-position: -500px -500px; }
}

/* UPDATED: Subtle Background Video Container */
.background-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2; /* Above the grid, below content */
    opacity: 0.15; /* Adjusted opacity */
    pointer-events: none;
}

.background-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video covers the container without distortion */
    transform: scale(1.05); /* Slight scale to prevent edge issues on some browsers */
}

/* Neon Glows - ADDED FLICKER ANIMATION */
.neon-glow {
    text-shadow:
        0 0 5px #00ffcc,
        0 0 10px #00ffcc,
        0 0 20px #00ffcc,
        0 0 40px #ff00ff,
        0 0 80px #ff00ff;
    animation: neon-flicker 3s infinite alternate; /* Subtle flicker */
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    98% { opacity: 0.98; }
    99% { opacity: 1.02; }
}

/* --- FIXED OVERLAYS AND HEADER --- */
/* These overlays sit on top of everything for the CRT screen effect */
.crt-overlay, .scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000; /* Highest z-index */
}

/* UPDATED: CRT overlay with slight curve */
.crt-overlay {
    background: radial-gradient(ellipse at center, rgba(0,255,204,0) 0%, rgba(0,255,204,0.1) 60%, rgba(0,0,0,0.5) 100%);
    background-size: 100% 100%;
    mix-blend-mode: overlay;
    transform: perspective(1000px) rotateX(0.5deg) rotateY(0.5deg) scale(1.005); /* Subtle curve */
    filter: brightness(1.1) contrast(1.05); /* Enhance vibrancy */
}

/* UPDATED: Scanline overlay with dynamic opacity */
.scanline-overlay {
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.2) 0px,
        rgba(0,0,0,0.2) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.7;
    animation: scanlines 8s linear infinite, scanline-flicker 2s infinite alternate; /* Added flicker */
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

@keyframes scanline-flicker {
    0%, 100% { opacity: 0.7; }
    20%, 80% { opacity: 0.65; }
    40%, 60% { opacity: 0.75; }
}

/* The header that stays at the top */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 13, 26, 0.9); /* Reverted to original dark purple-blue with transparency */
    z-index: 999; /* Below CRT/Scanline, above content */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding: 20px;
    box-sizing: border-box;
}

/* Header Nav */
.fixed-header nav {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px; /* Space between buttons */
}

.fixed-header nav a {
    text-decoration: none; /* Remove underline from nav links */
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute; /* Position relative to header */
    top: 25px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */
    z-index: 1001; /* Above nav */
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #00ffcc; /* Neon cyan */
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation to X */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* This is crucial: Pushes the main content down to clear the fixed header */
.content-wrapper {
    padding-top: 180px; /* Adjust based on header height + margin */
    position: relative;
    z-index: 1; /* Ensures content is above video/grid */
    padding-bottom: 100px; /* Added padding to push footer down */
}

/* Mobile Navigation Styles */
@media (max-width: 768px) { /* Adjust breakpoint as needed */
    .fixed-header {
        padding: 15px;
    }

    .fixed-header h1 {
        font-size: 2em; /* Smaller title on mobile */
    }

    .fixed-header .tagline {
        font-size: 1em;
    }

    .hamburger-menu {
        display: block;
    }

    .fixed-header nav.main-nav {
        display: none; /* Hide nav by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: rgba(13, 13, 26, 0.95); /* Same as header, slightly more opaque */
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    .fixed-header nav.main-nav.active {
        display: flex; /* Show nav when active */
    }

    .fixed-header nav.main-nav a {
        padding: 10px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(0, 255, 204, 0.2);
    }

    .fixed-header nav.main-nav a:last-child {
        border-bottom: none;
    }

    .content-wrapper {
        padding-top: 120px; /* Adjust based on new mobile header height */
    }
}

/* Glitch Effect for Headers - ADDED RGB SPLIT */
.glitch {
    position: relative;
    font-family: 'Press Start 2P', cursive;
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc;
    animation: glitch 1.5s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d1a; /* Reverted to original dark purple-blue */
    overflow: hidden;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff; /* Magenta for red channel */
    animation: glitch-left 1.5s infinite linear alternate-reverse;
    filter: hue-rotate(10deg); /* Subtle color shift */
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #0000ff; /* Blue for blue channel */
    animation: glitch-right 1.5s infinite linear alternate-reverse;
    filter: hue-rotate(-10deg); /* Subtle color shift */
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-left {
    0% { clip: rect(40px, 9999px, 80px, 0); }
    20% { clip: rect(10px, 9999px, 50px, 0); }
    40% { clip: rect(70px, 9999px, 100px, 0); }
    60% { clip: rect(20px, 9999px, 60px, 0); }
    80% { clip: rect(90px, 9999px, 120px, 0); }
    100% { clip: rect(0px, 9999px, 30px, 0); }
}

@keyframes glitch-right {
    0% { clip: rect(10px, 9999px, 50px, 0); }
    20% { clip: rect(70px, 9999px, 100px, 0); }
    40% { clip: rect(40px, 9999px, 80px, 0); }
    60% { clip: rect(90px, 9999px, 120px, 0); }
    80% { clip: rect(0px, 9999px, 30px, 0); }
    100% { clip: rect(20px, 9999px, 60px, 0); }
}

/* Header Styling (not the fixed positioning) */
header {
    text-align: center;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #00ffcc;
}

header .tagline {
    font-family: 'Major Mono Display', monospace;
    font-size: 1.2em;
    color: #ff00ff; /* Magenta */
    text-shadow: 0 0 5px #ff00ff;
}

/* Parallax Sections */
.parallax-group {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* Specific background images for layers */
.hero-group .layer-back {
    background-image: none; /* Was url('neoncity.jpg') */
    z-index: 1;
}

.cityscape-group .layer-back {
    background-image: url('neoncity02.jpg');
    z-index: 1;
}

/* Base layer for content within parallax, higher z-index */
.parallax-layer.layer-base {
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 5%;
    padding-top: 10%;
    box-sizing: border-box;
}

/* Content box style within parallax */
.hero-content, .cityscape-content {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 8px;
    max-width: 900px;
    border: 1px solid #00ffcc;
    box-shadow: 0 0 15px #00ffcc;
    text-align: center;
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc;
}

.hero-content h2, .cityscape-content h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.2em;
    margin-bottom: 20px;
}

.hero-content p, .cityscape-content p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Data Stream Section */
.data-stream-section {
    display: flex;
    justify-content: center; /* Centers the content-block */
    align-items: flex-start; /* Aligns items to the top within the flex container */
    padding: 80px 5%;
    background-color: #1a0d1a;
    position: relative; /* CRUCIAL: Establishes a positioning context for absolute children */
    min-height: 500px; /* Ensure enough height for streams */
    overflow: hidden; /* Hides parts of data blocks that might overflow */
}

/* Data Stream Containers */
.data-stream-container {
    position: absolute; /* Positioned relative to .data-stream-section */
    top: 0;
    bottom: 0;
    width: 150px; /* Adjust width as needed for your lines */
    overflow: hidden; /* Important to clip overflowing data blocks */
    pointer-events: none; /* Allows clicks to pass through to elements behind */
    display: flex;
    flex-direction: column; /* Organizes child data blocks vertically */
    z-index: 0; /* Keep them behind content-block */
}

.data-stream-left {
    left: 0; /* Pins this container to the far left */
}

.data-stream-right {
    right: 0; /* Pins this container to the far right */
}

/* Data Block (the flowing lines) - ORIGINAL GLOW */
.data-block {
    font-family: 'Major Mono Display', monospace;
    font-size: 0.8em;
    color: #00ff00; /* Neon Green - This is the core color */
    white-space: nowrap; /* Prevents text from wrapping to the next line */
    opacity: 0.8;
    margin-bottom: 5px; /* Spacing between lines */
    position: absolute; /* Allows data blocks to animate independently */
    transition: opacity 0.5s ease-out; /* Smooth fade on hover */
    pointer-events: auto;
    text-shadow:
        0 0 5px #00ff00,
        0 0 10px rgba(0, 255, 0, 0.5);
}

.data-block:hover {
    opacity: 1;
    text-shadow:
        0 0 10px #00ff00,
        0 0 20px rgba(0, 255, 0, 0.7);
}

/* Content Block within Data Stream Section */
.content-block {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto; /* Centers the content block horizontally */
    position: relative;
    z-index: 1; /* Ensures content is above data streams */
    border: 2px solid #ff00ff;
    box-shadow: 0 0 20px #ff00ff;
}

.content-block h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8em;
    color: #ff00ff;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.feature-list li {
    font-family: 'Major Mono Display', monospace;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #00ffcc;
    position: relative;
    padding-left: 20px;
}

.feature-list li::before {
    content: '//';
    position: absolute;
    left: 0;
    color: #ff00ff;
    font-weight: bold;
}

/* PROJECTIONS_SIMULATION Section Styling */
.projections-section {
    background-color: #0a0a1a;
    padding: 60px 5%;
    text-align: center;
    border: 2px solid #00ffff; /* Neon cyan border */
    box-shadow: 0 0 20px #00ffff; /* Glowing shadow */
    margin: 50px auto;
    max-width: 1000px; /* Adjust max-width as needed */
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.projections-section h3 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #00ffff; /* Cyan for heading */
    text-shadow: 0 0 10px #00ffff;
}

.projections-section .tagline {
    font-family: 'Major Mono Display', monospace;
    font-size: 1.1em;
    color: #ff00ff; /* Magenta for tagline */
    margin-bottom: 40px;
}

.canvas-container {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffcc; /* Thin neon border for the canvas container */
    box-shadow: 0 0 15px #00ffcc, inset 0 0 5px #00ffcc;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide any overflow from canvas content */
    position: relative;
}

#networkCanvas {
    display: block; /* Remove extra space below canvas */
    width: 100%;
    height: 100%;
    /* filter: drop-shadow(0 0 5px rgba(0, 255, 204, 0.5)); /* Subtle glow on canvas content */
}

.projections-info {
    font-family: 'Major Mono Display', monospace;
    color: #00ffcc;
    margin-top: 30px;
    line-height: 1.6;
    text-align: left;
    padding: 0 20px;
}

.projections-info p {
    margin-bottom: 10px;
    color: #00ffcc;
    text-shadow: 0 0 3px rgba(0, 255, 204, 0.5);
}


/* DATASYNTH_CONDUIT Section Styling */
.datasynth-conduit-section { /* Renamed class */
    background-color: #000000; /* Pure black for the void */
    padding: 60px 0; /* Padding top/bottom, no side padding as canvas will be full width */
    text-align: center;
    position: relative;
    overflow: hidden; /* Important to contain canvas and ensure no scrollbars */
    min-height: 70vh; /* Ensure section has enough height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #00ffcc;
    border-top: 2px solid #ff00ff; /* Thematic top border */
    border-bottom: 2px solid #00ffcc; /* Thematic bottom border */
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.4), 0 0 25px rgba(0, 255, 204, 0.4);
    margin-top: 50px; /* Spacing from previous section */
}

.datasynth-conduit-section h3 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.datasynth-conduit-section .tagline {
    font-family: 'Major Mono Display', monospace;
    font-size: 1.1em;
    color: #ff00ff;
    margin-bottom: 30px;
}

.conduit-canvas-container { /* Renamed class */
    width: 90%; /* Adjust width of the canvas view */
    max-width: 1200px; /* Max width for larger screens */
    aspect-ratio: 16 / 9; /* Maintain aspect ratio for the canvas */
    background-color: rgba(0, 0, 0, 0.7); /* Slightly transparent background for the canvas area */
    border: 1px solid #00ffcc;
    box-shadow: 0 0 20px #00ffcc, inset 0 0 8px #ff00ff;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure it's above potential background layers */
    overflow: hidden;
    /* Optional: Add a slight perspective/rotation to the container itself */
    transform: perspective(1000px) rotateX(2deg) scale(0.98);
}

#conduitCanvas { /* Renamed ID */
    display: block;
    width: 100%;
    height: 100%;
    background-color: #0d0d1a; /* Dark blue-purple to blend with lines */
}

.conduit-info { /* Renamed class */
    font-family: 'Major Mono Display', monospace;
    color: #00ffcc;
    margin-top: 20px;
    line-height: 1.6;
    text-shadow: 0 0 3px rgba(0, 255, 204, 0.5);
    z-index: 2; /* Ensure info text is above the canvas */
}

.conduit-info p {
    margin-bottom: 10px;
}

/* NEW SECTION 1: NEURAL_INTERFACE */
.neural-interface-section {
    background-color: #050510; /* Very dark blue */
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ccff00; /* Neon green-yellow */
    border-top: 2px solid #00aaff; /* Blue top border */
    border-bottom: 2px solid #ccff00; /* Green-yellow bottom border */
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.4), 0 0 25px rgba(204, 255, 0, 0.4);
    margin-top: 50px;
}

.neural-interface-section h3 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #00e5ff; /* Bright cyan */
    text-shadow: 0 0 10px #00e5ff;
}

.neural-interface-section .tagline {
    font-family: 'Major Mono Display', monospace;
    font-size: 1.1em;
    color: #ffaa00; /* Neon orange */
    margin-bottom: 30px;
}

.interface-canvas-container {
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid #00aaff;
    box-shadow: 0 0 20px #00aaff, inset 0 0 8px #ccff00;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform: perspective(1000px) rotateX(-2deg) scale(0.98); /* Slight opposite tilt */
}

#neuralCanvas {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #00000a; /* Even darker blue for canvas background */
}

.interface-info {
    font-family: 'Major Mono Display', monospace;
    color: #ccff00;
    margin-top: 20px;
    line-height: 1.6;
    text-shadow: 0 0 3px rgba(204, 255, 0, 0.5);
    z-index: 2;
}

.interface-info p {
    margin-bottom: 10px;
}


/* NEW SECTION 2: BLACK_MARKET_DATADROPS */
.datadrops-section {
    background-color: #0d000d; /* Very dark purple */
    padding: 80px 5%;
    text-align: center;
    border: 2px solid #ff33cc; /* Pink border */
    box-shadow: 0 0 30px rgba(255, 51, 204, 0.5);
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.datadrops-section h3 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #ff33cc;
    text-shadow: 0 0 10px #ff33cc;
}

.datadrops-section .tagline {
    font-family: 'Major Mono Display', monospace;
    font-size: 1.1em;
    color: #00ffcc;
    margin-bottom: 50px;
}

.datadrops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px; /* Increased gap */
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 20px;
}

.datadrop-item {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #8800ff; /* Purple border */
    box-shadow: 0 0 15px rgba(136, 0, 255, 0.4);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Important for glitch effects */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.datadrop-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 25px rgba(136, 0, 255, 0.7), 0 0 35px rgba(255, 51, 204, 0.5);
}

/* Item Visual Placeholder */
.datadrop-item .item-visual {
    width: 100%;
    height: 150px;
    background-color: #220033; /* Darker purple */
    border: 1px solid #ff00ff; /* Magenta border */
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Press Start 2P', cursive;
    color: #ff00ff;
    font-size: 0.9em;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(255, 0, 255, 0.5);
}

.datadrop-item .item-visual::before {
    content: '[DATA_FILE]'; /* Placeholder text for visual */
    opacity: 0.5;
}

/* Glitch Effect on Hover for Item Visual */
.datadrop-item.glitch-active .item-visual {
    animation: item-glitch 0.5s infinite alternate;
}

@keyframes item-glitch {
    0% { transform: translate(0); filter: hue-rotate(0deg); }
    25% { transform: translate(1px, -1px); filter: hue-rotate(5deg); }
    50% { transform: translate(-1px, 1px); filter: hue-rotate(-5deg); }
    75% { transform: translate(1px, 1px); filter: hue-rotate(2deg); }
    100% { transform: translate(0); filter: hue-rotate(0deg); }
}

/* Glitch on Text for Item Title/Price on Hover */
.datadrop-item.glitch-active .item-title,
.datadrop-item.glitch-active .item-price span {
    animation: text-glitch 0.2s infinite alternate;
}

@keyframes text-glitch {
    0%, 100% { text-shadow: none; transform: translate(0); }
    33% { text-shadow: 1px 0px #ff00ff; transform: translate(-0.5px, 0.5px); }
    66% { text-shadow: -1px 0px #00ffff; transform: translate(0.5px, -0.5px); }
}


.datadrop-item .item-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1em;
    color: #00ffff;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #00ffff;
}

.datadrop-item .item-price {
    font-family: 'Major Mono Display', monospace;
    font-size: 1.1em;
    color: #00ff00; /* Green for price */
    margin-bottom: 20px;
    text-shadow: 0 0 5px #00ff00;
}

.datadrops-footer {
    font-family: 'Major Mono Display', monospace;
    color: #ffaa00; /* Orange for warning */
    margin-top: 40px;
    line-height: 1.6;
    text-shadow: 0 0 3px rgba(255, 170, 0, 0.5);
}

.datadrops-footer .neon-button {
    margin-top: 30px;
}

/* Console Section */
.console-section {
    background-color: #0a0a1a;
    padding: 50px;
    max-width: 800px;
    margin: 50px auto;
    border: 2px solid #00ffff;
    box-shadow: 0 0 10px #00ffff;
    font-family: 'Major Mono Display', monospace;
    color: #00ff00;
    text-align: left;
    position: relative;
    z-index: 5;
    overflow-y: auto;
    max-height: 400px;
}

.console-section h4 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #00ffff;
}

.console-input {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.console-input .prompt {
    font-size: 1.2em;
    margin-right: 10px;
    color: #00ff00;
}

.console-text-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #00ff00;
    font-family: 'Major Mono Display', monospace;
    font-size: 1.2em;
    caret-color: #00ff00;
}

.console-text-input::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

.console-input .cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: #00ff00;
    margin-left: 5px;
    animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
    from, to { background-color: transparent; }
    50% { background-color: #00ff00; }
}

.console-output {
    color: #ff3333;
    font-size: 1em;
    margin-top: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Buttons */
.neon-button {
    background-color: transparent;
    border: 2px solid #00ffcc;
    color: #00ffcc;
    padding: 12px 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #00ffcc;
    margin-top: 20px;
}

.neon-button:hover {
    color: #0d0d1a;
    background-color: #00ffcc;
    box-shadow: 0 0 20px #00ffcc, 0 0 30px #ff00ff;
    transform: scale(1.05);
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.7s ease;
}

.neon-button:hover::before {
    left: 100%;
}

.neon-button.small-button {
    padding: 8px 15px;
    font-size: 0.8em;
    margin: 0 5px; /* For buttons side-by-side */
    margin-top: 15px; /* Adjust top margin if needed */
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #05050a;
    font-family: 'Major Mono Display', monospace;
    font-size: 0.9em;
    color: #444466;
    border-top: 1px solid #1a0d1a;
    position: relative;
    z-index: 1;
}

footer.neon-glow {
    text-align: center;
    padding: 20px;
    background-color: rgba(13, 13, 26, 0.9); /* Consistent with header */
    color: #00ffcc;
    font-family: 'Major Mono Display', monospace;
    font-size: 0.9em;
    border-top: 1px solid #ff00ff; /* Magenta top border */
    box-shadow: 0 -5px 15px rgba(255, 0, 255, 0.3); /* Magenta glow upwards */
    position: relative; /* Changed from fixed to relative */
    width: 100%;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    z-index: 998; /* Ensure it's above general content but below header if they were to overlap */
}

/* Japanese Text Styling */
.kanji-text {
    font-family: 'Major Mono Display', monospace;
    font-size: 2.5em;
    color: #ff00ff;
    text-shadow: 0 0 8px #ff00ff;
    margin-bottom: 20px;
}

.katakana-text {
    font-family: 'Major Mono Display', monospace;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

/* NEW SECTION: POWERSHELL_CORE_INTERFACE */
.powershell-section {
    background-color: #01010d; /* Very dark blue, almost black */
    padding: 60px 5%;
    text-align: left;
    border: 2px solid #0078D4; /* PowerShell Blue */
    box-shadow: 0 0 20px rgba(0, 120, 212, 0.5);
    margin: 50px auto;
    max-width: 1000px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    font-family: 'Consolas', 'Courier New', monospace; /* Classic console font */
}

.powershell-section h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 2em;
    margin-bottom: 15px;
    color: #00BFFF; /* Deep Sky Blue */
    text-shadow: 0 0 10px #00BFFF;
}

.powershell-section .tagline {
    font-family: 'Major Mono Display', monospace;
    font-size: 1.1em;
    color: #7DF9FF; /* Electric Blue */
    margin-bottom: 30px;
}

.powershell-content {
    background-color: rgba(1, 22, 39, 0.9); /* Dark PowerShell blue background */
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #0078D4;
    min-height: 400px;
    overflow-x: auto; /* Allow horizontal scrolling for long lines */
}

.powershell-output {
    color: #E0E0E0; /* Light grey text */
    white-space: pre-wrap; /* Preserve whitespace and newlines */
    word-break: break-all; /* Break long words/commands */
    font-size: 0.9em;
    line-height: 1.5;
}

.powershell-output span.ps-prompt {
    color: #56B6C2; /* PowerShell prompt color (approx) */
}

.powershell-output span.ps-cmdlet {
    color: #DCDCAA; /* Cmdlet color (approx) */
}

.powershell-output span.ps-parameter {
    color: #9CDCFE; /* Parameter color (approx) */
}

.powershell-output span.ps-string {
    color: #CE9178; /* String color (approx) */
}

.powershell-output span.ps-comment {
    color: #6A9955; /* Comment color (approx) */
}

.powershell-output span.ps-warning {
    color: #FFD700; /* Gold for warnings */
}

.powershell-output span.ps-error {
    color: #F44747; /* Red for errors */
}

/* Ghost Deck Section Specific Styles */
#ghost-deck-section {
    background-color: #050510; /* Very dark blue, almost black */
    border: 2px solid #7000FF; /* Deep violet border */
    box-shadow: 0 0 25px rgba(112, 0, 255, 0.6); /* Violet glow */
    padding: 40px;
    margin: 50px auto;
    max-width: 1100px;
    text-align: left;
}

/* Ghost Deck - Text Animation Showcase */
.text-animation-showcase {
    margin-top: 50px;
    padding: 20px;
    border: 1px dashed #7000FF; /* Dashed violet border */
    background-color: rgba(13, 13, 26, 0.5); /* Dark translucent background */
}

.text-animation-showcase h3 {
    color: #7000FF; /* Deep violet */
    text-align: center;
    margin-bottom: 30px;
}

.animation-example {
    margin-bottom: 30px;
    padding: 15px;
    border-left: 3px solid #00ffcc; /* Cyan accent line */
}

.animation-example h4 {
    font-family: 'Press Start 2P', cursive;
    color: #00ffcc; /* Electric cyan */
    font-size: 1.2em;
    margin-bottom: 10px;
}

.cyberpunk-text {
    font-family: 'Major Mono Display', monospace;
    color: #00FF41; /* Neon Green */
    font-size: 1.1em; /* Slightly larger for readability */
    line-height: 1.6;
    min-height: 3em; /* Ensure space for text */
}

.pulsing-neon-text {
    color: #ff00ff; /* Magenta */
    text-shadow:
        0 0 5px #ff00ff,
        0 0 10px #ff00ff,
        0 0 15px #ff00ff,
        0 0 20px #ff00ff,
        0 0 30px #ff00ff,
        0 0 40px #ff00ff;
    animation: pulse-neon 1.5s infinite alternate;
}

@keyframes pulse-neon {
    from {
        text-shadow:
            0 0 5px #ff00ff,
            0 0 10px #ff00ff,
            0 0 15px #ff00ff,
            0 0 20px #ff00ff,
            0 0 30px #ff00ff,
            0 0 40px #ff00ff;
    }
    to {
        text-shadow:
            0 0 10px #ff00ff,
            0 0 20px #ff00ff,
            0 0 30px #ff00ff,
            0 0 40px #ff00ff,
            0 0 50px #ff00ff,
            0 0 60px #ff00ff;
    }
}

/* Ghost Deck Module Styling */
.ghost-deck-module {
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(112, 0, 255, 0.3); /* Subtler border for individual modules */
    background-color: rgba(5, 5, 16, 0.7); /* Slightly different dark bg for modules */

    box-shadow: inset 0 0 10px rgba(112, 0, 255, 0.2);
}

.ghost-deck-module h3.glitch { /* Target glitch headers within modules */
    font-size: 1.8em;
    color: #aa00ff; /* A slightly different violet for module titles */
    text-shadow: 0 0 5px #aa00ff, 0 0 10px #aa00ff;
    margin-bottom: 20px;
    text-align: left; /* Align module titles to the left */
}

.ghost-deck-module p { /* Paragraphs within modules */
    color: #00ffcc; /* Standard neon cyan for text */
    font-size: 1em;
    line-height: 1.7;
}

/* Simulated Hacking Terminal Styles */
#simulated-terminal {
    background-color: #080808; /* Very dark background */
    color: #00ff00; /* Bright green text */
    font-family: 'Major Mono Display', monospace;
    font-size: 1em;
    padding: 15px;
    border: 1px solid #222;
    height: 400px; /* Fixed height */
    overflow-y: auto; /* Scroll for overflow */
    display: flex;
    flex-direction: column;
    cursor: text; /* Indicate text input area */
}

.terminal-output-area {
    flex-grow: 1;
    overflow-y: auto; /* Independent scroll for output */
    padding-right: 10px; /* Space for scrollbar */
}

.terminal-output-area p {
    margin: 0 0 5px 0;
    line-height: 1.4;
    word-break: break-all; /* Break long strings */
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.terminal-prompt {
    color: #00ffcc; /* Cyan prompt */
    margin-right: 8px;
    user-select: none; /* Prevent prompt selection */
}

.terminal-input-field {
    background-color: transparent;
    border: none;
    color: #00ff00; /* Green input text */
    font-family: 'Major Mono Display', monospace;
    font-size: 1em;
    flex-grow: 1;
    outline: none;
    caret-color: #00ff00;
}

/* Terminal Themes */
#simulated-terminal.theme-dark { /* Default */
    background-color: #080808;
    color: #00ff00;
    border-color: #222;
}
#simulated-terminal.theme-dark .terminal-prompt {
    color: #00ffcc;
}
#simulated-terminal.theme-dark .terminal-input-field {
    color: #00ff00;
    caret-color: #00ff00;
}

#simulated-terminal.theme-light {
    background-color: #f0f0f0;
    color: #333333;
    border-color: #cccccc;
}
#simulated-terminal.theme-light .terminal-prompt {
    color: #007acc;
}
#simulated-terminal.theme-light .terminal-input-field {
    color: #333333;
    caret-color: #333333;
}
#simulated-terminal.theme-light .terminal-output-area p {
    color: #333333;
}

#simulated-terminal.theme-matrix {
    background-color: #000000;
    color: #00FF41; /* Matrix Green */
    border-color: #003300;
    text-shadow: 0 0 3px #00FF41;
}
#simulated-terminal.theme-matrix .terminal-prompt {
    color: #33FF33;
}
#simulated-terminal.theme-matrix .terminal-input-field {
    color: #00FF41;
    caret-color: #00FF41;
    text-shadow: 0 0 3px #00FF41;
}
#simulated-terminal.theme-matrix .terminal-output-area p {
    color: #00FF41;
    text-shadow: 0 0 3px #00FF41;
}

/* Interactive Glitch Image Effect Styles */
.glitch-image-controls {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow controls to wrap on smaller screens */
    gap: 10px;
}

.glitch-image-controls label {
    margin-right: 5px;
    color: #00ffcc;
}

.glitch-image-controls input[type="range"] {
    flex-grow: 1;
    max-width: 200px; /* Prevent slider from becoming too wide */
    margin-right: 10px;
    accent-color: #7000FF; /* Violet for the slider thumb and track */
}

.glitch-image-container-class { /* Renamed to avoid conflict with ID */
    width: 100%;
    max-width: 600px; /* Max width of the image container */
    margin: 20px auto; /* Center the container */
    border: 1px solid #444;
    background-color: #111; /* Dark background for the canvas area */
    display: flex; /* Use flex to center canvas if it's smaller */
    justify-content: center;
    align-items: center;
    min-height: 200px; /* Minimum height before image loads */
}

/* --- Styles for Phantom Protocol Page --- */
.experimental-module {
    background-color: rgba(10, 10, 20, 0.8);
    border: 1px solid var(--neon-blue);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px var(--neon-blue-glow);
    border-radius: 5px;
}

.experimental-module h3 {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink-glow);
    margin-top: 0;
    border-bottom: 1px dashed var(--neon-cyan);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.experimental-module p {
    color: var(--light-gray);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1em;
    line-height: 1.6;
}

.module-placeholder {
    background-color: rgba(0,0,0,0.3);
    border: 1px dashed var(--medium-gray);
    padding: 30px;
    text-align: center;
    color: var(--medium-gray);
    font-style: italic;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-divider {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0,0,0,0), var(--neon-cyan), rgba(0,0,0,0));
    margin: 40px 0;
}

/* Canvas Container for Proc City & Neural Net */
.canvas-container {
    width: 100%;
    /* height: 400px; */ /* Let canvas content or JS dictate height if dynamic */
    margin: 20px auto;
    background-color: #050510; /* Dark background for canvas */
    border: 1px solid var(--neon-blue-transparent);
    box-shadow: inset 0 0 10px rgba(0, 150, 255, 0.3);
    display: flex; /* Helps with centering canvas if needed */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure canvas content doesn't spill */
}

.proc-city-canvas-container canvas, 
.neural-net-canvas-container canvas {
    display: block; /* Removes extra space below canvas */
    /* width will be set by JS to container width */
    /* height will be set by JS, or fixed here if preferred */
    max-width: 100%; /* Ensure it doesn't overflow parent */
}

.proc-city-canvas-container {
    height: 450px; /* Specific height for cityscape */
}

.neural-net-canvas-container {
    height: 400px; /* Specific height for neural net */
}

/* AI-Powered Text Generation Module Styles */
#aiTextGenContainer {
    background-color: rgba(10, 25, 47, 0.9);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue-glow);
    margin: 40px auto;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

#aiTextGenContainer h3 {
    font-family: 'Press Start 2P', cursive;
    color: #00ffff;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #00ffff;
}

#aiTextGenContainer label {
    font-family: 'Major Mono Display', monospace;
    color: #00ffcc;
    margin-bottom: 10px;
    display: block;
}

#aiTextGenContainer textarea {
    width: 80%;
    height: 100px;
    margin-bottom: 10px;
    background-color: rgba(10, 25, 47, 0.8);
    color: var(--neon-green);
    border: 1px solid var(--neon-blue);
    padding: 10px;
    font-family: 'Courier New', Courier, monospace;
}

#aiTextGenContainer .cyber-button {
    background-color: var(--neon-blue);
    color: #000;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#aiTextGenContainer .cyber-button:hover {
    background-color: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
}

#aiTextGenContainer .output-area {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(10, 25, 47, 0.8);
    border: 1px solid var(--neon-blue);
    min-height: 150px;
    color: var(--neon-green);
    white-space: pre-wrap; /* Preserve whitespace and newlines */
    font-family: 'Courier New', Courier, monospace;
}

/* NEW SECTION: CYBERNETIC_AUGMENTATION_INTERFACE */
.augmentation-interface-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background-color: rgba(10, 25, 47, 0.7);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
}

.aug-selection-panel, .aug-status-panel {
    flex: 1;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px dashed var(--neon-cyan);
}

.aug-selection-panel h4, .aug-status-panel h4 {
    color: var(--neon-green);
    margin-top: 0;
    border-bottom: 1px solid var(--neon-blue);
    padding-bottom: 10px;
    text-align: center;
}

.aug-list {
    list-style-type: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.aug-list li {
    padding: 10px;
    margin-bottom: 5px;
    background-color: rgba(10, 30, 50, 0.8);
    border: 1px solid var(--neon-blue);
    color: var(--neon-cyan);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.aug-list li:hover, .aug-list li.active {
    background-color: var(--neon-blue);
    color: #000;
}

#augDetailsContainer {
    padding: 10px;
    margin-bottom: 20px;
    background-color: rgba(5, 15, 25, 0.7);
    border: 1px solid var(--neon-cyan);
    min-height: 150px;
    color: var(--neon-green);
}

#augDetailsContainer .placeholder-text {
    color: var(--neon-blue);
    font-style: italic;
}

#augDetailsContainer h5 {
    color: var(--neon-green);
    margin-top: 0;
}

#augDetailsContainer p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.system-diagnostics p {
    color: var(--neon-cyan);
    margin-bottom: 5px;
}

.status-value {
    color: var(--neon-green);
    font-weight: bold;
}

/* NEW SECTION: QUANTUM_ENTANGLEMENT_COMMUNICATOR */
.quantum-communicator-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: rgba(10, 25, 47, 0.85);
    border: 1px solid var(--neon-purple);
    border-radius: 5px;
}

.qc-controls label {
    display: block;
    margin-bottom: 5px;
    color: var(--neon-cyan);
    font-family: 'Rajdhani', sans-serif;
}

.qc-controls textarea,
.qc-controls input[type="text"] {
    width: calc(100% - 22px); /* Account for padding and border */
    padding: 10px;
    margin-bottom: 15px;
    background-color: rgba(0, 10, 20, 0.9);
    color: var(--neon-green);
    border: 1px solid var(--neon-blue);
    font-family: 'Courier New', Courier, monospace;
    resize: vertical;
}

.qc-controls textarea {
    min-height: 80px;
}

.qc-controls .cyber-button {
    background-color: var(--neon-purple);
    color: #fff;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: block;
    width: 100%;
}

.qc-controls .cyber-button:hover {
    background-color: var(--neon-magenta);
    box-shadow: 0 0 20px var(--neon-magenta);
}

.qc-status-feed h4 {
    color: var(--neon-purple);
    margin-top: 0;
    border-bottom: 1px solid var(--neon-cyan);
    padding-bottom: 10px;
    text-align: center;
}

.qc-status-feed .output-area {
    margin-top: 10px;
    padding: 15px;
    background-color: rgba(0, 5, 15, 0.8);
    border: 1px solid var(--neon-blue);
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    color: var(--neon-cyan);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.qc-status-feed .output-area .placeholder-text {
    color: var(--neon-blue);
    font-style: italic;
}

.qc-status-feed .output-area p {
    margin-bottom: 8px;
    line-height: 1.5;
    word-break: break-all; /* Prevent long strings from breaking layout */
}

.qc-status-feed .output-area .timestamp {
    color: var(--neon-blue);
    margin-right: 10px;
}

.qc-status-feed .output-area .status-success {
    color: var(--neon-green);
}

.qc-status-feed .output-area .status-error {
    color: var(--neon-red);
}

.qc-status-feed .output-area .status-info {
    color: var(--neon-cyan);
}

/* AR Overlay Simulator Styles */
.ar-viewport-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Or your preferred max width */
    height: 450px; /* Adjust as needed, or make responsive */
    margin: 20px auto;
    background-color: #111; /* Fallback background */
    border: 2px solid var(--neon-cyan);
    overflow: hidden; /* Important for positioning AR elements */
    box-shadow: 0 0 25px var(--neon-cyan, 0.5);
}

#arCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
    z-index: 1;
}

.ar-data-point {
    position: absolute;
    z-index: 2;
    background-color: rgba(0, 255, 255, 0.1); /* Neon cyan with low opacity */
    border: 1px solid var(--neon-cyan);
    color: var(--neon-green);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9em;
    box-shadow: 0 0 10px var(--neon-cyan);
    cursor: default;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease;
    white-space: nowrap;
}

.ar-data-point:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--neon-green);
    background-color: rgba(0, 255, 255, 0.2);
}

.ar-data-point .label {
    font-weight: bold;
    color: var(--neon-yellow); /* Or another contrasting neon color */
}

.ar-data-point .value {
    margin-left: 8px;
    color: var(--neon-green);
}

.ar-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.ar-controls .cyber-button {
    background-color: var(--neon-blue);
    padding: 8px 15px;
    font-size: 0.9em;
}