:root {
    --primary: #0a0a0a;
    --secondary: rgba(26, 26, 26, 0.8);
    --accent: #ffffff;
    --text: #e0e0e0;
    --highlight: rgba(58, 58, 58, 0.6);
    --weather-blue: #4fc3f7;
    --weather-yellow: #ffcc00;
    --weather-gray: #a0a0a0;
    --main-accent: #6a46d2; /* Изменён основной акцентный цвет */
    --kotlin-purple: #7F52FF;
    --typescript-blue: #3178C6;
    --android-green: #3DDC84;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 5px rgba(106, 70, 210, 0.3); }
    50% { text-shadow: 0 0 15px rgba(106, 70, 210, 0.7); }
    100% { text-shadow: 0 0 5px rgba(106, 70, 210, 0.3); }
}

@keyframes sideBarPulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Star animations */
@keyframes twinkle {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

@keyframes twinkleFast {
    0% { opacity: 0.1; }
    25% { opacity: 0.8; }
    50% { opacity: 0.3; }
    75% { opacity: 0.9; }
    100% { opacity: 0.1; }
}

@keyframes shootingStar {
    0% { transform: translateX(0) translateY(0); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateX(1000px) translateY(300px); opacity: 0; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

html, body {
    height: 100%;
    color: var(--text);
    overflow-x: hidden;
}

body {
    background: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    z-index: -3;
    pointer-events: none;
    will-change: transform;
    animation: fadeOut 10s forwards;
}

.star-small {
    width: 1px;
    height: 1px;
    box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.93);
    animation: twinkle 5s infinite ease-in-out, fadeOut 10s forwards;
}

.star-medium {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 3px 1px rgba(255, 255, 255, 0.9);
    animation: twinkle 4s infinite ease-in-out, fadeOut 10s forwards;
    animation-delay: 1s;
}

.star-large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 1);
    animation: twinkleFast 3s infinite ease-in-out, fadeOut 10s forwards;
}

.shooting-star {
    position: absolute;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right,
    rgba(255,255,255,0) 0%,
    rgba(255, 255, 255, 0.9) 30%,
    rgba(255,255,255,0) 100%);
    transform: rotate(-45deg);
    animation: shootingStar 3s infinite;
    opacity: 0;
    z-index: -2;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes twinkleFast {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes shootingStar {
    0% { transform: translateX(0) translateY(0) rotate(-45deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateX(500px) translateY(150px) rotate(-45deg); opacity: 0; }
}

.parallax-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    z-index: -2;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.70);
    backdrop-filter: blur(2px);
    z-index: -1;
}

main {
    max-width: 900px;
    width: 100%;
    background-color: var(--secondary);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--main-accent);
    animation: sideBarPulse 3s ease-in-out infinite;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.avt {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--highlight);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hi-text {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.hi-text span {
    color: var(--main-accent);
    animation: textGlow 3s ease-in-out infinite;
}

.about {
    line-height: 1.6;
    opacity: 0.9;
    font-size: 16px;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--highlight);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-item:hover {
    background-color: var(--main-accent);
    color: var(--accent);
    box-shadow: 0 4px 15px rgba(106, 70, 210, 0.3);
}

.link-item i {
    font-size: 18px;
}

.time-display {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.time-display-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(58, 58, 58, 0.3);
    padding: 5px 10px;
    border-radius: 20px;
}

.weather-icon {
    font-family: 'weathericons';
    font-size: 14px;
    width: 16px;
    display: inline-block;
    text-align: center;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Цвета для разных типов погоды */
.wi-day-sunny { color: var(--weather-yellow); }
.wi-night-clear { color: var(--weather-yellow); }
.wi-cloud { color: var(--weather-gray); }
.wi-cloudy { color: var(--weather-gray); }
.wi-rain { color: var(--weather-blue); }
.wi-snow { color: var(--accent); }
.wi-thunderstorm { color: var(--weather-blue); }
.wi-fog { color: var(--weather-gray); }
.wi-na { color: var(--accent); }

/* Report Button */
.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    color: #ff4d4d;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.report-btn:hover {
    color: #ff1a1a;
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.3);
}

.tech-line {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    position: relative;
}

.tech-chip {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin-right: -6px; /* Наложение */
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%, 10% 50%);
}

/* Цвета */
.tech-chip.java { background: rgba(83, 130, 161, 0.2); }
.tech-chip.kotlin { background: rgba(127, 82, 255, 0.2); }
.tech-chip.spring { background: rgba(109, 179, 63, 0.2); }
.tech-chip.js { background: rgba(247, 223, 30, 0.2); }
.tech-chip.git { background: rgba(240, 80, 50, 0.2); }

/* Эффект при наведении */
.tech-chip:hover {
    z-index: 2;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Первый и последний элемент без скоса */
.tech-chip:first-child {
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
    border-radius: 4px 0 0 4px;
    padding-left: 1.2rem;
}
.tech-chip:last-child {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 10% 50%);
    border-radius: 0 4px 4px 0;
    padding-right: 1.2rem;
    margin-right: 0;
}

#cnv{
    position: fixed;
}

@media (max-width: 768px) {
    main {
        padding: 30px;
    }

    .profile {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .links {
        flex-direction: column;
        gap: 12px;
    }

    .time-display {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 20px;
    }

    .hi-text {
        font-size: 26px;
    }

    .about {
        font-size: 15px;
    }

    .avt {
        width: 80px;
        height: 80px;
    }

    .tech-items {
        gap: 10px;
    }

    .tech-item {
        padding: 8px 12px;
        font-size: 14px;
    }
}