:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --secondary: #7000ff;
    --accent: #ff007a;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);
    --glass-grad: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Background Effects */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 242, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(112, 0, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Dashboard Layout */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #050608;
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-header {
    margin-bottom: 3rem;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 0.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.side-link span {
    font-family: 'JetBrains Mono';
    font-size: 0.7rem;
    opacity: 0.5;
}

.side-link:hover, .side-link.active {
    background: rgba(0, 242, 255, 0.05);
    color: var(--primary);
}

.btn-action-side {
    margin-top: 2rem;
    background: var(--primary);
    color: var(--bg-dark) !important;
    text-align: center;
    justify-content: center;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding-bottom: 4rem;
}

.top-nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
}

.search-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 400px;
}

.search-bar input {
    background: none;
    border: none;
    color: #fff;
    width: 100%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rank {
    font-size: 0.7rem;
    font-weight: 800;
    background: #ffbd2e;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Hero & Content tweaks */
.hero { padding: 4rem 4rem; }
.section { padding: 4rem 4rem; }


.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.hero-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.2);
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Cards & Grid */
.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.glass {
    background: var(--glass-grad);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.glass:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tech-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-tags span {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: var(--text-muted);
}

.difficulty {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.difficulty.easy { color: #00ff88; }
.difficulty.medium { color: #ffcc00; }

.mt-large { margin-top: 3rem; }
.p-large { padding: 3rem; }

/* Code Block */
.code-block {
    background: #050608;
    padding: 2rem;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    border: 1px solid var(--border);
}

.comment { color: #666; }

/* GPS Radar Animation */
.gps-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feat-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.radar {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(0, 242, 255, 0.2);
    border-radius: 50%;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    background: repeating-radial-gradient(circle, transparent 0, transparent 40px, rgba(0, 242, 255, 0.05) 40px, rgba(0, 242, 255, 0.05) 41px);
}

.scanner {
    width: 50%;
    height: 50%;
    background: conic-gradient(from 0deg, var(--primary-glow) 0deg, transparent 90deg);
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: bottom left;
    animation: rotate 4s linear infinite;
}

.dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px #fff;
}

.dot.red { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Simulation Canvas */
.simulation-box {
    padding: 3rem;
}

.sim-canvas {
    height: 400px;
    background: #050608;
    border-radius: 16px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.node {
    position: absolute;
    width: 100px;
    text-align: center;
    z-index: 5;
}

.node span { display: block; font-weight: 700; margin-top: 5px; }
.node .ip { font-size: 0.7rem; color: var(--text-muted); font-family: 'JetBrains Mono'; }
.node-icon { font-size: 2.5rem; }

.node.victim { top: 50%; left: 10%; transform: translateY(-50%); }
.node.router { top: 50%; right: 10%; transform: translateY(-50%); }
.node.attacker { top: 75%; left: 50%; transform: translateX(-50%); }

.packet {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(2px);
    z-index: 4;
}

.packet.poison { background: var(--accent); width: 14px; height: 14px; }

.sim-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.sim-log {
    margin-top: 2rem;
    height: 120px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    overflow-y: auto;
}

.log-entry { margin-bottom: 0.4rem; border-left: 2px solid var(--primary); padding-left: 10px; display: flex; align-items: center; gap: 8px; }
.log-entry.error { border-color: var(--accent); color: var(--accent); }
.log-entry.warning { border-color: #ffcc00; color: #ffcc00; }

.proto-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
}
.proto-tag.arp { background: #7000ff; color: #fff; }
.proto-tag.tcp/http { background: #00f2ff; color: #000; }
.proto-tag.mitm { background: var(--accent); color: #fff; }

/* Fingerprinting Grid */
.fingerprint-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.fp-card {
    padding: 1.5rem;
}

.fp-card strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    color: var(--text-muted);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive */
/* AI & Synthetic Grid */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.ai-card {
    padding: 3rem;
    text-align: center;
}

.ai-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

/* Defense Grid */
.defense-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.def-item {
    background: rgba(0, 255, 136, 0.03);
    border-left: 3px solid #00ff88;
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

.def-item h5 {
    color: #00ff88;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Enhancements */
.nav-links li:last-child {
    margin-left: 1rem;
}

code span.comment { color: #50fa7b; font-style: italic; }

/* Email Tool Lab */
.email-tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.email-form-container {
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.smtp-console {
    background: #050608;
    border-radius: 16px;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}

.console-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.dot-red, .dot-yellow, .dot-green { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.console-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    font-size: 0.85rem;
    color: #4ade80;
}

.console-line {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.console-line.primary { color: var(--primary); }
.console-line.command { color: #fff; font-weight: 700; }
.console-line.response { color: #888; }

.access-group {
    background: rgba(255, 189, 46, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px dashed rgba(255, 189, 46, 0.3);
    margin-top: 1rem;
}

.access-group label {
    color: #ffbd2e;
}

.password-input-wrapper {
    position: relative;
}

/* Visual Flow (Rebinding) */
.visual-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 2rem;
    border-radius: 12px;
}

.step {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step span {
    background: var(--primary);
    color: #000;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
}

.arrow { font-size: 1.5rem; color: var(--primary); font-weight: 800; }

.impact-text {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    color: #ffb3d9;
}

/* Command Boxes */
.cmd-box {
    background: #050608;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.cmd-box h5 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    text-transform: uppercase;
}

pre {
    font-family: 'JetBrains Mono';
    font-size: 0.85rem;
    color: #f8f8f2;
}

/* Session Lab */
.cookie-map {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-item {
    background: rgba(255,255,255,0.02);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.c-key { color: var(--primary); font-weight: 800; }
.c-val { color: var(--text-muted); font-family: 'JetBrains Mono'; font-size: 0.8rem; }
.c-status { padding: 2px 8px; border-radius: 4px; font-size: 0.6rem; font-weight: 800; }
.c-status.spoofed { background: var(--accent); color: #fff; }
.c-status.secure { background: #27c93f; color: #000; }

/* Learning Mode Selector */
.learning-mode-selector {
    display: flex;
    gap: 10px;
}

.mode-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* Auditor Notebook */
.notebook-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: #000;
    padding: 1rem 1.5rem;
    border-radius: 100px;
    font-weight: 800;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.auditor-notebook {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 350px;
    height: 450px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notebook-header {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.notebook-header h4 { font-size: 0.9rem; }
.notebook-header button { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

#notebookContent {
    flex: 1;
    background: none;
    border: none;
    padding: 1.5rem;
    color: #fff;
    font-family: 'JetBrains Mono';
    font-size: 0.85rem;
    resize: none;
    outline: none;
}

.notebook-footer {
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-small { padding: 4px 10px; font-size: 0.7rem; border-radius: 4px; }

@media (max-width: 1024px) {
    .email-tool-grid, .visual-flow { grid-template-columns: 1fr; flex-direction: column; gap: 1rem; }
    .main-content { margin-left: 0; }
    .sidebar { display: none; }
    .auditor-notebook { width: 90%; right: 5%; }
}






