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

body {
    font-family: 'Roboto Mono', monospace;
    background: #0a0a0a;
    color: #00ff41;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 65, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 65, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.protection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9998;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.main-header {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.glitch-container {
    position: relative;
    display: inline-block;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: #00ff41;
    letter-spacing: 3px;
    animation: glitch 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-top 1s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.glitch::after {
    animation: glitch-bottom 1.5s infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

.tagline {
    font-size: 1.2rem;
    color: #8a8a8a;
    margin-top: 10px;
    letter-spacing: 2px;
}

/* Аватар */
.avatar-section {
    text-align: center;
    margin: 40px 0;
}

.avatar-container {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #00ff41;
    padding: 5px;
    background: rgba(0, 255, 65, 0.1);
}

.avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
    transition: all 0.3s ease;
}

.avatar:hover {
    filter: grayscale(50%) contrast(110%);
    transform: scale(1.02);
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.avatar-shield {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #00ff41;
    font-size: 24px;
    z-index: 100;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Терминал */
.terminal-window {
    background: rgba(10, 15, 10, 0.9);
    border: 2px solid #00ff41;
    border-radius: 8px;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
}

.terminal-header {
    background: #001a00;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00ff41;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-btn.red { background: #ff5f56; }
.terminal-btn.yellow { background: #ffbd2e; }
.terminal-btn.green { background: #27c93f; }

.terminal-title {
    color: #00ff41;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 25px;
    min-height: 150px;
}

.terminal-text {
    color: #00ff41;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blinking-cursor {
    animation: blink 1s infinite;
    display: inline-block;
}

/* Проекты */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
    color: #00ff41;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: #00ff41;
    box-shadow: 0 0 10px #00ff41;
}

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

.project-card {
    background: rgba(15, 20, 15, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #00ff41;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: #00ff41;
}

.project-date {
    color: #8a8a8a;
    font-size: 0.9rem;
}

.project-desc {
    color: #b8b8b8;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

/* Контакты */
.contacts-section {
    text-align: center;
    margin: 80px 0 40px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 255, 65, 0.05);
    padding: 15px 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    margin: 20px 0;
}

.contact-item i {
    font-size: 2rem;
    color: #0088cc;
}

.telegram-link {
    color: #00ff41;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.telegram-link:hover {
    color: #0088cc;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.contact-note {
    color: #8a8a8a;
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
}

/* Скрытый доступ */
.hidden-access {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.hidden-access:hover {
    opacity: 1;
}

.hidden-trigger {
    display: block;
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    border-radius: 50%;
    cursor: pointer;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(10, 15, 10, 0.95);
    border: 2px solid #00ff41;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.2);
}

.modal-header {
    background: #001a00;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00ff41;
}

.modal-header h3 {
    color: #00ff41;
    font-family: 'Orbitron', sans-serif;
}

.close {
    color: #00ff41;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.password-input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff41;
    color: #00ff41;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-radius: 4px;
    letter-spacing: 2px;
}

.password-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.password-btn {
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    padding: 12px 40px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.password-btn:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

/* Анимации */
@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-top {
    0%, 100% { transform: translate(0); clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); }
    33% { transform: translate(-5px); }
    66% { transform: translate(5px); }
}

@keyframes glitch-bottom {
    0%, 100% { transform: translate(0); clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); }
    33% { transform: translate(5px); }
    66% { transform: translate(-5px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Эффект сканирования */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to bottom, transparent, #00ff41, transparent);
    animation: scan 4s linear infinite;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.1;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .glitch {
        font-size: 3rem;
    }
    
    .avatar {
        width: 200px;
        height: 200px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}