:root {
    --bg-main: #181a20;
    --bg-secondary: #23263a;
    --accent: #00ffe7;
    --accent2: #ff00ea;
    --text-main: #e0e0e0;
    --text-secondary: #a0a0a0;
    --glow: 0 0 8px var(--accent), 0 0 16px var(--accent2);
    --radius: 18px;
    --font-main: 'Roboto', Arial, sans-serif;
    --font-future: 'Orbitron', 'Roboto', Arial, sans-serif;
}

html, body {
    min-height: 100%;
    background: 
        /* Космически градиент */
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 30%, #16213e 60%, #0f3460 100%),
        
        /* Галактики - големи кръгове */
        radial-gradient(200px 200px at 10% 20%, rgba(0,255,231,0.03) 0%, transparent 50%),
        radial-gradient(150px 150px at 90% 80%, rgba(255,0,234,0.04) 0%, transparent 50%),
        radial-gradient(180px 180px at 50% 10%, rgba(0,255,231,0.02) 0%, transparent 50%),
        
        /* Космически облаци */
        radial-gradient(300px 300px at 80% 30%, rgba(255,255,255,0.01) 0%, transparent 60%),
        radial-gradient(250px 250px at 20% 70%, rgba(0,255,231,0.015) 0%, transparent 60%),
        
        /* Отдалечени звезди */
        radial-gradient(1px 1px at 5% 15%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(1px 1px at 95% 85%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(2px 2px at 15% 75%, rgba(0,255,231,0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 85% 25%, rgba(255,0,234,0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 75% 65%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(1px 1px at 25% 35%, rgba(0,255,231,0.7) 50%, transparent 50%),
        radial-gradient(2px 2px at 65% 45%, rgba(255,0,234,0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 35% 55%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(2px 2px at 55% 35%, rgba(0,255,231,0.5) 50%, transparent 50%),
        radial-gradient(1px 1px at 45% 65%, rgba(255,0,234,0.7) 50%, transparent 50%),
        
        /* Космически прах */
        radial-gradient(0.5px 0.5px at 30% 40%, rgba(255,255,255,0.4) 50%, transparent 50%),
        radial-gradient(0.5px 0.5px at 70% 60%, rgba(0,255,231,0.3) 50%, transparent 50%),
        radial-gradient(0.5px 0.5px at 40% 30%, rgba(255,0,234,0.4) 50%, transparent 50%),
        radial-gradient(0.5px 0.5px at 60% 70%, rgba(255,255,255,0.3) 50%, transparent 50%);
    
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 16px;
    scroll-behavior: smooth;
    animation: deepSpaceFloat 20s ease-in-out infinite alternate;
}

.cyber-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: 
        /* Допълнителни космически елементи */
        radial-gradient(circle at 80% 20%, rgba(0,255,231,0.05) 0, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(255,0,234,0.05) 0, transparent 60%),
        
        /* Космически частици */
        radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 88% 82%, rgba(0,255,231,0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 22% 78%, rgba(255,0,234,0.4) 50%, transparent 50%),
        radial-gradient(1px 1px at 78% 22%, rgba(255,255,255,0.7) 50%, transparent 50%),
        
        /* Космически линии */
        linear-gradient(30deg, transparent 35%, rgba(0,255,231,0.1) 40%, rgba(0,255,231,0.1) 45%, transparent 50%),
        linear-gradient(-30deg, transparent 35%, rgba(255,0,234,0.08) 40%, rgba(255,0,234,0.08) 45%, transparent 50%);
    
    pointer-events: none;
    animation: cosmicParticles 15s ease-in-out infinite alternate;
}

.cv-header {
    background: var(--bg-secondary);
    border: 3px solid transparent;
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px 0 var(--accent), 0 0 50px 0 var(--accent2), 0 0 75px 0 var(--accent), 0 0 100px 0 var(--accent);
    transition: box-shadow 0.25s, border-color 0.25s, background 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cv-header::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--accent2) 0%, var(--accent2) 50%, var(--accent) 50%, var(--accent) 100%);
    border-radius: var(--radius);
    z-index: -1;
    box-shadow: 0 0 12px var(--accent);
}

.cv-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0,255,231,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,0,234,0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(0,255,231,0.05) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255,0,234,0.05) 50%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300ffe7' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3Cg fill='%23ff00ea' fill-opacity='0.03'%3E%3Ccircle cx='15' cy='15' r='1.5'/%3E%3Ccircle cx='45' cy='45' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300ffe7' fill-opacity='0.02'%3E%3Cpath d='M20 20c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.5-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: backgroundShift 8s ease-in-out infinite, graphFloat 12s ease-in-out infinite;
    z-index: 0;
}

.graph-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: nodePulse 3s ease-in-out infinite;
}

.graph-node:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.graph-node:nth-child(2) {
    top: 35%;
    left: 25%;
    animation-delay: 0.5s;
}

.graph-node:nth-child(3) {
    top: 25%;
    left: 40%;
    animation-delay: 1s;
}

.graph-node:nth-child(4) {
    top: 50%;
    left: 35%;
    animation-delay: 1.5s;
}

.graph-node:nth-child(5) {
    top: 65%;
    left: 50%;
    animation-delay: 2s;
}

.graph-node:nth-child(6) {
    top: 45%;
    left: 65%;
    animation-delay: 2.5s;
}

.graph-node:nth-child(7) {
    top: 30%;
    left: 75%;
    animation-delay: 3s;
}

.graph-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    box-shadow: 0 0 4px var(--accent);
    animation: lineFlow 4s ease-in-out infinite;
}

.graph-line:nth-child(8) {
    top: 22%;
    left: 18%;
    width: 12%;
    transform: rotate(15deg);
    animation-delay: 0s;
}

.graph-line:nth-child(9) {
    top: 30%;
    left: 32%;
    width: 10%;
    transform: rotate(-10deg);
    animation-delay: 0.5s;
}

.graph-line:nth-child(10) {
    top: 37%;
    left: 37%;
    width: 8%;
    transform: rotate(25deg);
    animation-delay: 1s;
}

.graph-line:nth-child(11) {
    top: 57%;
    left: 42%;
    width: 12%;
    transform: rotate(-5deg);
    animation-delay: 1.5s;
}

.graph-line:nth-child(12) {
    top: 55%;
    left: 57%;
    width: 10%;
    transform: rotate(20deg);
    animation-delay: 2s;
}

.graph-line:nth-child(13) {
    top: 37%;
    left: 67%;
    width: 9%;
    transform: rotate(-15deg);
    animation-delay: 2.5s;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateX(-10px) translateY(-5px) scale(1.05);
        opacity: 1;
    }
    50% {
        transform: translateX(5px) translateY(-10px) scale(0.95);
        opacity: 0.9;
    }
    75% {
        transform: translateX(-5px) translateY(5px) scale(1.02);
        opacity: 1;
    }
}

@keyframes graphFloat {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateX(-5px) translateY(-3px) rotate(1deg);
        opacity: 0.4;
    }
    50% {
        transform: translateX(3px) translateY(-5px) rotate(-1deg);
        opacity: 0.35;
    }
    75% {
        transform: translateX(-3px) translateY(3px) rotate(0.5deg);
        opacity: 0.4;
    }
}

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 8px var(--accent);
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 16px var(--accent), 0 0 24px var(--accent2);
    }
}

@keyframes lineFlow {
    0%, 100% {
        opacity: 0.4;
        box-shadow: 0 0 4px var(--accent);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 8px var(--accent), 0 0 12px var(--accent2);
    }
}

.cv-header > * {
    position: relative;
    z-index: 1;
}

.profile-pic {
    margin-bottom: 1rem;
}

.profile-pic img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 0 16px var(--accent);
    object-fit: cover;
    object-position: top center;
}

.profile-info {
    text-align: center;
    max-width: 600px;
}

.profile-info h1 {
    font-family: var(--font-future);
    color: var(--accent);
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 12px var(--accent);
}

.profile-info h2 {
    font-family: var(--font-future);
    color: var(--accent2);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 8px var(--accent2);
}

.profile-info .motto {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 4px var(--text-secondary);
}

.download-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--accent);
    text-decoration: none;
    padding: 1.1rem 2.4rem;
    border-radius: var(--radius);
    font-family: var(--font-future);
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 1.2px;
    box-shadow: 0 6px 24px 0 var(--accent), 0 0 32px 0 var(--accent2);
    transition: box-shadow 0.3s, transform 0.2s, outline 0.2s;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
    outline: 2px solid transparent;
}

.download-cv-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s cubic-bezier(.4,2,.6,1);
    pointer-events: none;
}

.download-cv-btn:hover {
    transform: translateY(-4px) scale(1.04) rotate(-1deg);
    box-shadow: 0 10px 32px 0 var(--accent), 0 0 48px 0 var(--accent2), 0 0 16px 0 var(--accent);
    border-color: var(--accent2);
    outline: 2.5px solid var(--accent);
}

.download-cv-btn:hover::before {
    left: 100%;
}

.download-cv-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0,255,231,0.3), 0 1px 4px rgba(255,0,234,0.3);
    outline: 2.5px solid var(--accent2);
}

.download-cv-btn .download-icon {
    font-size: 1.3em;
    color: var(--accent2);
    filter: drop-shadow(0 0 6px var(--accent));
    margin-right: 0.2em;
    transition: color 0.2s, filter 0.2s;
}

.download-cv-btn:hover .download-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent2));
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 5;
    position: relative;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 4px var(--accent);
}

.menu-toggle:hover .bar {
    background: var(--accent2);
    box-shadow: 0 0 6px var(--accent2);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.cv-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    z-index: 1;
    position: relative;
}
.cv-nav ul.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    padding: 0;
    transition: max-height 0.3s, opacity 0.3s;
}
.cv-nav a {
    font-family: var(--font-future);
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, text-shadow 0.2s;
    box-shadow: 0 0 0px 0 var(--accent2);
    cursor: pointer;
    text-shadow: 0 0 6px var(--accent);
}
.cv-nav a:hover, .cv-nav a:focus {
    background: var(--accent2);
    color: #fff;
    box-shadow: 0 0 12px 0 var(--accent2);
    text-shadow: 0 0 10px #fff, 0 0 20px #fff;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.cv-section {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
    border-width: 3px;
    border-style: solid;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}
#contacts.cv-section,
#personal-projects.cv-section,
#education.cv-section,
#certificates.cv-section {
    border-color: var(--accent);
}
#about.cv-section {
    border-color: var(--accent2);
}
#contacts.cv-section {
    position: relative;
    z-index: 10;
}


.cv-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: 
        /* Космически градиент */
        linear-gradient(120deg, rgba(0,255,231,0.08) 0%, rgba(255,0,234,0.08) 100%),
        
        /* Звезди - малки точки */
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(2px 2px at 40% 70%, rgba(0,255,231,0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(1px 1px at 80% 80%, rgba(255,0,234,0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 10% 50%, rgba(0,255,231,0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(2px 2px at 70% 60%, rgba(255,0,234,0.5) 50%, transparent 50%),
        radial-gradient(1px 1px at 30% 90%, rgba(0,255,231,0.7) 50%, transparent 50%),
        
        /* Планети - големи кръгове */
        radial-gradient(15px 15px at 85% 25%, rgba(0,255,231,0.1) 0%, transparent 70%),
        radial-gradient(12px 12px at 15% 75%, rgba(255,0,234,0.08) 0%, transparent 70%),
        
        /* Космически частици - малки линии */
        linear-gradient(45deg, transparent 40%, rgba(0,255,231,0.1) 45%, rgba(0,255,231,0.1) 55%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255,0,234,0.08) 45%, rgba(255,0,234,0.08) 55%, transparent 60%),
        
        /* Nebula ефекти */
        radial-gradient(circle at 80% 20%, rgba(0,255,231,0.06) 0, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255,0,234,0.06) 0, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0,255,231,0.03) 0, transparent 70%);
    
    opacity: 0.9;
    pointer-events: none;
    animation: cosmicFloat 12s ease-in-out infinite alternate, starTwinkle 4s ease-in-out infinite;
    filter: blur(1px);
}
@keyframes cosmicFloat {
    0% { 
        background-position: 
            0% 50%, 
            20% 30%, 40% 70%, 60% 20%, 80% 80%, 10% 50%, 90% 10%, 70% 60%, 30% 90%,
            85% 25%, 15% 75%,
            0% 0%, 100% 100%,
            80% 20%, 20% 80%, 50% 50%;
    }
    100% { 
        background-position: 
            100% 50%, 
            25% 35%, 45% 65%, 65% 25%, 75% 75%, 15% 45%, 85% 15%, 65% 55%, 35% 85%,
            80% 30%, 20% 70%,
            10% 10%, 90% 90%,
            75% 25%, 25% 75%, 45% 55%;
    }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}

@keyframes meteorShower {
    0% { 
        background-position: 
            5% 15%, 95% 85%, 50% 10%, 25% 85%, 75% 15%,
            35% 45%, 65% 55%, 45% 35%,
            0% 0%, 100% 100%;
    }
    100% { 
        background-position: 
            10% 20%, 90% 80%, 55% 15%, 30% 80%, 70% 20%,
            40% 50%, 60% 50%, 50% 40%,
            20% 20%, 80% 80%;
    }
}

@keyframes cosmicDust {
    0% { 
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.7;
    }
    100% { 
        transform: translateX(-5px) translateY(-3px) scale(1.05);
        opacity: 0.5;
    }
}

@keyframes deepSpaceFloat {
    0% { 
        background-position: 
            0% 0%, 30% 60%, 60% 100%,
            10% 20%, 90% 80%, 50% 10%,
            80% 30%, 20% 70%,
            5% 15%, 95% 85%, 15% 75%, 85% 25%, 75% 65%, 25% 35%, 65% 45%, 35% 55%, 55% 35%, 45% 65%,
            30% 40%, 70% 60%, 40% 30%, 60% 70%;
    }
    100% { 
        background-position: 
            10% 10%, 40% 70%, 70% 90%,
            15% 25%, 85% 75%, 45% 15%,
            75% 35%, 25% 65%,
            10% 20%, 90% 80%, 20% 70%, 80% 30%, 70% 60%, 30% 40%, 60% 50%, 40% 50%, 50% 40%, 50% 60%,
            35% 45%, 65% 55%, 45% 35%, 55% 65%;
    }
}

@keyframes cosmicParticles {
    0% { 
        background-position: 
            80% 20%, 20% 80%,
            12% 18%, 88% 82%, 22% 78%, 78% 22%,
            0% 0%, 100% 100%;
    }
    100% { 
        background-position: 
            75% 25%, 25% 75%,
            15% 22%, 85% 78%, 28% 72%, 72% 28%,
            20% 20%, 80% 80%;
    }
}

@keyframes sectionBgMove {
    0% { background-position: 0% 50%, 80% 20%, 20% 80%; }
    100% { background-position: 100% 50%, 60% 40%, 40% 60%; }
}
.cv-section > * {
    position: relative;
    z-index: 1;
    padding-left: 1em;
    padding-right: 1em;
}

/* Допълнителни космически елементи */
.cv-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: 
        /* Допълнителни звезди */
        radial-gradient(1px 1px at 5% 15%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(1px 1px at 95% 85%, rgba(0,255,231,0.7) 50%, transparent 50%),
        radial-gradient(2px 2px at 50% 10%, rgba(255,0,234,0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 25% 85%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(2px 2px at 75% 15%, rgba(0,255,231,0.5) 50%, transparent 50%),
        
        /* Космически прах */
        radial-gradient(0.5px 0.5px at 35% 45%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(0.5px 0.5px at 65% 55%, rgba(0,255,231,0.4) 50%, transparent 50%),
        radial-gradient(0.5px 0.5px at 45% 35%, rgba(255,0,234,0.5) 50%, transparent 50%),
        
        /* Метеори */
        linear-gradient(60deg, transparent 30%, rgba(255,255,255,0.3) 35%, rgba(255,255,255,0.3) 40%, transparent 45%),
        linear-gradient(-60deg, transparent 30%, rgba(0,255,231,0.2) 35%, rgba(0,255,231,0.2) 40%, transparent 45%);
    
    opacity: 0.7;
    pointer-events: none;
    animation: meteorShower 8s ease-in-out infinite, cosmicDust 6s ease-in-out infinite alternate;
}
.cv-section h3 {
    font-family: var(--font-future);
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-shadow: 0 0 8px var(--accent);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem 2rem;
    align-items: center;
}
.contacts-grid div {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(24,26,32,0.7);
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    box-shadow: 0 0 8px 0 var(--accent2), 0 0 2px 0 var(--accent);
    font-size: 1rem;
    transition: background 0.2s;
}
.contacts-grid img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 4px var(--accent));
}
.contacts-grid a {
    color: var(--accent2);
    text-decoration: underline;
    transition: color 0.2s;
    cursor: pointer;
}
.contacts-grid a:hover {
    color: var(--accent);
}

.edu-block {
    margin-bottom: 2rem;
    cursor: pointer;
}
.edu-block h4 {
    font-family: var(--font-future);
    color: var(--accent2);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    text-shadow: 0 0 6px var(--accent2);
}
.edu-block span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    display: block;
    text-shadow: 0 0 3px var(--text-secondary);
}
.edu-block ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
}
.edu-block li {
    background: rgba(0,255,231,0.08);
    color: var(--accent);
    border: 1px solid var(--accent2);
    border-radius: 12px;
    padding: 0.4rem 1rem;
    font-size: 0.98rem;
    font-family: var(--font-future);
    box-shadow: 0 0 6px 0 var(--accent2);
    transition: background 0.2s, color 0.2s;
}
.edu-block li:hover {
    background: var(--accent2);
    color: #fff;
}

.certificates-carousel {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 18px;
    margin-top: 1.5rem;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-secondary);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.certificates-carousel::-webkit-scrollbar {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}
.certificates-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(120deg, var(--accent), var(--accent2));
    border-radius: 8px;
    box-shadow: 0 0 8px var(--accent2), 0 0 2px var(--accent);
    border: 2px solid var(--bg-secondary);
    transition: background 0.3s;
}
.certificates-carousel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(120deg, var(--accent2), var(--accent));
}
.certificates-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    min-width: 100%;
    padding-bottom: 2px;
    padding-top: 30px;
}
.certificates-carousel .cert-card {
    min-width: 280px;
    max-width: 320px;
    flex: 0 0 280px;
    margin-right: 0;
    transition: transform 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.25s, filter 0.25s;
    scroll-snap-align: center;
    filter: blur(0.5px) brightness(0.95);
    opacity: 0.85;
    z-index: 1;
    transform: scale(0.92) perspective(600px) rotateY(-8deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 1rem 1rem 1rem;
    background: rgba(24,26,32,0.92);
    border: 3px solid var(--accent);
    box-shadow: none;
    border-radius: 16px;
    min-height: 140px;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
}
.certificates-carousel .cert-card.active {
    filter: none;
    opacity: 1;
    z-index: 2;
    border-color: var(--accent2);
    box-shadow: none;
    transform: scale(1.08) perspective(600px) rotateY(0deg);
}
.certificates-carousel .cert-card.prev,
.certificates-carousel .cert-card.next {
    filter: blur(0.2px) brightness(0.98);
    opacity: 0.92;
    z-index: 1;
    transform: scale(0.97) perspective(600px) rotateY(8deg);
}
.certificates-carousel .cert-card:hover {
    transform: scale(1.12) perspective(600px) rotateY(0deg);
    border-color: var(--accent2);
    box-shadow: none;
    z-index: 3;
    filter: none;
    opacity: 1;
}
.certificates-carousel .cert-img {
    width: 100%;
    max-width: 180px;
    max-height: 110px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0.7rem;
    display: block;
    border: none;
    box-shadow: none;
}
.certificates-carousel .cert-title {
    font-family: var(--font-future);
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 6px var(--accent);
}
.certificates-carousel .cert-org {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.5;
}
@media (max-width: 900px) {
    .certificates-carousel .cert-card {
        min-width: 220px;
        max-width: 260px;
        flex: 0 0 220px;
    }
    .certificates-carousel .cert-img {
        max-width: 140px;
        max-height: 85px;
    }
    
    .contacts-grid div {
        font-size: 0.95rem;
        padding: 0.6rem 0.9rem;
    }
    
    .contacts-grid img {
        width: 26px;
        height: 26px;
    }
    
    .contact-link {
        font-size: 0.95rem;
        padding: 0.6rem 0.9rem;
    }
    
    .contact-link img {
        width: 26px;
        height: 26px;
    }
}
@media (max-width: 700px) {
    .certificates-carousel .cert-card {
        min-width: 170px;
        max-width: 200px;
        flex: 0 0 170px;
    }
    .certificates-carousel .cert-img {
        max-width: 100px;
        max-height: 60px;
    }
    
    .contacts-grid div {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    
    .contacts-grid img {
        width: 24px;
        height: 24px;
    }
    
    .contact-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    
    .contact-link img {
        width: 24px;
        height: 24px;
    }
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(24,26,32,0.92);
    backdrop-filter: blur(2px);
    transition: opacity 0.2s, transform 0.3s cubic-bezier(.4,2,.6,1);
    transform: scale(0.98);
    padding: 2rem;
    box-sizing: border-box;
}

.modal:not(.hidden) {
    transform: scale(1);
}

.modal-content {
    max-width: calc(100% - 4rem);
    max-height: calc(100% - 4rem);
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    animation: modalPop 0.3s cubic-bezier(.4,2,.6,1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    outline: none;
    z-index: 1000;
    object-fit: contain;
}

#modal-img {
    border: 5px solid var(--accent);
    outline: none;
    box-shadow: 0 0 32px 0 var(--accent);
    z-index: 1001;
}

.modal-content.changing {
    opacity: 0.7;
    transform: scale(0.95);
}

@keyframes modalPop {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: var(--accent2);
    background: rgba(24,26,32,0.9);
    border: 2px solid var(--accent2);
    border-radius: 50%;
    cursor: pointer;
    text-shadow: 0 0 12px var(--accent2);
    z-index: 1002;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--accent2);
}

.close-modal:hover {
    background: var(--accent2);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--accent2);
}





@media (max-width: 800px) {
    .modal {
        padding: 1.5rem;
        box-sizing: border-box;
    }
    
    .modal-content {
        max-width: calc(100% - 3rem);
        max-height: calc(100% - 3rem);
        margin: 0;
        padding: 0;
    }
    
    .close-modal {
        top: 15px;
        right: 15px;
        font-size: 2.5rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 642px) {
    .certificates-carousel .cert-card {
        min-width: 150px;
        max-width: 180px;
        flex: 0 0 150px;
    }
    
    .certificates-carousel .cert-img {
        max-width: 80px;
        max-height: 50px;
    }
    
    .contacts-grid div {
        font-size: 0.85rem;
        padding: 0.45rem 0.7rem;
    }
    
    .contacts-grid img {
        width: 22px;
        height: 22px;
    }
    
    .contact-link {
        font-size: 0.85rem;
        padding: 0.45rem 0.7rem;
    }
    
    .contact-link img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 600px) {
    .modal {
        padding: 1rem;
        box-sizing: border-box;
    }
    
    .modal-content {
        max-width: calc(100% - 2rem);
        max-height: calc(100% - 2rem);
        margin: 0;
        padding: 0;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 500px) {
    .certificates-carousel .cert-card {
        min-width: 120px;
        max-width: 140px;
        flex: 0 0 120px;
    }
    
    .certificates-carousel .cert-img {
        max-width: 60px;
        max-height: 40px;
    }
    
    .contacts-grid div {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .contacts-grid img {
        width: 20px;
        height: 20px;
    }
    
    .contact-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .contact-link img {
        width: 20px;
        height: 20px;
    }
    
    .modal {
        padding: 0.75rem;
        box-sizing: border-box;
    }
    
    .modal-content {
        max-width: calc(100% - 1.5rem);
        max-height: calc(100% - 1.5rem);
        margin: 0;
        padding: 0;
    }
    
    .close-modal {
        top: 8px;
        right: 8px;
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
}

.modal.hidden {
    display: none;
}

@media (max-width: 814px) {
    .cv-nav {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
    }
    .menu-toggle {
        display: flex !important;
        order: 2;
    }
    .cv-nav ul.nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 3rem);
        max-width: 300px;
        background: var(--bg-secondary);
        box-shadow: 0 8px 32px 0 var(--accent2);
        z-index: 5;
        padding: 1.5rem 0;
        margin: 0;
        opacity: 0;
        max-height: 0;
        pointer-events: none;
        order: 1;
        border-radius: 12px;
        align-items: flex-start;
        justify-content: center;
        gap: 0.3rem;
    }
    .cv-nav.open ul.nav-links {
        display: flex;
        opacity: 1;
        max-height: 400px;
        pointer-events: auto;
        animation: fadeInMenu 0.3s;
    }
    .cv-nav ul.nav-links li {
        text-align: left;
        width: 100%;
        padding: 0.8rem 0.8rem;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0.8rem;
    }
    .cv-nav ul.nav-links a {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        font-size: 1.1rem;
        font-weight: 500;
    }
    .cv-nav ul.nav-links a::before {
        content: '';
        width: 20px;
        height: 20px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.8;
        flex-shrink: 0;
    }
    .cv-nav ul.nav-links a[href="#contacts"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300ffe7' d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    }
    .cv-nav ul.nav-links a[href="#personal-projects"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300ffe7' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    }
    .cv-nav ul.nav-links a[href="#education"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300ffe7' d='M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09L12 3zm6.82 6L12 12.72 5.18 9 12 5.28 18.82 9zM17 15.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72z'/%3E%3C/svg%3E");
    }
    .cv-nav ul.nav-links a[href="#certificates"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300ffe7' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    }
    @keyframes fadeInMenu {
        from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
        to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
}

@media (min-width: 815px) {
    .cv-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem 0;
    }
    .menu-toggle {
        display: none !important;
    }
    .cv-nav ul.nav-links {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        max-width: none;
        background: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        opacity: 1;
        max-height: none;
        pointer-events: auto;
        order: unset;
        border-radius: 0;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
    .cv-nav ul.nav-links li {
        text-align: center;
        width: auto;
        padding: 0;
        display: block;
        justify-content: unset;
        align-items: unset;
        gap: unset;
    }
    .cv-nav ul.nav-links a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: auto;
        text-align: center;
        justify-content: center;
        font-size: 1rem;
        font-weight: 500;
        color: var(--accent);
        text-decoration: none;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    .cv-nav ul.nav-links a::before {
        content: '';
        width: 16px;
        height: 16px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.8;
        flex-shrink: 0;
    }
    .cv-nav ul.nav-links a[href="#contacts"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300ffe7' d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    }
    .cv-nav ul.nav-links a[href="#personal-projects"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300ffe7' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    }
    .cv-nav ul.nav-links a[href="#education"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300ffe7' d='M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09L12 3zm6.82 6L12 12.72 5.18 9 12 5.28 18.82 9zM17 15.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72z'/%3E%3C/svg%3E");
    }
    .cv-nav ul.nav-links a[href="#certificates"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300ffe7' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    }
    .cv-nav ul.nav-links a:hover {
        background: rgba(0,255,231,0.1);
        color: var(--accent2);
        transform: translateY(-2px);
    }
}

#contacts.cv-section:hover,
#personal-projects.cv-section:hover,
#education.cv-section:hover,
#certificates.cv-section:hover {
    box-shadow: 0 0 32px 0 var(--accent2), 0 0 16px 0 var(--accent);
    border-color: var(--accent2);
    background: linear-gradient(120deg, rgba(0,255,231,0.18) 0%, rgba(255,0,234,0.13) 100%), var(--bg-secondary);
    transition: box-shadow 0.25s, border-color 0.25s, background 0.25s;
    cursor: pointer;
}



.cert-card:hover, .course-card:hover {
    cursor: pointer;
}

.project-card:hover, .cert-card:hover, .course-card:hover {
    border-color: var(--accent2);
    background: linear-gradient(120deg, rgba(0,255,231,0.10) 0%, rgba(255,0,234,0.10) 100%), rgba(24,26,32,0.95);
    transform: translateY(-4px) scale(1.03);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    cursor: pointer;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(24,26,32,0.7);
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    box-shadow: 0 0 8px 0 var(--accent2), 0 0 2px 0 var(--accent);
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, text-shadow 0.2s;
    color: var(--accent2);
    text-decoration: underline;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    flex: 1;
    text-shadow: 0 0 8px var(--accent2);
}
.contact-link:hover {
    background: rgba(0,255,231,0.13);
    color: var(--accent);
    text-decoration: underline;
    text-shadow: 0 0 12px var(--accent), 0 0 20px var(--accent);
}
.contact-link img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 4px var(--accent));
}

.contact-link span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-width: 0;
    flex: 1;
    text-shadow: 0 0 6px var(--accent2);
    transition: text-shadow 0.2s;
}

.cv-section:hover {
    box-shadow: 0 0 32px 0 var(--accent2), 0 0 16px 0 var(--accent);
    border-color: var(--accent2);
    background: linear-gradient(120deg, rgba(0,255,231,0.18) 0%, rgba(255,0,234,0.13) 100%), var(--bg-secondary);
    transition: box-shadow 0.25s, border-color 0.25s, background 0.25s;
}

.projects-carousel {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 18px;
    margin-top: 1.5rem;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-secondary);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.projects-carousel::-webkit-scrollbar {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}
.projects-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(120deg, var(--accent), var(--accent2));
    border-radius: 8px;
    box-shadow: 0 0 8px var(--accent2), 0 0 2px var(--accent);
    border: 2px solid var(--bg-secondary);
    transition: background 0.3s;
}
.projects-carousel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(120deg, var(--accent2), var(--accent));
}
.projects-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    min-width: 100%;
    padding-bottom: 2px;
    padding-top: 30px;
}
.projects-carousel .project-card {
    min-width: 280px;
    max-width: 320px;
    flex: 0 0 280px;
    margin-right: 0;
    transition: transform 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.25s, filter 0.25s;
    scroll-snap-align: center;
    filter: blur(0.5px) brightness(0.95);
    opacity: 0.85;
    z-index: 1;
    transform: scale(0.92) perspective(600px) rotateY(-8deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 1rem 1rem 1rem;
    background: rgba(24,26,32,0.92);
    border: 3px solid var(--accent);
    box-shadow: none;
    border-radius: 16px;
    min-height: 140px;
    color: var(--text-main);
    text-decoration: none;
}
.projects-carousel .project-card.active {
    filter: none;
    opacity: 1;
    z-index: 2;
    border-color: var(--accent2);
    box-shadow: none;
    transform: scale(1.08) perspective(600px) rotateY(0deg);
}
.projects-carousel .project-card.prev,
.projects-carousel .project-card.next {
    filter: blur(0.2px) brightness(0.98);
    opacity: 0.92;
    z-index: 1;
    transform: scale(0.97) perspective(600px) rotateY(8deg);
}
.projects-carousel .project-card:hover {
    transform: scale(1.12) perspective(600px) rotateY(0deg);
    border-color: var(--accent2);
    box-shadow: none;
    z-index: 3;
    filter: none;
    opacity: 1;
}
.projects-carousel .project-img {
    width: 100%;
    max-width: 180px;
    max-height: 110px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0.7rem;
    display: block;
    border: none;
    box-shadow: none;
}
.projects-carousel .project-title {
    font-family: var(--font-future);
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 6px var(--accent);
}
.projects-carousel .project-desc {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.5;
    text-shadow: 0 0 4px var(--text-secondary);
}
@media (max-width: 900px) {
    .projects-carousel .project-card {
        min-width: 220px;
        max-width: 260px;
        flex: 0 0 220px;
    }
    .projects-carousel .project-img {
        max-width: 140px;
        max-height: 85px;
    }
}
@media (max-width: 700px) {
    .projects-carousel .project-card {
        min-width: 170px;
        max-width: 200px;
        flex: 0 0 170px;
    }
    .projects-carousel .project-img {
        max-width: 100px;
        max-height: 60px;
    }
}

.courses-carousel {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 18px;
    margin-top: 1.2rem;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-secondary);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.courses-carousel::-webkit-scrollbar {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}
.courses-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(120deg, var(--accent), var(--accent2));
    border-radius: 8px;
    box-shadow: 0 0 8px var(--accent2), 0 0 2px var(--accent);
    border: 2px solid var(--bg-secondary);
    transition: background 0.3s;
}
.courses-carousel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(120deg, var(--accent2), var(--accent));
}
.courses-track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    min-width: 100%;
    padding-bottom: 2px;
    padding-top: 30px;
}
.courses-carousel .course-card {
    min-width: 220px;
    max-width: 240px;
    flex: 0 0 220px;
    margin-right: 0;
    transition: transform 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.25s, filter 0.25s;
    scroll-snap-align: center;
    filter: blur(0.5px) brightness(0.95);
    opacity: 0.85;
    z-index: 1;
    transform: scale(0.92) perspective(600px) rotateY(-8deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.7rem 0.5rem 0.8rem 0.5rem;
    background: rgba(24,26,32,0.92);
    border: 2.5px solid var(--accent);
    box-shadow: none;
    border-radius: 16px;
    min-height: 140px;
    color: var(--text-main);
    text-decoration: none;
}
.courses-carousel .course-card.active {
    filter: none;
    opacity: 1;
    z-index: 2;
    border-color: var(--accent2);
    box-shadow: none;
    transform: scale(1.08) perspective(600px) rotateY(0deg);
}
.courses-carousel .course-card.prev,
.courses-carousel .course-card.next {
    filter: blur(0.2px) brightness(0.98);
    opacity: 0.92;
    z-index: 1;
    transform: scale(0.97) perspective(600px) rotateY(8deg);
}
.courses-carousel .course-card:hover {
    transform: scale(1.12) perspective(600px) rotateY(0deg);
    border-color: var(--accent2);
    box-shadow: none;
    z-index: 3;
    filter: none;
    opacity: 1;
}
.courses-carousel .course-img {
    width: 100%;
    max-width: 110px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    display: block;
    border: none;
    box-shadow: none;
}
.courses-carousel .course-title {
    font-family: var(--font-future);
    color: var(--accent);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0.15rem;
    text-shadow: 0 0 4px var(--accent);
}
.courses-carousel .course-org {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    text-shadow: 0 0 3px var(--text-secondary);
}
@media (max-width: 900px) {
    .courses-carousel .course-card {
        min-width: 170px;
        max-width: 190px;
        flex: 0 0 170px;
    }
    .courses-carousel .course-img {
        max-width: 80px;
        max-height: 44px;
    }
}
@media (max-width: 700px) {
    .courses-carousel .course-card {
        min-width: 120px;
        max-width: 140px;
        flex: 0 0 120px;
    }
    .courses-carousel .course-img {
        max-width: 54px;
        max-height: 32px;
    }
}

.cv-footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -4px 16px rgba(0,255,231,0.2);
}

.cv-footer p {
    margin: 0;
    color: var(--accent);
    font-size: 1rem;
    font-family: var(--font-future);
    letter-spacing: 0.5px;
    text-shadow: 0 0 142px var(--accent);
}















