:root {
    --bg-color: #333333;
    --card-bg: #404040;
    --text-color: #e0e0e0;
    --text-muted: #b3b3b3;
    --accent-color: #00adb5;     
    --accent-hover: #00d2da;
    --border-radius: 16px;       
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 80px 0;
    border-bottom: 2px solid rgba(0, 173, 181, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-content h2 {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(0, 173, 181, 0.3);
    animation: slideDown 0.8s ease-out both;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    animation: fadeIn 0.8s ease-out both;
}

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

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

h3 {
    color: var(--accent-color);
    border-bottom: 2px solid rgba(0, 173, 181, 0.2);
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 600;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
    color: #cfcfcf;
}

.timeline-item {
    margin-bottom: 30px;
    padding-left: 25px;
    border-left: 3px solid rgba(0, 173, 181, 0.4);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-left-color: var(--accent-color);
}

.timeline-item::before {
    content: '';
    width: 15px;
    height: 15px;
    background: var(--card-bg);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    position: absolute;
    left: -12px;
    top: 5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item:hover::before {
    background: var(--accent-color);
    transform: scale(1.5);
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-item h4 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.timeline-item:hover h4 {
    color: var(--accent-hover);
    transform: translateX(5px);
}

.timeline-item li {
    transition: transform 0.3s ease;
}

.timeline-item:hover li {
    transform: translateX(3px);
}

.company {
    display: inline-block;
    color: var(--accent-color);
    background: rgba(0, 173, 181, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.edu-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.edu-item:hover {
    transform: translateX(10px);
}

.edu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.edu-item h4 {
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.edu-obor {
    font-weight: 500;
    color: var(--text-color);
}

.edu-item .date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 5px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag, .badge {
    background-color: rgba(0, 173, 181, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(0, 173, 181, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.skill-tag:hover, .badge:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 173, 181, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.badges {
    margin-top: 25px;
    display: inline-flex;
    gap: 15px;
    flex-wrap: wrap;
}

.mt-20 {
    margin-top: 25px;
}

.languages-list li {
    font-weight: 500;
    color: #ffffff;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 20px;
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .header-content h2 {
        font-size: 2.8rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.header-wrapper {
/*    position: relative; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-logo {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.header-logo img {
    height: 80px;
    width: auto;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 173, 181, 0.3));
    transition: transform 0.3s ease;
}

.header-logo:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .header-wrapper {
        padding-top: 20px;
    }
    
    .header-logo {
        position: static;
        transform: none;
        margin-bottom: 20px;
    }

    .header-logo img {
        height: 80px;
    }
}