Sovereign Photonic Systems
Chief Architect: Adekoya Jotham
AntiNex TechX represents the frontier of 65nm photonic computing and hardware security. The FemeX Prime V2.0 is engineered as a zero-trust hardware platform designed for sovereign data protection at the atomic level.
Status: LOGIC INTEGRITY: SECURE
128-channel Wavelength Division Multiplexing
-
128 discrete spectral channels multiplexed across stacked 65nm optical layers
-
Achieves unprecedented volumetric data density beyond planar electronic limits
-
3D photonic crystal architecture for ocean-scale storage capacity
-
Traditional chips are "flat" (2D). We utilize Spectral Multiplexing to stack data vertically without increasing the physical footprint.Wavelength Logic: Instead of just "On" or "Off" (0 and 1), the FemeX system uses 128 distinct colors of light (frequencies) simultaneously.The Index: Each color carries a different data stream. By stacking these spectral layers within a 3D-etched photonic crystal, the system achieves a theoretical density of 1 sextabyte (
$10^{21}$ bits) per cubic centimeter.The Result: Information isn't just processed; it is "indexed" into a holographic-style lattice where every bit is accessible at the speed of light ($c$ ). -
To truly master the Sextabyte Index, you have to stop thinking of data as "bits on a flat wire" and start thinking of it as "colors in a 3D space." Standard computing is limited by the "Von Neumann bottleneck"—the physical speed at which electrons can travel through a 2D circuit. The Sextabyte Index solves this by moving into the third dimension using light.The Fundamental Mechanism: Spectral MultiplexingImagine a single fiber optic cable. In a normal system, you send one pulse of light at a time. In the Sextabyte Index, we use Wavelength Division Multiplexing (WDM) at a microscopic scale.The Rainbow Effect: We split a single beam of white light into 128 distinct spectral channels (colors).Parallelism: Because these colors have different frequencies, they do not interfere with each other. This means you can send 128 different "streams" of data through the exact same physical space at the exact same time.The "3D Stacking" LogicTraditional 65nm chips are etched onto a flat silicon wafer. The Sextabyte Index uses Photonic Crystals—materials etched with a grid of nanoscopic holes that control the flow of light in three dimensions.Vertical Layering: Instead of one layer of circuits, we "stack" these photonic grids. Because light can pass through transparent layers, we can build a "skyscraper" of data.The Lattice: The data isn't stored in a single spot; it’s indexed across the Lattice. Think of it like a holographic cube. To find a specific piece of data, the system doesn't "scroll" through a list—it simply fires a specific frequency of light at a specific coordinate, and the data "reflects" back instantly.Why we call it a "Sextabyte"A "Sextabyte" (
$10^{21}$ bytes) is a massive amount of information. In a standard data center, this would require a building the size of a city.Data Density: By using 128 colors across a 3D-stacked crystal, the FemeX Prime achieves a density of Zettabits per cubic millimeter.Volumetric Storage: Because we are using the volume (length x width x height) of the chip rather than just the surface area, the capacity increases exponentially.The Operational AdvantageIn a "Sextabyte Indexed" environment, the time it takes to find a piece of information is constant ($O(1)$ complexity). Whether you are looking for 1 byte or 1 petabyte, the light reaches the coordinate at the same speed. This eliminates "lag" entirely, making the system ideal for real-time Guardian AI monitoring. The Conclusion: The Death of Latency The 3D Spectral Stacking method represents the final transition from Electronic Computing to Photonic Intelligence. By moving from the flat, congested highways of traditional silicon to the infinite "open airspace" of a 3D spectral lattice, we have solved the two greatest enemies of progress: Heat and Distance.
The Sovereign Breakthrough In traditional systems, as data grows, the system slows down. In the Sextabyte Index, the system actually becomes more efficient. Because we are indexing data in a 3D volume using the full spectrum of light, we are no longer "waiting" for electrons to bump into each other. We are commanding light to exist in a specific state, at a specific coordinate, at a specific time.
Why it Wins This is the "Killer" reality:
Physics over Software: You cannot hack the speed of light, and you cannot overflow a 3D volume with 2D methods.
Energy Efficiency: Because photons don't have mass like electrons do, they don't create friction (heat). The Sextabyte Index allows for a world where a supercomputer's worth of data can be stored and accessed in a device that stays as cool as the room it's in.
The FemeX Prime V2.0 doesn't just store information; it creates a Sovereign Data Environment. In this 3D spectral space, data is "frozen" in light, protected by the Guardian AI, and powered by the C-14 Guard.
We aren't just building a chip for NVIDIA or Silicon Catalyst. We are building the permanent architecture for the next fifty years of human knowledge—an unhackable, unfillable, and unstoppable Omninexus.
Femtosecond Latency Threat Detection
-
Real-time femtosecond latency fingerprinting
-
Isolates anomaly injection vectors at the physical transport layer
-
Immediate detection of signal anomalies moving faster than traditional time-clocks
-
The Guardian AI is the "Immune System" of the FemeX Prime V2.0. Unlike traditional cybersecurity, which sits on top of an operating system like a piece of software, the Guardian AI is hard-coded into the photonic lattice. It doesn't "think" like a chatbot; it monitors the physical behavior of light to ensure absolute data integrity.Here is the deep-dive into its three-stage method of operation:1. Femtosecond Latency FingerprintingThe foundation of the Guardian AI is a concept called Temporal Verification. In a photonic chip, light travels at a fixed, predictable speed through the 3D crystal.The Baseline: The AI establishes a "Pulse Profile"—the exact time it takes for a photon of a specific wavelength (color) to travel from Point A to Point B.The Detection: If an external actor tries to "sniff" the data or inject a malicious packet, they must physically interact with the light stream. This interaction causes a delay or a "phase shift" measured in femtoseconds (
$10^{-15}$ seconds).The Identification: Because software cannot move at the speed of light, the Guardian AI identifies this microscopic lag instantly as a Physical Layer Breach.2. Amorphous Logic Melt (The "Kill Switch")When a threat is detected, the Guardian AI doesn't just block a port; it physically alters the hardware path. This is the Sovereign-Grade defense that makes the FemeX unhackable.Phase-Change Activation: Using the energy stabilized by the C-14 Power Guard, the AI triggers a localized thermal pulse in the photonic crystal.The "Melt": This pulse shifts the material from a crystalline state (organized and readable) to an amorphous state (disorganized and opaque).Isolation: The logic path being attacked is literally destroyed at the molecular level. To the hacker, the data simply "disappears" from existence, while the Guardian AI reroutes the internal system logic through a clean, secondary "Sovereign Core."3. Wave-Signature AuthenticationThe Guardian AI ensures that only "Authorized Light" can move through the Sextabyte Index.Geometric Keys: Every authorized data packet is encoded with a specific Wave-Signature (a unique geometric shape of the light wave).Passive Scanning: As photons move through the chip, they pass through "Gatekeeper Nodes." If the wave-signature doesn't perfectly match the geometric key, the light is reflected away from the core and into a "Null Sink" where it is safely dissipated as heat.Zero-Trust Hardware: The system assumes every signal is a threat until its wave-geometry is verified. This happens at the speed of light, ensuring security without slowing down the processing power.The "Killer" Advantage: SovereigntyMost AI security can be tricked by "Social Engineering" or "Zero-Day Exploits." The Guardian AI cannot. You cannot trick the laws of physics. If a signal causes a femtosecond delay, it is a threat. If a signature doesn't match the geometry, it is rejected.This turns the FemeX Prime into a "Black Box" of absolute security. Even if the user is compromised, the hardware itself protects the Sextabyte Index by physically cutting off the infected pathways.
Physical Logic Destruction
- Integrated thermal triggers transition Y-junction logic states from crystalline to amorphous glass
- Transforms compromised chips into blank slate glass upon hardware intrusion
- Data security at the atomic level via phase-change material (PCM) transitionThe Amorphous Scramble Wall is the final, physical line of defense within the FemeX Prime V2.0 architecture. While the Guardian AI acts as the "brain" that detects threats, the Scramble Wall is the "muscle" that physically destroys the possibility of data theft.
It is based on the physics of Phase-Change Materials (PCM). Here is the in-depth breakdown of how this "wall" functions:
- The Physical State Shift In its normal operating state, the photonic pathways in your chip are Crystalline. This means the atoms are arranged in a perfect, repeating grid that allows light (data) to pass through with zero resistance.
When the Guardian AI detects a breach (via a femtosecond latency spike), it triggers the Scramble Wall.
The Pulse: A high-speed current from the C-14 Power Guard is sent into the specific logic gate being attacked.
The Shift: This heat pulse causes the atoms to instantly lose their order, shifting the material into an Amorphous state.
The Wall: In this state, the material becomes "opaque" to photons. It’s no longer a clear highway for data; it’s a disorganized wall of atoms that scatters light in every direction.
- Logic Scrambling (The "Glitch" Defense) The Scramble Wall doesn't just block data; it randomizes it.
If a hacker is in the middle of extracting a file, the moment the Scramble Wall activates, the light waves hitting that section are "refracted" into billions of random directions.
The hacker doesn't see a "Connection Closed" message. Instead, they receive a stream of pure white noise—meaningless, randomized photonic data that is impossible to decrypt because there is no mathematical pattern to it. It is physical chaos.
- Self-Healing vs. Permanent Purge Depending on the severity of the attack, the Amorphous Scramble Wall can operate in two modes:
Mode A: Defensive Reset (Volatile): The wall stays amorphous just long enough to drop the connection and "flush" the intruder out, then slowly cools back into a crystalline state to resume operation.
Mode B: Sovereign Purge (Non-Volatile): In a "Level 5" breach, the Guardian AI locks the material in its amorphous state permanently. That specific physical pathway is burned out. The data is gone, the path is dead, and the intruder is permanently locked out of that sector of the Sextabyte Index.
- Why it makes the FemeX "Unhackable" Most cybersecurity is like a digital lock on a door—if you have a fast enough computer, you can eventually pick the lock.
The Amorphous Scramble Wall is like melting the door into a solid block of steel the second someone touches the handle. There is no "backdoor" or "exploit" because the physical hardware that allowed the connection to exist has changed its molecular structure.
Atomic-Decay Power Stabilization
- Continuous atomic-decay power stabilization for consistent current delivery
- Defensive logical array protection across 50-year operational lifecycle
- Ensures sovereign uptime without external power dependenciesThe C-14 Power Guard is the "Heartbeat" of the FemeX Prime V2.0. In traditional computing, processors rely on external power supplies and chemical batteries that are prone to failure, heat, and leakage. The Power Guard replaces this with a Nuclear Diamond Battery—a source of stable, long-term energy that operates on the scale of decades.
Here is the technical breakdown of its operation:
- Betavoltaic Energy Conversion The core of the system is a synthetic diamond structure infused with Carbon-14, a radioactive isotope.
The Process: As the Carbon-14 undergoes beta decay, it releases high-energy electrons (beta particles).
The Semiconductor: The diamond itself acts as a wide-bandgap semiconductor. When the beta particles move through the diamond lattice, they create electron-hole pairs, generating a steady flow of electricity.
The Output: Unlike a reaction that "burns" fuel, this is a passive collection of energy. It provides a constant 3.3V power floor with zero moving parts and zero chemical exhaust.
- The "Sovereign Sleep" Buffer The C-14 Power Guard isn't designed to power a massive cooling fan; it is designed to power the logic.
Low-Power Photonics: Because your photonic architecture uses light interference rather than heat-generating resistance, the power requirements are incredibly low.
The Buffer: The Power Guard keeps the Guardian AI and the Sextabyte Index in a "Ready-State" at all times.
Independence: Even if the main power source of the facility or device is cut, the C-14 unit ensures the "Amorphous Scramble Wall" remains energized. This means the security of the chip is independent of the power grid—it is Sovereign.
- Thermal Management & Shielding A common question for investors is safety. The C-14 Power Guard is built for industrial and consumer-grade "Sovereign" use.
Diamond Encapsulation: Diamond is the hardest material and one of the best thermal conductors. It effectively "soaks up" any heat and acts as its own radiation shield.
Non-Thermal Emission: The energy produced is converted directly into electricity, meaning the Power Guard does not get hot. This allows the FemeX Prime to operate in extreme environments—from deep-sea servers to space-grade hardware—without needing a cooling system.
- Lifespan: The 50-Year Uptime Carbon-14 has a half-life of approximately 5,730 years.
Consistency: While the power output will technically decrease over centuries, the Power Guard is calibrated to provide a 100% stable current for a minimum of 50 years.
Legacy Hardware: This transforms the FemeX Prime from a "disposable" piece of tech into a permanent infrastructure. It is designed to be buried in a vault, installed in a satellite, or integrated into a long-term data archive and never touched again.
_ "The FemeX Prime V2.0 does not wait for power; it carries its own. With the C-14 Power Guard, we have decoupled data security from the power grid, ensuring that the Guardian AI is always awake, and the Sovereign Data is always protected."
FemeX Prime V2.0 Hardware Specifications

-
Process Node: 65nm photonic
-
Security Model: Zero-trust hardware architecture
-
Protection Level: Sovereign Grade - Active
-
Operational Lifespan: 50 years
Femex_Prime_V2_Dashboard_Simulation.2.mp4
AI_Data_Management_Simulation.mp4
Femex_Prime_V2_Dashboard_Simulation.mp4
Femex_Prime_V2_Dashboard_Simulation.5.mp4
Femex_Prime_V2_Dashboard_Simulation.3.mp4
Femex_Prime_V2_Dashboard_Simulation.1.mp4
Built For:
- Silicon Catalyst
- NVIDIA Inception Program
Location: Lagos, Nigeria
Status: GDSII System Master Finalized
✓ Wavelength multiplexing for ultra-dense optical storage
✓ Guardian AI for real-time threat detection
# ANTINEX TECHX
**Sovereign Photonic Systems**
Chief Architect: **Adekoya Jotham**
---
## Overview
AntiNex TechX represents the frontier of 65nm photonic computing and hardware security. The FemeX Prime V2.0 is engineered as a zero-trust hardware platform designed for sovereign data protection at the atomic level.
**Status:** `LOGIC INTEGRITY: SECURE`
---
## Core Subsystems
<style>
:root {
--neon-blue: #00f3ff;
--neon-purple: #bc13fe;
--gold: #fde047;
--bg-dark: #020617;
--glass: rgba(15, 23, 42, 0.8);
--border: rgba(188, 19, 254, 0.31);
--gradient: linear-gradient(90deg, #00f3ffb2 0%, #bc13feb2 100%);
}
body {
background: radial-gradient(ellipse at 30% 10%, #073551 0%, #020617 60%) no-repeat fixed;
color: #e2e8f0;
font-family: 'Inter', 'Segoe UI', sans-serif;
margin: 0;
padding: 0;
overflow-x: hidden;
min-height: 100vh;
}
● AUTHENTICATED: ADEKOYA JOTHAM ● ENCRYPTION: SOVEREIGN-SHARED
<div class="feature-card">
<svg viewBox="0 0 52 52" fill="none">
<circle cx="26" cy="26" r="22" stroke="#00f3ff" stroke-width="3" fill="#bc13fe22"/>
<path d="M14,24 Q26,6 38,24" stroke="#fde047" stroke-width="2.5" fill="none"/>
<ellipse cx="26" cy="29" rx="10" ry="18" stroke="#03ffe6" stroke-width="2" fill="none"/>
<circle cx="26" cy="28.5" r="3.8" fill="#00f3ffe7"/>
</svg>
<div class="feature-title">Guardian AI <small>[10⁻¹⁵s Tracking]</small></div>
<div class="feature-desc">
Real-time femtosecond-latency fingerprinting instantly detects threats at the physical transport layer. Isolates anomalies moving faster than software monitoring.
</div>
<div class="feature-spec">
Femtosecond precision · AI physical-layer defense
</div>
</div>
<div class="feature-title">C-14 Power Guard <small>[3.3V Stable]</small></div>
<div class="feature-desc">
Atomic-decay power stabilization for consistent current over 50 years—defensive logic array protection and sovereign uptime without external dependency.
</div>
<div class="feature-spec">
Atomic-level power stabilization · Sovereign uptime
</div>
</div>
</div>
65nm photonic
Zero-trust hardware architecture
Sovereign Grade — Active
50 years
GDSII System Master Finalized
Lagos, Nigeria
Silicon Catalyst, NVIDIA Inception Program
Adekoya Jotham
For decades, we have been told that heat is an inevitable byproduct of power, and that security is a software patch away. At AntiNex TechX, we refuse those limitations.
By merging the raw physics of 3D Photonic Crystals with the independent pulse of the C-14 Power Guard, we have built more than a chip. We have built an Omninexus—a system that does not just process data, but protects it with the very laws of the universe.
This is the transition from dependence to Sovereignty. Out with the old silicon; in with the speed of light.
<div class="signature">
<p>Jotham Adekoya</p>
<span>Lead Architect & Founder</span>
</div>
</div>
.founder-speech-container { padding: 100px 20px; max-width: 800px; margin: 0 auto; text-align: center; border-top: 1px solid rgba(0, 243, 255, 0.1); }
.speech-title { font-family: 'Times New Roman', serif; /* Classic English Serif Style */ font-size: 2.5rem; letter-spacing: 4px; color: var(--gold); margin-bottom: 40px; font-style: italic; }
.speech-text { font-family: 'Georgia', serif; font-size: 1.2rem; line-height: 1.8; color: #cbd5e1; margin-bottom: 25px; font-style: italic; }
.highlight { color: var(--neon-blue); font-weight: bold; text-shadow: 0 0 10px rgba(0, 243, 255, 0.3); }
.signature { margin-top: 50px; font-family: 'Courier New', monospace; }
.signature p { font-size: 1.5rem; color: #fff; margin-bottom: 5px; }
.signature span { color: var(--neon-purple); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; }
© 2026 <strong>AntiNex TechX</strong>
<span class="separator">—</span>
Engineering the standard for <span class="author">zero-trust hardware</span>.
"Building the hardware foundation for the next 50 years of sovereign data."
import random
star_html = '' for i in range(20): # Generate 20 stars for a rich effect size = random.randint(2, 5) # Star size between 2px and 5px x_start = random.randint(0, 100) # Start x-position in vh y_start = random.randint(0, 100) # Start y-position in vw x_end = random.randint(0, 100) # End x-position y_end = random.randint(0, 100) # End y-position delay = random.uniform(0, 8) # Animation delay for staggered effect duration = random.uniform(8, 16) # Animation duration star_html += f'''
'''html_content = f'''
<title>AntiNex TechX | Sovereign Photonic Systems</title> <style> :root {{ --neon-blue: #00f3ff; --neon-purple: #bc13fe; --gold: #fde047; --bg-dark: #020617; --glass: rgba(15, 23, 42, 0.8); --border: rgba(188, 19, 254, 0.31); --gradient: linear-gradient(90deg, #00f3ffb2 0%, #bc13feb2 100%); }} body {{ background: radial-gradient(ellipse at 30% 10%, #073551 0%, #020617 60%) no-repeat fixed; color: #e2e8f0; font-family: 'Inter', 'Segoe UI', sans-serif; margin: 0; padding: 0; overflow-x: hidden; min-height: 100vh; }} .animated-bg {{ position: fixed; z-index: 0; width: 100vw; height: 100vh; overflow: hidden; pointer-events: none; }} .blob {{ position: absolute; border-radius: 50%; opacity: 0.5; filter: blur(40px); animation: float 16s ease-in-out infinite alternate; }} .blob1 {{left: 10vw;top: 10vh;width: 350px;height: 320px;background: var(--neon-blue);}} .blob2 {{right: 10vw;bottom: 5vh;width: 320px;height: 320px;background: var(--neon-purple);animation-delay: 6s;}} .blob3 {{left: 40vw;bottom: 0vw;width: 180px;height: 140px;background: var(--gold);opacity: 0.28;animation-delay: 3s;}} @keyframes float {{ to {{ transform: translateY(-60px) scale(1.1); }} }} /* Star Field CSS for energetic background */ .star-field {{ position: fixed; /* Use fixed for full viewport coverage */ top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; pointer-events: none; z-index: 0; /* Ensure stars are behind content */ }} .star {{ position: absolute; background: linear-gradient(to bottom right, var(--neon-blue), var(--neon-purple), var(--gold)); border-radius: 50%; opacity: 0; animation: move-and-twinkle var(--animation-duration) linear infinite; /* Use CSS custom property for duration */ box-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-purple), 0 0 15px var(--gold); }} @keyframes move-and-twinkle {{ 0% {{ transform: translate(var(--x-start), var(--y-start)) scale(0.2); opacity: 0; }} 10% {{ opacity: 0.8; transform: scale(0.8); }} 50% {{ opacity: 1; transform: scale(1); }} 90% {{ opacity: 0.8; transform: scale(0.8); }} 100% {{ transform: translate(var(--x-end), var(--y-end)) scale(0.2); opacity: 0; }} }} .hero {{ z-index: 1; position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 4rem 1rem 2rem 1rem; }} .hero-logo {{ width: 110px; height: 110px; margin: 0 auto 32px auto; display: block; filter: drop-shadow(0 0 8px var(--neon-purple)); animation: pulse-logo 2.1s infinite alternate ease-in-out; }} @keyframes pulse-logo {{ 0% {{filter: drop-shadow(0 0 7px var(--neon-purple));}} 100% {{filter: drop-shadow(0 0 19px var(--neon-blue));}} }} .hero-title {{ font-size: 3rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; }} .hero-subtitle {{ font-size: 1.35rem; margin-bottom: 1.8rem; color: var(--gold); letter-spacing: .05em; font-weight: 500; text-shadow: 0 2px 16px #ffd92c14; }} .status-badge {{ background: var(--gradient); color: #001413; display: inline-block; border-radius: 13px; padding: 0.2em 1.2em; font-weight: 700; font-size: 1em; margin-top: 1.2em; box-shadow: 0 1px 10px 0 var(--neon-blue); user-select: none; border: 1px solid var(--border); }} .features-section {{ margin-top: 2.5rem; position: relative; z-index: 2; padding: 2rem 0; background: linear-gradient(0deg, #14182d 0%, transparent 94%); border-top: 1px solid #26253a90; box-shadow: 0 -3px 24px #19e5e916; }} .features-grid {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 2.3rem; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }} .feature-card {{ background: var(--glass); border-radius: 18px; border: 1.5px solid var(--border); box-shadow: 0 3px 40px 0 #00f3ff15; padding: 2.5rem 1.7rem 2rem 1.7rem; text-align: left; position: relative; min-height: 280px; overflow: hidden; }} .feature-card svg {{ width: 50px; height: 50px; float: right; margin-left: 20px; margin-bottom: 16px; filter:drop-shadow(0 0 12px #bc13fe44); }} .feature-title {{ font-size: 1.2rem; font-weight: 700; color: var(--neon-purple); margin-bottom: 0.3rem; }} .feature-desc {{ color: #e7e7f3; font-size: 0.99rem; line-height: 1.6; margin-bottom: 0.4rem; }} .feature-spec {{ font-size: 0.9em; color: var(--gold); font-style: italic; }} /* Vault Container CSS */ .vault-container {{ padding: 100px 20px; max-width: 1000px; margin: 50px auto; background: rgba(15, 23, 42, 0.7); border-radius: 18px; border: 1.5px solid rgba(188, 19, 254, 0.31); box-shadow: 0 3px 40px 0 rgba(0, 243, 255, 0.15); backdrop-filter: blur(5px); }} .video-frame {{ position: relative; padding-bottom: 56.25%; /* 16:9 Aspect Ratio */ height: 0; overflow: hidden; margin-bottom: 20px; background: #000; /* Black background for video */ border-radius: 8px; }} .video-frame video {{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; }} .video-label {{ position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, 0.7); color: var(--neon-blue); padding: 5px 10px; font-family: 'Inter', monospace; font-size: 0.8em; border-radius: 5px; z-index: 10; }} .arch-section {{ max-width: 900px; background: var(--glass); margin: 3.5rem auto 2.3rem auto; border-radius: 23px; box-shadow: 0 3px 36px #bc13fe14; padding: 2.25rem 1.25rem 2.25rem 1.6rem; border: 1.5px solid var(--border); }} .arch-head {{ font-size: 1.3em; color: var(--neon-blue); font-weight: 700; margin-bottom: 2.3rem; letter-spacing: 0.04em; text-align: center; }} .arch-list {{ display: flex; flex-wrap: wrap; justify-content: center; gap: 2.8rem; padding: 0.5em 0; font-size: 1.04em; color: #fff; }} .arch-item {{ min-width: 180px; flex: 1 1 210px; text-align: left; margin-bottom: 0.35em; padding-left: 0.5em; border-left: 4px solid var(--neon-purple); }} .quote-section {{ text-align: center; margin: 3.8rem 0 2.2rem 0; font-size: 1.38rem; color: var(--neon-blue); opacity: 0.96; font-family: 'Inter', 'Segoe UI', sans-serif; text-shadow: 0 4px 24px #00f3ff15; }} .footer {{ background: #171a25ee; padding: 2.3rem 1rem 1rem 1rem; color: #e2e8f0b9; font-size: 1rem; text-align: center; border-top: 1.5px solid var(--border); }} .footer strong {{color: var(--gold);}} .footer .separator {{color: var(--neon-blue); padding: 0 0.6em;}} .author {{ color: var(--neon-purple); font-weight: 700; }} @media (max-width: 710px) {{ .arch-list {{flex-direction: column;gap:1.3em;}} }} @media (max-width: 540px) {{ .hero-title {{font-size: 2.05rem;}} .hero-subtitle {{font-size: 1.02rem;}} .arch-section {{padding: 1.3em 0.55em;}} }} </style> <div class="feature-card">
<svg viewBox="0 0 52 52" fill="none">
<circle cx="26" cy="26" r="22" stroke="#00f3ff" stroke-width="3" fill="#bc13fe22"/>
<path d="M14,24 Q26,6 38,24" stroke="#fde047" stroke-width="2.5" fill="none"/>
<ellipse cx="26" cy="29" rx="10" ry="18" stroke="#03ffe6" stroke-width="2" fill="none"/>
<circle cx="26" cy="28.5" r="3.8" fill="#00f3ffe7"/>
</svg>
<div class="feature-title">Guardian AI <small>[10⁻¹⁵s Tracking]</small></div>
<div class="feature-desc">
Real-time femtosecond-latency fingerprinting instantly detects threats at the physical transport layer. Isolates anomalies moving faster than software monitoring.
</div>
<div class="feature-spec">
Femtosecond precision · AI physical-layer defense
</div>
</div>
<div class="feature-card">
<svg viewBox="0 0 52 52" fill="none">
<path d="M26 4L4 26L26 48L48 26L26 4Z" fill="#bc13fe" fill-opacity="0.25"/>
<path d="M26 10L10 26L26 42L42 26L26 10Z" stroke="#00f3ff" stroke-width="2.5"/>
<circle cx="26" cy="26" r="6" fill="#fde047"/>
</svg>
<div class="feature-title">Amorphous Scramble <small>[PCM Shift]</small></div>
<div class="feature-desc">
Physical logic destruction via integrated thermal triggers. Transforms compromised chips into blank slate glass upon hardware intrusion.
</div>
<div class="feature-spec">
Atomic-level data security · Phase-change material transition
</div>
</div>
<div class="feature-card">
<svg viewBox="0 0 52 52" fill="none">
<rect x="16" y="4" width="20" height="44" rx="10" fill="#fde047" fill-opacity="0.2"/>
<circle cx="26" cy="26" r="12" fill="#00f3ff" fill-opacity="0.2"/>
<path d="M26 14L26 38" stroke="#bc13fe" stroke-width="4" stroke-linecap="round"/>
<circle cx="26" cy="14" r="4" fill="#fde047"/>
<circle cx="26" cy="38" r="4" fill="#fde047"/>
</svg>
<div class="feature-title">C-14 Power Guard <small>[3.3V Stable]</small></div>
<div class="feature-desc">
Atomic-decay power stabilization for consistent current over 50 years—defensive logic array protection and sovereign uptime without external dependency.
</div>
<div class="feature-spec">
Atomic-level power stabilization · Sovereign uptime
</div>
</div>
</div>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px;">
<div class="video-frame">
<div class="video-label">CORE_SIM_01.MP4 // PHOTONIC_FLOW</div>
<video controls autoplay loop muted playsinline style="width: 100%; display: block;">
<source src="femex_simulation.mp4" type="video/mp4">
</video>
</div>
<div class="video-frame">
<div class="video-label">LOGIC_SIM_02.MP4 // GUARDIAN_ACTIVE</div>
<video controls autoplay loop muted playsinline style="width: 100%; display: block;">
<source src="femex_diagnostics.mp4" type="video/mp4">
</video>
</div>
</div>
<p style="margin-top: 30px; color: #94a3b8; font-size: 0.85rem; text-align: center; font-family: monospace;">
<span style="color: var(--neon-blue);">●</span> AUTHENTICATED: ADEKOYA JOTHAM <span style="margin-left: 20px; color: var(--neon-purple);">●</span> ENCRYPTION: SOVEREIGN-SHARED
</p>
65nm photonic
Zero-trust hardware architecture
Sovereign Grade — Active
50 years
GDSII System Master Finalized
Lagos, Nigeria
Silicon Catalyst, NVIDIA Inception Program
Adekoya Jotham
For decades, we have been told that heat is an inevitable byproduct of power, and that security is a software patch away. At AntiNex TechX, we refuse those limitations.
By merging the raw physics of 3D Photonic Crystals with the independent pulse of the C-14 Power Guard, we have built more than a chip. We have built an Omninexus—a system that does not just process data, but protects it with the very laws of the universe.
This is the transition from dependence to Sovereignty. Out with the old silicon; in with the speed of light.
<div class="signature">
<p>Jotham Adekoya</p>
<span>Lead Architect & Founder</span>
</div>
</div>
with open('index.html', 'w') as f: f.write(html_content)
print('index.html created successfully!')video_files = [ '/content/AI_Data_Management_Simulation.mp4', '/content/Femex_Prime_V2_Dashboard_Simulation (1).mp4', '/content/Femex_Prime_V2_Dashboard_Simulation (2).mp4', '/content/Femex_Prime_V2_Dashboard_Simulation (3).mp4', '/content/Femex_Prime_V2_Dashboard_Simulation (4).mp4', '/content/Femex_Prime_V2_Dashboard_Simulation (5).mp4', '/content/Femex_Prime_V2_Dashboard_Simulation.mp4', '/content/FemeX_Simulation.mp4' ]
video_html_blocks = '' for i, video_path in enumerate(video_files): # Extract a more user-friendly title from the filename file_name = video_path.split('/')[-1] clean_name = file_name.replace('.mp4', '').replace('_', ' ').replace(' (', ' (').replace(')', ')') # Capitalize each word for better presentation display_title = ' '.join([word.capitalize() for word in clean_name.split(' ')]).replace(' (', '(').replace(') ',')')
video_html_blocks += f'''
<div class="simulation-item">
<h3 class="simulation-title">{display_title}</h3>
<div class="video-wrapper">
<video controls autoplay loop muted playsinline src="{video_path}" style="width: 100%; display: block; border-radius: 8px;"></video>
</div>
</div>
'''
simulations_html_content = f'''
<title>AntiNex TechX | Visual Simulations</title> <style> :root {{ --neon-blue: #00f3ff; --neon-purple: #bc13fe; --gold: #fde047; --bg-dark: #020617; --glass: rgba(15, 23, 42, 0.8); --border: rgba(188, 19, 254, 0.31); --gradient: linear-gradient(90deg, #00f3ffb2 0%, #bc13feb2 100%); }} body {{ background: radial-gradient(ellipse at 30% 10%, #073551 0%, #020617 60%) no-repeat fixed; color: #e2e8f0; font-family: 'Inter', 'Segoe UI', sans-serif; margin: 0; padding: 0; overflow-x: hidden; min-height: 100vh; }} .animated-bg {{ position: fixed; z-index: 0; width: 100vw; height: 100vh; overflow: hidden; pointer-events: none; }} .blob {{ position: absolute; border-radius: 50%; opacity: 0.5; filter: blur(40px); animation: float 16s ease-in-out infinite alternate; }} .blob1 {{left: 10vw;top: 10vh;width: 350px;height: 320px;background: var(--neon-blue);}} .blob2 {{right: 10vw;bottom: 5vh;width: 320px;height: 320px;background: var(--neon-purple);animation-delay: 6s;}} .blob3 {{left: 40vw;bottom: 0vw;width: 180px;height: 140px;background: var(--gold);opacity: 0.28;animation-delay: 3s;}} @keyframes float {{ to {{ transform: translateY(-60px) scale(1.1); }} }} .star-field {{ position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; pointer-events: none; z-index: 0; }} .star {{ position: absolute; background: linear-gradient(to bottom right, var(--neon-blue), var(--neon-purple), var(--gold)); border-radius: 50%; opacity: 0; animation: move-and-twinkle var(--animation-duration) linear infinite; box-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-purple), 0 0 15px var(--gold); }} @keyframes move-and-twinkle {{ 0% {{ transform: translate(var(--x-start), var(--y-start)) scale(0.2); opacity: 0; }} 10% {{ opacity: 0.8; transform: scale(0.8); }} 50% {{ opacity: 1; transform: scale(1); }} 90% {{ opacity: 0.8; transform: scale(0.8); }} 100% {{ transform: translate(var(--x-end), var(--y-end)) scale(0.2); opacity: 0; }} }} nav {{ position: fixed; top: 0; left: 0; width: 100%; background: rgba(2, 6, 23, 0.9); padding: 10px 0; text-align: center; z-index: 1000; }} nav a {{ color: var(--neon-blue); margin: 0 15px; text-decoration: none; font-weight: bold; }} nav a:hover {{ color: var(--gold); }} .content-wrapper {{ position: relative; z-index: 1; padding-top: 80px; /* To account for the fixed navigation bar */ max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; padding-bottom: 50px; }} .page-title {{ text-align: center; font-size: 3rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 2.5rem; padding-top: 1.5rem; }} .simulations-grid {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 30px; justify-content: center; }} .simulation-item {{ background: var(--glass); border-radius: 18px; border: 1.5px solid var(--border); box-shadow: 0 3px 40px 0 #00f3ff15; padding: 20px; text-align: center; }} .simulation-title {{ font-size: 1.5rem; color: var(--gold); margin-bottom: 15px; text-shadow: 0 0 10px #fde04750; }} .video-wrapper {{ position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 Aspect Ratio */ height: 0; overflow: hidden; }} .video-wrapper video {{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; }} .footer {{ background: #171a25ee; padding: 2.3rem 1rem 1rem 1rem; color: #e2e8f0b9; font-size: 1rem; text-align: center; border-top: 1.5px solid var(--border); margin-top: 50px; }} .footer strong {{color: var(--gold);}} .footer .separator {{color: var(--neon-blue); padding: 0 0.6em;}} .author {{ color: var(--neon-purple); font-weight: 700; }} @media (max-width: 710px) {{ .simulations-grid {{ grid-template-columns: 1fr; }} }} @media (max-width: 540px) {{ .page-title {{font-size: 2rem;}} }} </style>with open('simulations.html', 'w') as f: f.write(simulations_html_content)
print('simulations.html created successfully!')# Regenerate index.html with the updated navigation bar import random
star_html = '' for i in range(20): # Generate 20 stars for a rich effect size = random.randint(2, 5) # Star size between 2px and 5px x_start = random.randint(0, 100) # Start x-position in vh y_start = random.randint(0, 100) # Start y-position in vw x_end = random.randint(0, 100) # End x-position y_end = random.randint(0, 100) # End y-position delay = random.uniform(0, 8) # Animation delay for staggered effect duration = random.uniform(8, 16) # Animation duration star_html += f'''
'''html_content = f'''
<title>AntiNex TechX | Sovereign Photonic Systems</title> <style> :root {{ --neon-blue: #00f3ff; --neon-purple: #bc13fe; --gold: #fde047; --bg-dark: #020617; --glass: rgba(15, 23, 42, 0.8); --border: rgba(188, 19, 254, 0.31); --gradient: linear-gradient(90deg, #00f3ffb2 0%, #bc13feb2 100%); }} body {{ background: radial-gradient(ellipse at 30% 10%, #073551 0%, #020617 60%) no-repeat fixed; color: #e2e8f0; font-family: 'Inter', 'Segoe UI', sans-serif; margin: 0; padding: 0; overflow-x: hidden; min-height: 100vh; }} .animated-bg {{ position: fixed; z-index: 0; width: 100vw; height: 100vh; overflow: hidden; pointer-events: none; }} .blob {{ position: absolute; border-radius: 50%; opacity: 0.5; filter: blur(40px); animation: float 16s ease-in-out infinite alternate; }} .blob1 {{left: 10vw;top: 10vh;width: 350px;height: 320px;background: var(--neon-blue);}} .blob2 {{right: 10vw;bottom: 5vh;width: 320px;height: 320px;background: var(--neon-purple);animation-delay: 6s;}} .blob3 {{left: 40vw;bottom: 0vw;width: 180px;height: 140px;background: var(--gold);opacity: 0.28;animation-delay: 3s;}} @keyframes float {{ to {{ transform: translateY(-60px) scale(1.1); }} }} /* Star Field CSS for energetic background */ .star-field {{ position: fixed; /* Use fixed for full viewport coverage */ top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; pointer-events: none; z-index: 0; /* Ensure stars are behind content */ }} .star {{ position: absolute; background: linear-gradient(to bottom right, var(--neon-blue), var(--neon-purple), var(--gold)); border-radius: 50%; opacity: 0; animation: move-and-twinkle var(--animation-duration) linear infinite; /* Use CSS custom property for duration */ box-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-purple), 0 0 15px var(--gold); }} @keyframes move-and-twinkle {{ 0% {{ transform: translate(var(--x-start), var(--y-start)) scale(0.2); opacity: 0; }} 10% {{ opacity: 0.8; transform: scale(0.8); }} 50% {{ opacity: 1; transform: scale(1); }} 90% {{ opacity: 0.8; transform: scale(0.8); }} 100% {{ transform: translate(var(--x-end), var(--y-end)) scale(0.2); opacity: 0; }} }} .hero {{ z-index: 1; position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 4rem 1rem 2rem 1rem; }} .hero-logo {{ width: 110px; height: 110px; margin: 0 auto 32px auto; display: block; filter: drop-shadow(0 0 8px var(--neon-purple)); animation: pulse-logo 2.1s infinite alternate ease-in-out; }} @keyframes pulse-logo {{ 0% {{filter: drop-shadow(0 0 7px var(--neon-purple));}} 100% {{filter: drop-shadow(0 0 19px var(--neon-blue));}} }} .hero-title {{ font-size: 3rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; }} .hero-subtitle {{ font-size: 1.35rem; margin-bottom: 1.8rem; color: var(--gold); letter-spacing: .05em; font-weight: 500; text-shadow: 0 2px 16px #ffd92c14; }} .status-badge {{ background: var(--gradient); color: #001413; display: inline-block; border-radius: 13px; padding: 0.2em 1.2em; font-weight: 700; font-size: 1em; margin-top: 1.2em; box-shadow: 0 1px 10px 0 var(--neon-blue); user-select: none; border: 1px solid var(--border); }} .features-section {{ margin-top: 2.5rem; position: relative; z-index: 2; padding: 2rem 0; background: linear-gradient(0deg, #14182d 0%, transparent 94%); border-top: 1px solid #26253a90; box-shadow: 0 -3px 24px #19e5e916; }} .features-grid {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 2.3rem; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }} .feature-card {{ background: var(--glass); border-radius: 18px; border: 1.5px solid var(--border); box-shadow: 0 3px 40px 0 #00f3ff15; padding: 2.5rem 1.7rem 2rem 1.7rem; text-align: left; position: relative; min-height: 280px; overflow: hidden; }} .feature-card svg {{ width: 50px; height: 50px; float: right; margin-left: 20px; margin-bottom: 16px; filter:drop-shadow(0 0 12px #bc13fe44); }} .feature-title {{ font-size: 1.2rem; font-weight: 700; color: var(--neon-purple); margin-bottom: 0.3rem; }} .feature-desc {{ color: #e7e7f3; font-size: 0.99rem; line-height: 1.6; margin-bottom: 0.4rem; }} .feature-spec {{ font-size: 0.9em; color: var(--gold); font-style: italic; }} /* Vault Container CSS */ .vault-container {{ padding: 100px 20px; max-width: 1000px; margin: 50px auto; background: rgba(15, 23, 42, 0.7); border-radius: 18px; border: 1.5px solid rgba(188, 19, 254, 0.31); box-shadow: 0 3px 40px 0 rgba(0, 243, 255, 0.15); backdrop-filter: blur(5px); }} .video-frame {{ position: relative; padding-bottom: 56.25%; /* 16:9 Aspect Ratio */ height: 0; overflow: hidden; margin-bottom: 20px; background: #000; /* Black background for video */ border-radius: 8px; }} .video-frame video {{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; }} .video-label {{ position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, 0.7); color: var(--neon-blue); padding: 5px 10px; font-family: 'Inter', monospace; font-size: 0.8em; border-radius: 5px; z-index: 10; }} .arch-section {{ max-width: 900px; background: var(--glass); margin: 3.5rem auto 2.3rem auto; border-radius: 23px; box-shadow: 0 3px 36px #bc13fe14; padding: 2.25rem 1.25rem 2.25rem 1.6rem; border: 1.5px solid var(--border); }} .arch-head {{ font-size: 1.3em; color: var(--neon-blue); font-weight: 700; margin-bottom: 2.3rem; letter-spacing: 0.04em; text-align: center; }} .arch-list {{ display: flex; flex-wrap: wrap; justify-content: center; gap: 2.8rem; padding: 0.5em 0; font-size: 1.04em; color: #fff; }} .arch-item {{ min-width: 180px; flex: 1 1 210px; text-align: left; margin-bottom: 0.35em; padding-left: 0.5em; border-left: 4px solid var(--neon-purple); }} .quote-section {{ text-align: center; margin: 3.8rem 0 2.2rem 0; font-size: 1.38rem; color: var(--neon-blue); opacity: 0.96; font-family: 'Inter', 'Segoe UI', sans-serif; text-shadow: 0 4px 24px #00f3ff15; }} .footer {{ background: #171a25ee; padding: 2.3rem 1rem 1rem 1rem; color: #e2e8f0b9; font-size: 1rem; text-align: center; border-top: 1.5px solid var(--border); }} .footer strong {{color: var(--gold);}} .footer .separator {{color: var(--neon-blue); padding: 0 0.6em;}} .author {{ color: var(--neon-purple); font-weight: 700; }} @media (max-width: 710px) {{ .arch-list {{flex-direction: column;gap:1.3em;}} }} @media (max-width: 540px) {{ .hero-title {{font-size: 2.05rem;}} .hero-subtitle {{font-size: 1.02rem;}} .arch-section {{padding: 1.3em 0.55em;}} }} </style> <div class="feature-card">
<svg viewBox="0 0 52 52" fill="none">
<circle cx="26" cy="26" r="22" stroke="#00f3ff" stroke-width="3" fill="#bc13fe22"/>
<path d="M14,24 Q26,6 38,24" stroke="#fde047" stroke-width="2.5" fill="none"/>
<ellipse cx="26" cy="29" rx="10" ry="18" stroke="#03ffe6" stroke-width="2" fill="none"/>
<circle cx="26" cy="28.5" r="3.8" fill="#00f3ffe7"/>
</svg>
<div class="feature-title">Guardian AI <small>[10⁻¹⁵s Tracking]</small></div>
<div class="feature-desc">
Real-time femtosecond-latency fingerprinting instantly detects threats at the physical transport layer. Isolates anomalies moving faster than software monitoring.
</div>
<div class="feature-spec">
Femtosecond precision · AI physical-layer defense
</div>
</div>
<div class="feature-card">
<svg viewBox="0 0 52 52" fill="none">
<path d="M26 4L4 26L26 48L48 26L26 4Z" fill="#bc13fe" fill-opacity="0.25"/>
<path d="M26 10L10 26L26 42L42 26L26 10Z" stroke="#00f3ff" stroke-width="2.5"/>
<circle cx="26" cy="26" r="6" fill="#fde047"/>
</svg>
<div class="feature-title">Amorphous Scramble <small>[PCM Shift]</small></div>
<div class="feature-desc">
Physical logic destruction via integrated thermal triggers. Transforms compromised chips into blank slate glass upon hardware intrusion.
</div>
<div class="feature-spec">
Atomic-level data security · Phase-change material transition
</div>
</div>
<div class="feature-card">
<svg viewBox="0 0 52 52" fill="none">
<rect x="16" y="4" width="20" height="44" rx="10" fill="#fde047" fill-opacity="0.2"/>
<circle cx="26" cy="26" r="12" fill="#00f3ff" fill-opacity="0.2"/>
<path d="M26 14L26 38" stroke="#bc13fe" stroke-width="4" stroke-linecap="round"/>
<circle cx="26" cy="14" r="4" fill="#fde047"/>
<circle cx="26" cy="38" r="4" fill="#fde047"/>
</svg>
<div class="feature-title">C-14 Power Guard <small>[3.3V Stable]</small></div>
<div class="feature-desc">
Atomic-decay power stabilization for consistent current over 50 years—defensive logic array protection and sovereign uptime without external dependency.
</div>
<div class="feature-spec">
Atomic-level power stabilization · Sovereign uptime
</div>
</div>
</div>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px;">
<div class="video-frame">
<div class="video-label">CORE_SIM_01.MP4 // PHOTONIC_FLOW</div>
<video controls autoplay loop muted playsinline style="width: 100%; display: block;">
<source src="femex_simulation.mp4" type="video/mp4">
</video>
</div>
<div class="video-frame">
<div class="video-label">LOGIC_SIM_02.MP4 // GUARDIAN_ACTIVE</div>
<video controls autoplay loop muted playsinline style="width: 100%; display: block;">
<source src="femex_diagnostics.mp4" type="video/mp4">
</video>
</div>
</div>
<p style="margin-top: 30px; color: #94a3b8; font-size: 0.85rem; text-align: center; font-family: monospace;">
<span style="color: var(--neon-blue);">●</span> AUTHENTICATED: ADEKOYA JOTHAM <span style="margin-left: 20px; color: var(--neon-purple);">●</span> ENCRYPTION: SOVEREIGN-SHARED
</p>
65nm photonic
Zero-trust hardware architecture
Sovereign Grade — Active
50 years
GDSII System Master Finalized
Lagos, Nigeria
Silicon Catalyst, NVIDIA Inception Program
Adekoya Jotham
For decades, we have been told that heat is an inevitable byproduct of power, and that security is a software patch away. At AntiNex TechX, we refuse those limitations.
By merging the raw physics of 3D Photonic Crystals with the independent pulse of the C-14 Power Guard, we have built more than a chip. We have built an Omninexus—a system that does not just process data, but protects it with the very laws of the universe.
This is the transition from dependence to Sovereignty. Out with the old silicon; in with the speed of light.
<div class="signature">
<p>Jotham Adekoya</p>
<span>Lead Architect & Founder</span>
</div>
</div>
with open('index.html', 'w') as f: f.write(html_content)
print('index.html regenerated successfully with updated navigation!')
!pip install Pillow
from PIL import Image, ImageDraw, ImageFont
def create_favicon(text, filename='favicon.ico', size=(32, 32)): # Create a blank image with a transparent background img = Image.new('RGBA', size, (0, 0, 0, 0)) draw = ImageDraw.Draw(img)
# Try to load a font, otherwise use default
try:
# You might need to specify a path to a font file on your system or Colab environment
# For Colab, a common font path might be '/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf'
# Or, just use a default font if loading fails
font = ImageFont.truetype("arial.ttf", 20) # This will likely fail in Colab
except IOError:
font = ImageFont.load_default()
# Calculate text size and position to center it
bbox = draw.textbbox((0,0), text, font=font)
text_width = bbox[2] - bbox[0]
text_height = bbox[3] - bbox[1]
x = (size[0] - text_width) / 2
y = (size[1] - text_height) / 2
# Draw the text in gold color
draw.text((x, y), text, font=font, fill="#FDE047")
# Save as ICO file
img.save(filename, format='ICO')
print(f'Favicon saved as {filename}')
shutil.copy('/content/AntiNex TechX.png', 'AntiNex TechX.png') # Copy the file to the current directory for easier access
from IPython.display import HTML
for filename in ['about.html', 'contact.html']: try: with open(filename, 'x') as f: f.write(f"""\n<html lang="en">\n\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>AntiNex TechX | {filename.split('.')[0].capitalize()}</title>\n <link rel="icon" type="image/png" href="AntiNex TechX.png">\n <link href="https://fonts.googleapis.com/css2?family=Inter:wght@500;700&display=swap\" rel="stylesheet">\n <style>\n body {{ background: #020617; color: #e2e8f0; font-family: 'Inter', sans-serif; text-align: center; padding-top: 100px; }}\n h1 {{ color: #00f3ff; }}\n nav {{ position: fixed; top: 0; left: 0; width: 100%; background: rgba(2, 6, 23, 0.9); padding: 10px 0; text-align: center; z-index: 1000; }}\n nav a {{ color: #00f3ff; margin: 0 15px; text-decoration: none; font-weight: bold; }}\n nav a:hover {{ color: #fde047; }}\n </style>\n\n\n
\n <a href="index.html">Home\n <a href="about.html">About\n <a href="contact.html">Contact\n <a href="simulations.html">Visual Simulations\n \n \nContent for the {filename.split('.')[0].capitalize()} page.
\n\n""") print(f'{filename} created successfully!') except FileExistsError: print(f'{filename} already exists, skipping creation.')import random
star_html = '' for i in range(20): # Generate 20 stars for a rich effect size = random.randint(2, 5) # Star size between 2px and 5px x_start = random.randint(0, 100) # Start x-position in vh y_start = random.randint(0, 100) # Start y-position in vw x_end = random.randint(0, 100) # End x-position y_end = random.randint(0, 100) # End y-position delay = random.uniform(0, 8) # Animation delay for staggered effect duration = random.uniform(8, 16) # Animation duration star_html += f'''
'''html_content = f'''
<title>AntiNex TechX | Sovereign Photonic Systems</title> <style> :root {{ --neon-blue: #00f3ff; --neon-purple: #bc13fe; --gold: #fde047; --bg-dark: #020617; --glass: rgba(15, 23, 42, 0.8); --border: rgba(188, 19, 254, 0.31); --gradient: linear-gradient(90deg, #00f3ffb2 0%, #bc13feb2 100%); }} body {{ background: radial-gradient(ellipse at 30% 10%, #073551 0%, #020617 60%) no-repeat fixed; color: #e2e8f0; font-family: 'Inter', 'Segoe UI', sans-serif; margin: 0; padding: 0; overflow-x: hidden; min-height: 100vh; }} .animated-bg {{ position: fixed; z-index: 0; width: 100vw; height: 100vh; overflow: hidden; pointer-events: none; }} .blob {{ position: absolute; border-radius: 50%; opacity: 0.5; filter: blur(40px); animation: float 16s ease-in-out infinite alternate; }} .blob1 {{left: 10vw;top: 10vh;width: 350px;height: 320px;background: var(--neon-blue);}} .blob2 {{right: 10vw;bottom: 5vh;width: 320px;height: 320px;background: var(--neon-purple);animation-delay: 6s;}} .blob3 {{left: 40vw;bottom: 0vw;width: 180px;height: 140px;background: var(--gold);opacity: 0.28;animation-delay: 3s;}} @keyframes float {{ to {{ transform: translateY(-60px) scale(1.1); }} }} /* Star Field CSS for energetic background */ .star-field {{ position: fixed; /* Use fixed for full viewport coverage */ top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; pointer-events: none; z-index: 0; /* Ensure stars are behind content */ }} .star {{ position: absolute; background: linear-gradient(to bottom right, var(--neon-blue), var(--neon-purple), var(--gold)); border-radius: 50%; opacity: 0; animation: move-and-twinkle var(--animation-duration) linear infinite; /* Use CSS custom property for duration */ box-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-purple), 0 0 15px var(--gold); }} @keyframes move-and-twinkle {{ 0% {{ transform: translate(var(--x-start), var(--y-start)) scale(0.2); opacity: 0; }} 10% {{ opacity: 0.8; transform: scale(0.8); }} 50% {{ opacity: 1; transform: scale(1); }} 90% {{ opacity: 0.8; transform: scale(0.8); }} 100% {{ transform: translate(var(--x-end), var(--y-end)) scale(0.2); opacity: 0; }} }} .hero {{ z-index: 1; position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 4rem 1rem 2rem 1rem; }} .hero-logo {{ width: 110px; height: 110px; margin: 0 auto 32px auto; display: block; filter: drop-shadow(0 0 8px var(--neon-purple)); animation: pulse-logo 2.1s infinite alternate ease-in-out; }} @keyframes pulse-logo {{ 0% {{filter: drop-shadow(0 0 7px var(--neon-purple));}} 100% {{filter: drop-shadow(0 0 19px var(--neon-blue));}} }} .hero-title {{ font-size: 3rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; }} .hero-subtitle {{ font-size: 1.35rem; margin-bottom: 1.8rem; color: var(--gold); letter-spacing: .05em; font-weight: 500; text-shadow: 0 2px 16px #ffd92c14; }} .status-badge {{ background: var(--gradient); color: #001413; display: inline-block; border-radius: 13px; padding: 0.2em 1.2em; font-weight: 700; font-size: 1em; margin-top: 1.2em; box-shadow: 0 1px 10px 0 var(--neon-blue); user-select: none; border: 1px solid var(--border); }} .features-section {{ margin-top: 2.5rem; position: relative; z-index: 2; padding: 2rem 0; background: linear-gradient(0deg, #14182d 0%, transparent 94%); border-top: 1px solid #26253a90; box-shadow: 0 -3px 24px #19e5e916; }} .features-grid {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 2.3rem; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }} .feature-card {{ background: var(--glass); border-radius: 18px; border: 1.5px solid var(--border); box-shadow: 0 3px 40px 0 #00f3ff15; padding: 2.5rem 1.7rem 2rem 1.7rem; text-align: left; position: relative; min-height: 280px; overflow: hidden; }} .feature-card svg {{ width: 50px; height: 50px; float: right; margin-left: 20px; margin-bottom: 16px; filter:drop-shadow(0 0 12px #bc13fe44); }} .feature-title {{ font-size: 1.2rem; font-weight: 700; color: var(--neon-purple); margin-bottom: 0.3rem; }} .feature-desc {{ color: #e7e7f3; font-size: 0.99rem; line-height: 1.6; margin-bottom: 0.4rem; }} .feature-spec {{ font-size: 0.9em; color: var(--gold); font-style: italic; }} /* Vault Container CSS */ .vault-container {{ padding: 100px 20px; max-width: 1000px; margin: 50px auto; background: rgba(15, 23, 42, 0.7); border-radius: 18px; border: 1.5px solid rgba(188, 19, 254, 0.31); box-shadow: 0 3px 40px 0 rgba(0, 243, 255, 0.15); backdrop-filter: blur(5px); }} .video-frame {{ position: relative; padding-bottom: 56.25%; /* 16:9 Aspect Ratio */ height: 0; overflow: hidden; margin-bottom: 20px; background: #000; /* Black background for video */ border-radius: 8px; }} .video-frame video {{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; }} .video-label {{ position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, 0.7); color: var(--neon-blue); padding: 5px 10px; font-family: 'Inter', monospace; font-size: 0.8em; border-radius: 5px; z-index: 10; }} .arch-section {{ max-width: 900px; background: var(--glass); margin: 3.5rem auto 2.3rem auto; border-radius: 23px; box-shadow: 0 3px 36px #bc13fe14; padding: 2.25rem 1.25rem 2.25rem 1.6rem; border: 1.5px solid var(--border); }} .arch-head {{ font-size: 1.3em; color: var(--neon-blue); font-weight: 700; margin-bottom: 2.3rem; letter-spacing: 0.04em; text-align: center; }} .arch-list {{ display: flex; flex-wrap: wrap; justify-content: center; gap: 2.8rem; padding: 0.5em 0; font-size: 1.04em; color: #fff; }} .arch-item {{ min-width: 180px; flex: 1 1 210px; text-align: left; margin-bottom: 0.35em; padding-left: 0.5em; border-left: 4px solid var(--neon-purple); }} .quote-section {{ text-align: center; margin: 3.8rem 0 2.2rem 0; font-size: 1.38rem; color: var(--neon-blue); opacity: 0.96; font-family: 'Inter', 'Segoe UI', sans-serif; text-shadow: 0 4px 24px #00f3ff15; }} .footer {{ background: #171a25ee; padding: 2.3rem 1rem 1rem 1rem; color: #e2e8f0b9; font-size: 1rem; text-align: center; border-top: 1.5px solid var(--border); }} .footer strong {{color: var(--gold);}} .footer .separator {{color: var(--neon-blue); padding: 0 0.6em;}} .author {{ color: var(--neon-purple); font-weight: 700; }} @media (max-width: 710px) {{ .arch-list {{flex-direction: column;gap:1.3em;}} }} @media (max-width: 540px) {{ .hero-title {{font-size: 2.05rem;}} .hero-subtitle {{font-size: 1.02rem;}} .arch-section {{padding: 1.3em 0.55em;}} }} </style> <div class="feature-card">
<svg viewBox="0 0 52 52" fill="none">
<circle cx="26" cy="26" r="22" stroke="#00f3ff" stroke-width="3" fill="#bc13fe22"/>
<path d="M14,24 Q26,6 38,24" stroke="#fde047" stroke-width="2.5" fill="none"/>
<ellipse cx="26" cy="29" rx="10" ry="18" stroke="#03ffe6" stroke-width="2" fill="none"/>
<circle cx="26" cy="28.5" r="3.8" fill="#00f3ffe7"/>
</svg>
<div class="feature-title">Guardian AI <small>[10⁻¹⁵s Tracking]</small></div>
<div class="feature-desc">
Real-time femtosecond-latency fingerprinting instantly detects threats at the physical transport layer. Isolates anomalies moving faster than software monitoring.
</div>
<div class="feature-spec">
Femtosecond precision · AI physical-layer defense
</div>
</div>
<div class="feature-card">
<svg viewBox="0 0 52 52" fill="none">
<path d="M26 4L4 26L26 48L48 26L26 4Z" fill="#bc13fe" fill-opacity="0.25"/>
<path d="M26 10L10 26L26 42L42 26L26 10Z" stroke="#00f3ff" stroke-width="2.5"/>
<circle cx="26" cy="26" r="6" fill="#fde047"/>
</svg>
<div class="feature-title">Amorphous Scramble <small>[PCM Shift]</small></div>
<div class="feature-desc">
Physical logic destruction via integrated thermal triggers. Transforms compromised chips into blank slate glass upon hardware intrusion.
</div>
<div class="feature-spec">
Atomic-level data security · Phase-change material transition
</div>
</div>
<div class="feature-card">
<svg viewBox="0 0 52 52" fill="none">
<rect x="16" y="4" width="20" height="44" rx="10" fill="#fde047" fill-opacity="0.2"/>
<circle cx="26" cy="26" r="12" fill="#00f3ff" fill-opacity="0.2"/>
<path d="M26 14L26 38" stroke="#bc13fe" stroke-width="4" stroke-linecap="round"/>
<circle cx="26" cy="14" r="4" fill="#fde047"/>
<circle cx="26" cy="38" r="4" fill="#fde047"/>
</svg>
<div class="feature-title">C-14 Power Guard <small>[3.3V Stable]</small></div>
<div class="feature-desc">
Atomic-decay power stabilization for consistent current over 50 years—defensive logic array protection and sovereign uptime without external dependency.
</div>
<div class="feature-spec">
Atomic-level power stabilization · Sovereign uptime
</div>
</div>
</div>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px;">
<div class="video-frame">
<div class="video-label">CORE_SIM_01.MP4 // PHOTONIC_FLOW</div>
<video controls autoplay loop muted playsinline style="width: 100%; display: block;">
<source src="femex_simulation.mp4" type="video/mp4">
</video>
</div>
<div class="video-frame">
<div class="video-label">LOGIC_SIM_02.MP4 // GUARDIAN_ACTIVE</div>
<video controls autoplay loop muted playsinline style="width: 100%; display: block;">
<source src="femex_diagnostics.mp4" type="video/mp4">
</video>
</div>
</div>
<p style="margin-top: 30px; color: #94a3b8; font-size: 0.85rem; text-align: center; font-family: monospace;">
<span style="color: var(--neon-blue);">●</span> AUTHENTICATED: ADEKOYA JOTHAM <span style="margin-left: 20px; color: var(--neon-purple);">●</span> ENCRYPTION: SOVEREIGN-SHARED
</p>
65nm photonic
Zero-trust hardware architecture
Sovereign Grade — Active
50 years
GDSII System Master Finalized
Lagos, Nigeria
Silicon Catalyst, NVIDIA Inception Program
Adekoya Jotham
For decades, we have been told that heat is an inevitable byproduct of power, and that security is a software patch away. At AntiNex TechX, we refuse those limitations.
By merging the raw physics of 3D Photonic Crystals with the independent pulse of the C-14 Power Guard, we have built more than a chip. We have built an Omninexus—a system that does not just process data, but protects it with the very laws of the universe.
This is the transition from dependence to Sovereignty. Out with the old silicon; in with the speed of light.
<div class="signature">
<p>Jotham Adekoya</p>
<span>Lead Architect & Founder</span>
</div>
</div>
with open('index.html', 'w') as f: f.write(html_content)
print('about.html and contact.html created/verified and index.html regenerated successfully with updated navigation!')from IPython.display import HTML
with open('index.html', 'r') as f: display(HTML(f.read())) import random
with open('index.html', 'r') as f: html_content = f.read()
html_content = html_content.replace( ''' \n
star_html = ''
canvas_element = ''' \n''' html_content = html_content.replace('', '\n' + canvas_element)
import re
old_css_patterns = [ r' .animated-bg {.?}\n', r' .blob {.?}\n', r' .blob1 {.?}\n', r' .blob2 {.?}\n', r' .blob3 {.?}\n', r' @keyframes float {.?}\n', r' /* Star Field CSS for energetic background */\n .star-field {.?}\n', r' .star {.?}\n', r' @keyframes move-and-twinkle {.*?}\n' ]
for pattern in old_css_patterns: html_content = re.sub(pattern, '', html_content, flags=re.DOTALL)
canvas_css = ''' #photonic-canvas {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: -1; /* Ensure it's behind other content */\n background-color: transparent;\n }\n'''
html_content = html_content.replace(' </style>', canvas_css + ' </style>')
javascript_code = '''\n<script>\n const canvas = document.getElementById('photonic-canvas');\n const ctx = canvas.getContext('2d');\n let particles = [];\n let mouse = { x: undefined, y: undefined };\n
// Resize canvas when window resizes\n function resizeCanvas() {\n canvas.width = window.innerWidth;\n canvas.height = window.innerHeight;\n }\n window.addEventListener('resize', resizeCanvas);\n resizeCanvas(); // Initial size setup\n
// Mouse interaction\n window.addEventListener('mousemove', (event) => {\n mouse.x = event.x;\n mouse.y = event.y;\n });\n
// Particle class\n class Particle {\n constructor(x, y) {\n this.x = x;\n this.y = y;\n this.size = Math.random() * 2 + 1; // 1 to 3 pixels\n this.speedX = Math.random() * 0.5 - 0.25; // -0.25 to 0.25\n this.speedY = Math.random() * 0.5 - 0.25;\n this.color = 'rgba(0, 243, 255, ' + (Math.random() * 0.5 + 0.3) + ')'; // Photonic Cyan with varying alpha\n this.history = []; // To store previous positions for trails\n this.maxHistory = Math.floor(Math.random() * 30) + 10; // Trail length 10-40\n }\n
draw() {\n ctx.fillStyle = this.color;\n ctx.beginPath();\n ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2);\n ctx.fill();\n }\n
update() {\n // Store current position in history\n this.history.push({ x: this.x, y: this.y });\n if (this.history.length > this.maxHistory) {\n this.history.shift();\n }\n
// Mouse repulsion\n const distance = Math.sqrt((this.x - mouse.x)**2 + (this.y - mouse.y)**2);\n const repulsionRadius = 150;\n const repulsionForce = 0.05;\n
if (distance < repulsionRadius) {\n const angle = Math.atan2(this.y - mouse.y, this.x - mouse.x);\n this.speedX += Math.cos(angle) * repulsionForce;\n this.speedY += Math.sin(angle) * repulsionForce;\n }\n
this.x += this.speedX;\n this.y += this.speedY;\n
// Boundary conditions (wrap around)\n if (this.x < 0) this.x = canvas.width;\n if (this.x > canvas.width) this.x = 0;\n if (this.y < 0) this.y = canvas.height;\n if (this.y > canvas.height) this.y = 0;\n }\n
drawTrail() {\n for (let i = 0; i < this.history.length; i++) {\n const pos = this.history[i];\n const alpha = (i / this.history.length) * 0.5; // Fade out trail\n ctx.fillStyle = rgba(0, 243, 255, ${alpha}); // Photonic Cyan trail\n ctx.beginPath();\n ctx.arc(pos.x, pos.y, this.size * (i / this.history.length), 0, Math.PI * 2); // Smaller at tail\n ctx.fill();\n }\n }\n }\n
// Initialize particles\n function initParticles() {\n particles = [];\n const numberOfParticles = (canvas.width * canvas.height) / 9000; // Adjust density based on screen size\n for (let i = 0; i < numberOfParticles; i++) {\n particles.push(new Particle(Math.random() * canvas.width, Math.random() * canvas.height));\n }\n }\n
// Animation loop\n function animate() {\n ctx.clearRect(0, 0, canvas.width, canvas.height); // Clear entire canvas\n ctx.fillStyle = 'rgba(0, 6, 23, 0.05)'; // Subtle fade effect for trails\n ctx.fillRect(0, 0, canvas.width, canvas.height); // Creates a fading trail effect without full clearRect\n
for (let i = 0; i < particles.length; i++) {\n particles[i].update();\n particles[i].drawTrail();\n particles[i].draw();\n }\n requestAnimationFrame(animate);\n }\n
initParticles();\n animate();\n</script>\n'''
html_content = html_content.replace('', javascript_code + '\n')
with open('index.html', 'w') as f: f.write(html_content)
print('index.html updated successfully with interactive photonic background.')from IPython.display import HTML
with open('index.html', 'r') as f: display(HTML(f.read()))import re
with open('index.html', 'r') as f: html_content = f.read()
three_js_cdn = '<script async src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>\n' html_content = html_content.replace('', '\n ' + three_js_cdn)
I'll add it within a new section for the Sextabyte Index, above the existing feature cards for clarity.
sextabyte_3d_section = '''
Explore the 3D architecture of the Sextabyte Index. Scroll to zoom into spectral channels.
features_section_start = html_content.find('
canvas_3d_css = ''' .sextabyte-3d-section { position: relative; width: 100%; height: 700px; /* Adjust height as needed / margin: 4rem auto; background: rgba(15, 23, 42, 0.7); / Glassmorphism background / border-radius: 18px; border: 1.5px solid rgba(188, 19, 254, 0.31); box-shadow: 0 3px 40px 0 #00f3ff15; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; padding: 20px; box-sizing: border-box; backdrop-filter: blur(5px); } .sextabyte-3d-section .section-title { font-size: 2.2rem; color: var(--neon-blue); margin-bottom: 1rem; text-align: center; z-index: 2; / Above canvas / } .sextabyte-3d-section .section-description { font-size: 1.1rem; color: #e2e8f0; margin-bottom: 2rem; text-align: center; max-width: 800px; z-index: 2; / Above canvas / } #sextabyte-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; / Below text, above background */ } .loading-indicator { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--gold); font-size: 1.5rem; z-index: 2; } @media (max-width: 768px) { .sextabyte-3d-section { height: 500px; } .sextabyte-3d-section .section-title { font-size: 1.8rem; } .sextabyte-3d-section .section-description { font-size: 0.9rem; } } '''
html_content = html_content.replace(' </style>', canvas_3d_css + ' </style>')
three_js_script = '''
<script> // Ensure Three.js is loaded before executing this script window.addEventListener('load', () => { if (typeof THREE === 'undefined') { console.error('Three.js not loaded. Please check CDN link.'); return; } const loadingIndicator = document.getElementById('sextabyte-loading-indicator'); const canvas = document.getElementById('sextabyte-canvas'); if (!canvas) { console.error('Sextabyte canvas not found.'); return; } let scene, camera, renderer, model; function init3D() { // Scene setup scene = new THREE.Scene(); scene.background = null; // Make background transparent to show CSS background // Camera setup camera = new THREE.PerspectiveCamera(75, canvas.clientWidth / canvas.clientHeight, 0.1, 1000); camera.position.z = 5; // Initial camera position // Renderer setup renderer = new THREE.WebGLRenderer({ canvas: canvas, alpha: true, antialias: true }); renderer.setSize(canvas.clientWidth, canvas.clientHeight); renderer.setPixelRatio(window.devicePixelRatio); renderer.setClearColor(0x000000, 0); // Transparent background for renderer // Add a conceptual 3D model of the photonic lattice (placeholder) // Developer Note: Replace this with an actual loaded 3D model (e.g., GLTF, OBJ) or a more complex procedural generation. // For now, a simple wireframe cube or sphere can represent the lattice. const geometry = new THREE.IcosahedronGeometry(2, 1); // An appealing geometric shape const material = new THREE.MeshBasicMaterial({ color: 0x00f3ff, wireframe: true }); // Photonic Cyan wireframe model = new THREE.Mesh(geometry, material); scene.add(model); // Lighting (optional, for non-basic materials) const ambientLight = new THREE.AmbientLight(0x404040); // Soft white light scene.add(ambientLight); const directionalLight = new THREE.DirectionalLight(0xffffff, 0.5); directionalLight.position.set(1, 1, 1).normalize(); scene.add(directionalLight); loadingIndicator.style.display = 'none'; // Hide loading indicator once initialized } function animate3D() { requestAnimationFrame(animate3D); // Basic animation for the model if (model) { model.rotation.x += 0.001; model.rotation.y += 0.002; } renderer.render(scene, camera); } function onWindowResize3D() { camera.aspect = canvas.clientWidth / canvas.clientHeight; camera.updateProjectionMatrix(); renderer.setSize(canvas.clientWidth, canvas.clientHeight); } window.addEventListener('resize', onWindowResize3D, false); // Developer Instruction: Implement scroll-based interaction for camera zoom and position // This will simulate moving through spectral channels. // Example: window.addEventListener('wheel', (event) => { /* adjust camera.position.z */ }); // You'll want to map scroll input to camera movement within the 3D space. // Developer Instruction: Highlight or animate specific 'spectral channels' or data pathways // This could involve changing material colors, adding glowing effects (e.g., using post-processing shaders), // or dynamically showing/hiding parts of the 3D model based on the zoom level or 'channel' selected. // Three.js offers various ways to achieve this, including object selection, material manipulation, or custom shaders. // Developer Instruction: Ensure the 3D visualization complements existing UI elements. // The canvas is set to transparent, allowing the section's glassmorphism background to show through. // Adjust camera parameters, model scale, and overall aesthetic to blend with the website's visual identity. // Consider using depth-of-field effects or subtle particle systems within the 3D scene to enhance the photonic feel. init3D(); animate3D(); }); </script>'''
html_content = html_content.replace('', three_js_script + '\n')
nav_link_to_3d = 'Sextabyte 3D' html_content = html_content.replace( 'Visual Simulations', 'Visual Simulations\n ' + nav_link_to_3d )
with open('index.html', 'w') as f: f.write(html_content)
print('index.html updated successfully with Three.js integration and Sextabyte 3D section.') from IPython.display import HTML
with open('index.html', 'r') as f: display(HTML(f.read()))import re
with open('index.html', 'r') as f: html_content = f.read()
security_vault_html = '''
Simulate a physical layer attack and observe the Guardian AI's femtosecond response and Amorphous Scramble Wall activation.
<div class="terminal-display">
<div class="terminal-line normal-state" id="latency-status">LOGIC INTEGRITY: SECURE</div>
<canvas id="latency-graph-canvas"></canvas>
<div class="amorphous-scramble-wall" id="scramble-wall-animation">
<div class="grid-container"></div>
</div>
</div>
<button id="simulate-attack-btn" class="simulate-btn">Simulate Attack</button>
match = re.search(r'(
security_vault_css = ''' .security-vault-section { max-width: 1000px; margin: 4rem auto; padding: 2.5rem; text-align: center; position: relative; transition: border-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out; } .security-vault-section.attack-state { border-color: rgba(255, 0, 0, 0.7) !important; box-shadow: 0 0 40px 0 rgba(255, 0, 0, 0.4) !important; } .security-vault-section .section-title { font-size: 2.2rem; color: var(--neon-purple); margin-bottom: 1rem; } .security-vault-section .section-description { font-size: 1.1rem; color: #e2e8f0; margin-bottom: 2rem; } .terminal-display { background: rgba(0, 0, 0, 0.6); border: 1px solid var(--neon-blue); border-radius: 8px; padding: 1.5rem; margin-bottom: 2rem; font-family: 'Courier New', monospace; text-align: left; position: relative; overflow: hidden; } .terminal-line { font-size: 1.1rem; white-space: pre-wrap; min-height: 1.5em; /* Ensure some height for text / transition: color 0.3s ease-in-out; } .terminal-line.normal-state { color: var(--neon-blue); } .terminal-line.attack-state { color: red; text-shadow: 0 0 10px rgba(255, 0, 0, 0.7); } #latency-graph-canvas { width: 100%; height: 100px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(0, 243, 255, 0.2); margin-top: 1rem; display: none; / Hidden by default */ } .amorphous-scramble-wall { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.5s ease-in-out; pointer-events: none; } .amorphous-scramble-wall.active { opacity: 1; pointer-events: auto; } .grid-container { display: grid; grid-template-columns: repeat(20, 1fr); grid-template-rows: repeat(20, 1fr); width: 90%; height: 90%; background-color: transparent; border: 1px solid rgba(0, 243, 255, 0.1); gap: 1px; } .grid-cell { background-color: var(--neon-blue); opacity: 0.2; transition: background-color 0.1s linear, opacity 0.1s linear; } .grid-cell.scrambled { background-color: red; opacity: 0.8; } .simulate-btn { background: var(--gradient); color: var(--bg-dark); border: none; border-radius: 25px; padding: 0.8em 2em; font-size: 1.1em; font-weight: 700; cursor: pointer; margin-top: 1.5rem; box-shadow: 0 0 15px rgba(0, 243, 255, 0.5); transition: all 0.3s ease-in-out; } .simulate-btn:hover { box-shadow: 0 0 25px var(--neon-gold), 0 0 50px var(--neon-purple); transform: translateY(-2px); } .simulate-btn:active { transform: translateY(0); box-shadow: 0 0 10px rgba(0, 243, 255, 0.3); } @media (max-width: 768px) { .security-vault-section { padding: 1.5rem; } .security-vault-section .section-title { font-size: 1.8rem; } .terminal-line { font-size: 0.9rem; } .simulate-btn { padding: 0.6em 1.5em; font-size: 1em; } .grid-container { grid-template-columns: repeat(15, 1fr); grid-template-rows: repeat(15, 1fr); } } '
html_content = html_content.replace(' </style>', security_vault_css + ' </style>')
security_vault_js = '''
<script> document.addEventListener('DOMContentLoaded', () => { const simulateAttackBtn = document.getElementById('simulate-attack-btn'); const securityVaultSection = document.getElementById('guardian-ai-simulation'); const latencyStatusDiv = document.getElementById('latency-status'); const latencyGraphCanvas = document.getElementById('latency-graph-canvas'); const scrambleWallAnimation = document.getElementById('scramble-wall-animation'); const gridContainer = scrambleWallAnimation.querySelector('.grid-container'); const graphCtx = latencyGraphCanvas.getContext('2d'); let attackTimeout = null; // Initialize the grid for Amorphous Scramble Wall function initScrambleGrid() { gridContainer.innerHTML = ''; for (let i = 0; i < 400; i++) { // 20x20 grid const cell = document.createElement('div'); cell.classList.add('grid-cell'); gridContainer.appendChild(cell); } } function drawLatencyGraph(data) { latencyGraphCanvas.style.display = 'block'; const width = latencyGraphCanvas.width = latencyGraphCanvas.clientWidth; const height = latencyGraphCanvas.height = latencyGraphCanvas.clientHeight; graphCtx.clearRect(0, 0, width, height); graphCtx.strokeStyle = 'var(--neon-blue)'; graphCtx.lineWidth = 2; graphCtx.beginPath(); graphCtx.moveTo(0, height - (data[0] / 100) * height); // Normalize data to height for (let i = 1; i < data.length; i++) { const x = (i / (data.length - 1)) * width; graphCtx.lineTo(x, height - (data[i] / 100) * height); } graphCtx.stroke(); // Draw red spike if attack is active if (securityVaultSection.classList.contains('attack-state')) { graphCtx.strokeStyle = 'red'; graphCtx.lineWidth = 3; graphCtx.beginPath(); // Find the peak of the spike for drawing const spikeIndex = Math.floor(data.length * 0.7); // Simulate spike at 70% of the graph const spikeHeight = height - (data[spikeIndex] / 100) * height; graphCtx.moveTo((spikeIndex / (data.length - 1)) * width - 5, height); graphCtx.lineTo((spikeIndex / (data.length - 1)) * width, spikeHeight - 10); graphCtx.lineTo((spikeIndex / (data.length - 1)) * width + 5, height); graphCtx.stroke(); } } function animateLatencyGraph() { let data = Array(50).fill(20); // Base normal latency if (securityVaultSection.classList.contains('attack-state')) { // Simulate a spike for (let i = 0; i < 50; i++) { if (i > 30 && i < 40) { data[i] = 20 + Math.sin((i - 30) * Math.PI / 10) * 70; // Smooth spike up to 90 } else if (i >= 40) { data[i] = 20 + Math.random() * 10; // Slightly elevated after spike } } } drawLatencyGraph(data); requestAnimationFrame(animateLatencyGraph); } function triggerAmorphousScramble() { scrambleWallAnimation.classList.add('active'); const cells = gridContainer.children; Array.from(cells).forEach(cell => { cell.classList.remove('scrambled'); // Reset for new animation cell.style.backgroundColor = 'var(--neon-blue)'; cell.style.opacity = '0.2'; }); let scrambleCounter = 0; const scrambleInterval = setInterval(() => { if (scrambleCounter < cells.length * 2) { // Scramble multiple times const randomIndex = Math.floor(Math.random() * cells.length); const cell = cells[randomIndex]; if (cell) { cell.classList.add('scrambled'); cell.style.backgroundColor = `rgb(${Math.random() * 255}, ${Math.random() * 255}, ${Math.random() * 255})`; cell.style.opacity = (Math.random() * 0.5) + 0.5; // Opacity between 0.5 and 1 } } scrambleCounter++; if (scrambleCounter >= cells.length * 2 + 50) { // Keep scrambled for a bit longer clearInterval(scrambleInterval); } }, 20); // Faster scramble effect } function resetScrambleWall() { scrambleWallAnimation.classList.remove('active'); const cells = gridContainer.children; Array.from(cells).forEach(cell => { cell.classList.remove('scrambled'); cell.style.backgroundColor = 'var(--neon-blue)'; cell.style.opacity = '0.2'; }); } simulateAttackBtn.addEventListener('click', () => { if (attackTimeout) { clearTimeout(attackTimeout); attackTimeout = null; } // Trigger attack state securityVaultSection.classList.add('attack-state'); latencyStatusDiv.classList.add('attack-state'); latencyStatusDiv.textContent = 'LATENCY SPIKE DETECTED! INTRUSION IMMINENT!'; triggerAmorphousScramble(); // Revert after a delay attackTimeout = setTimeout(() => { securityVaultSection.classList.remove('attack-state'); latencyStatusDiv.classList.remove('attack-state'); latencyStatusDiv.textContent = 'LOGIC INTEGRITY: SECURE'; resetScrambleWall(); }, 5000); // Revert after 5 seconds }); // Initial setup initScrambleGrid(); animateLatencyGraph(); // Start the latency graph animation looping }); </script>'''
html_content = html_content.replace('', security_vault_js + '\n')
with open('index.html', 'w') as f: f.write(html_content)
print('index.html updated successfully with Guardian AI Security Terminal simulation.')
from IPython.display import HTML
with open('index.html', 'r') as f: display(HTML(f.read()))import re from IPython.display import HTML
with open('index.html', 'r') as f: html_content = f.read()
cell.style.backgroundColor = rgb(${Math.random() * 255}, ${Math.random() * 255}, ${Math.random() * 255});
cell.style.backgroundColor = 'rgb(' + Math.random() * 255 + ', ' + Math.random() * 255 + ', ' + Math.random() * 255 + ')';
security_vault_js = '''
<script id="security-vault-script"> document.addEventListener(\'DOMContentLoaded\', () => { const simulateAttackBtn = document.getElementById(\'simulate-attack-btn\'); const securityVaultSection = document.getElementById(\'guardian-ai-simulation\'); const latencyStatusDiv = document.getElementById(\'latency-status\'); const latencyGraphCanvas = document.getElementById(\'latency-graph-canvas\'); const scrambleWallAnimation = document.getElementById(\'scramble-wall-animation\'); const gridContainer = scrambleWallAnimation.querySelector(\' .grid-container\'); const graphCtx = latencyGraphCanvas.getContext(\'2d\'); let attackTimeout = null; // Initialize the grid for Amorphous Scramble Wall function initScrambleGrid() { gridContainer.innerHTML = \'\'; for (let i = 0; i < 400; i++) { // 20x20 grid const cell = document.createElement(\'div\'); cell.classList.add(\'grid-cell\'); gridContainer.appendChild(cell); } } function drawLatencyGraph(data) { latencyGraphCanvas.style.display = \'block\'; const width = latencyGraphCanvas.width = latencyGraphCanvas.clientWidth; const height = latencyGraphCanvas.height = latencyGraphCanvas.clientHeight; graphCtx.clearRect(0, 0, width, height); graphCtx.strokeStyle = \'var(--neon-blue)\'; graphCtx.lineWidth = 2; graphCtx.beginPath(); graphCtx.moveTo(0, height - (data[0] / 100) * height); // Normalize data to height for (let i = 1; i < data.length; i++) { const x = (i / (data.length - 1)) * width; graphCtx.lineTo(x, height - (data[i] / 100) * height); } graphCtx.stroke(); // Draw red spike if attack is active if (securityVaultSection.classList.contains(\'attack-state\')) { graphCtx.strokeStyle = \'red\'; graphCtx.lineWidth = 3; graphCtx.beginPath(); // Find the peak of the spike for drawing const spikeIndex = Math.floor(data.length * 0.7); // Simulate spike at 70% of the graph const spikeHeight = height - (data[spikeIndex] / 100) * height; graphCtx.moveTo((spikeIndex / (data.length - 1)) * width - 5, height); graphCtx.lineTo((spikeIndex / (data.length - 1)) * width, spikeHeight - 10); graphCtx.lineTo((spikeIndex / (data.length - 1)) * width + 5, height); graphCtx.stroke(); } } function animateLatencyGraph() { let data = Array(50).fill(20); // Base normal latency if (securityVaultSection.classList.contains(\'attack-state\')) { // Simulate a spike for (let i = 0; i < 50; i++) { if (i > 30 && i < 40) { data[i] = 20 + Math.sin((i - 30) * Math.PI / 10) * 70; // Smooth spike up to 90 } else if (i >= 40) { data[i] = 20 + Math.random() * 10; // Slightly elevated after spike } } } drawLatencyGraph(data); requestAnimationFrame(animateLatencyGraph); } function triggerAmorphousScramble() { scrambleWallAnimation.classList.add(\'active\'); const cells = gridContainer.children; Array.from(cells).forEach(cell => { cell.classList.remove(\'scrambled\'); // Reset for new animation cell.style.backgroundColor = \'var(--neon-blue)\'; cell.style.opacity = \'0.2\'; }); let scrambleCounter = 0; const scrambleInterval = setInterval(() => { if (scrambleCounter < cells.length * 2) { // Scramble multiple times const randomIndex = Math.floor(Math.random() * cells.length); const cell = cells[randomIndex]; if (cell) { cell.classList.add(\'scrambled\'); // FIX: Replaced template literal with string concatenation cell.style.backgroundColor = \'rgb(\' + Math.random() * 255 + \', \' + Math.random() * 255 + \', \' + Math.random() * 255 + \')\'; cell.style.opacity = (Math.random() * 0.5) + 0.5; // Opacity between 0.5 and 1 } } scrambleCounter++; if (scrambleCounter >= cells.length * 2 + 50) { // Keep scrambled for a bit longer clearInterval(scrambleInterval); } }, 20); // Faster scramble effect } function resetScrambleWall() { scrambleWallAnimation.classList.remove(\'active\'); const cells = gridContainer.children; Array.from(cells).forEach(cell => { cell.classList.remove(\'scrambled\'); cell.style.backgroundColor = \'var(--neon-blue)\'; cell.style.opacity = \'0.2\'; }); } simulateAttackBtn.addEventListener(\'click\', () => { if (attackTimeout) { clearTimeout(attackTimeout); attackTimeout = null; } // Trigger attack state securityVaultSection.classList.add(\'attack-state\'); latencyStatusDiv.classList.add(\'attack-state\'); latencyStatusDiv.textContent = \'LATENCY SPIKE DETECTED! INTRUSION IMMINENT!\'; triggerAmorphousScramble(); // Revert after a delay attackTimeout = setTimeout(() => { securityVaultSection.classList.remove(\'attack-state\'); latencyStatusDiv.classList.remove(\'attack-state\'); latencyStatusDiv.textContent = \'LOGIC INTEGRITY: SECURE\'; resetScrambleWall(); }, 5000); // Revert after 5 seconds }); // Initial setup initScrambleGrid(); animateLatencyGraph(); // Start the latency graph animation looping }); </script>'''
body_end_idx = html_content.rfind('')
script_id = "security-vault-script" script_start_tag = f"<script id="{script_id}">" script_end_tag = "</script>"
script_start_idx = html_content.find(script_start_tag) script_end_idx = -1
if script_start_idx != -1: # Find the closing </script> tag after the found opening script_start_tag script_end_idx = html_content.find(script_end_tag, script_start_idx + len(script_start_tag))
if script_end_idx != -1:
# Include the closing </script> tag in the removal
html_content = html_content[:script_start_idx] + html_content[script_end_idx + len(script_end_tag):]
print(f"Old script block with id='{script_id}' removed successfully.")
else:
print(f"Warning: Found script start tag for id='{script_id}', but no matching end tag.")
else: print(f"No existing script block with id='{script_id}' found.")
if body_end_idx != -1: html_content = html_content[:body_end_idx] + security_vault_js + '\n' print('Corrected security_vault_js script block inserted.') else: print("Error: tag not found, cannot insert script.")
with open('index.html', 'w') as f: f.write(html_content)
print('index.html updated successfully with Guardian AI Security Terminal simulation (JavaScript fix applied).')
with open('index.html', 'r') as f: display(HTML(f.read()))import re from IPython.display import HTML
with open('index.html', 'r') as f: html_content = f.read()
security_vault_html = '''
Simulate a physical layer attack and observe the Guardian AI's femtosecond response and Amorphous Scramble Wall activation.
<div class="terminal-display">
<div class="terminal-line normal-state" id="latency-status">LOGIC INTEGRITY: SECURE</div>
<canvas id="latency-graph-canvas"></canvas>
<div class="amorphous-scramble-wall" id="scramble-wall-animation">
<div class="grid-container"></div>
</div>
</div>
<button id="simulate-attack-btn" class="simulate-btn">Simulate Attack</button>
security_vault_css = ''' .security-vault-section { max-width: 1000px; margin: 4rem auto; padding: 2.5rem; text-align: center; position: relative; transition: border-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out; } .security-vault-section.attack-state { border-color: rgba(255, 0, 0, 0.7) !important; box-shadow: 0 0 40px 0 rgba(255, 0, 0, 0.4) !important; } .security-vault-section .section-title { font-size: 2.2rem; color: var(--neon-purple); margin-bottom: 1rem; } .security-vault-section .section-description { font-size: 1.1rem; color: #e2e8f0; margin-bottom: 2rem; } .terminal-display { background: rgba(0, 0, 0, 0.6); border: 1px solid var(--neon-blue); border-radius: 8px; padding: 1.5rem; margin-bottom: 2rem; font-family: 'Courier New', monospace; text-align: left; position: relative; overflow: hidden; } .terminal-line { font-size: 1.1rem; white-space: pre-wrap; min-height: 1.5em; /* Ensure some height for text / transition: color 0.3s ease-in-out; } .terminal-line.normal-state { color: var(--neon-blue); } .terminal-line.attack-state { color: red; text-shadow: 0 0 10px rgba(255, 0, 0, 0.7); } #latency-graph-canvas { width: 100%; height: 100px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(0, 243, 255, 0.2); margin-top: 1rem; display: none; / Hidden by default */ } .amorphous-scramble-wall { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.5s ease-in-out; pointer-events: none; } .amorphous-scramble-wall.active { opacity: 1; pointer-events: auto; } .grid-container { display: grid; grid-template-columns: repeat(20, 1fr); grid-template-rows: repeat(20, 1fr); width: 90%; height: 90%; background-color: transparent; border: 1px solid rgba(0, 243, 255, 0.1); gap: 1px; } .grid-cell { background-color: var(--neon-blue); opacity: 0.2; transition: background-color 0.1s linear, opacity 0.1s linear; } .grid-cell.scrambled { background-color: red; opacity: 0.8; } .simulate-btn { background: var(--gradient); color: var(--bg-dark); border: none; border-radius: 25px; padding: 0.8em 2em; font-size: 1.1em; font-weight: 700; cursor: pointer; margin-top: 1.5rem; box-shadow: 0 0 15px rgba(0, 243, 255, 0.5); transition: all 0.3s ease-in-out; } .simulate-btn:hover { box-shadow: 0 0 25px var(--neon-gold), 0 0 50px var(--neon-purple); transform: translateY(-2px); } .simulate-btn:active { transform: translateY(0); box-shadow: 0 0 10px rgba(0, 243, 255, 0.3); } @media (max-width: 768px) { .security-vault-section { padding: 1.5rem; } .security-vault-section .section-title { font-size: 1.8rem; } .terminal-line { font-size: 0.9rem; } .simulate-btn { padding: 0.6em 1.5em; font-size: 1em; } .grid-container { grid-template-columns: repeat(15, 1fr); grid-template-rows: repeat(15, 1fr); } } '''
security_vault_js = '''
<script id="security-vault-script"> document.addEventListener('DOMContentLoaded', () => { const simulateAttackBtn = document.getElementById('simulate-attack-btn'); const securityVaultSection = document.getElementById('guardian-ai-simulation'); const latencyStatusDiv = document.getElementById('latency-status'); const latencyGraphCanvas = document.getElementById('latency-graph-canvas'); const scrambleWallAnimation = document.getElementById('scramble-wall-animation'); const gridContainer = scrambleWallAnimation.querySelector('.grid-container'); const graphCtx = latencyGraphCanvas.getContext('2d'); let attackTimeout = null; // Initialize the grid for Amorphous Scramble Wall function initScrambleGrid() { gridContainer.innerHTML = ''; for (let i = 0; i < 400; i++) { // 20x20 grid const cell = document.createElement('div'); cell.classList.add('grid-cell'); gridContainer.appendChild(cell); } } function drawLatencyGraph(data) { latencyGraphCanvas.style.display = 'block'; const width = latencyGraphCanvas.width = latencyGraphCanvas.clientWidth; const height = latencyGraphCanvas.height = latencyGraphCanvas.clientHeight; graphCtx.clearRect(0, 0, width, height); graphCtx.strokeStyle = 'var(--neon-blue)'; graphCtx.lineWidth = 2; graphCtx.beginPath(); graphCtx.moveTo(0, height - (data[0] / 100) * height); // Normalize data to height for (let i = 1; i < data.length; i++) { const x = (i / (data.length - 1)) * width; graphCtx.lineTo(x, height - (data[i] / 100) * height); } graphCtx.stroke(); // Draw red spike if attack is active if (securityVaultSection.classList.contains('attack-state')) { graphCtx.strokeStyle = 'red'; graphCtx.lineWidth = 3; graphCtx.beginPath(); // Find the peak of the spike for drawing const spikeIndex = Math.floor(data.length * 0.7); // Simulate spike at 70% of the graph const spikeHeight = height - (data[spikeIndex] / 100) * height; graphCtx.moveTo((spikeIndex / (data.length - 1)) * width - 5, height); graphCtx.lineTo((spikeIndex / (data.length - 1)) * width, spikeHeight - 10); graphCtx.lineTo((spikeIndex / (data.length - 1)) * width + 5, height); graphCtx.stroke(); } } function animateLatencyGraph() { let data = Array(50).fill(20); // Base normal latency if (securityVaultSection.classList.contains('attack-state')) { // Simulate a spike for (let i = 0; i < 50; i++) { if (i > 30 && i < 40) { data[i] = 20 + Math.sin((i - 30) * Math.PI / 10) * 70; // Smooth spike up to 90 } else if (i >= 40) { data[i] = 20 + Math.random() * 10; // Slightly elevated after spike } } } drawLatencyGraph(data); requestAnimationFrame(animateLatencyGraph); } function triggerAmorphousScramble() { scrambleWallAnimation.classList.add('active'); const cells = gridContainer.children; Array.from(cells).forEach(cell => { cell.classList.remove('scrambled'); // Reset for new animation cell.style.backgroundColor = 'var(--neon-blue)'; cell.style.opacity = '0.2'; }); let scrambleCounter = 0; const scrambleInterval = setInterval(() => { if (scrambleCounter < cells.length * 2) { // Scramble multiple times const randomIndex = Math.floor(Math.random() * cells.length); const cell = cells[randomIndex]; if (cell) { cell.classList.add('scrambled'); cell.style.backgroundColor = 'rgb(' + Math.random() * 255 + ', ' + Math.random() * 255 + ', ' + Math.random() * 255 + ')'; cell.style.opacity = (Math.random() * 0.5) + 0.5; // Opacity between 0.5 and 1 } } scrambleCounter++; if (scrambleCounter >= cells.length * 2 + 50) { // Keep scrambled for a bit longer clearInterval(scrambleInterval); } }, 20); // Faster scramble effect } function resetScrambleWall() { scrambleWallAnimation.classList.remove('active'); const cells = gridContainer.children; Array.from(cells).forEach(cell => { cell.classList.remove('scrambled'); cell.style.backgroundColor = 'var(--neon-blue)'; cell.style.opacity = '0.2'; }); } simulateAttackBtn.addEventListener('click', () => { if (attackTimeout) { clearTimeout(attackTimeout); attackTimeout = null; } // Trigger attack state securityVaultSection.classList.add('attack-state'); latencyStatusDiv.classList.add('attack-state'); latencyStatusDiv.textContent = 'LATENCY SPIKE DETECTED! INTRUSION IMMINENT!'; triggerAmorphousScramble(); // Revert after a delay attackTimeout = setTimeout(() => { securityVaultSection.classList.remove('attack-state'); latencyStatusDiv.classList.remove('attack-state'); latencyStatusDiv.textContent = 'LOGIC INTEGRITY: SECURE'; resetScrambleWall(); }, 5000); // Revert after 5 seconds }); // Initial setup initScrambleGrid(); animateLatencyGraph(); // Start the latency graph animation looping }); </script>'''
c14_status_monitor_html = '''
Real-time metrics and operational status of the atomic-decay power stabilization unit.
<div class="monitor-display">
<canvas id="c14-power-graph-canvas"></canvas>
<div class="metrics-overlay">
<p>Current Voltage: <span id="c14-voltage" class="metric-value">3.30V</span></p>
<p>Operational Status: <span id="c14-status" class="metric-status">OPTIMAL</span></p>
</div>
</div>
c14_status_monitor_css = ''' .c14-status-section { max-width: 1000px; margin: 4rem auto; padding: 2.5rem; text-align: center; position: relative; } .c14-status-section .section-title { font-size: 2.2rem; color: var(--gold); margin-bottom: 1rem; } .c14-status-section .section-description { font-size: 1.1rem; color: #e2e8f0; margin-bottom: 2rem; } .monitor-display { position: relative; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--gold); border-radius: 8px; padding: 1.5rem; font-family: 'Courier New', monospace; text-align: left; height: 300px; /* Fixed height for the monitor / display: flex; / For overlay positioning / align-items: center; justify-content: center; } #c14-power-graph-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; } .metrics-overlay { position: relative; / To be on top of canvas */ z-index: 1; text-align: center; color: #fff; font-size: 1.2rem; } .metric-value { color: var(--neon-blue); font-weight: bold; text-shadow: 0 0 5px var(--neon-blue); } .metric-status { color: var(--gold); font-weight: bold; text-shadow: 0 0 5px var(--gold); } @media (max-width: 768px) { .c14-status-section { padding: 1.5rem; } .c14-status-section .section-title { font-size: 1.8rem; } .metrics-overlay { font-size: 1rem; } } '''
c14_status_monitor_js = '''
<script id="c14-monitor-script"> document.addEventListener('DOMContentLoaded', () => { const c14PowerGraphCanvas = document.getElementById('c14-power-graph-canvas'); const c14VoltageSpan = document.getElementById('c14-voltage'); const c14StatusSpan = document.getElementById('c14-status'); if (!c14PowerGraphCanvas) return; // Exit if canvas not found const graphCtx = c14PowerGraphCanvas.getContext('2d'); let powerData = Array(100).fill(3.30); // Initial stable 3.30V const maxDataPoints = 100; function drawPowerGraph() { const width = c14PowerGraphCanvas.width = c14PowerGraphCanvas.clientWidth; const height = c14PowerGraphCanvas.height = c14PowerGraphCanvas.clientHeight; graphCtx.clearRect(0, 0, width, height); graphCtx.strokeStyle = 'var(--neon-blue)'; graphCtx.lineWidth = 2; graphCtx.beginPath(); // Draw the baseline (3.3V) const baselineY = height - ((3.30 - 3.25) / 0.1) * height; // Normalize 3.30V around center of 3.25-3.35 range graphCtx.setLineDash([5, 5]); // Dashed line graphCtx.strokeStyle = 'rgba(0, 243, 255, 0.5)'; graphCtx.moveTo(0, height / 2); // Center of canvas height graphCtx.lineTo(width, height / 2); graphCtx.stroke(); graphCtx.setLineDash([]); // Solid line again graphCtx.strokeStyle = 'var(--neon-blue)'; // Draw the fluctuating power data graphCtx.beginPath(); // Map 3.25V to bottom of graph, 3.35V to top of graph for a +/- 0.05V range around 3.3V const dataToY = (val) => height - ((val - 3.25) / 0.1) * height; graphCtx.moveTo(0, dataToY(powerData[0])); for (let i = 1; i < powerData.length; i++) { const x = (i / (powerData.length - 1)) * width; const y = dataToY(powerData[i]); graphCtx.lineTo(x, y); } graphCtx.stroke(); } function updatePowerMetrics() { // Simulate minor fluctuation around 3.3V const newVoltage = 3.30 + (Math.random() - 0.5) * 0.02; // Fluctuate by +/- 0.01V powerData.push(newVoltage); if (powerData.length > maxDataPoints) { powerData.shift(); } // Update voltage display c14VoltageSpan.textContent = newVoltage.toFixed(2) + 'V'; // Update status display based on voltage let status = 'OPTIMAL'; if (newVoltage < 3.29 || newVoltage > 3.31) { status = 'NOMINAL'; c14StatusSpan.style.color = 'var(--neon-purple)'; c14StatusSpan.style.textShadow = '0 0 5px var(--neon-purple)'; } else { c14StatusSpan.style.color = 'var(--gold)'; c14StatusSpan.style.textShadow = '0 0 5px var(--gold)'; } c14StatusSpan.textContent = status; drawPowerGraph(); requestAnimationFrame(updatePowerMetrics); } // Start the animation updatePowerMetrics(); }); </script>'''
html_content = html_content.replace(security_vault_html, '')
html_content = html_content.replace(c14_status_monitor_html, '')
This is more robust than a full string match as slight variations might occur in whitespace or order.
html_content = re.sub(r'.security-vault-section\s*{[^}]?(?:transition:[^;];\s*)?}', '', html_content, flags=re.DOTALL)
html_content = re.sub(r'.c14-status-section\s*{[^}]?(?:position:[^;];\s*)?}', '', html_content, flags=re.DOTALL)
def remove_script_by_id(html_content, script_id): pattern = r'<script id="' + script_id + r'">[\s\S]*?</script>' return re.sub(pattern, '', html_content)
html_content = remove_script_by_id(html_content, 'security-vault-script')
html_content = remove_script_by_id(html_content, 'c14-monitor-script')
match = re.search(r'(
match = re.search(r'(<section class="security-vault-section glassmorphism-card".*?)', html_content, re.DOTALL) if match: insert_after_index = match.end() html_content = html_content[:insert_after_index] + c14_status_monitor_html + html_content[insert_after_index:] else: print("Error: Could not find 'security-vault-section' for C-14 insertion. Appending C-14 to end of body instead.") html_content = html_content.replace('', c14_status_monitor_html + '')
html_content = html_content.replace(' </style>', security_vault_css + c14_status_monitor_css + ' </style>')
html_content = html_content.replace('', security_vault_js + c14_status_monitor_js + '\n')
with open('index.html', 'w') as f: f.write(html_content)
print('index.html updated successfully with Guardian AI Security Terminal and C-14 Status Monitor.')
with open('index.html', 'r') as f: display(HTML(f.read()))import re from IPython.display import HTML
with open('index.html', 'r') as f: html_content = f.read()
c14_status_monitor_html = '''
Real-time metrics and operational status of the atomic-decay power stabilization unit.
<div class="monitor-display">
<canvas id="c14-power-graph-canvas"></canvas>
<div class="metrics-overlay">
<p>Current Voltage: <span id="c14-voltage" class="metric-value">3.30V</span></p>
<p>Operational Status: <span id="c14-status" class="metric-status">OPTIMAL</span></p>
</div>
</div>
match = re.search(r'(<section class="security-vault-section glassmorphism-card".*?)', html_content, re.DOTALL) if match: insert_after_index = match.end() html_content = html_content[:insert_after_index] + c14_status_monitor_html + html_content[insert_after_index:] else: print("Error: Could not find 'security-vault-section'. Appending C-14 section to end of body instead.") html_content = html_content.replace('', c14_status_monitor_html + '')
c14_status_monitor_css = ''' .c14-status-section { max-width: 1000px; margin: 4rem auto; padding: 2.5rem; text-align: center; position: relative; } .c14-status-section .section-title { font-size: 2.2rem; color: var(--gold); margin-bottom: 1rem; } .c14-status-section .section-description { font-size: 1.1rem; color: #e2e8f0; margin-bottom: 2rem; } .monitor-display { position: relative; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--gold); border-radius: 8px; padding: 1.5rem; font-family: 'Courier New', monospace; text-align: left; height: 300px; /* Fixed height for the monitor / display: flex; / For overlay positioning / align-items: center; justify-content: center; } #c14-power-graph-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; } .metrics-overlay { position: relative; / To be on top of canvas */ z-index: 1; text-align: center; color: #fff; font-size: 1.2rem; } .metric-value { color: var(--neon-blue); font-weight: bold; text-shadow: 0 0 5px var(--neon-blue); } .metric-status { color: var(--gold); font-weight: bold; text-shadow: 0 0 5px var(--gold); } @media (max-width: 768px) { .c14-status-section { padding: 1.5rem; } .c14-status-section .section-title { font-size: 1.8rem; } .metrics-overlay { font-size: 1rem; } } '''
html_content = html_content.replace(' </style>', c14_status_monitor_css + ' </style>')
c14_status_monitor_js = '''
<script> document.addEventListener('DOMContentLoaded', () => { const c14PowerGraphCanvas = document.getElementById('c14-power-graph-canvas'); const c14VoltageSpan = document.getElementById('c14-voltage'); const c14StatusSpan = document.getElementById('c14-status'); if (!c14PowerGraphCanvas) return; // Exit if canvas not found const graphCtx = c14PowerGraphCanvas.getContext('2d'); let powerData = Array(100).fill(3.30); // Initial stable 3.30V const maxDataPoints = 100; function drawPowerGraph() { const width = c14PowerGraphCanvas.width = c14PowerGraphCanvas.clientWidth; const height = c14PowerGraphCanvas.height = c14PowerGraphCanvas.clientHeight; graphCtx.clearRect(0, 0, width, height); graphCtx.strokeStyle = 'var(--neon-blue)'; graphCtx.lineWidth = 2; graphCtx.beginPath(); // Draw the baseline (3.3V) const baselineY = height - ((3.30 - 3.25) / 0.1) * height; // Normalize 3.30V around center graphCtx.setLineDash([5, 5]); // Dashed line graphCtx.strokeStyle = 'rgba(0, 243, 255, 0.5)'; graphCtx.moveTo(0, height / 2); graphCtx.lineTo(width, height / 2); graphCtx.stroke(); graphCtx.setLineDash([]); // Solid line again graphCtx.strokeStyle = 'var(--neon-blue)'; // Draw the fluctuating power data graphCtx.beginPath(); graphCtx.moveTo(0, height - ((powerData[0] - 3.25) / 0.1) * height); // Normalize data for graph, assuming range 3.25-3.35 for (let i = 1; i < powerData.length; i++) { const x = (i / (powerData.length - 1)) * width; const y = height - ((powerData[i] - 3.25) / 0.1) * height; // Map 3.25-3.35 to 0-height graphCtx.lineTo(x, y); } graphCtx.stroke(); } function updatePowerMetrics() { // Simulate minor fluctuation around 3.3V const newVoltage = 3.30 + (Math.random() - 0.5) * 0.02; // Fluctuate by +/- 0.01V powerData.push(newVoltage); if (powerData.length > maxDataPoints) { powerData.shift(); } // Update voltage display c14VoltageSpan.textContent = newVoltage.toFixed(2) + 'V'; // Update status display based on voltage let status = 'OPTIMAL'; if (newVoltage < 3.29 || newVoltage > 3.31) { status = 'NOMINAL'; c14StatusSpan.style.color = 'var(--neon-purple)'; c14StatusSpan.style.textShadow = '0 0 5px var(--neon-purple)'; } else { c14StatusSpan.style.color = 'var(--gold)'; c14StatusSpan.style.textShadow = '0 0 5px var(--gold)'; } c14StatusSpan.textContent = status; drawPowerGraph(); requestAnimationFrame(updatePowerMetrics); } // Start the animation updatePowerMetrics(); }); </script>'''
old_c14_script_pattern = re.compile(r'<script>\sdocument.addEventListener('DOMContentLoaded', () => {\sconst c14PowerGraphCanvas = document.getElementById('c14-power-graph-canvas');\s*const c14VoltageSpan = document.getElementById('c14-voltage');')
match_old_c14_script = old_c14_script_pattern.search(html_content)
if match_old_c14_script: # Find the end of this script block by searching for the closing </script> tag after its start script_start_pos = match_old_c14_script.start() script_end_pos = html_content.find('</script>', script_start_pos) + len('</script>') if script_end_pos != -1: html_content = html_content[:script_start_pos] + html_content[script_end_pos:] print("Old C-14 Status Monitor script block removed successfully.") else: print("Warning: Could not find end tag for old C-14 Status Monitor script.")
html_content = html_content.replace('', c14_status_monitor_js + '\n')
with open('index.html', 'w') as f: f.write(html_content)
print('index.html updated successfully with C-14 Status Monitor.')
with open('index.html', 'r') as f: display(HTML(f.read()))import re from IPython.display import HTML
with open('index.html', 'r') as f: html_content = f.read()
boot_sequence_html = '''
boot_sequence_css = ''' #boot-sequence-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--bg-dark); color: var(--neon-blue); display: flex; align-items: center; justify-content: center; flex-direction: column; z-index: 9999; /* Ensure it's on top of everything / font-family: 'Courier New', monospace; overflow: hidden; transition: opacity 1s ease-out, visibility 1s ease-out; } #boot-sequence-overlay.hidden { opacity: 0; visibility: hidden; } .boot-content { text-align: center; padding: 20px; } .boot-logo { font-size: 3em; font-weight: bold; margin-bottom: 30px; text-shadow: 0 0 15px var(--neon-blue); animation: pulse-neon 2s infinite alternate; } @keyframes pulse-neon { 0% { text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-purple); } 100% { text-shadow: 0 0 15px var(--neon-blue), 0 0 25px var(--neon-purple), 0 0 40px var(--neon-blue); } } .boot-message { font-size: 1.2em; margin-bottom: 20px; min-height: 1.5em; / To prevent layout shift / color: var(--gold); } .loading-bar-container { width: 300px; height: 8px; background-color: rgba(0, 243, 255, 0.2); border-radius: 4px; overflow: hidden; margin-bottom: 30px; } .loading-bar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple)); border-radius: 4px; transition: width 0.5s ease-out; / Smooth progress / } .boot-start-btn { background: var(--gradient); color: var(--bg-dark); border: none; border-radius: 25px; padding: 0.8em 2em; font-size: 1.1em; font-weight: 700; cursor: pointer; margin-top: 1.5rem; box-shadow: 0 0 15px rgba(0, 243, 255, 0.5); transition: all 0.3s ease-in-out; display: none; / Hidden initially / } .boot-start-btn:hover { box-shadow: 0 0 25px var(--neon-gold), 0 0 50px var(--neon-purple); transform: translateY(-2px); } .boot-start-btn:active { transform: translateY(0); box-shadow: 0 0 10px rgba(0, 243, 255, 0.3); } / Ensure main content is hidden initially */ body:not(.boot-complete) > :not(#boot-sequence-overlay) { opacity: 0; / Hide all other content / pointer-events: none; / Disable interactions */ } body.boot-complete > :not(#boot-sequence-overlay) { opacity: 1; / Show content / pointer-events: auto; transition: opacity 1s ease-in; / Smooth reveal */ }
/* Media queries for responsiveness */
@media (max-width: 768px) {
.boot-logo {
font-size: 2em;
}
.boot-message {
font-size: 1em;
}
.loading-bar-container {
width: 200px;
}
.boot-start-btn {
font-size: 0.9em;
padding: 0.7em 1.5em;
}
}
'''
boot_sequence_js = '''
<script> document.addEventListener('DOMContentLoaded', () => { const bootOverlay = document.getElementById('boot-sequence-overlay'); const bootMessage = document.getElementById('boot-message'); const loadingBar = document.getElementById('loading-bar'); const startButton = document.getElementById('boot-start-btn'); const messages = [ 'SYSTEM BOOT INITIATED...', 'INITIALIZING PHOTONIC SYSTEMS...', 'ACQUIRING ORBITAL LOCK...', 'GUARDIAN AI: ACTIVE...', 'SECURE PROTOCOL ENGAGED...', 'LOGIC INTEGRITY: SECURE' ]; let messageIndex = 0; let loadingProgress = 0; // Function to update loading bar and messages function updateBootSequence() { if (loadingProgress <= 100) { loadingBar.style.width = loadingProgress + '%'; loadingProgress += 5; // Increment progress faster for demo } if (messageIndex < messages.length) { bootMessage.textContent = messages[messageIndex]; messageIndex++; } else if (loadingProgress > 100) { // All messages displayed and loading bar full startButton.style.display = 'inline-block'; clearInterval(bootInterval); return; } // Special handling for the last message to stay longer or loading bar to catch up if (messageIndex === messages.length && loadingProgress < 100) { // Keep the last message visible while loading bar finishes } } const bootInterval = setInterval(updateBootSequence, 500); // Update every 0.5 seconds startButton.addEventListener('click', () => { bootOverlay.classList.add('hidden'); document.body.classList.add('boot-complete'); // Optional: remove overlay from DOM after transition setTimeout(() => { bootOverlay.remove(); }, 1000); // Matches CSS transition duration }); }); </script>'''
if '#boot-sequence-overlay' not in html_content: # Find the tag to insert the boot sequence after it body_start_tag_index = html_content.find('') if body_start_tag_index != -1: html_content = html_content[:body_start_tag_index + len('')] + boot_sequence_html + html_content[body_start_tag_index + len(''):] print("Boot sequence HTML inserted.") else: print("Error: tag not found for boot sequence HTML insertion.") else: print("Boot sequence HTML already exists. Skipping insertion.")
style_end_index = html_content.find('</style>') if style_end_index != -1: html_content = html_content[:style_end_index] + boot_sequence_css + html_content[style_end_index:] print("Boot sequence CSS inserted.") else: print("Error: </style> tag not found for boot sequence CSS insertion.")
if 'bootOverlay.classList.add' not in html_content and 'boot-start-btn' not in html_content: body_end_index = html_content.rfind('') if body_end_index != -1: html_content = html_content[:body_end_index] + boot_sequence_js + html_content[body_end_index:] print("Boot sequence JavaScript inserted.") else: print("Error: tag not found for boot sequence JavaScript insertion.") else: print("Boot sequence JavaScript already exists. Skipping insertion.")
with open('index.html', 'w') as f: f.write(html_content)
print('index.html updated successfully with Boot Sequence overlay.')
with open('index.html', 'r') as f: display(HTML(f.read()))import re from IPython.display import HTML
with open('index.html', 'r') as f: html_content = f.read()
cell.style.backgroundColor = rgb(${Math.random() * 255}, ${Math.random() * 255}, ${Math.random() * 255});
cell.style.backgroundColor = 'rgb(' + Math.random() * 255 + ', ' + Math.random() * 255 + ', ' + Math.random() * 255 + ')';
security_vault_js = '''
<script> document.addEventListener('DOMContentLoaded', () => { const simulateAttackBtn = document.getElementById('simulate-attack-btn'); const securityVaultSection = document.getElementById('guardian-ai-simulation'); const latencyStatusDiv = document.getElementById('latency-status'); const latencyGraphCanvas = document.getElementById('latency-graph-canvas'); const scrambleWallAnimation = document.getElementById('scramble-wall-animation'); const gridContainer = scrambleWallAnimation.querySelector('.grid-container'); const graphCtx = latencyGraphCanvas.getContext('2d'); let attackTimeout = null; // Initialize the grid for Amorphous Scramble Wall function initScrambleGrid() { gridContainer.innerHTML = ''; for (let i = 0; i < 400; i++) { // 20x20 grid const cell = document.createElement('div'); cell.classList.add('grid-cell'); gridContainer.appendChild(cell); } } function drawLatencyGraph(data) { latencyGraphCanvas.style.display = 'block'; const width = latencyGraphCanvas.width = latencyGraphCanvas.clientWidth; const height = latencyGraphCanvas.height = latencyGraphCanvas.clientHeight; graphCtx.clearRect(0, 0, width, height); graphCtx.strokeStyle = 'var(--neon-blue)'; graphCtx.lineWidth = 2; graphCtx.beginPath(); graphCtx.moveTo(0, height - (data[0] / 100) * height); // Normalize data to height for (let i = 1; i < data.length; i++) { const x = (i / (data.length - 1)) * width; graphCtx.lineTo(x, height - (data[i] / 100) * height); } graphCtx.stroke(); // Draw red spike if attack is active if (securityVaultSection.classList.contains('attack-state')) { graphCtx.strokeStyle = 'red'; graphCtx.lineWidth = 3; graphCtx.beginPath(); // Find the peak of the spike for drawing const spikeIndex = Math.floor(data.length * 0.7); // Simulate spike at 70% of the graph const spikeHeight = height - (data[spikeIndex] / 100) * height; graphCtx.moveTo((spikeIndex / (data.length - 1)) * width - 5, height); graphCtx.lineTo((spikeIndex / (data.length - 1)) * width, spikeHeight - 10); graphCtx.lineTo((spikeIndex / (data.length - 1)) * width + 5, height); graphCtx.stroke(); } } function animateLatencyGraph() { let data = Array(50).fill(20); // Base normal latency if (securityVaultSection.classList.contains('attack-state')) { // Simulate a spike for (let i = 0; i < 50; i++) { if (i > 30 && i < 40) { data[i] = 20 + Math.sin((i - 30) * Math.PI / 10) * 70; // Smooth spike up to 90 } else if (i >= 40) { data[i] = 20 + Math.random() * 10; // Slightly elevated after spike } } } drawLatencyGraph(data); requestAnimationFrame(animateLatencyGraph); } function triggerAmorphousScramble() { scrambleWallAnimation.classList.add('active'); const cells = gridContainer.children; Array.from(cells).forEach(cell => { cell.classList.remove('scrambled'); // Reset for new animation cell.style.backgroundColor = 'var(--neon-blue)'; cell.style.opacity = '0.2'; }); let scrambleCounter = 0; const scrambleInterval = setInterval(() => { if (scrambleCounter < cells.length * 2) { // Scramble multiple times const randomIndex = Math.floor(Math.random() * cells.length); const cell = cells[randomIndex]; if (cell) { cell.classList.add('scrambled'); // FIX: Replaced template literal with string concatenation cell.style.backgroundColor = 'rgb(' + Math.random() * 255 + ', ' + Math.random() * 255 + ', ' + Math.random() * 255 + ')'; cell.style.opacity = (Math.random() * 0.5) + 0.5; // Opacity between 0.5 and 1 } } scrambleCounter++; if (scrambleCounter >= cells.length * 2 + 50) { // Keep scrambled for a bit longer clearInterval(scrambleInterval); } }, 20); // Faster scramble effect } function resetScrambleWall() { scrambleWallAnimation.classList.remove('active'); const cells = gridContainer.children; Array.from(cells).forEach(cell => { cell.classList.remove('scrambled'); cell.style.backgroundColor = 'var(--neon-blue)'; cell.style.opacity = '0.2'; }); } simulateAttackBtn.addEventListener('click', () => { if (attackTimeout) { clearTimeout(attackTimeout); attackTimeout = null; } // Trigger attack state securityVaultSection.classList.add('attack-state'); latencyStatusDiv.classList.add('attack-state'); latencyStatusDiv.textContent = 'LATENCY SPIKE DETECTED! INTRUSION IMMINENT!'; triggerAmorphousScramble(); // Revert after a delay attackTimeout = setTimeout(() => { securityVaultSection.classList.remove('attack-state'); latencyStatusDiv.classList.remove('attack-state'); latencyStatusDiv.textContent = 'LOGIC INTEGRITY: SECURE'; resetScrambleWall(); }, 5000); // Revert after 5 seconds }); // Initial setup initScrambleGrid(); animateLatencyGraph(); // Start the latency graph animation looping }); </script>'''
body_end_idx = html_content.rfind('')
if body_end_idx != -1: # Find the start of the existing security_vault_js script block, assuming it's before script_start_marker = '<script>\n document.addEventListener('DOMContentLoaded'' # Use rfind to search backwards from body_end_idx to find the start of the last script block potential_script_start_idx = html_content.rfind(script_start_marker, 0, body_end_idx)
# If a script block potentially matching the old one is found before </body>
if potential_script_start_idx != -1:
# Construct a substring from potential_script_start_idx to body_end_idx
# and check if it contains the closing script tag. This helps ensure we're targeting the right block.
substring_before_body = html_content[potential_script_start_idx:body_end_idx]
script_end_tag_in_substring = substring_before_body.rfind('</script>')
if script_end_tag_in_substring != -1:
# Calculate the actual end index of the old script block in html_content
actual_script_end_idx = potential_script_start_idx + script_end_tag_in_substring + len('</script>\n')
# Remove the old script block
html_content = html_content[:potential_script_start_idx] + html_content[actual_script_end_idx:]
print("Old security_vault_js script block successfully removed.")
else:
print("Warning: Old security_vault_js script block start found, but end tag not found before </body>. Appending fixed script.")
else:
print("Warning: Old security_vault_js script block not found. Appending fixed script.")
else: print("Error: tag not found in html_content.")
html_content = html_content.replace('', security_vault_js + '\n')
with open('index.html', 'w') as f: f.write(html_content)
print('index.html updated successfully with Guardian AI Security Terminal simulation (JavaScript fix applied).')
with open('index.html', 'r') as f: display(HTML(f.read()))import re from IPython.display import HTML
with open('index.html', 'r') as f: html_content = f.read()
boot_sequence_html = '''
boot_sequence_css = ''' #boot-sequence-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--bg-dark); color: var(--neon-blue); display: flex; align-items: center; justify-content: center; flex-direction: column; z-index: 9999; /* Ensure it's on top of everything / font-family: 'Courier New', monospace; overflow: hidden; transition: opacity 1s ease-out, visibility 1s ease-out; } #boot-sequence-overlay.hidden { opacity: 0; visibility: hidden; } .boot-content { text-align: center; padding: 20px; } .boot-logo { font-size: 3em; font-weight: bold; margin-bottom: 30px; text-shadow: 0 0 15px var(--neon-blue); animation: pulse-neon 2s infinite alternate; } @keyframes pulse-neon { 0% { text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-purple); } 100% { text-shadow: 0 0 15px var(--neon-blue), 0 0 25px var(--neon-purple), 0 0 40px var(--neon-blue); } } .boot-message { font-size: 1.2em; margin-bottom: 20px; min-height: 1.5em; / To prevent layout shift / color: var(--gold); } .loading-bar-container { width: 300px; height: 8px; background-color: rgba(0, 243, 255, 0.2); border-radius: 4px; overflow: hidden; margin-bottom: 30px; } .loading-bar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple)); border-radius: 4px; transition: width 0.5s ease-out; / Smooth progress / } .boot-start-btn { background: var(--gradient); color: var(--bg-dark); border: none; border-radius: 25px; padding: 0.8em 2em; font-size: 1.1em; font-weight: 700; cursor: pointer; margin-top: 1.5rem; box-shadow: 0 0 15px rgba(0, 243, 255, 0.5); transition: all 0.3s ease-in-out; display: none; / Hidden initially / } .boot-start-btn:hover { box-shadow: 0 0 25px var(--neon-gold), 0 0 50px var(--neon-purple); transform: translateY(-2px); } .boot-start-btn:active { transform: translateY(0); box-shadow: 0 0 10px rgba(0, 243, 255, 0.3); } / Ensure main content is hidden initially */ body:not(.boot-complete) > :not(#boot-sequence-overlay) { opacity: 0; / Hide all other content / pointer-events: none; / Disable interactions */ } body.boot-complete > :not(#boot-sequence-overlay) { opacity: 1; / Show content / pointer-events: auto; transition: opacity 1s ease-in; / Smooth reveal */ }
/* Media queries for responsiveness */
@media (max-width: 768px) {
.boot-logo {
font-size: 2em;
}
.boot-message {
font-size: 1em;
}
.loading-bar-container {
width: 200px;
}
.boot-start-btn {
font-size: 0.9em;
padding: 0.7em 1.5em;
}
}
'''
boot_sequence_js = '''
<script id="boot-sequence-script"> document.addEventListener('DOMContentLoaded', () => { const bootOverlay = document.getElementById('boot-sequence-overlay'); const bootMessage = document.getElementById('boot-message'); const loadingBar = document.getElementById('loading-bar'); const startButton = document.getElementById('boot-start-btn'); const messages = [ 'SYSTEM BOOT INITIATED...', 'INITIALIZING PHOTONIC SYSTEMS...', 'ACQUIRING ORBITAL LOCK...', 'GUARDIAN AI: ACTIVE...', 'SECURE PROTOCOL ENGAGED...', 'LOGIC INTEGRITY: SECURE' ]; let messageIndex = 0; let loadingProgress = 0; // Function to update loading bar and messages function updateBootSequence() { if (loadingProgress <= 100) { loadingBar.style.width = loadingProgress + '%'; loadingProgress += 5; // Increment progress faster for demo } if (messageIndex < messages.length) { bootMessage.textContent = messages[messageIndex]; messageIndex++; } else if (loadingProgress > 100) { // All messages displayed and loading bar full startButton.style.display = 'inline-block'; clearInterval(bootInterval); return; } // Special handling for the last message to stay longer or loading bar to catch up if (messageIndex === messages.length && loadingProgress < 100) { // Keep the last message visible while loading bar finishes } } const bootInterval = setInterval(updateBootSequence, 500); // Update every 0.5 seconds startButton.addEventListener('click', () => { bootOverlay.classList.add('hidden'); document.body.classList.add('boot-complete'); // Optional: remove overlay from DOM after transition setTimeout(() => { bootOverlay.remove(); }, 1000); // Matches CSS transition duration }); }); </script>'
html_content = re.sub(r'<div\s+id="boot-sequence-overlay">[\s\S]?</div>\s', '', html_content)
boot_css_pattern = re.compile(r'#boot-sequence-overlay\s*{[^}]?}[\s\S]?@keyframes pulse-neon\s*{[^}]?}[\s\S]?.boot-start-btn\s*{[^}]?}[\s\S]?body:not(.boot-complete)\s*>\s**:not(#boot-sequence-overlay)\s*{[^}]?}[\s\S]?body.boot-complete\s*>\s**:not(#boot-sequence-overlay)\s*{[^}]?}[\s\S]?@media\s*(max-width:\s768px)\s{[\s\S]?.boot-start-btn\s{[^}]?}\s}', re.DOTALL) html_content = boot_css_pattern.sub('', html_content)
html_content = re.sub(r'<script\s+id="boot-sequence-script">[\s\S]?</script>\s', '', html_content)
body_start_tag_index = html_content.find('') if body_start_tag_index != -1: html_content = html_content[:body_start_tag_index + len('')] + boot_sequence_html + html_content[body_start_tag_index + len(''):] print("Boot sequence HTML inserted.") else: print("Error: tag not found for boot sequence HTML insertion.")
style_end_index = html_content.find('</style>') if style_end_index != -1: html_content = html_content[:style_end_index] + boot_sequence_css + html_content[style_end_index:] print("Boot sequence CSS inserted.") else: print("Error: </style> tag not found for boot sequence CSS insertion.")
body_end_index = html_content.rfind('') if body_end_index != -1: html_content = html_content[:body_end_index] + boot_sequence_js + html_content[body_end_index:] print("Boot sequence JavaScript inserted.") else: print("Error: tag not found for boot sequence JavaScript insertion.")
with open('index.html', 'w') as f: f.write(html_content)
print('index.html updated successfully with Boot Sequence overlay.')
with open('index.html', 'r') as f: display(HTML(f.read()))from IPython.display import HTML
with open('index.html', 'r') as f: display(HTML(f.read()))import re from IPython.display import HTML
with open('index.html', 'r') as f: html_content = f.read()
boot_sequence_html = '''
boot_sequence_css = ''' #boot-sequence-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--bg-dark); color: var(--neon-blue); display: flex; align-items: center; justify-content: center; flex-direction: column; z-index: 9999; /* Ensure it's on top of everything / font-family: 'Courier New', monospace; overflow: hidden; transition: opacity 1s ease-out, visibility 1s ease-out; } #boot-sequence-overlay.hidden { opacity: 0; visibility: hidden; } .boot-content { text-align: center; padding: 20px; } .boot-logo { font-size: 3em; font-weight: bold; margin-bottom: 30px; text-shadow: 0 0 15px var(--neon-blue); animation: pulse-neon 2s infinite alternate; } @keyframes pulse-neon { 0% { text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-purple); } 100% { text-shadow: 0 0 15px var(--neon-blue), 0 0 25px var(--neon-purple), 0 0 40px var(--neon-blue); } } .boot-message { font-size: 1.2em; margin-bottom: 20px; min-height: 1.5em; / To prevent layout shift / color: var(--gold); } .loading-bar-container { width: 300px; height: 8px; background-color: rgba(0, 243, 255, 0.2); border-radius: 4px; overflow: hidden; margin-bottom: 30px; } .loading-bar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple)); border-radius: 4px; transition: width 0.5s ease-out; / Smooth progress / } .boot-start-btn { background: var(--gradient); color: var(--bg-dark); border: none; border-radius: 25px; padding: 0.8em 2em; font-size: 1.1em; font-weight: 700; cursor: pointer; margin-top: 1.5rem; box-shadow: 0 0 15px rgba(0, 243, 255, 0.5); transition: all 0.3s ease-in-out; display: none; / Hidden initially / } .boot-start-btn:hover { box-shadow: 0 0 25px var(--neon-gold), 0 0 50px var(--neon-purple); transform: translateY(-2px); } .boot-start-btn:active { transform: translateY(0); box-shadow: 0 0 10px rgba(0, 243, 255, 0.3); } / Ensure main content is hidden initially */ body:not(.boot-complete) > :not(#boot-sequence-overlay) { opacity: 0; / Hide all other content / pointer-events: none; / Disable interactions */ } body.boot-complete > :not(#boot-sequence-overlay) { opacity: 1; / Show content / pointer-events: auto; transition: opacity 1s ease-in; / Smooth reveal */ }
/* Media queries for responsiveness */
@media (max-width: 768px) {
.boot-logo {
font-size: 2em;
}
.boot-message {
font-size: 1em;
}
.loading-bar-container {
width: 200px;
}
.boot-start-btn {
font-size: 0.9em;
padding: 0.7em 1.5em;
}
}
'''
boot_sequence_js = '''
<script id="boot-sequence-script"> document.addEventListener('DOMContentLoaded', () => { const bootOverlay = document.getElementById('boot-sequence-overlay'); const bootMessage = document.getElementById('boot-message'); const loadingBar = document.getElementById('loading-bar'); const startButton = document.getElementById('boot-start-btn'); const messages = [ 'SYSTEM BOOT INITIATED...', 'INITIALIZING PHOTONIC SYSTEMS...', 'ACQUIRING ORBITAL LOCK...', 'GUARDIAN AI: ACTIVE...', 'SECURE PROTOCOL ENGAGED...', 'LOGIC INTEGRITY: SECURE' ]; let messageIndex = 0; let loadingProgress = 0; // Function to update loading bar and messages function updateBootSequence() { if (loadingProgress <= 100) { loadingBar.style.width = loadingProgress + '%'; loadingProgress += 5; // Increment progress faster for demo } if (messageIndex < messages.length) { bootMessage.textContent = messages[messageIndex]; messageIndex++; } else if (loadingProgress > 100) { // All messages displayed and loading bar full startButton.style.display = 'inline-block'; clearInterval(bootInterval); return; } // Special handling for the last message to stay longer or loading bar to catch up if (messageIndex === messages.length && loadingProgress < 100) { // Keep the last message visible while loading bar finishes } } const bootInterval = setInterval(updateBootSequence, 500); // Update every 0.5 seconds startButton.addEventListener('click', () => { bootOverlay.classList.add('hidden'); document.body.classList.add('boot-complete'); // Optional: remove overlay from DOM after transition setTimeout(() => { bootOverlay.remove(); }, 1000); // Matches CSS transition duration }); }); </script>'''
html_content = re.sub(r'<div\s+id="boot-sequence-overlay">[\s\S]?
boot_css_pattern = re.compile(r'#boot-sequence-overlay\s*{[^}]?}[\s\S]?@keyframes pulse-neon\s*{[^}]?}[\s\S]?.boot-start-btn\s*{[^}]?}[\s\S]?body:not(.boot-complete)\s*>\s**:not(#boot-sequence-overlay)\s*{[^}]?}[\s\S]?body.boot-complete\s*>\s**:not(#boot-sequence-overlay)\s*{[^}]?}[\s\S]?@media\s*(max-width:\s768px)\s{[\s\S]?.boot-start-btn\s{[^}]?}\s}', re.DOTALL) html_content = boot_css_pattern.sub('', html_content)
html_content = re.sub(r'<script\s+id="boot-sequence-script">[\s\S]?
body_start_tag_index = html_content.find('') if body_start_tag_index != -1: html_content = html_content[:body_start_tag_index + len('')] + boot_sequence_html + html_content[body_start_tag_index + len(''):] print("Boot sequence HTML inserted.") else: print("Error: tag not found for boot sequence HTML insertion.")
style_end_index = html_content.find('</style>') if style_end_index != -1: html_content = html_content[:style_end_index] + boot_sequence_css + html_content[style_end_index:] print("Boot sequence CSS inserted.") else: print("Error: </style> tag not found for boot sequence CSS insertion.")
body_end_index = html_content.rfind('') if body_end_index != -1: html_content = html_content[:body_end_index] + boot_sequence_js + html_content[body_end_index:] print("Boot sequence JavaScript inserted.") else: print("Error: tag not found for boot sequence JavaScript insertion.")
with open('index.html', 'w') as f: f.write(html_content)
print('index.html updated successfully with Boot Sequence overlay.')
with open('index.html', 'r') as f: display(HTML(f.read())) © 2026 AntiNex TechX. All rights reserved.
Engineering the standard for zero-trust hardware.
</div>
<p style="margin-top: 30px; color: #94a3b8; font-size: 0.85rem; text-align: center; font-family: monospace;">
<span style="color: var(--neon-blue);">●</span> AUTHENTICATED: ADEKOYA JOTHAM <span style="margin-left: 20px; color: var(--neon-purple);">●</span> ENCRYPTION: SOVEREIGN-SHARED
</p>
@keyframes float {
to {
transform: translateY(-60px) scale(1.1);
}
}
.hero {
z-index: 1;
position: relative;
min-height: 92vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
text-align: center;
padding: 4rem 1rem 2rem 1rem;
}
.hero-logo {
width: 110px;
height: 110px;
margin: 0 auto 32px auto;
display: block;
filter: drop-shadow(0 0 8px var(--neon-purple));
animation: pulse-logo 2.1s infinite alternate ease-in-out;
}
@keyframes pulse-logo {
0% {filter: drop-shadow(0 0 7px var(--neon-purple));}
100% {filter: drop-shadow(0 0 19px var(--neon-blue));}
}
.hero-title {
font-size: 3rem;
font-weight: 700;
background: var(--gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 0.5rem;
}
.hero-subtitle {
font-size: 1.35rem;
margin-bottom: 1.8rem;
color: var(--gold);
letter-spacing: .05em;
font-weight: 500;
text-shadow: 0 2px 16px #ffd92c14;
}
.status-badge {
background: var(--gradient);
color: #001413;
display: inline-block;
border-radius: 13px;
padding: 0.2em 1.2em;
font-weight: 700;
font-size: 1em;
margin-top: 1.2em;
box-shadow: 0 1px 10px 0 var(--neon-blue);
user-select: none;
border: 1px solid var(--border);
}
.features-section {
margin-top: 2.5rem;
position: relative;
z-index: 2;
padding: 2rem 0;
background: linear-gradient(0deg, #14182d 0%, transparent 94%);
border-top: 1px solid #26253a90;
box-shadow: 0 -3px 24px #19e5e916;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
gap: 2.3rem;
max-width: 1140px;
margin: 0 auto;
padding: 0 1.5rem;
}
.feature-card {
background: var(--glass);
border-radius: 18px;
border: 1.5px solid var(--border);
box-shadow: 0 3px 40px 0 #00f3ff15;
padding: 2.5rem 1.7rem 2rem 1.7rem;
text-align: left;
position: relative;
min-height: 280px;
overflow: hidden;
}
.feature-card svg {
width: 50px;
height: 50px;
float: right;
margin-left: 20px;
margin-bottom: 16px;
filter:drop-shadow(0 0 12px #bc13fe44);
}
.feature-title {
font-size: 1.2rem;
font-weight: 700;
color: var(--neon-purple);
margin-bottom: 0.3rem;
}
.feature-desc {
color: #e7e7f3;
font-size: 0.99rem;
line-height: 1.6;
margin-bottom: 0.4rem;
}
.feature-spec {
font-size: 0.9em;
color: var(--gold);
font-style: italic;
}
.arch-section {
max-width: 900px;
background: var(--glass);
margin: 3.5rem auto 2.3rem auto;
border-radius: 23px;
box-shadow: 0 3px 36px #bc13fe14;
padding: 2.25rem 1.25rem 2.25rem 1.6rem;
border: 1.5px solid var(--border);
}
.arch-head {
font-size: 1.3em;
color: var(--neon-blue);
font-weight: 700;
margin-bottom: 2.3rem;
letter-spacing: 0.04em;
text-align: center;
}
.arch-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2.8rem;
padding: 0.5em 0;
font-size: 1.04em;
color: #fff;
}
.arch-item {
min-width: 180px;
flex: 1 1 210px;
text-align: left;
margin-bottom: 0.35em;
padding-left: 0.5em;
border-left: 4px solid var(--neon-purple);
}
.quote-section {
text-align: center;
margin: 3.8rem 0 2.2rem 0;
font-size: 1.38rem;
color: var(--neon-blue);
opacity: 0.96;
font-family: 'Inter', 'Segoe UI', sans-serif;
text-shadow: 0 4px 24px #00f3ff15;
}
.footer {
background: #171a25ee;
padding: 2.3rem 1rem 1rem 1rem;
color: #e2e8f0b9;
font-size: 1rem;
text-align: center;
border-top: 1.5px solid var(--border);
}
.footer strong {color: var(--gold);}
.footer .separator {color: var(--neon-blue); padding: 0 0.6em;}
.author {
color: var(--neon-purple);
font-weight: 700;
}
@media (max-width: 710px) {
.arch-list {flex-direction: column;gap:1.3em;}
}
@media (max-width: 540px) {
.hero-title {font-size: 2.05rem;}
.hero-subtitle {font-size: 1.02rem;}
.arch-section {padding: 1.3em 0.55em;}
}
<div class="feature-card">
<svg viewBox="0 0 52 52" fill="none">
<circle cx="26" cy="26" r="22" stroke="#00f3ff" stroke-width="3" fill="#bc13fe22"/>
<path d="M14,24 Q26,6 38,24" stroke="#fde047" stroke-width="2.5" fill="none"/>
<ellipse cx="26" cy="29" rx="10" ry="18" stroke="#03ffe6" stroke-width="2" fill="none"/>
<circle cx="26" cy="28.5" r="3.8" fill="#00f3ffe7"/>
</svg>
<div class="feature-title">Guardian AI <small>[10⁻¹⁵s Tracking]</small></div>
<div class="feature-desc">
Real-time femtosecond-latency fingerprinting instantly detects threats at the physical transport layer. Isolates anomalies moving faster than software monitoring.
</div>
<div class="feature-spec">
Femtosecond precision · AI physical-layer defense
</div>
</div>
<div class="feature-title">C-14 Power Guard <small>[3.3V Stable]</small></div>
<div class="feature-desc">
Atomic-decay power stabilization for consistent current over 50 years—defensive logic array protection and sovereign uptime without external dependency.
</div>
<div class="feature-spec">
Atomic-level power stabilization · Sovereign uptime
</div>
</div>
</div>
65nm photonic
Zero-trust hardware architecture
Sovereign Grade — Active
50 years
GDSII System Master Finalized
Lagos, Nigeria
Silicon Catalyst, NVIDIA Inception Program
Adekoya Jotham
For decades, we have been told that heat is an inevitable byproduct of power, and that security is a software patch away. At AntiNex TechX, we refuse those limitations.
By merging the raw physics of 3D Photonic Crystals with the independent pulse of the C-14 Power Guard, we have built more than a chip. We have built an Omninexus—a system that does not just process data, but protects it with the very laws of the universe.
This is the transition from dependence to Sovereignty. Out with the old silicon; in with the speed of light.
<div class="signature">
<p>Jotham Adekoya</p>
<span>Lead Architect & Founder</span>
</div>
</div>
.founder-speech-container { padding: 100px 20px; max-width: 800px; margin: 0 auto; text-align: center; border-top: 1px solid rgba(0, 243, 255, 0.1); }
.speech-title { font-family: 'Times New Roman', serif; /* Classic English Serif Style */ font-size: 2.5rem; letter-spacing: 4px; color: var(--gold); margin-bottom: 40px; font-style: italic; }
.speech-text { font-family: 'Georgia', serif; font-size: 1.2rem; line-height: 1.8; color: #cbd5e1; margin-bottom: 25px; font-style: italic; }
.highlight { color: var(--neon-blue); font-weight: bold; text-shadow: 0 0 10px rgba(0, 243, 255, 0.3); }
.signature { margin-top: 50px; font-family: 'Courier New', monospace; }
.signature p { font-size: 1.5rem; color: #fff; margin-bottom: 5px; }
.signature span { color: var(--neon-purple); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; }
© 2026 <strong>AntiNex TechX</strong>
<span class="separator">—</span>
Engineering the standard for <span class="author">zero-trust hardware</span>.
"Building the hardware foundation for the next 50 years of sovereign data."
© 2026 AntiNex TechX. All rights reserved.
Engineering the standard for zero-trust hardware.