:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --bg-card-hover: #222d44;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    --border: #1e293b;
    --border-hover: #334155;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.navbar__logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar__logo-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.navbar__links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.navbar__link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--text-primary);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.navbar__link:hover::after,
.navbar__link.active::after {
    width: 100%;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.navbar__toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 24px 40px;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero__bg::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero__bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-blue);
    margin-bottom: 24px;
}

.hero__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero__avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
    animation: avatarGlow 4s ease-in-out infinite;
    overflow: hidden;
    padding: 3px;
}

.hero__avatar img {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 60px rgba(139, 92, 246, 0.4); }
}

.hero__title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.hero__title .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.hero__location {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero__stat {
    text-align: center;
}

.hero__stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}

.btn--secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn--secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 8px;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section__title .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ABOUT ===== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.about__card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.about__card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about__card-title .icon {
    font-size: 1.3rem;
}

.about__text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tag {
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-blue);
    transition: var(--transition);
}

.tag--purple {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

.tag--cyan {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
}

.tag:hover {
    transform: translateY(-2px);
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    opacity: 0.3;
}

.timeline__item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 40px;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: -7px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-blue);
    transition: var(--transition);
}

.timeline__item:hover .timeline__dot {
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.timeline__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.timeline__card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.timeline__period {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.timeline__position {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline__company {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.timeline__meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.timeline__highlights {
    list-style: none;
    margin-bottom: 16px;
}

.timeline__highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.timeline__highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

.timeline__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== SKILLS ===== */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.skill__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.skill__card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.skill__card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill__items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill__item {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill__item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}

/* ===== EDUCATION ===== */
.education__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.education__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.education__card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.education__year {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 12px;
}

.education__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.education__type {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.education__spec {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== CONTACT ===== */
.contact {
    text-align: center;
}

.contact__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact__card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.contact__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact__icon--email {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.contact__icon--telegram {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
}

.contact__icon--phone {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.contact__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.contact__card:hover .contact__value {
    color: var(--accent-blue);
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer__name {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar__links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
    }

    .navbar__links.open {
        display: flex;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .hero__stats {
        gap: 24px;
    }

    .hero__stat-value {
        font-size: 1.5rem;
    }

    .section__title {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 16px;
    }

    .about__grid,
    .education__grid {
        grid-template-columns: 1fr;
    }

    .skills__grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 4px;
    }

    .timeline__item {
        padding-left: 28px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.6rem;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        justify-content: center;
    }
}
