/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff88;
    --secondary-color: #00cc6a;
    --accent-color: #ff6b6b;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border-color: #333333;
    --shadow-color: rgba(0, 255, 136, 0.1);
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Изображения не выходят за пределы контейнеров */
img {
    max-width: 100%;
    height: auto;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Контейнеры */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-actions .contact-trigger { padding: 0.5rem 0.9rem; font-size: 0.95rem; }

.nav-logo {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.logo-stack { display: flex; align-items: flex-end; }
.logo-stack .logo-sub { margin-left: 0.35rem; position: relative; top: 2px; }

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    object-fit: cover;
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--shadow-color);
}

.logo-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.logo-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 0.25rem;
    letter-spacing: 0.2px;
    opacity: 0.8;
    vertical-align: baseline;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.is-hidden-tab {
    display: none !important;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}


/* Главная секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: var(--gradient-secondary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-avatar {
    margin-bottom: 2rem;
}

.main-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 30px var(--shadow-color);
    transition: all 0.3s ease;
    object-fit: cover;
}

.main-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--shadow-color);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.greeting {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: 300;
}

.name {
    color: var(--primary-color);
    font-size: 3.5rem;
    font-weight: 600;
}

.alias {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-height: 48px; /* комфортные тапы */
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Терминал */
.hero-visual {
    animation: fadeInRight 1s ease-out;
}

.terminal-window {
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-header {
    background: var(--bg-secondary);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

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

.terminal-content {
    padding: 1.5rem;
    font-size: 0.9rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.prompt {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-weight: 600;
}

.command {
    color: var(--text-primary);
}

.output {
    color: var(--text-secondary);
    margin-left: 1.5rem;
}

/* Секции */
section {
    padding: 5rem 0;
}

/* Программное обеспечение - уменьшенный отступ снизу */
.software {
    padding: 5rem 0 2rem 0;
}

.software-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.software-category h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
}

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

.software-item {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.software-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

.software-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.software-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.software-info p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Быстрый обзор */
.quick-info {
    background: var(--bg-secondary);
}

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

.quick-item {
    background: var(--bg-tertiary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quick-item:hover::before {
    transform: scaleX(1);
}

.quick-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.quick-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.quick-item:hover .quick-icon {
    transform: scale(1.1);
}

.quick-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.quick-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.quick-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.quick-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Заголовок страницы */
.page-header {
    padding: 8rem 0 4rem;
    background: var(--gradient-secondary);
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.page-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 30px var(--shadow-color);
    object-fit: cover;
}

.page-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Обо мне */
.about-main {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Навыки */
.skills {
    background: var(--bg-primary);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.skill-tag-card {
    background: var(--bg-secondary);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    min-width: 150px;
}

.skill-tag-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.skill-tag-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.skill-tag-card span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

/* Опыт */
.experience {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Образование */
.education {
    background: var(--bg-primary);
}

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

.education-item {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

.education-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.education-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.education-field {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Техника */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-item {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

.tech-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tech-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tech-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.spec {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

/* Проекты */
.project {
    background: var(--bg-secondary);
}

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

.project-item {
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

.project-image {
    padding: 1rem;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    color: var(--secondary-color);
}

/* Статус проекта */
.project-status {
    margin-top: 1rem;
}

.status {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status.completed {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.status.in-progress {
    background: rgba(255, 217, 0, 0.2);
    color: #ffd900;
    border: 1px solid #ffd900;
}

/* Секции проектов */
.project-main {
    background: var(--bg-secondary);
}

.learning-project {
    background: var(--bg-primary);
}

.current-project {
    background: var(--bg-primary);
}

.project-plans {
    background: var(--bg-primary);
}

/* Учебные проекты */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.learning-item {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.learning-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.learning-item:hover::before {
    transform: scaleX(1);
}

.learning-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.learning-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.learning-item:hover .learning-icon {
    transform: scale(1.1);
}

.learning-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.learning-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.learning-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* Текущие проекты */
.current-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.current-item {
    background: var(--bg-tertiary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.current-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.current-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.current-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.current-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* GitHub статистика */
.github-stats {
    background: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

.github-cta {
    text-align: center;
}

/* Кот */
.cat-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cat-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.cat-name {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cat-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cat-facts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fact-icon {
    font-size: 1.5rem;
}

.fact-text {
    color: var(--text-secondary);
}

/* Стиль жизни */
.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.lifestyle-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.lifestyle-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

.lifestyle-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.lifestyle-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.lifestyle-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.music-tags, .tea-types, .night-activities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.music-tag, .tea-tag, .activity-tag {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

/* Контакты */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-text {
    color: var(--text-secondary);
}

.social-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.social-link i {
    font-size: 2rem;
}

/* Подвал */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.footer-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Анимации */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимации появления элементов */
.quick-info, .about-main, .skills, .experience, .education {
    animation: fadeInUp 1s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-tags {
        gap: 1rem;
    }

    .skill-tag-card {
        min-width: 120px;
        padding: 1.25rem 1.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .software-items {
        grid-template-columns: 1fr;
    }

    .software-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .learning-grid {
        grid-template-columns: 1fr;
    }

    .current-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .name {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .quick-item {
        padding: 2rem 1.5rem;
    }

    .timeline-content {
        width: calc(100% - 40px);
        left: 40px !important;
        padding: 1.5rem;
    }

    /* Улучшенные тапы и верстка на телефонах */
    .btn { width: 100%; padding: 0.9rem 1rem; }
    .profile-actions { gap: 0.75rem; }
    .nav-menu .nav-link { padding: 0.75rem 0; }
    .page-header { padding: 6rem 0 3rem; }
    .hero { min-height: auto; padding-top: 60px; }
}

/* Очень узкие экраны */
@media (max-width: 360px) {
    .hero-title { font-size: 1.7rem; }
    .name { font-size: 1.7rem; }
    .greeting { font-size: 1.4rem; }
    .alias { font-size: 1.2rem; }
}

/* Снижение анимаций при предпочтении пользователя или на тач-устройствах */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (hover: none) {
    .quick-item:hover,
    .education-item:hover,
    .project-item:hover,
    .tech-item:hover,
    .lifestyle-item:hover,
    .plan-item:hover,
    .software-item:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Плавная прокрутка для всех браузеров */
html {
    scroll-behavior: smooth;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Эффекты наведения для интерактивных элементов */
.nav-link, .btn, .quick-item, .stat-item, .education-item, .plan-item, .software-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Дополнительные эффекты для кнопок */
.btn:active {
    transform: translateY(0);
}

/* Эффект свечения для основного цвета */
.primary-glow {
    box-shadow: 0 0 20px var(--shadow-color);
}

/* Анимация для статистики */
.stat-item {
    animation: fadeInUp 0.6s ease-out;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; } 

/* Соцсети (визитка) */
.profile-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 2.5rem 2rem;
	text-align: center;
	box-shadow: 0 20px 40px rgba(0,0,0,0.35);
	max-width: 720px;
	margin: 0 auto;
}
.profile-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	border: 4px solid var(--primary-color);
	object-fit: cover;
	box-shadow: 0 10px 25px var(--shadow-color);
	margin-top: -4rem;
}
.profile-name {
	font-size: 2rem;
	margin-top: 1rem;
	margin-bottom: 0.25rem;
}
.profile-location {
	color: var(--text-secondary);
	margin-bottom: 1rem;
}
.profile-actions { display: flex; gap: 1rem; justify-content: center; }

/* Список ссылок */
.socials-list { background: var(--bg-primary); }
.links-sep {
	border: none;
	border-top: 1px solid var(--border-color);
	margin: 2rem 0;
	opacity: 0.6;
}
.link-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.link-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 14px;
	padding: 1rem 1.25rem;
	display: flex; align-items: center; justify-content: space-between;
	box-shadow: 0 8px 18px rgba(0,0,0,0.25);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.link-card.full { margin-bottom: 1rem; }
.link-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px var(--shadow-color); border-color: var(--primary-color); }
.link-left { display: flex; align-items: center; gap: 1rem; }
/* allow text to shrink inside flex to avoid overflow */
.link-texts { min-width: 0; }
.brand-icon { width: 28px; height: 28px; filter: invert(78%) sepia(46%) saturate(478%) hue-rotate(94deg) brightness(105%) contrast(101%); }
.brand-fallback { width: 28px; height: 28px; display: grid; place-items: center; color: var(--primary-color); }
.link-title { color: var(--text-primary); font-weight: 600; }
/* truncate long URLs with ellipsis */
.link-sub { color: var(--text-secondary); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.link-go { color: var(--text-secondary); }
.link-go:hover { color: var(--primary-color); }

/* Coming soon */
.link-card.coming { position: relative; opacity: .9; }
.coming-badge {
	background: #ff5f56;
	color: #fff;
	font-size: .75rem;
	padding: .25rem .5rem;
	border-radius: 6px;
	border: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 768px){
	.profile-card{ padding: 2rem 1.25rem; }
	.link-row{ grid-template-columns: 1fr; }
} 

/* Модальное окно контактов */
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(4px);display:none;align-items:center;justify-content:center;z-index:2000;}
.modal{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;min-width:300px;max-width:90vw;padding:1.25rem;box-shadow:0 20px 40px rgba(0,0,0,.45);} 
.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;}
.modal-title{font-size:1.25rem;color:var(--text-primary);} 
.modal-close{background:transparent;border:none;color:var(--text-secondary);font-size:1.2rem;cursor:pointer;} 
.modal-body{display:flex;flex-direction:column;gap:.75rem;} 
.contact-row{display:flex;align-items:center;gap:.75rem;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:10px;padding:.75rem 1rem;} 
.contact-row i{color:var(--primary-color);} 
.modal-backdrop.show{display:flex;} 

/* Секция всех устройств */
.all-devices { background: var(--bg-primary); }
.device-list ul { list-style: none; padding-left: 0; max-width: 700px; margin: 0 auto; }
.device-list li { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 10px; padding: .9rem 1.2rem; margin-bottom: .6rem; color: var(--text-secondary); }
.device-list li::before { content: "•"; color: var(--primary-color); margin-right: .6rem; }

/* Планы на будущее */
.future-plans {
    background: var(--bg-primary);
}

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

.plan-item {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.plan-item:hover::before {
    transform: scaleX(1);
}

.plan-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.plan-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.plan-item:hover .plan-icon {
    transform: scale(1.1);
}

.plan-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.plan-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
