
* {
    box-sizing: border-box;
}


@font-face {
    font-family: 'font';
    src: url('fonts/spec.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'font1';
    src: url('fonts/spec1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background: linear-gradient(
            -45deg,
            #0f172a,
            #1e293b,
            #2e415e,
            #2b5d88
    );

    background-size: 400% 400%;

    animation: gradientMove 15s ease infinite;
}


.stars {
    position: fixed;
    inset: 0;

    background-image:
            radial-gradient(2px 2px at 20px 30px, white, transparent),
            radial-gradient(2px 2px at 40px 70px, white, transparent),
            radial-gradient(1px 1px at 90px 40px, white, transparent),
            radial-gradient(2px 2px at 160px 120px, white, transparent),
            radial-gradient(1px 1px at 200px 80px, white, transparent);

    background-size: 300px 300px;

    opacity: 0.25;

    z-index: -2;

    animation: starsMove 60s linear infinite;
}

@keyframes starsMove {

    from {
        background-position: 0 0;
    }

    to {
        background-position: -1000px 1000px;
    }

}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
header {
    background-color: transparent;
}

html {
    scroll-behavior: smooth;
}

.music-player {
    position: fixed;

    top: 20px;
    right: 20px;

    width: 270px;
    padding: 16px;
    border-radius: 18px;

    background: rgba(20, 22, 26, 0.6);
    backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 12px 30px rgba(0,0,0,0.35);

    color: #ffffff;

    font-family: 'font1', sans-serif;

    z-index: 1000;
}

.music-cover {
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.music-meta {
    margin: 12px 2px 14px;
}

.music-title {
    margin: 0 0 2px;

    font-size: 15px;
    font-weight: 700;
    color: #ffffff;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    margin: 0;

    font-size: 12px;
    color: #b3b3b3;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6px;
    margin-bottom: 12px;
}

.ctl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: none;

    color: #ffffff;

    cursor: pointer;

    transition: color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.ctl-btn svg {
    width: 18px;
    height: 18px;
}

.ctl-btn:hover:not(:disabled) {
    color: #1DB954;
}

.ctl-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.ctl-play {
    width: 44px;
    height: 44px;

    background: #1DB954;
    color: #000000;
}

.ctl-play svg {
    width: 20px;
    height: 20px;
}

.ctl-play:hover:not(:disabled) {
    color: #000000;
    transform: scale(1.06);
}

.ctl-play .icon-play {
    margin-left: 2px;
}

.ctl-play .icon-pause {
    display: none;
}

.music-player.playing .ctl-play .icon-play {
    display: none;
}

.music-player.playing .ctl-play .icon-pause {
    display: block;
}

.progress-row {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 10px;
}

.progress-row .time {
    min-width: 32px;

    font-size: 11px;
    color: #b3b3b3;

    font-variant-numeric: tabular-nums;
}

.progress-row .time:last-child {
    text-align: right;
}

.progress {
    flex: 1;

    height: 4px;

    border-radius: 999px;

    background: rgba(255,255,255,0.14);

    cursor: pointer;

    position: relative;

    touch-action: none;
}

.progress-fill {
    height: 100%;

    width: 0%;

    border-radius: 999px;

    background: #ffffff;

    transition: background 0.2s ease;
}

.progress:hover .progress-fill {
    background: #1DB954;
}

.player-volume {
    display: flex;
    align-items: center;

    gap: 10px;
}

.vol-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    padding: 0;
    border: none;

    background: none;

    color: #b3b3b3;

    cursor: pointer;

    transition: color 0.2s ease;
}

.vol-btn svg {
    width: 18px;
    height: 18px;
}

.vol-btn:hover {
    color: #ffffff;
}

.vol-btn .icon-mute {
    display: none;
}

.music-player.muted .vol-btn .icon-vol {
    display: none;
}

.music-player.muted .vol-btn .icon-mute {
    display: block;
}

#volume {
    flex: 1;

    appearance: none;
    -webkit-appearance: none;

    height: 4px;

    border-radius: 999px;

    background: rgba(255,255,255,0.14);

    cursor: pointer;

    outline: none;
}

#volume::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 12px;
    height: 12px;

    border: none;
    border-radius: 50%;

    background: #1DB954;

    transition: transform 0.15s ease;
}

#volume::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

#volume::-moz-range-thumb {
    width: 12px;
    height: 12px;

    border: none;
    border-radius: 50%;

    background: #1DB954;

    cursor: pointer;
}

.content-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}


/*.content-wrapper-about {*/
/*    margin-top: 80px;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: flex-start;*/
/*    min-height: 50vh;*/
/*    width: 100%;*/
/*    color: #c0efff;*/
/*}*/

#about {
    font-family: 'font1', sans-serif;
    font-size: 16px;
    color: #c0efff;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

#about h1 {
    margin-top: 0;
    font-family: 'font1', sans-serif; /* Твой шрифт */
    font-size: 32px;
    margin-bottom: 20px;
}
.second-block {
    font-family: 'font1', sans-serif;
    font-size: 16px;
    color: #c0efff;

    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);

    line-height: 1.6;
    padding: 20px;

    width: 250px;
    margin-left: 20px;
}

.second-block h1 {
    margin-top: 0;
    color: #c0efff;
}

.about-text {
    color: #d6f4ff;
    line-height: 1.7;
    margin-bottom: 25px;
}

.skills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.skills span {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);

    padding: 8px 14px;
    border-radius: 12px;

    color: #c0efff;
    font-size: 14px;
}
.projects-section {
    width: 100%;
    max-width: 700px;
}
.project-card {
    font-family: 'font1', sans-serif;
    color: #c0efff;

    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);

    box-shadow: 0 20px 40px rgba(0,0,0,0.2);

    padding: 25px;
}

.project-card h1 {
    margin-top: 0;
    margin-bottom: 15px;
}

.project-description {
    color: #d6f4ff;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.project-stack span {
    padding: 8px 14px;

    border-radius: 12px;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);

    font-size: 14px;
}

.support-block {
    margin-top: 25px;

    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.support-block p {
    color: #c0efff;
    margin-bottom: 15px;
}

.support-block a {
    display: inline-block;

    text-decoration: none;
    color: #0f172a;

    background: #87fbea;

    padding: 10px 18px;
    border-radius: 12px;

    font-weight: bold;

    transition: 0.3s ease;
}

.support-block a:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(135,251,234,0.4);
}

.project-button {
    display: inline-block;

    text-decoration: none;
    color: #c0efff;

    padding: 12px 18px;

    border-radius: 14px;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);

    transition: 0.3s ease;
}

.project-button:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}
.status {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #9fe870;
    font-size: 14px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9fe870;

    box-shadow: 0 0 10px #9fe870;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-links a {
    text-decoration: none;
    color: #c0efff;

    padding: 10px 15px;
    border-radius: 12px;

    background: rgba(255,255,255,0.05);
    transition: 0.3s ease;
}

.social-links a:hover {
    background: rgba(255,255,255,0.12);
    transform: translateX(5px);
}

.tab-content {
    display: none;
    padding: 20px;
    color: #333;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}
.top-nav {
    padding: 10px 20px;
    background-color: transparent;
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 149, 255, 0.2) 0%, rgba(0, 149, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor-glow.active {
    width: 150px;
    height: 150px;
    opacity: 0.8;
}

.nav-list {
    display: inline-flex;
    align-items: center;
    gap: 20px;

    list-style: none;

    padding: 12px 24px;

    border-radius: 18px;

    font-family: 'font', sans-serif;
    font-size: 16px;

    background: rgba(255,255,255,0.03);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
            0 10px 30px rgba(0,0,0,0.15);

    color: #c0efff;
}

.nav-list a {
    position: relative;

    text-decoration: none;

    color: #c0efff;

    font-size: 16px;

    transition: 0.3s ease;
}

.nav-list a:hover {
    color: #c0efff;
}
.nav-list a::after {
    content: '';

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0;
    height: 2px;

    border-radius: 10px;

    background: #87fbea;

    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.tilt-card {
    position: relative;

    transform-style: preserve-3d;

    will-change: transform;

    transition: transform 0.18s ease-out;
}

.glow-card::before {
    content: '';

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background: radial-gradient(
            550px circle at var(--mx, 50%) var(--my, 50%),
            rgba(135, 251, 234, 0.14),
            transparent 45%
    );

    opacity: 0;

    transition: opacity 0.3s ease;

    pointer-events: none;
}

.glow-card:hover::before {
    opacity: 1;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {

    .tilt-card {
        transform: none !important;
        transition: none;
    }

    .glow-card::before {
        display: none;
    }

    .cursor-glow {
        display: none;
    }

}

@media (max-width: 1100px) {

    .content-wrapper {
        flex-direction: column;
        align-items: center;

        gap: 20px;
    }

    #about,
    .second-block,
    .projects-section {
        width: 90%;
        max-width: 700px;

        margin-left: 0;
    }

    .music-player {
        position: relative;

        top: auto;
        right: auto;

        margin: 20px auto;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

}

@media (max-width: 640px) {

    .content-wrapper {
        margin-top: 16px;
        padding: 0 14px;
        gap: 14px;
    }

    #about,
    .second-block,
    .project-card {
        width: 100%;
        max-width: 100%;
    }

    #about,
    .second-block,
    .project-card,
    .tab-content {
        padding: 18px;
        border-radius: 20px;
    }

    .music-player {
        width: 100%;
        max-width: 400px;

        margin: 14px auto;
    }

    .top-nav {
        padding: 8px 0;
    }

    .nav-list {
        width: 100%;

        justify-content: space-around;

        gap: 10px;

        padding: 10px 14px;

        font-size: 15px;
    }

    .nav-list a {
        padding: 6px 4px;
    }

    .social-links a {
        padding: 13px 16px;
        font-size: 15px;
    }

    .skills span,
    .project-stack span {
        padding: 8px 13px;
        font-size: 13px;
    }

    .support-block a,
    .project-button {
        padding: 12px 20px;
    }

    .project-button {
        display: block;
        text-align: center;
    }

    .music-meta {
        margin: 12px 2px 12px;
    }

    .progress::after {
        content: '';

        position: absolute;

        top: -8px;
        bottom: -8px;
        left: 0;
        right: 0;
    }

}