:root {
    --primary: #6e45e2;
    --primary-dark: #4a2dbb;
    --secondary: #88d3ce;
    --accent: #ff7e5f;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --neon: #00f2fe;
    --hologram: rgba(110, 69, 226, 0.15);
     --sber-color: #22A447;
    --oscar-color: #6e45e2;
    --partner-color: #E74C3C;
}

/* Базовые стили */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.7;
}

.resume-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    z-index: 1;
}

/* Анимированный фон с частицами */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
}

/* 3D карточка профиля */
.profile-3d-card {
    perspective: 1000px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 4rem;
    position: relative;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
}

.profile-3d-card:hover .card-inner {
    transform: rotateY(10deg);
}

.profile-3d-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 2.5rem;
    background: rgba(30, 30, 60, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Голографический аватар */
.avatar-hologram {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px var(--hologram);
}

.avatar-hologram::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent,
        transparent,
        var(--neon),
        transparent,
        transparent
    );
    animation: hologramEffect 6s linear infinite;
    transform: rotate(45deg);
    opacity: 0.7;
}

.hologram-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Анимация текста */
.name-glow {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(136, 211, 206, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

/* Интерактивный HUD контактов */
.contact-hud {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hud-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.2);
}

.hud-item:hover {
    background: rgba(110, 69, 226, 0.3);
    transform: translateX(5px);
}

.hud-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--secondary);
    width: 30px;
    text-align: center;
}

/* Кнопка переворота */
.flip-button {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(110, 69, 226, 0.4);
    transition: all 0.3s;
}

.flip-button:hover {
    background: var(--accent);
    transform: translateX(-50%) rotate(180deg);
}

/* Анимация печатающегося текста */
.typed-text {
    color: var(--secondary);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent);
    animation: blink 1s infinite;
}

/* Магнитная кнопка CTA */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.cta-button {
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(255, 126, 95, 0.4);
    transition: transform 0.3s;
}

.cta-button i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-5px);
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Стили для ленты технологий */
.tech-stack-section {
    margin: 4rem 0;
    overflow: hidden;
    position: relative;
}

.projects-section {
    margin: 4rem 0;
    overflow: hidden;
    position: relative;
}

.tech-strip {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.tech-item {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 60, 0.7);
    border-radius: 20px;
    border: 1px solid rgba(110, 69, 226, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(110, 69, 226, 0.5);
    border-color: var(--accent);
}

.tech-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent,
        transparent,
        var(--neon),
        transparent,
        transparent
    );
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-item:hover::before {
    opacity: 0.6;
    animation: hologramEffect 3s linear infinite;
}

.tech-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 5px rgba(136, 211, 206, 0.5));
}

.tech-name {
    font-size: 0.8rem;
    color: var(--secondary);
    text-align: center;
    margin-top: 0.5rem;
}

/* Кнопка-кружок с полным стеком */
.tech-info-circle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
}

.circle-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(110, 69, 226, 0.5);
    position: relative;
}

.circle-button i {
    font-size: 1.5rem;
    color: white;
}

.circle-button .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.circle-button:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--accent);
}

.circle-button:hover .tooltip {
    opacity: 1;
}

/* Модальное окно технологий */
.tech-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.tech-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tech-modal {
    background: rgba(30, 30, 60, 0.95);
    border: 1px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(110, 69, 226, 0.7);
}

.tech-modal h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    margin-top: 0;
}

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

.tech-modal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s;
    background: rgba(110, 69, 226, 0.1);
}

.tech-modal-item:hover {
    background: rgba(110, 69, 226, 0.3);
    transform: translateY(-3px);
}

.tech-modal-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(136, 211, 206, 0.5));
}

.tech-modal-item span {
    font-size: 0.9rem;
    text-align: center;
    color: var(--light);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 126, 95, 0.2);
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(255, 126, 95, 0.4);
    transform: rotate(90deg);
}

/* Временная шкала опыта работы */
.career-track {
    position: relative;
    height: 80px;
    margin: 2rem 0;
}

.track-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.1);
    transform: translateY(-50%);
    z-index: 1;
}

.track-milestones {
    position: relative;
    display: flex;
    justify-content: space-between;
    height: 100%;
    z-index: 1;
}

.milestone {
    position: relative;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.milestone-marker {
    width: 100%;
    height: 100%;
    position: relative;
}

.marker-outer-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--company-color);
    box-shadow: 0 0 0 2px var(--dark);
}

.marker-inner-circle {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.milestone:hover .marker-outer-ring {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--dark), 0 0 15px var(--company-color);
}

.milestone-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,60,0.95);
    padding: 1rem;
    border-radius: 10px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: 1px solid var(--company-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 110;
}

.milestone:hover .milestone-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

/* Анимации */
@keyframes hologramEffect {
    0% { transform: rotate(45deg) translate(-30%, -30%); }
    100% { transform: rotate(45deg) translate(30%, 30%); }
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(136, 211, 206, 0.3); }
    to { text-shadow: 0 0 20px rgba(136, 211, 206, 0.6); }
}

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

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 1.5rem)); }
}

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


@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-modal {
        padding: 1rem;
         scroll-behavior: smooth;
    }

    .tech-modal h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
}


.profile-3d-card {
    perspective: 1000px;
    width: 400px;
    height: 500px;
    margin: 0 auto;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-back {
    transform: rotateY(180deg);
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

/* Остальные стили (анимации, голограмма и т. д.) */

.avatar-hologram {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(45deg, #00f, #0f0, #f00, #00f);
    background-size: 400% 400%;
    animation: hologram-pulse 4s ease infinite;
}

/* 3D Hologram Profile Styles */
.hologram-profile {
    position: relative;
    max-width: 800px;
    height: 500px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avatar3d-container {
    width: 60%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(110, 69, 226, 0.3);
    background: rgba(30, 30, 60, 0.7);
    backdrop-filter: blur(10px);
}

.profile-info {
    width: 35%;
    padding: 2rem;
    background: rgba(30, 30, 60, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 69, 226, 0.3);
}

.hologram-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(110, 69, 226, 0.7);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.control-btn.active {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(255, 126, 95, 0.5);
}

.position-badge {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin: 1rem 0;
    font-weight: 500;
    animation: pulse 2s infinite;
}

/* 3D Hologram Profile */
.hologram-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem auto;
    max-width: 800px;
}

.avatar3d-container {
    width: 100%;
    height: 300px;
    background: rgba(30, 30, 60, 0.7);
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-info {
    width: 100%;
    text-align: center;
    padding: 2rem;
    background: rgba(30, 30, 60, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 69, 226, 0.3);
}

@media (min-width: 768px) {
    .hologram-profile {
        flex-direction: row;
        align-items: center;
    }

    .avatar3d-container {
        width: 50%;
        height: 400px;
        margin-bottom: 0;
        margin-right: 2rem;
    }

    .profile-info {
        width: 50%;
        text-align: left;
    }
}

/* Modern Profile Section */
.profile-section {
    position: relative;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(30, 30, 60, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 69, 226, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%,
        rgba(110, 69, 226, 0.15) 0%,
        transparent 50%);
    z-index: -1;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.avatar-3d-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
}

.avatar-hologram {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px var(--hologram);
    z-index: 2;
}

.hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        transparent,
        var(--neon),
        transparent,
        transparent
    );
    opacity: 0.5;
    animation: hologramEffect 6s linear infinite;
    z-index: 1;
}

.particles-avatar {
    position: absolute;
    top: -50px;
    left: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    z-index: 1;
}

.profile-info {
    text-align: center;
    width: 100%;
}

.position-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.badge-decoration {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(30deg);
    animation: badgeShine 3s infinite;
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-cv {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-btn {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 5px 15px rgba(110, 69, 226, 0.4);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(110, 69, 226, 0.6);
}

.scroll-indicator {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 3rem auto 0;
    position: relative;
    overflow: hidden;
}

.indicator-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
    animation: scrollIndicator 2.5s infinite ease-in-out;
}

/* Анимации */
@keyframes badgeShine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

@keyframes scrollIndicator {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(330%); }
}

/* Адаптивность */
@media (min-width: 768px) {
    .profile-container {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .avatar-3d-container {
        margin-bottom: 0;
        width: 250px;
        height: 250px;
    }

    .profile-info {
        text-align: left;
        flex: 1;
    }

    .profile-actions {
        justify-content: flex-start;
    }
}

/* Стилизация скролл-бара в модальном окне */
.tech-modal::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.tech-modal::-webkit-scrollbar-track {
    background: rgba(30, 30, 60, 0.5);
    border-radius: 10px;
}

.tech-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--accent));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-modal::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Для Firefox */
.tech-modal {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(30, 30, 60, 0.5);
    scroll-behavior: smooth;
}

/* Poppins Light (300) */
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins-Light.woff2') format('woff2'),
       url('/static/fonts/Poppins-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Poppins Regular (400) */
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins-Regular.woff2') format('woff2'),
       url('/static/fonts/Poppins-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Poppins Medium (500) */
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins-Medium.woff2') format('woff2'),
       url('/static/fonts/Poppins-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Poppins SemiBold (600) */
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins-SemiBold.woff2') format('woff2'),
       url('/static/fonts/Poppins-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Poppins Bold (700) */
@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins-Bold.woff2') format('woff2'),
       url('/static/fonts/Poppins-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Временная шкала опыта работы - Веб версия */
.timeline-section {
    margin: 1rem 0;
    position: relative;
}


.career-track {
    position: relative;
    height: 120px;
    margin: 2rem 0;
}

.track-line {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.track-milestones {
    position: relative;
    display: flex;
    justify-content: space-between;
    height: 100%;
    z-index: 2;
}

.milestone {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

/* Цвета рамок для компаний */
.milestone[data-company="Сбер"] {
    --company-color: var(--sber-color);
}
.milestone[data-company="Oscar Studio"] {
    --company-color: var(--oscar-color);
}
.milestone[data-company="Партнёр"] {
    --company-color: var(--partner-color);
}

.milestone-marker {
    width: 100%;
    height: 100%;
    position: relative;
}

.marker-outer-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--company-color);
    box-shadow: 0 0 0 2px var(--dark);
    background: rgba(30, 30, 60, 0.8);
    transition: all 0.3s;
}

.marker-inner-circle {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    transition: transform 0.3s;
}

.milestone:hover .marker-outer-ring {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--dark), 0 0 15px var(--company-color);
}

.milestone:hover .company-logo {
    transform: scale(1.1);
}

.milestone-tooltip {
    position: absolute;
    top: calc(100% - 18px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,60,0.95);
    padding: 1.5rem;
    border-radius: 10px;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: 1px solid var(--company-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 110;
    backdrop-filter: blur(5px);
}

.milestone:hover .milestone-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.milestone-tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.milestone-position {
    font-weight: 500;
    color: var(--secondary);
    font-size: 1rem;
}

.milestone-company {
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.milestone-period {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    position: relative;
    padding-top: 0.5rem;
}

.milestone-period::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--company-color);
    opacity: 0.5;
}

/* Позиционирование для крайних элементов */
.milestone:first-child .milestone-tooltip {
    left: 0;
    transform: translateX(0);
}

.milestone:first-child:hover .milestone-tooltip {
    transform: translateX(0) translateY(10px);
}

.milestone:last-child .milestone-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.milestone:last-child:hover .milestone-tooltip {
    transform: translateX(0) translateY(10px);
}

/* Анимация при загрузке */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.milestone {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.milestone:nth-child(1) { animation-delay: 0.1s; }
.milestone:nth-child(2) { animation-delay: 0.3s; }
.milestone:nth-child(3) { animation-delay: 0.5s; }


/* Скрываем стандартный прогресс-бар  убираем черную полосу у 3d модели при загрузке*/
model-viewer::part(default-progress-bar) {
    display: none;
}

/* Изменения для веб-версии modal "Полный стек технологий" */
@media (min-width: 769px) {
    .tech-modal h3 {
        position: sticky;
        top: 0;
        padding: 1rem 2rem;
        padding-top:0;
        margin: 0;
        z-index: 1;
        border-bottom: 1px solid rgba(110, 69, 226, 0.5);
    }

    .tech-modal {
        padding-top:1rem;
    }

    .close-modal {
        position: absolute;
        top: 20px;
        right: 30px;
        z-index: 2;
    }

    .tech-grid {
        max-height: 60vh;
        overflow-y: auto;
    }
}
