:root {
    --primary: #6C63FF;
    --secondary: #FF6584;
    --dark: #121230;
    --light: #F5F5FF;
    --accent: #00D4AA;
    --terminal: #00FF88;
    --terminal-bg: rgba(0, 30, 20, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.03;
    background: linear-gradient(to bottom, #0a0a1a, #121230);
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.9), rgba(0, 212, 170, 0.8));
    backdrop-filter: blur(10px);
    padding: 40px 0;
    text-align: center;
    border-bottom: 3px solid var(--terminal);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="white" stroke-width="2"/><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="white" stroke-width="1"/><circle cx="50" cy="50" r="20" fill="none" stroke="white" stroke-width="1"/></svg>');
    z-index: -1;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--light);
    max-width: 800px;
    margin: 0 auto 20px;
}

.terminal-box {
    background: var(--terminal-bg);
    border: 2px solid var(--terminal);
    border-radius: 10px;
    padding: 20px;
    margin: 30px auto;
    max-width: 900px;
    font-family: 'Courier New', monospace;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.full-width {
    max-width: 100% !important;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: var(--terminal);
    font-size: 0.9rem;
}

.terminal-title {
    font-weight: bold;
}

.terminal-controls span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 5px;
}

.terminal-controls .close { background: #FF5F57; }
.terminal-controls .min { background: #FFBD2E; }
.terminal-controls .max { background: #28CA42; }

.terminal-content {
    color: var(--terminal);
    font-size: 1.1rem;
    line-height: 1.5;
}

.command {
    color: #00AAFF;
}

.comment {
    color: #888;
}

.success {
    color: var(--terminal);
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 18, 48, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-btn {
    background: rgba(108, 99, 255, 0.2);
    border: 1px solid var(--primary);
    color: var(--light);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav-btn:hover, .nav-btn.active {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

/* Main Content */
main {
    padding: 50px 0;
}

section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

h3 {
    font-size: 1.8rem;
    margin: 25px 0 15px;
    color: var(--accent);
}

h4 {
    font-size: 1.4rem;
    margin: 20px 0 10px;
    color: var(--light);
}

.content-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    border-left: 5px solid var(--secondary);
    transition: transform 0.3s ease;
}

.content-box:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

.content-box.virus {
    border-left-color: #FF6584;
}

.content-box.antivirus {
    border-left-color: #00D4AA;
}

.content-box.method {
    border-left-color: #6C63FF;
}

.step-list {
    list-style-type: none;
    counter-reset: step-counter;
}

.step-list li {
    counter-increment: step-counter;
    margin-bottom: 25px;
    padding-left: 50px;
    position: relative;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

.example-box {
    background: rgba(255, 101, 132, 0.1);
    border: 1px solid var(--secondary);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.example-box.wrong {
    background: rgba(255, 101, 132, 0.1);
    border-color: var(--secondary);
}

.example-box.right {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--accent);
}

.example-title {
    color: var(--secondary);
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 5px;
}

.badge.virus {
    background: rgba(255, 101, 132, 0.2);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.badge.antivirus {
    background: rgba(0, 212, 170, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.phase-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.phase-card {
    background: rgba(108, 99, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.phase-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.2);
}

.phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.phase-number {
    font-size: 3rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
}

.phase-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--primary);
    margin-top: 50px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-icons a {
    color: var(--light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 20px 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.6);
}

.center-button {
    text-align: center;
    margin-top: 50px;
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(108, 99, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    .terminal-box { padding: 15px; }
    .nav-container { flex-direction: column; align-items: center; }
    .nav-btn { width: 90%; text-align: center; }
    .phase-container { grid-template-columns: 1fr; }
    .badges-container { flex-direction: column; }
    .badge { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .subtitle { font-size: 1rem; }
    .terminal-content { font-size: 0.9rem; }
}