*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0e0f11;
    --surface: #161719;
    --surface2: #1c1d21;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);
    --text: #e8e6e1;
    --text-muted: #7a7870;
    --text-dim: #4a4846;
    --accent: #c8f53c;
    --accent-dim: rgba(200, 245, 60, 0.12);
    --accent-text: #0e0f11;
    --blue: #4c9eff;
    --blue-dim: rgba(76, 158, 255, 0.1);
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── LAYOUT ── */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar::-webkit-scrollbar {
    width: 0;
}

.profile-block {
    padding: 36px 28px 28px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 18px;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--surface2);
    border: 2px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
}

.avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px dashed var(--border-strong);
    animation: spin 20s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.profile-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.profile-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--accent-dim);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.profile-contacts {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-btn {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: pointer;
}

.contact-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* ── SIDEBAR NAV ── */
.sidebar-nav {
    padding: 20px 0;
    flex: 1;
}

.nav-section-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0 28px;
    margin-bottom: 6px;
    margin-top: 16px;
}

.nav-section-label:first-child {
    margin-top: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 28px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 400;
    color: var(--text-muted);
    transition: all 0.2s;
    border-left: 2px solid transparent;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--accent);
}

.nav-link .nav-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    flex-shrink: 0;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    opacity: 1;
}

/* ── SIDEBAR BASIC INFO ── */
.sidebar-info {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
}

.info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.info-value {
    font-size: 13px;
    color: var(--text-muted);
}

.info-value a {
    color: var(--blue);
    transition: color 0.2s;
}

.info-value a:hover {
    color: var(--accent);
}

/* ── MAIN CONTENT ── */
.main {
    margin-left: 280px;
    flex: 1;
    padding: 0 48px 32px;
    max-width: 860px;
}

/* ── SECTIONS ── */
.section {
    padding-top: 64px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.section-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.section-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── HERO ── */
.hero {
    padding-top: 72px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 16px;
}

.hero-name span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
}

.hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    background: var(--surface2);
    letter-spacing: 0.03em;
}

/* ── ABOUT ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 22px;
    transition: border-color 0.2s;
}

.about-card:hover {
    border-color: var(--border-strong);
}

.about-card-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.about-card-content {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.75;
}

.about-card-content strong {
    color: var(--text);
    font-weight: 500;
}

.exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid rgba(200, 245, 60, 0.2);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
}

.exp-badge-num {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.exp-badge-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── PROJECTS ── */
.project-featured {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: border-color 0.25s, transform 0.25s;
}

.project-featured:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.project-image-placeholder {
    background: var(--surface2);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.project-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.015) 20px,
            rgba(255, 255, 255, 0.015) 21px);
}

.project-image-placeholder svg {
    margin: 16px;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.project-info {
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(200, 245, 60, 0.2);
    display: inline-block;
    margin-bottom: 10px;
    width: fit-content;
}

.project-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}
.project-desc a {
    color: var(--blue);
    text-decoration: underline;
    cursor:help;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.stack-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    background: var(--surface2);
    padding: 3px 8px;
    border-radius: 3px;
}

.project-link {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.project-link:hover {
    gap: 10px;
}

/* ── OTHER PROJECTS GRID ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.project-card-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.project-card-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.project-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 14px;
}

/* ── EXPERIENCE ── */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--surface2);
    border: 2px solid var(--border-strong);
    transition: border-color 0.2s, background 0.2s;
}

.timeline-item:hover .timeline-dot {
    border-color: var(--accent);
    background: var(--accent);
}

.timeline-period {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.timeline-role {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
    margin-bottom: 2px;
}

.timeline-company {
    font-size: 13px;
    color: var(--blue);
    margin-bottom: 8px;
    font-weight: 400;
}

.timeline-company-loc {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 400;
}

.timeline-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
}

.timeline-env {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.8;
}

.timeline-env strong {
    color: var(--text-muted);
    font-weight: 500;
}

/* ── SKILLS ── */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-item {}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.skill-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.skill-level {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.skill-bar-track {
    height: 3px;
    background: var(--surface2);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--accent);
    width: 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── EDUCATION ── */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.edu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
    transition: border-color 0.2s;
}

.edu-card:hover {
    border-color: var(--border-strong);
}

.edu-degree {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.edu-field {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.edu-institution {
    font-size: 12px;
    color: var(--blue);
    margin-bottom: 4px;
}

.edu-period {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}

/* ── LANGUAGES ── */
.lang-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.lang-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 22px;
    min-width: 140px;
    transition: border-color 0.2s;
}

.lang-item:hover {
    border-color: var(--border-strong);
}

.lang-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.lang-level {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── MUSIC ── */
  .music-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .music-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s;
  }

  .music-item:hover { border-color: var(--border-strong); }
  .music-item.playing { border-color: rgba(200,245,60,0.3); background: rgba(200,245,60,0.04); }

  .music-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    width: 18px;
  }

  .music-bars {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 14px;
    flex-shrink: 0;
  }

  .bar {
    width: 3px;
    border-radius: 1px;
    background: var(--accent);
    height: 4px;
    opacity: 0.3;
  }

  .music-item.playing .bar {
    opacity: 0.7;
    animation: bounce 1.2s ease-in-out infinite;
  }

  .music-item.playing .bar:nth-child(2) { animation-delay: 0.2s; }
  .music-item.playing .bar:nth-child(3) { animation-delay: 0.4s; }

  @keyframes bounce {
    0%, 100% { height: 4px; opacity: 0.3; }
    50% { height: 14px; opacity: 0.8; }
  }

  .music-info {
    flex: 1;
    min-width: 0;
  }

  .music-name {
    font-size: 13.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
  }

  .music-item.playing .music-name { color: var(--text); }

  .music-progress-wrap {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
  }

  .music-item.playing .music-progress-wrap,
  .music-item.paused .music-progress-wrap { display: flex; }

  .music-progress {
    flex: 1;
    height: 9px;
    background: var(--surface2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .music-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s linear;
    pointer-events: none;
  }

  .music-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    white-space: nowrap;
  }

  .music-play-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    outline: none;
  }

  .music-play-btn:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: scale(1.08);
  }

  .music-item.playing .music-play-btn {
    border-color: var(--accent);
    background: var(--accent-dim);
  }

  .music-loading {
    width: 12px; height: 12px;
    border: 1.5px solid rgba(200,245,60,0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin-loader 0.7s linear infinite;
    display: none;
  }

  .music-item.loading .music-loading { display: block; }
  .music-item.loading .play-icon,
  .music-item.loading .pause-icon { display: none; }

  .pause-icon { display: none; }
  .music-item.playing .play-icon { display: none; }
  .music-item.playing .pause-icon { display: block; }

  @keyframes spin-loader { to { transform: rotate(360deg); } }


/* ── SCROLL TO TOP ── */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, border-color 0.2s;
    z-index: 200;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    border-color: var(--accent);
}

/* ── FOOTER ── */
.footer {
    margin-top: 64px;
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

.footer .footer-elem {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer .footer-elem:last-of-type {
    margin-top: 32px;
    justify-content: space-between;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
        padding: 0 24px 60px;
    }

    .about-grid,
    .projects-grid,
    .edu-grid {
        grid-template-columns: 1fr;
    }

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

    .project-image-placeholder {
        min-height: 160px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}