* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e0d 0%, #0d1f1f 40%, #0a1a1a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
    background: #00ff88;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00cc77;
}

.card {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 255, 100, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 255, 100, 0.1);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 255, 100, 0.08);
}

.nav-menu {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 136, 0.08);
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

.nav-links li {
    position: relative;
    z-index: 1;
}

.nav-links li a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 12px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.nav-links li a i {
    font-size: 15px;
    transition: transform 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-links li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}
.nav-links li a:hover i {
    transform: translateY(-2px);
}
.nav-links li a:hover {
    color: #e2e8f0;
}

.nav-links li a.active {
    color: #00ff88;
}

.nav-links .slider {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: calc(100% - 8px);
    background: rgba(0, 255, 136, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.05);
    opacity: 0;
    visibility: hidden;
}
.nav-links .slider.active {
    opacity: 1;
    visibility: visible;
}

.lang-toggle-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 30px;
    padding: 10px 18px;
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lang-toggle-fixed:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.3);
    color: #00ff88;
    transform: scale(1.05);
}

.lang-toggle-fixed i {
    font-size: 16px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 20px auto;
    border: 3px solid #00ff88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2), 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
}
.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.3), 0 8px 30px rgba(0, 0, 0, 0.4);
}

.name {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(0, 255, 100, 0.1);
}

.title {
    font-size: 18px;
    color: #00ff88;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.bio {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 25px;
}

.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lang-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.lang-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.skills-section {
    margin: 20px 0 25px 0;
}

.skills-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
}
.skills-header h3 {
    color: #e2e8f0;
    font-size: 16px;
    margin: 0;
}

.skills-toggle-btn {
    background: none;
    border: none;
    color: #a0aec0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0;
}
.skills-toggle-btn:hover {
    color: #00ff88;
    transform: scale(1.1);
}
.skills-toggle-btn i {
    transition: transform 0.3s ease;
}

.skills-container {
    overflow: hidden;
    max-height: 48px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.skills-container.expanded {
    max-height: 500px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding-top: 10px;
}

.skill-tag {
    background: rgba(0, 255, 136, 0.08);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #a0aec0;
    border: 1px solid rgba(0, 255, 136, 0.15);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.skill-tag:hover {
    background: rgba(0, 255, 136, 0.18);
    border-color: rgba(0, 255, 136, 0.35);
    color: #00ff88;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.08);
}

.skill-tag.pinned {
    background: rgba(0, 255, 136, 0.12);
    border-color: rgba(0, 255, 136, 0.25);
    color: #00ff88;
}
.skill-tag.pinned:hover {
    background: rgba(0, 255, 136, 0.22);
    border-color: rgba(0, 255, 136, 0.4);
}

.skill-tag:not(.pinned) {
    opacity: 0.85;
}
.skills-container:not(.expanded) .skill-tag:not(.pinned) {
    display: none;
}

.star-icon {
    color: #00ff88;
    font-size: 11px;
    transition: all 0.3s ease;
}
.skill-tag.pinned:hover .star-icon {
    color: #66ffaa;
    transform: scale(1.15);
}

.social-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links li a {
    display: block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 136, 0.15);
    backdrop-filter: blur(10px);
}
.social-links li a:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 200, 100, 0.05));
    color: #00ff88;
    border-color: #00ff88;
    transform: scale(1.02) translateX(5px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.social-links li a i {
    margin-right: 10px;
    color: #00ff88;
    transition: all 0.3s ease;
}
.social-links li a:hover i {
    color: #00ff88;
    transform: scale(1.1);
}

.email-link {
    margin-top: 10px;
}

.social-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
    filter: invert(62%) sepia(96%) saturate(600%) hue-rotate(95deg) brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
}
.social-links li a:hover .social-icon {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.visits {
    margin-top: 20px;
    color: #4a5568;
    font-size: 13px;
    color: #4a5568;
}

.works-page {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

.works-page-title {
    color: #ffffff;
    font-size: 36px;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.filter-tab {
    padding: 10px 22px;
    background: rgba(26, 26, 46, 0.6);
    color: #a0aec0;
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-tab:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
    color: #e2e8f0;
    transform: translateY(-2px);
}
.filter-tab.active {
    background: rgba(0, 255, 136, 0.15);
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.05);
}
.filter-tab i {
    font-size: 14px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
}

.work-card {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.work-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 12px 50px rgba(0, 255, 136, 0.1);
}

.work-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(0, 255, 136, 0.05);
}

.work-card-body {
    padding: 20px;
}

.work-card-tag {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.work-card-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.work-card:hover .work-card-title {
    color: #00ff88;
}

.work-card-description {
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.work-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0 10px;
}

.work-card-tag-small {
    background: rgba(0, 255, 136, 0.08);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: #a0aec0;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.work-card-date {
    color: #4a5568;
    font-size: 12px;
    margin-bottom: 12px;
}
.work-card-date i {
    margin-right: 5px;
}

.work-card-link {
    color: #00ff88;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 255, 136, 0.05);
}
.work-card-link:hover {
    color: #66ffaa;
    gap: 12px;
}

.site-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    margin: 30px auto 0;
    padding: 20px 0 10px;
    border-top: 1px solid rgba(0, 255, 136, 0.05);
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-copy {
    color: #4a5568;
    font-size: 13px;
    margin: 0;
}

@media (max-width: 480px) {
    .card {
        padding: 25px;
        margin: 10px;
    }
    .name {
        font-size: 26px;
    }
    .title {
        font-size: 16px;
    }
    .avatar {
        width: 120px;
        height: 120px;
    }
    .social-links li a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .nav-menu {
        padding: 6px;
        border-radius: 12px;
    }
    .nav-links {
        gap: 2px;
    }
    .nav-links li a {
        font-size: 12px;
        padding: 8px 12px;
        border-radius: 10px;
    }
    .nav-links li a i {
        font-size: 13px;
    }
    .nav-links .slider {
        height: calc(100% - 6px);
        border-radius: 10px;
    }

    .lang-toggle-fixed {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .lang-switcher {
        top: 15px;
        right: 15px;
    }
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .skills-header h3 {
        font-size: 14px;
    }
    .skills-toggle-btn {
        font-size: 14px;
        width: 20px;
        height: 20px;
    }
    .skills-container {
        max-height: 42px;
    }
    .skills-container.expanded {
        max-height: 400px;
    }
    .skill-tag {
        font-size: 12px;
        padding: 4px 12px;
    }
    .star-icon {
        width: 12px;
        height: 12px;
    }

    .filter-tabs {
        gap: 6px;
    }
    .filter-tab {
        padding: 6px 14px;
        font-size: 12px;
    }
    .filter-tab i {
        font-size: 12px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .works-page {
        padding: 10px;
    }
    .works-page-title {
        font-size: 24px;
    }
    .work-card-image {
        height: 180px;
    }
}

@media (max-width: 380px) {
    .nav-links li a {
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .card {
        padding: 35px;
    }
    .avatar {
        width: 140px;
        height: 140px;
    }

    .filter-tabs {
        gap: 8px;
    }
    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .works-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .works-page-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    .work-card-image {
        height: 160px;
    }
    .work-card-body {
        padding: 15px;
    }
    .work-card-title {
        font-size: 17px;
    }
}