:root {
    --primary-font: 'Inter', sans-serif;
    --heading-font: 'Outfit', sans-serif;

    --bg-color: #0b1120;
    --card-bg: rgba(30, 41, 59, 0.4);
    --card-border: rgba(255, 255, 255, 0.1);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.5);

    --sidebar-bg: rgba(15, 23, 42, 0.6);
}

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

body {
    font-family: var(--primary-font);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

/* Background animated orbs */
.background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
}

.orb {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.2), rgba(216, 180, 254, 0.2));
    background-size: 200% 200%;
    top: -100px;
    left: -100px;
    animation: float 25s infinite alternate, gradientShift 15s ease infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.2), rgba(216, 180, 254, 0.2), rgba(56, 189, 248, 0.2));
    background-size: 200% 200%;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
    animation: float 30s infinite alternate, gradientShift 20s ease infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(216, 180, 254, 0.15), rgba(56, 189, 248, 0.15), rgba(129, 140, 248, 0.15));
    background-size: 200% 200%;
    top: 40%;
    left: 40%;
    animation-duration: 35s;
    animation: float 35s infinite alternate, gradientShift 18s ease infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(150px, 100px) rotate(90deg) scale(1.1);
    }

    100% {
        transform: translate(100px, 200px) rotate(180deg) scale(0.9);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Container */
.cv-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    max-width: 1100px;
    width: 100%;
    z-index: 1;
    animation: fadeUp 1s ease-out forwards;
}

/* Sidebar */
.sidebar {
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    height: fit-content;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 2rem;
}

.profile-photo-container {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    box-shadow: 0 0 20px var(--accent-glow);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--sidebar-bg);
}

.profile-info {
    text-align: center;
}

.name {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* General Sidebar Sections */
.sidebar h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

/* Contact Info */
.contact-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-info li:hover {
    color: var(--text-main);
}

.contact-info ion-icon {
    font-size: 1.3rem;
    color: var(--accent);
    margin-top: 1px;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent);
}

/* Skills */
.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-level {
    font-size: 0.8rem;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Simple Tags (Záujmy) */
.simple-tag {
    color: var(--text-main);
    font-size: 0.95rem;
}

.license {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.2));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
}

/* Main Content */
.content {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    padding-top: 1rem;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title ion-icon {
    color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.5rem;
    border-radius: 12px;
}

/* Glass Card Global (used by about and timeline) */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.6);
}

/* About Card */
.about-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.8rem;
    background: rgba(56, 189, 248, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.timeline-title {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.timeline-company {
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.timeline-desc-list {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

.timeline-desc-list li {
    margin-bottom: 0.4rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-animate {
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.section-animate.delay-1 {
    animation-delay: 0.5s;
}

/* Responsive */
@media (max-width: 900px) {
    .cv-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        top: 0;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .glass-card {
        padding: 1.5rem;
    }
}