/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #2a2a2a;
    color: #333;
    overflow-x: hidden;
}

/* Мобильная версия (по умолчанию) */
.mobile-version {
    display: block;
    min-height: 100vh;
    background: #2a2a2a;
    padding: 0;
}

.desktop-version {
    display: none;
}

/* Контейнеры боксов */
.box-container {
    margin-bottom: 2rem;
    display: flex;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.box-container:first-child {
    margin-top: 3rem;
    transform: translateY(0);
    opacity: 1;
}

.box-container.left {
    justify-content: flex-start;
}

.box-container.right {
    justify-content: flex-end;
}

/* Бокс с логотипом */
.logo-box {
    background: white;
    padding: 3rem 4rem 3rem 2rem;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
}

/* Стек логотипов */
.logo-stack {
    position: relative;
    padding-left: 2rem;
    height: 4rem;
}

.logo-layer {
    position: absolute;
    top: 0;
    left: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    margin: 0;
    transition: all 0.6s ease;
}

/* Слой 1 - самый верхний, цвет фона */
.logo-layer-1 {
    color: #2a2a2a;
    z-index: 3;
    transform: translate(0, 0);
}

/* Слой 2 - средний, светлее */
.logo-layer-2 {
    color: #4a4a4a;
    z-index: 2;
    transform: translate(0, 0);
}

/* Слой 3 - нижний, еще светлее */
.logo-layer-3 {
    color: #6a6a6a;
    z-index: 1;
    transform: translate(0, 0);
}

/* Раскрытое состояние */
.logo-stack.expanded .logo-layer-2 {
    transform: translate(-10px, 10px);
}

.logo-stack.expanded .logo-layer-3 {
    transform: translate(-20px, 20px);
}

/* Бокс с информацией */
.info-box {
    background: white;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
}

.box-container.left .info-box {
    padding: 2rem 2rem 2rem 4rem;
}

.box-container.right .info-box {
    padding: 2rem 4rem 2rem 2rem;
}

.info-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 1rem;
    font-style: italic;
}

.info-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0.75rem;
}

.info-box strong {
    color: #2a2a2a;
    font-weight: 600;
}

/* Проекты */
.project-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.project-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.project-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 0.5rem;
}

.project-item p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
    margin-bottom: 0.25rem;
}

/* Навыки */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-list span {
    background: #f0f0f0;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #2a2a2a;
    font-weight: 500;
}

/* Терминал для десктопа */
.terminal-container {
    background: #1a1a1a;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.terminal-header {
    background: #2d2d2d;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #3a3a3a;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.7;
}

.btn.close {
    background: #ff5f56;
}

.btn.minimize {
    background: #ffbd2e;
}

.btn.maximize {
    background: #27ca3f;
}

.terminal-title {
    color: #ccc;
    font-size: 1rem;
    font-weight: 500;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.terminal-logo {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    font-style: italic;
    text-transform: lowercase;
    letter-spacing: -0.02em;
}

.terminal-body {
    background: #1a1a1a;
    padding: 2rem;
    height: calc(100vh - 80px);
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: auto;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
}

.terminal-content {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.welcome-message {
    color: #00ff88;
    margin-bottom: 2rem;
}

.welcome-message p {
    margin-bottom: 0.5rem;
}

.command-hint {
    color: #ffd700;
    font-weight: bold;
}

.terminal-output {
    margin-bottom: 1rem;
    min-height: 200px;
    white-space: pre-wrap;
    color: #e0e0e0;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.prompt {
    color: #00ff88;
    margin-right: 0.5rem;
    font-weight: bold;
}

.terminal-input {
    background: transparent !important;
    border: none !important;
    color: #e0e0e0;
    font-family: inherit;
    font-size: inherit;
    outline: none !important;
    flex: 1;
    caret-color: transparent;
    box-shadow: none !important;
    border: none !important;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: auto;
    resize: none;
    overflow: hidden;
}

.terminal-input:focus {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
}

.terminal-input:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.terminal-input:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Кастомный курсор в виде < */
.terminal-input-line::after {
    content: '<';
    color: #00ff88;
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

.terminal-input::placeholder {
    color: #666;
}

/* Дополнительные правила для полного удаления границ */
.terminal-input,
.terminal-input:focus,
.terminal-input:active,
.terminal-input:hover,
.terminal-input:visited,
.terminal-input:link {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Убираем все возможные стили браузера */
.terminal-input::-webkit-input-placeholder {
    color: #666;
}

.terminal-input::-moz-placeholder {
    color: #666;
}

.terminal-input:-ms-input-placeholder {
    color: #666;
}

.terminal-input:-moz-placeholder {
    color: #666;
}

/* Адаптивность */
@media (min-width: 768px) {
    .mobile-version {
        display: none;
    }
    
    .desktop-version {
        display: block;
        min-height: 100vh;
        background: #1a1a1a;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .name-container {
        padding: 6rem 8rem;
    }
    
    .name {
        font-size: 4rem;
    }
    
    .content-section {
        padding: 6rem 4rem;
    }
    
    .about-card,
    .skills-card,
    .contact-card {
        padding: 3rem;
        margin: 3rem 0;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-links {
        flex-direction: row;
        justify-content: center;
    }
    
    .contact-link {
        flex: 1;
        max-width: 200px;
    }
}

@media (min-width: 1024px) {
    .terminal-body {
        padding: 3rem;
    }
    
    .terminal-content {
        font-size: 16px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card,
.skills-card,
.contact-card {
    animation: fadeIn 0.6s ease-out;
}

.about-card {
    animation-delay: 0.1s;
}

.skills-card {
    animation-delay: 0.2s;
}

.contact-card {
    animation-delay: 0.3s;
}

/* Эффекты при наведении */
.skill-tag:hover {
    background: #2a2a2a;
    color: white;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.terminal-input:focus {
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.3);
}
