/* Shumilov Resume - Modern Animated CSS */
:root {
    --primary-color: #059669;
    --primary-dark: #047857;
    --secondary-color: #64748b;
    --accent-color: #10b981;
    --accent-light: #34d399;
    --highlight: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f0fdf4;
    --bg-white: #ffffff;
    --border-color: #d1fae5;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #f8fafc;
    font-size: 16px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    position: relative;
    overflow: hidden;
}

/* Particles Canvas */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Header */
.header {
    background: linear-gradient(135deg, #064e3b 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    color: white;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.header-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Avatar */
.avatar-placeholder {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    border: 3px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(16, 185, 129, 0.3);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.4); }
}

.avatar-initials {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.avatar-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.header-info { flex: 1; }

/* Glitch text effect */
.glitch-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.title {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stack-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.stack-badge:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.stack-badge.react {
    border-color: #61dafb;
    color: #61dafb;
}

/* Contact */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-item svg { flex-shrink: 0; opacity: 0.9; }

.contact-item a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: border-color 0.2s;
}

.contact-item a:hover { border-bottom-color: white; }

/* Buttons */
.actions { margin-top: 1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
    padding: 2.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type { border-bottom: none; }

.section h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.section-icon { margin-right: 0.5rem; }

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Summary */
.summary p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.summary strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.skill-category.backend { border-left-color: var(--primary-color); }
.skill-category.frontend { border-left-color: #3b82f6; }
.skill-category.databases { border-left-color: var(--highlight); }
.skill-category.devops { border-left-color: #8b5cf6; }

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-header h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
}

.skill-level {
    width: 80px;
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.level-bar {
    height: 100%;
    width: 0;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 1.5s ease;
}

.level-bar.animate {
    width: var(--level);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tag.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Timeline Experience */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-light));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
    transform: translateX(-5.5px);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--primary-color); }
    50% { box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.3); }
}

.job-content {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.job-header h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.company {
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 500;
}

.period {
    background: white;
    padding: 0.4rem 0.9rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.responsibilities {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.responsibilities li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.responsibilities li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.responsibilities strong {
    color: var(--primary-color);
}

/* Achievements */
.achievements {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.achievement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.achievement:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.achievement-icon { font-size: 1.2rem; }

/* Tech Stack Visual */
.tech-stack-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tech-layer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-light);
    padding: 1rem 2rem;
    border-radius: 1rem;
    width: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.tech-layer:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.tech-layer.primary-layer {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.layer-label {
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 140px;
}

.layer-items {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 80px;
    text-align: center;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tech-card.highlight {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.tech-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.go-icon {
    font-weight: 900;
    font-size: 1.3rem;
    color: #00ADD8;
}

.tech-card.highlight .go-icon { color: white; }

.react-icon { color: #61dafb; }
.redux-icon { color: #764abc; }
.tailwind-icon { color: #06b6d4; }
.pg-icon { color: #336791; }
.redis-icon { color: #dc382d; }
.mongo-icon { color: #4db33d; }

.tech-connector {
    color: var(--text-light);
    font-size: 1.2rem;
    letter-spacing: 1rem;
    opacity: 0.5;
}

/* Additional */
.additional-list {
    list-style: none;
    padding: 0;
}

.additional-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s;
}

.additional-list li:hover {
    transform: translateX(5px);
}

.additional-list strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Print */
@media print {
    * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    body { background: white; margin: 0; padding: 0; }
    .container { max-width: 100%; margin: 0; box-shadow: none; overflow: visible; }
    .header { background: linear-gradient(135deg, #064e3b 0%, var(--primary-color) 50%, var(--accent-color) 100%); }
    .header::before, .header::after { display: none; }
    .btn, .particles-bg, .actions { display: none !important; }
    .fade-in { opacity: 1; transform: none; }
    .section { break-inside: avoid; page-break-inside: avoid; padding: 1.5rem 1rem; }
    .job-content { break-inside: avoid; page-break-inside: avoid; }
    .skills-grid { break-inside: avoid; page-break-inside: avoid; }
    .tech-stack-visual { break-inside: avoid; page-break-inside: avoid; }
    .skill-category:hover, .tech-layer:hover, .tech-card:hover,
    .tag:hover, .achievement:hover, .additional-list li:hover,
    .stack-badge:hover { transform: none; box-shadow: none; }
    .timeline-dot { animation: none; }
    .avatar-placeholder { animation: none; }
    .footer { break-inside: avoid; page-break-inside: avoid; }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content { flex-direction: column; align-items: center; text-align: center; }
    .header h1, .glitch-text { font-size: 2rem; }
    .title { justify-content: center; }
    .contact-info { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .job-header { flex-direction: column; }
    .period { align-self: flex-start; }
    .section { padding: 2rem 1.5rem; }
    .section h2 { font-size: 1.5rem; }
    .achievements { flex-direction: column; }
    .tech-layer { flex-direction: column; text-align: center; }
    .layer-label { min-width: auto; }
}

@media (max-width: 480px) {
    .header { padding: 2rem 1rem; }
    .section { padding: 1.5rem 1rem; }
    .avatar-placeholder { width: 100px; height: 100px; }
    .avatar-initials { font-size: 2rem; }
    .glitch-text { font-size: 1.75rem; }
    .title { font-size: 1.1rem; }
}
