:root {
    --primary: #0d1117;
    --secondary: #161b22;
    --accent: #0d6efd;
    --accent-dark: #0b5ed7;
    --text-light: #f8f9fa;
    --text-muted: #8b949e;
    --border: #30363d;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-light);
    min-height: 100vh;
    scroll-behavior: smooth;
}

.professional-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0a0e14 100%);
    color: white;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.professional-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(13, 110, 253, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(13, 110, 253, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.profile-text {
    flex: 1;
}

.name-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.professional-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.4;
}

.professional-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.professional-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.professional-tag:hover {
    background: rgba(13, 110, 253, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.header-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.stat-item-professional {
    text-align: center;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item-professional:hover {
    background: rgba(13, 110, 253, 0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-professional {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
}

.btn-professional:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.btn-professional-primary {
    background: var(--accent);
    color: white;
}

.btn-professional-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }

    .name-title {
        font-size: 2.2rem;
    }

    .professional-subtitle {
        font-size: 1.2rem;
    }

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

    .header-actions {
        justify-content: center;
    }

    .btn-professional {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.section-title {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background: rgba(13, 17, 23, 0.5);
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stats-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.metadata-label {
    color: var(--text-muted);
    font-weight: 500;
}

.metadata-value {
    color: var(--text-light);
    font-family: monospace;
}

.btn-outline-primary {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.about-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.15);
    border-color: var(--accent-dark);
}

.about-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.metrics-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(13, 110, 253, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(13, 110, 253, 0.1);
    transform: translateX(5px);
    border-color: var(--accent);
}

.metric-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.metric-content {
    flex: 1;
}

.metric-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-tabs {
    border-bottom: 1px solid var(--border);
}

.nav-tabs .nav-link.active {
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
    border-bottom-color: var(--accent);
    border-radius: 10px 10px 0 0;
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--text-light);
    border-color: var(--border);
}

.tab-content {
    background: transparent;
}

.card {
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text-light);
}

.text-muted {
    color: var(--text-muted) !important;
}

.alert {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid var(--accent);
    color: var(--text-light);
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.repo-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.repo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.2);
    border-color: var(--accent-dark);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.repo-title-section {
    flex: 1;
    min-width: 0;
}

.repo-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
}

.repo-title:hover {
    color: var(--accent-dark);
}

.repo-owner {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.repo-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 1rem;
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.repo-description {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: var(--text-light);
}

.repo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.repo-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.repo-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.repo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.repo-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.repo-topic {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid var(--accent);
    border-radius: 12px;
    color: var(--accent);
    transition: all 0.3s ease;
}

.repo-topic:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
}

.repo-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.repo-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.repo-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
}

.repo-action:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.repo-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.skills-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.skills-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.2);
    border-color: var(--accent-dark);
}

.skills-header {
    text-align: center;
    margin-bottom: 2rem;
}

.skills-icon-main {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.skills-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

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

.skills-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skills-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(13, 110, 253, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skills-item:hover {
    background: rgba(13, 110, 253, 0.08);
    transform: translateX(5px);
}

.skills-item-icon {
    font-size: 1.25rem;
    color: var(--accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.skills-item-content {
    flex: 1;
}

.skills-item-title {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.skills-item-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.contact-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.contact-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
    color: white;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 60px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.6);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    width: 0%;
    transition: width 0.1s ease;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay:nth-child(1) { transition-delay: 0.1s; }
.stagger-delay:nth-child(2) { transition-delay: 0.2s; }
.stagger-delay:nth-child(3) { transition-delay: 0.3s; }
.stagger-delay:nth-child(4) { transition-delay: 0.4s; }

.modal-content {
    background: #0d1117 !important;
    color: white !important;
    border: 1px solid #30363d !important;
}

.modal-header {
    border-bottom: 1px solid #30363d !important;
    background: #0d1117 !important;
}

.modal-body {
    background: #0d1117 !important;
}

.nav-tabs .nav-link {
    color: #8b949e !important;
    background: transparent !important;
    border: none !important;
}

.nav-tabs .nav-link.active {
    color: #0d6efd !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #0d6efd !important;
}

.nav-tabs .nav-link:hover {
    color: white !important;
    background: rgba(13, 110, 253, 0.1) !important;
}

.header-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .header-actions {
        gap: 0.5rem;
    }

    .btn-professional {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

.professional-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0a0e14 100%);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.professional-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(13, 110, 253, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(13, 110, 253, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
}

.main-profile-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.avatar-container {
    flex-shrink: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.profile-info {
    flex: 1;
    min-width: 0;
    display: center;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

.title {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    font-weight: 300;
}

.badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
    padding: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

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

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(13, 110, 253, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-btn i {
    font-size: 1rem;
}

@media (max-width: 992px) {
    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .professional-header {
        padding: 2rem 0;
    }

    .main-profile-row {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

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

    .stat-number {
        font-size: 1.3rem;
    }

    .navigation {
        gap: 0.25rem;
    }

    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: auto;
        flex: 1;
    }

    .nav-btn span {
        display: none;
    }

    .nav-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
    }

    .title {
        font-size: 1rem;
    }

    .badges {
        justify-content: center;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
}

#contact .btn-group {
    gap: 0.5rem;
}

@media (max-width: 768px) {
    #contact .btn-group {
        gap: 0.5rem;
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    #contact .lead {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .contact-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
    }

    #contact .section-title {
        font-size: 1.5rem;
    }
}

.content-section, .professional-header {
    scroll-margin-top: 80px;
}

.vertical-progress-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 70vh;
    min-height: 400px;
    max-height: 600px;
}

.progress-track {
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: visible;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
    border-radius: 2px;
    transition: height 0.15s ease;
    z-index: 1;
}

.progress-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--secondary);
    z-index: 2;
    box-sizing: border-box;
}

.progress-marker.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.progress-marker.filled {
    background: var(--accent);
    border-color: var(--accent);
}

.progress-marker:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateX(-50%) scale(1.4);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
}

.progress-marker::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    pointer-events: none;
    z-index: 1000;
}

.progress-marker:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

@media (max-width: 768px) {
    .vertical-progress-nav {
        right: 15px;
        height: 60vh;
        min-height: 300px;
        max-height: 500px;
    }

    .progress-track {
        width: 3px;
    }

    .progress-marker {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .progress-marker::after {
        right: 18px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

@media (max-height: 400px) {
    .vertical-progress-nav {
        display: none !important;
    }
}

.highlight-primary {
    color: var(--accent);
    font-weight: 600;
}

.highlight-accent {
    color: var(--text-light);
    font-weight: 500;
    background: linear-gradient(135deg, transparent 0%, rgba(13, 110, 253, 0.1) 100%);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

.highlight-muted {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 500;
}

.highlight-primary:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    #repo-list {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .repo-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        margin: 0 !important;
        padding: 0 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .repo-card {
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    #repo-list .d-flex.flex-column {
        width: 100% !important;
        padding: 0 15px !important;
        margin: 1rem 0 0 0 !important;
        box-sizing: border-box !important;
    }

    #repo-list .btn-outline-primary {
        width: 100% !important;
        max-width: 200px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .repo-grid {
        padding: 0 10px !important;
    }

    #repo-list .d-flex.flex-column {
        padding: 0 10px !important;
    }

    .repo-card {
        padding: 0.8rem !important;
    }
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);

    opacity: 0;
    transform: scale(0);
    animation: avatarMorph 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
    position: relative;
    overflow: hidden;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    transform: rotate(45deg);
    animation: avatarShine 3s ease-in-out infinite;
}

@keyframes avatarMorph {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
        border-radius: 30%;
    }
    70% {
        opacity: 1;
        transform: scale(1.1) rotate(10deg);
        border-radius: 45%;
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
        border-radius: 50%;
    }
}

@keyframes avatarShine {
    0%, 100% {
        transform: rotate(45deg) translateX(-100%);
    }
    50% {
        transform: rotate(45deg) translateX(100%);
    }
}


.skeleton-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 0;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skeleton-line {
    background: linear-gradient(90deg, var(--border) 25%, rgba(255,255,255,0.1) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 20px;
    width: 70%;
}

.skeleton-text {
    height: 14px;
    width: 90%;
}

.skeleton-text-short {
    height: 14px;
    width: 60%;
}

.skeleton-meta {
    height: 12px;
    width: 40%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay:nth-child(1) { transition-delay: 0.1s; }
.stagger-delay:nth-child(2) { transition-delay: 0.2s; }
.stagger-delay:nth-child(3) { transition-delay: 0.3s; }
.stagger-delay:nth-child(4) { transition-delay: 0.4s; }
.stagger-delay:nth-child(5) { transition-delay: 0.5s; }
.stagger-delay:nth-child(6) { transition-delay: 0.6s; }

#repo-list, #articles-list {
    min-height: 200px;
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .repo-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        margin: 0 !important;
        padding: 0 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .repo-card {
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

.repo-badge {
    background: rgba(13, 110, 253, 0.1) !important;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

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

.opportunity-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.opportunity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(13, 110, 253, 0.25);
    border-color: var(--accent-dark);
}

.opportunity-card:hover::before {
    transform: scaleX(1);
}

.opportunity-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.opportunity-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.opportunity-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.opportunity-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.opportunity-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.opportunity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.opportunity-item:hover {
    background: rgba(13, 110, 253, 0.1);
    border-color: var(--accent);
    transform: translateX(5px);
}

.opportunity-item i {
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.opportunity-item span {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.opportunity-status {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.status-badge {
    display: inline-block;
    background: rgba(13, 110, 253, 0.15);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(13, 110, 253, 0);
    }
}

.contact-actions {
    background: rgba(13, 110, 253, 0.05);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2.5rem;
    margin-top: 2rem;
}

.contact-actions .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.text-accent {
    color: var(--accent) !important;
}

@media (max-width: 768px) {
    .opportunities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .opportunity-card {
        padding: 1.5rem;
    }

    .contact-actions {
        padding: 1.5rem;
    }

    .contact-actions .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .opportunity-card {
        padding: 1.25rem;
    }

    .opportunity-item {
        padding: 0.6rem;
    }

    .opportunity-item span {
        font-size: 0.85rem;
    }

    .contact-actions {
        padding: 1rem;
    }
}

.contact-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.contact-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.contact-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
    color: white;
}

@media (max-width: 480px) {
    .contact-buttons-container {
        gap: 0.6rem;
    }

    .contact-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
}

.timeline-container {
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0.3;
    transform: translateX(-15px);
    transition: all 0.6s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: -2.35rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border);
    border: 3px solid var(--secondary);
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-marker {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

.timeline-content h6 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.timeline-container {
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    transform: translateX(-15px);
    transition: all 0.6s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: -1.85rem;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
    border: 3px solid var(--secondary);
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-marker {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

.timeline-content h5 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.timeline-content p {
    font-size: 0.8rem;
}

.skills-grid {
    display: block;
}

@media (min-width: 992px) {
    #skills .skills-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    #skills .skills-items {
        flex-grow: 1;
    }
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 2rem 0;
    opacity: 0.3;
}

hr:last-of-type {
    margin-bottom: 2rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    text-align: center;
    padding: 0.5rem 1rem;
    min-width: 120px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        padding: 1rem;
    }
    
    .stat {
        min-width: auto;
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat {
        padding: 0.75rem;
    }
}

.main-profile-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.avatar-container {
    flex-shrink: 0;
}

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

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

.title {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    font-weight: 300;
}

.badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;

}

.badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 992px) {
    .main-profile-row {
        max-width: 90%;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .main-profile-row {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .profile-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .name,
    .title {
        text-align: center;
    }
    
    .badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-profile-row {
        gap: 1rem;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}