:root {
    --primary: #ffffff;
    --accent: #6cccf5;
    --bg-site: #0f172a;
    --white: #1e293b;
}

/* --- БАЗОВЫЕ НАСТРОЙКИ --- */
* { box-sizing: border-box; }
html, body { 
    margin: 0; padding: 0; height: 100%; 
    background: var(--bg-site); color: var(--primary); 
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow: hidden; 
}

/* ИНДИКАТОР И КУРСОР */
.scroll-progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 10000; }
.scroll-progress-bar { height: 100%; background: var(--accent); width: 0%; transition: width 0.1s; box-shadow: 0 0 10px var(--accent); }

@media (min-width: 1000px) {
    html, body, a, button { cursor: none !important; }
    .cursor-dot, .cursor-outline { 
        position: fixed; top: 0; left: 0; 
        transform: translate(-50%, -50%); 
        border-radius: 50%; z-index: 9999; 
        pointer-events: none !important; 
        transition: opacity 0.3s ease;
    }
    .cursor-dot { width: 6px; height: 6px; background: var(--accent); }
    .cursor-outline { 
        width: 18px; height: 18px; 
        border: 1px solid var(--accent); 
        background: rgba(56, 189, 248, 0.05); 
        transition: transform 0.15s ease-out, background 0.15s ease-out, opacity 0.3s ease; 
    }
    .cursor-hover { 
        transform: translate(-50%, -50%) scale(1.6) !important; 
        background: rgba(56, 189, 248, 0.2) !important; 
    }
    /* Скрываем кастомный курсор при наведении на картинки */
    body:has(.portfolio-image:hover) .cursor-dot,
    body:has(.portfolio-image:hover) .cursor-outline,
    body:has(.gallery-item:hover) .cursor-dot,
    body:has(.gallery-item:hover) .cursor-outline {
        opacity: 0 !important;
    }
}

/* СТРУКТУРА SPA */
.page-section { 
    height: 100vh; width: 100%;
    display: flex; justify-content: center; align-items: center; 
    padding: 20px; position: relative;
}

.resume-wrapper { 
    max-width: 1200px; width: 100%; 
    height: 92vh; min-height: 700px;
    position: relative; background: var(--white); 
    display: grid; grid-template-columns: 350px 1fr; 
    border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); 
    overflow: hidden; border: 1px solid rgba(255,255,255,0.05); 
}

.scroll-container { height: 100%; overflow-y: hidden; scrollbar-width: none; }
.scroll-container::-webkit-scrollbar { display: none; }
.page-section-inner { height: 100%; width: 100%; display: flex; }

/* САЙДБАР */
.sidebar { padding: 50px 40px; border-right: 1px solid rgba(255,255,255,0.05); text-align: center; background: #111827; height: 100%; }
.sidebar h1 { font-size: 26px; margin: 15px 0; }
.photo-container { position: relative; width: 180px; height: 180px; margin: 0 auto 25px; transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; border-radius: 50%; }
.photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); position: absolute; top: 0; left: 0; transition: opacity 0.5s ease; box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); }
.gif-photo { opacity: 0; }
.photo-container:hover { transform: scale(1.2); }
.photo-container:hover .static-photo { opacity: 0; }
.photo-container:hover .gif-photo { opacity: 1; }

.tagline { color: var(--accent); font-family: 'Segoe UI', Arial, sans-serif; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 1.2px; line-height: 1.4; margin-top: 15px; }
.contact-list { list-style: none; padding: 0; text-align: left; margin: 30px auto; max-width: 250px; font-size: 15px; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #ffffff; transition: transform 0.3s ease; }
.contact-list li:hover { transform: translateX(6px); }
.contact-list a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--accent); }
.mini-tags span {
    background: rgba(56, 189, 248, 0.05);
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin: 3px;
    display: inline-block;
    transition: all 0.3s ease !important; 
}

.mini-tags span:hover {
    background: var(--accent) !important;
    color: #0f172a !important;            
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(108, 204, 245, 0.4);
    transform: translateY(-2px);          
}
/* КОНТЕНТ */
.main-content { padding: 40px 60px; width: 100%; height: 100%; position: relative; background: #1e293b; display: flex; flex-direction: column; overflow: hidden; }

/* НАВИГАЦИЯ */
.tabs-nav {
    display: flex;
    flex-wrap: nowrap; 
    gap: 4px;          
    padding: 6px;
    background: #0f172a;
    border-radius: 16px;
    margin-bottom: 20px;
    width: 100%;       
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {    
    flex: 1;           
    min-width: fit-content; 
    text-align: center; 
    border: none; 
    padding: 10px 5px; 
    cursor: pointer; 
    border-radius: 12px; 
    font-weight: 600; 
    color: #94a3b8; 
    background: none; 
    transition: 0.3s; 
    font-size: 14px; 
    white-space: nowrap;
}

.tab-btn.active { background: var(--accent); color: #0f172a; font-weight: 700; }
.tab-content { display: none; width: 100%; position: relative; }
.active-content { display: block !important; }
.accent-title { color: var(--accent) !important; font-weight: 700; }

/* ЛОГИЧЕСКАЯ СЕТКА И КАРТОЧКИ — ЭФФЕКТЫ */
.logic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; position: relative; z-index: 1; }
.logic-box, .achievement-card, .info-box, .stat-item, .manifesto-card, .hobby-section { 
    padding: 15px; border-radius: 12px; background: rgba(15, 23, 42, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.logic-box:hover, .achievement-card:hover, .info-box:hover, .stat-item:hover, .manifesto-card:hover, .hobby-section:hover {
    border-color: var(--accent) !important; 
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15) !important;
    transform: translateY(-5px);
}

.logic-box h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 8px 0; display: flex; align-items: center; gap: 8px; }
.logic-box.problem h4 { color: #f87171; }
.logic-box.solution h4 { color: #4ade80; }
.logic-box p { font-size: 15px; line-height: 1.5; color: #cbd5e1; margin: 0; }

.info-box-container { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; position: relative; z-index: 1; }
.info-box { font-size: 15px; color: #cbd5e1; line-height: 1.5; border-left: 3px solid var(--accent); padding-left: 15px; }
.info-box strong { color: var(--accent); }

/* ФОНОВЫЕ ЭФФЕКТЫ */
.data-bg-canvas { position: absolute; top: -50px; left: -70px; width: calc(100% + 140px); height: calc(100% + 100px); z-index: 0; opacity: 0.1; pointer-events: none; }
.wave-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawWave 8s linear infinite; }
@keyframes drawWave { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }/* ЗАГОЛОВКИ */
.typing-title { 
    font-size: 22px; color: var(--accent); font-weight: 700; margin-bottom: 12px; 
    display: inline-block; border-right: none; white-space: nowrap; 
    overflow: visible; width: 100%; 
}

.typing-animation { 
    width: 0;
    max-width: 100%;
    overflow: hidden;
    border-right: 3px solid var(--accent);
    animation: typing 2.5s steps(40, end) forwards, blink 0.7s infinite; 
}

@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { from, to { border-color: transparent; } 50% { border-color: var(--accent); } }

.stats-container { display: flex; justify-content: space-between; gap: 15px; margin-top: 20px; position: relative; z-index: 1; width: 100%; }
.stat-item { background: rgba(15, 23, 42, 0.6); flex: 1; text-align: center; }
.stat-num { display: block; font-size: 24px; font-weight: 800; color: var(--accent); margin-bottom: 2px; }
.stat-text { font-size: 12px; color: #ffffff; text-transform: uppercase; letter-spacing: 1px; }

/* ТАЙМЛАЙН */
.timeline { position: relative; padding-left: 25px; margin-top: 5px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px; background: linear-gradient(to bottom, var(--accent), rgba(56, 189, 248, 0.1)); }
.timeline-item { position: relative; padding-bottom: 5px; transition: 0.3s; }
.timeline-dot { position: absolute; left: -29px; top: 5px; width: 10px; height: 10px; background: var(--bg-site); border: 2px solid var(--accent); border-radius: 50%; z-index: 2; transition: all 0.3s ease; }
.timeline-item:hover .timeline-dot { background: #ffffff; border-color: #ffffff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); transform: scale(1.3); }
.timeline-content h3 { font-size: 18px; margin: 0; line-height: 1.3; }
.timeline-date { display: block; font-size: 14px; color: #94a3b8; font-weight: 500; margin-top: 2px; }
.timeline-desc { color: #cbd5e1; font-size: 16px; line-height: 1.45; margin-top: 6px; }

/* СЕТКА ДОСТИЖЕНИЙ */
.achievements-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 5px; }
.achievement-card strong { color: var(--accent); display: block; margin-bottom: 6px; font-size: 16.33px; text-transform: uppercase; letter-spacing: 0.5px; }
.achievement-card p { color: #cbd5e1; font-size: 15.33px; line-height: 1.45; margin: 0; }
.achievement-card.wide { grid-column: span 2; }
/* НАВЫКИ */
.skills-bars-container { display: grid; grid-template-columns: 1fr; gap: 22px 45px; margin-top: 10px; width: 100%; }
.skill-bar-item { display: flex; flex-direction: column; gap: 8px; }
.skill-info { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; color: var(--primary); }
.skill-progress-bg { width: 100%; height: 5px; background: rgba(255, 255, 255, 0.05); border-radius: 4px; overflow: hidden; position: relative; }
.skill-progress-fill {
    position: absolute;
    top: 0; left: 0; height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%; 
    box-shadow: 0 0 10px rgba(108, 204, 245, 0.3);
    transition: width 3.0s cubic-bezier(0.22, 1, 0.36, 1);
}

.special-skill-center { margin-top: 35px; display: flex; justify-content: center; width: 100%; }
.skill-circle-item { text-align: center; width: 140px; display: flex; flex-direction: column; align-items: center; }
.skill-circle-item .skill-label { font-size: 15px; font-weight: 700; margin-top: 15px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.progress-circle { position: relative; width: 110px; height: 110px; }
.progress-circle svg { width: 110px; height: 110px; transform: rotate(-90deg); overflow: visible; }
.bg-circle { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 9; }
.percent-fill { fill: none; stroke: var(--accent); stroke-width: 9; stroke-dasharray: 339.29; stroke-dashoffset: 339.29; stroke-linecap: round; transition: stroke-dashoffset 1.5s ease-out; }
.progress-circle .number { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; font-size: 22px; font-weight: 800; color: #ffffff; }/* НАВИГАЦИЯ */
.scroll-nav { position: fixed; right: 40px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 15px; z-index: 1000; }
.nav-dot { width: 10px; height: 10px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.nav-dot.active { background: var(--accent); transform: scale(1.5); }
.nav-arrow { font-size: 22px; color: var(--accent); cursor: pointer; font-weight: bold; }
.scroll-hint-text { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); padding: 20px 40px; margin-bottom: -20px; font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; animation: bounceHint 2s infinite; cursor: pointer; z-index: 20; white-space: nowrap; }

@keyframes bounceHint { 0%, 100% { transform: translate(-50%, 0); opacity: 0.8; } 50% { transform: translate(-50%, -10px); opacity: 0.4; } }

/* КЕЙСЫ */
.accent-title-page { color: var(--accent); font-size: 26px; margin-bottom: 15px; border-bottom: 2px solid var(--accent); padding-bottom: 10px; }
.skills-detailed { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.detail-card, .soft-card { 
    background: #0f172a; padding: 22px; border-radius: 15px; margin-bottom: 15px; 
    border-left: 6px solid var(--accent); color: #cbd5e1; font-size: 15.5px; line-height: 1.5;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.detail-card:hover, .soft-card:hover { transform: translateX(15px); border-left-width: 10px; }

.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 300px;
    padding: 18px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.portfolio-desc { color: white; line-height: 1.6; margin-bottom: 10px !important; font-size: 16px; font-weight: 400; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    flex: 1;
    margin-top: 5px;
    padding-bottom: 20px;
}

.gallery-item { width: 100%; height: 100%; overflow: hidden; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.05); background: rgba(0, 0, 0, 0.2); cursor: zoom-in !important; transition: transform 0.3s ease; max-height: 250px; }
.gallery-item:hover { transform: translateY(-3px); border-color: var(--accent); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; cursor: zoom-in !important; }
.gallery-item:hover img { transform: scale(1.05); }/* МАНИФЕСТ */
.manifesto-grid { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.highlight-text { font-size: 18px; color: #f8fafc; line-height: 1.5; max-width: 850px; border-left: 4px solid var(--accent); padding-left: 20px; margin: 10px 0; }
.manifesto-body { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.manifesto-card { display: flex; flex-direction: column; gap: 15px; padding: 22px 25px; min-height: 160px; }
.manifesto-card h3 { color: var(--accent); margin: 0; font-size: 15px;}
.manifesto-card p { font-size: 15.5px; line-height: 1.5; color: #cbd5e1; margin: 0; }

.goal-text { 
    margin-top: auto; padding: 10px 12px; background: rgba(56, 189, 248, 0.1); border-radius: 8px; 
    color: var(--accent); font-weight: 600; font-size: 14px; border-left: 3px solid var(--accent); display: table; line-height: 1.3; 
}

.hobby-section { background: rgba(17, 24, 39, 0.8); padding: 12px 20px; border-radius: 20px; border: 1px solid rgba(56, 189, 248, 0.1); }
.hobby-section h3 { font-size: 15px; margin-bottom: 8px; color: var(--accent); }
.hobby-text { font-size: 15.5px; line-height: 1.5; color: #cbd5e1; }

.fade-in { animation: fadeIn 0.4s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* АДАПТИВНОСТЬ */
@media (max-width: 1250px) { .scroll-nav { display: none; } }
@media (max-width: 1000px) {
    html, body { overflow-y: auto !important; }
    .resume-wrapper { display: flex; flex-direction: column; height: auto !important; min-height: unset !important; max-width: 100%; border-radius: 0; }
    .scroll-container { overflow-y: visible !important; height: auto !important; }
    .page-section-inner, .page-section { height: auto !important; padding: 10px 0 !important; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 30px 20px; }
    .main-content { padding: 25px 20px !important; }
    .scroll-nav, .cursor-dot, .cursor-outline, .scroll-hint-text { display: none !important; }
    .manifesto-body { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .achievements-grid, .logic-grid, .manifesto-body, .gallery-grid { grid-template-columns: 1fr !important; }
    .skills-bars-container { gap: 15px; }
    .accent-title-page { font-size: 20px !important; }
}


/* СПЕЦИФИКА СТР. 3 */
#page3 .main-content { padding-top: 25px !important; justify-content: flex-start !important; }
#page3 .logic-grid { margin-bottom: 10px !important; }
#page3 .info-box { margin-bottom: 10px !important; }
#page3 .image-display-container { display: block !important; width: 100% !important; text-align: center !important; margin-top: 20px !important; margin-bottom: 0 !important; flex: none !important; }
#page3 .portfolio-image { display: inline-block !important; max-height: 250px !important; width: auto !important; max-width: 90% !important; margin: 0 auto !important; border-radius: 8px; cursor: zoom-in !important; }
#page3 .tabs-nav { margin-bottom: 20px !important; }
#page3 .typing-title { margin-top: 10px !important; margin-bottom: 12px !important; }
#page3 .portfolio-desc { margin-top: 0 !important; margin-bottom: 15px !important; }

/* СПЕЦИФИКА СТР. 4 */
#page4 .main-content { padding-top: 25px !important; justify-content: flex-start !important; }
#page4 .logic-grid { margin-bottom: 10px !important; }
#page4 .info-box { margin-bottom: 10px !important; }
#page4 .image-display-container { display: block !important; width: 100% !important; text-align: center !important; margin-top: 20px !important; margin-bottom: 0 !important; flex: none !important; }
#page4 .portfolio-image { display: inline-block !important; max-height: 230px !important; width: auto !important; max-width: 90% !important; margin: 0 auto !important; border-radius: 8px; cursor: zoom-in !important; }
#page4 .typing-title { margin-top: 10px !important; margin-bottom: 12px !important; }
#page4 .portfolio-desc { margin-top: 0 !important; margin-bottom: 15px !important; }/* КОНТЕЙНЕР И КНОПКА ЗАПУСКА */
.cta-container {
    margin: 20px 0;
    display: flex;
    justify-content: flex-start;
}

/* Контейнер для заголовка и кнопки в одну строку */
.header-with-btn {
    display: flex;
    justify-content: space-between; /* Текст слева, кнопка справа */
    align-items: center;           /* Центрирование по вертикали */
    margin-bottom: 15px;
    gap: 20px;
}

/* Стили кнопки (делаем как на скриншоте: темная с тонкой рамкой) */
.launch-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(15, 23, 42, 0.6); /* Темный фон */
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;                 /* Чуть меньше шрифт */
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent); /* Тонкая рамка */
    border-radius: 8px;              /* Скругление как на фото */
    transition: all 0.3s ease;
    white-space: nowrap;             /* Чтобы текст кнопки не переносился */
}

.launch-btn:hover {
    background: var(--accent);
    color: #0f172a;
    box-shadow: 0 0 20px rgba(108, 204, 245, 0.3);
    transform: translateY(-2px);
}

.launch-btn span {
    display: flex;
    align-items: center;
    gap: 10px;
}







/* --- СТРАНИЦЫ 3 и 4: Возвращаем реакцию на мышь --- */
#page3 .portfolio-image, 
#page4 .portfolio-image {
    display: inline-block !important;
    max-height: 200px !important;
    width: auto !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    border-radius: 8px;
    cursor: zoom-in !important;
    /* Добавляем плавность перехода */
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

/* Эффект увеличения при наведении для 3 и 4 страниц */
#page3 .portfolio-image:hover, 
#page4 .portfolio-image:hover {
    transform: scale(1.03); /* Легкое увеличение */
    border-color: var(--accent); /* Подсветка рамки */
}







/* 1. Базовое состояние для всех плиток и картинок */
.gallery-item, 
#page3 .portfolio-image, 
#page4 .portfolio-image {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    cursor: zoom-in !important;
}

/* 2. Эффект при наведении (одинаковый для всех) */
.gallery-item:hover, 
#page3 .portfolio-image:hover, 
#page4 .portfolio-image:hover {
    transform: scale(1.03) !important; /* Легкое аккуратное увеличение */
    border-color: var(--accent) !important; /* Фирменная голубая рамка */
    box-shadow: 0 0 25px rgba(108, 204, 245, 0.2) !important; /* Мягкое свечение */
}

/* 3. Отключаем старый эффект на странице 2, чтобы анимации не конфликтовали */
.gallery-item:hover img {
    transform: none !important; /* Убираем внутренний зум картинки */
}

.gallery-item {
    max-height: 250px; /* Возвращаем размер из НАБОРА 18 */
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

/* --- КОРРЕКТИРОВКА ОТСТУПОВ --- */
#page2 .gallery-grid {
    margin-top: 10px !important; /* Оставляем рисунки опущенными ниже */
}
