/* =============================================
   JIŘÍ BENDÍK — PORTFOLIO
   Colors: Cyan #00E5FF · Magenta #FF3DF0 · Violet #7C5CFF
   ============================================= */

/* ---------- RESET & VARIABLES ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #06080E;
    --bg-secondary: #0B0E18;
    --bg-card: rgba(12, 15, 24, 0.75);
    --accent-cyan: #00E5FF;
    --accent-magenta: #FF3DF0;
    --accent-violet: #7C5CFF;
    --text-primary: #F0F2F5;
    --text-secondary: #8B95A8;
    --text-muted: #4E5668;
    --gradient-cyber: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet), var(--accent-magenta));
    --gradient-subtle: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(124,92,255,0.12), rgba(255,61,240,0.12));
    --glow-cyan: 0 0 25px rgba(0,229,255,0.35);
    --glow-magenta: 0 0 25px rgba(255,61,240,0.35);
    --glow-violet: 0 0 25px rgba(124,92,255,0.35);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-violet) var(--bg-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--gradient-cyber);
    border-radius: 3px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Oxanium', 'Inter', monospace;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

/* ---------- PARTICLE CANVAS ---------- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ---------- CURSOR GLOW ---------- */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, rgba(124,92,255,0.03) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* ---------- NAVIGATION ---------- */
.ml-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(6, 8, 14, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,229,255,0.06);
    transition: all var(--transition);
}

.ml-navbar.scrolled {
    background: rgba(6, 8, 14, 0.92);
    padding: 0.8rem 2.5rem;
    box-shadow: 0 4px 40px rgba(0,229,255,0.08);
    border-bottom-color: rgba(0,229,255,0.12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-text {
    font-family: 'Oxanium', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pulsing-mark {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent-cyan), 0 0 12px var(--accent-cyan); }
    50%      { opacity: 0.4; box-shadow: 0 0 3px var(--accent-cyan); }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.4rem 0;
    letter-spacing: 0.02em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-cyber);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-cyan);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(0,229,255,0.06);
    border: 1px solid rgba(0,229,255,0.15);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--accent-cyan);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.1s forwards;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00FF88;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px #00FF88; }
    50%      { opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.2s; color: var(--text-primary); }
.hero-line.accent {
    animation-delay: 0.4s;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: fadeInUp 0.8s ease 0.4s forwards, gradientShift 6s ease infinite 1.2s;
}

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

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

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

.hero-subtitle {
    font-family: 'JetBrains Mono', 'Oxanium', monospace;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    min-height: 1.5em;
    opacity: 0;
}

.hero-subtitle::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
    color: var(--accent-magenta);
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-cyber);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0,229,255,0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(0,229,255,0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border: 1.5px solid rgba(0,229,255,0.3);
}

.btn-secondary:hover {
    background: rgba(0,229,255,0.08);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,229,255,0.2);
}

/* ---------- SCROLL INDICATOR ---------- */
/*.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
    z-index: 10;
    transition: opacity 0.5s;
}

.scroll-indicator .mouse {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(0,229,255,0.4);
    border-radius: 11px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 3px;
    height: 7px;
    background: var(--accent-cyan);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50%      { opacity: 0.2; transform: translateX(-50%) translateY(12px); }
}
*/
/* ---------- SECTIONS ---------- */
.section {
    padding: 7rem 2rem;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-magenta);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ---------- PROJECTS ---------- */
.projects {
    max-width: 1200px;
}

.ml-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--radius);
    padding: 2.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    cursor: default;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-cyber);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,229,255,0.04), transparent 50%);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,229,255,0.15);
    box-shadow: 0 16px 50px rgba(0,0,0,0.4), 0 0 30px rgba(0,229,255,0.08);
}

.project-card:hover::before {
    opacity: 1;
}

.card-number {
    font-family: 'Oxanium', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.03);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
    transition: color 0.3s;
}

.project-card:hover .card-number {
    color: rgba(0,229,255,0.08);
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--gradient-subtle);
    color: var(--accent-cyan);
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(0,229,255,0.1);
}

.project-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-link {
    color: var(--accent-cyan);
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--accent-magenta);
}

.project-link:hover svg {
    transform: translate(3px, -3px);
}

/* ---------- TIMELINE ---------- */
.timeline-section {
    max-width: 900px;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent,
        var(--accent-cyan) 10%,
        var(--accent-violet) 50%,
        var(--accent-magenta) 90%,
        transparent
    );
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    width: 50%;
    padding: 0 3rem 3rem 0;
    position: relative;
}

.timeline-item[data-side="right"] {
    justify-content: flex-start;
    margin-left: 50%;
    padding: 0 0 3rem 3rem;
}

.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-violet);
    right: -7px;
    top: 0.5rem;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: var(--glow-violet);
}

.timeline-item[data-side="right"] .timeline-dot {
    left: -7px;
    right: auto;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan), 0 0 30px rgba(0,229,255,0.3);
    transform: scale(1.3);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 340px;
    width: 100%;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(124,92,255,0.2);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.timeline-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent-magenta);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin: 0.4rem 0;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---------- SKILLS ---------- */
.skills-section {
    max-width: 1000px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--radius);
    padding: 1.8rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: rgba(0,229,255,0.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

.skill-icon {
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(124,92,255,0.08);
    border: 1px solid rgba(124,92,255,0.15);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0,229,255,0.1);
    border-color: rgba(0,229,255,0.3);
    color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0,229,255,0.15);
}

/* ---------- ABOUT ---------- */
.about {
    max-width: 900px;
}

.about-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.8rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.about-item:hover {
    border-color: rgba(255,61,240,0.15);
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3), -4px 0 0 var(--accent-magenta);
}

.about-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,61,240,0.1);
}

.about-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.about-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--gradient-cyber);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer h2 {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    margin: 1.5rem 0 2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.email-link {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 700;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-cyber);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.email-link:hover {
    filter: drop-shadow(0 0 20px rgba(0,229,255,0.5));
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-cyan);
    border-color: rgba(0,229,255,0.3);
    background: rgba(0,229,255,0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,229,255,0.15);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .ml-navbar {
        padding: 1rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(6,8,14,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    .hero {
        padding: 7rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .ml-grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Timeline mobile */
    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item[data-side="right"] {
        width: 100%;
        margin-left: 0;
        padding: 0 0 2rem 3.5rem;
        justify-content: flex-start;
    }

    .timeline-dot,
    .timeline-item[data-side="right"] .timeline-dot {
        left: 13px;
        right: auto;
    }

    .timeline-content {
        max-width: 100%;
    }

    .about-item {
        flex-direction: column;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.7rem;
    }

    .brand-text {
        font-size: 1.3rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .scroll-indicator {
        display: none;
    }
}
