/* $AINTCORP - Premium Awwwards Core System */

:root {
    --bg-color: #020202;
    --text-color: #f0f0f0;
    --accent-color: #ffffff;
    --dim-text: #888888;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
}

/* Preloader Sequence */
body.is-loading {
    overflow: hidden;
}
/* --- 2. Preloader --- */
.preloader-panel {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center; align-items: center;
    pointer-events: all;
}

.preloader-bg {
    position: absolute;
    left: 0; width: 100%; height: 50vh;
    background: #020202;
    z-index: 1;
}
.preloader-bg-top { top: 0; transform-origin: top; }
.preloader-bg-bottom { bottom: 0; transform-origin: bottom; }

.preloader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
}

.loader-percentage {
    font-size: 15vw;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    mix-blend-mode: difference;
    color: #ffffff;



}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none; opacity: 0.8;
}

/* Swup Transition Styles for the Page Content */
.transition-fade {
    transition: filter 0.6s ease, opacity 0.6s ease;
    opacity: 1;
    filter: blur(0px) contrast(1);
}

/* Animating OUT */
html.is-leaving .transition-fade {
    opacity: 0.5;
    filter: blur(8px) contrast(2) drop-shadow(0 0 10px rgba(255,0,0,0.5));
    transition-delay: 0.2s; /* Wait for glitch bars */
}

/* Animating IN */
html.is-rendering .transition-fade {
    opacity: 0;
    filter: blur(8px) contrast(2) drop-shadow(0 0 10px rgba(255,0,0,0.5));
}

/* Digital CRT Glitch Transition Panels */
.transition-glitch {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.glitch-bar {
    flex: 1;
    width: 100%;
    background: #000000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.85, 0, 0.15, 1);
}

html.is-leaving .glitch-bar {
    transform: scaleX(1);
}

html.is-rendering .glitch-bar {
    transform: scaleX(0);
}

/* Randomize Glitch Bar Delays and Origins */
.glitch-bar:nth-child(1) { transition-delay: 0.05s; transform-origin: left; }
.glitch-bar:nth-child(2) { transition-delay: 0.12s; transform-origin: right; }
.glitch-bar:nth-child(3) { transition-delay: 0.02s; transform-origin: left; }
.glitch-bar:nth-child(4) { transition-delay: 0.08s; transform-origin: right; }
.glitch-bar:nth-child(5) { transition-delay: 0.15s; transform-origin: left; }
.glitch-bar:nth-child(6) { transition-delay: 0.01s; transform-origin: right; }
.glitch-bar:nth-child(7) { transition-delay: 0.09s; transform-origin: left; }
.glitch-bar:nth-child(8) { transition-delay: 0.18s; transform-origin: right; }
.glitch-bar:nth-child(9) { transition-delay: 0.04s; transform-origin: left; }
.glitch-bar:nth-child(10) { transition-delay: 0.11s; transform-origin: right; }
.glitch-bar:nth-child(11) { transition-delay: 0.06s; transform-origin: left; }
.glitch-bar:nth-child(12) { transition-delay: 0.14s; transform-origin: right; }

html.is-rendering .glitch-bar:nth-child(1) { transform-origin: right; transition-delay: 0.14s; }
html.is-rendering .glitch-bar:nth-child(2) { transform-origin: left; transition-delay: 0.06s; }
html.is-rendering .glitch-bar:nth-child(3) { transform-origin: right; transition-delay: 0.11s; }
html.is-rendering .glitch-bar:nth-child(4) { transform-origin: left; transition-delay: 0.04s; }
html.is-rendering .glitch-bar:nth-child(5) { transform-origin: right; transition-delay: 0.18s; }
html.is-rendering .glitch-bar:nth-child(6) { transform-origin: left; transition-delay: 0.09s; }
html.is-rendering .glitch-bar:nth-child(7) { transform-origin: right; transition-delay: 0.01s; }
html.is-rendering .glitch-bar:nth-child(8) { transform-origin: left; transition-delay: 0.15s; }
html.is-rendering .glitch-bar:nth-child(9) { transform-origin: right; transition-delay: 0.08s; }
html.is-rendering .glitch-bar:nth-child(10) { transform-origin: left; transition-delay: 0.02s; }
html.is-rendering .glitch-bar:nth-child(11) { transform-origin: right; transition-delay: 0.12s; }
html.is-rendering .glitch-bar:nth-child(12) { transform-origin: left; transition-delay: 0.05s; }

/* Navigation */
nav {
    position: fixed;
    top: 2.5rem;
    right: 3rem;
    z-index: 100;
    display: flex;
    gap: 3rem;
    mix-blend-mode: difference;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.5rem;
    position: relative;
    cursor: crosshair;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0%; height: 1px;
    background-color: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.logo {
    position: fixed;
    top: 2.5rem;
    left: 3rem;
    z-index: 100;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    mix-blend-mode: difference;
}

/* Layout System */
.container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 20vh; /* Massive top padding for premium feel */
    padding-bottom: 15vh;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; gap: 4rem; }
    nav { top: 1.5rem; right: 1.5rem; gap: 1.5rem; }
    .logo { top: 1.5rem; left: 1.5rem; }
}

/* Typography Overhaul */
h1 {
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
}

.section-title {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 4rem;
}

p {
    font-size: 1.25rem;
    color: var(--dim-text);
    margin-bottom: 3rem;
    max-width: 580px; /* Strict constraint */
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.manifesto-block {
    margin-bottom: 4rem;
}

.manifesto-block h2 {
    font-size: 1.4rem;

    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Elegant Fluid Blur Hover (Fixed Layout Shift) */
.fluid-blur {
    display: inline-block;
    position: relative;
    cursor: crosshair;
    transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fluid-blur::before, .fluid-blur::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.fluid-blur::before { color: rgba(255, 255, 255, 0.3); z-index: -1; }
.fluid-blur::after { color: rgba(255, 255, 255, 0.1); z-index: -2; }

.fluid-blur:hover { filter: blur(1px); color: rgba(255, 255, 255, 0.9); }
.fluid-blur:hover::before { opacity: 1; transform: scaleX(1.03) translateX(4px); filter: blur(4px); }
.fluid-blur:hover::after { opacity: 1; transform: scaleX(1.06) translateX(-4px); filter: blur(8px); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: crosshair;
}

.btn:hover {

    color: var(--bg-color);
    background: var(--accent-color);
}

.btn.primary {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}
.btn.primary:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);

}

/* --- FUNCTIONAL WIDGETS --- */

.hero-widgets {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.functional-widget {
    width: 100%;
    max-width: 480px;
    height: 480px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.widget-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--dim-text);
    background: rgba(255,255,255,0.02);
}

.widget-header span.status-indicator {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.widget-body {
    flex: 1;
    position: relative;
    padding: 1.5rem;
    overflow: hidden;
}

/* 1. Network Sniffer Widget */
.sniffer-terminal {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: #a0a0a0;
    line-height: 1.4;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}
.sniffer-line { opacity: 0.8; word-break: break-all; }
.sniffer-line.alert { color: #ffffff; font-weight: bold; }

/* 2. Generic Terminal Output */
.generic-terminal {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: #a0a0a0;
    line-height: 1.4;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}
.term-line { opacity: 0.8; word-break: break-all; margin-bottom: 0.2rem; }

/* 4. Payload Compiler Widget */
.compiler-log {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem; color: #a0a0a0;
    height: 80%; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.compiler-progress {
    height: 20%; display: flex; flex-direction: column; justify-content: center;
}
.progress-bar-bg { width: 100%; height: 4px; margin-top: 0.5rem; }
.progress-bar-fill { width: 0%; height: 100%; background: var(--accent-color); transition: width 0.2s; }

/* Contact Cards */
.contact-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--accent-color);
}
.contact-card h2 { font-size: 1.2rem; margin-bottom: 0.5rem; letter-spacing: 2px; }
.contact-card p { font-size: 0.85rem; color: var(--dim-text); margin-bottom: 1.5rem; }
.id-field {
    background: #000; border: 1px solid var(--border-color);
    padding: 0.8rem; display: flex; justify-content: space-between; align-items: center;
    font-family: 'Share Tech Mono', monospace; font-size: 0.9rem; margin-bottom: 1.5rem;
}
.icon-btn {
    background: none; border: none; color: var(--dim-text); cursor: pointer; transition: color 0.3s;
}
.icon-btn:hover { color: var(--accent-color); }

/* Targets Grid */
.targets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.target-card {
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    min-height: 300px;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem;
}
.target-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect width="4" height="4" fill="%23020202"/><rect width="2" height="2" fill="%23222"/></svg>');
    opacity: 0.8; z-index: 1; pointer-events: none; transition: opacity 0.5s;
}
.target-card:hover::before { opacity: 0.3; }

.target-content {
    position: relative; z-index: 2;
}
.target-name {
    font-family: 'Share Tech Mono', monospace; font-size: 1.2rem; margin-bottom: 0.2rem;
    color: var(--dim-text); transition: color 0.3s;
}
.target-card:hover .target-name { color: #fff; }
.target-crime {
    font-size: 0.8rem; color: var(--dim-text); margin-bottom: 1rem;
    filter: blur(4px); transition: filter 0.5s;
}
.target-card:hover .target-crime { filter: blur(0px); }
.target-status {
    font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: #ff3333;
    opacity: 0; transform: translateY(10px); transition: all 0.5s;
}
.target-card:hover .target-status { opacity: 1; transform: translateY(0); }

.manifesto-block {
    user-select: text;
    -webkit-user-select: text;
}
