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

body {
    font-family: 'IBM Plex Mono', monospace;
    color: #F4F2F0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #080708;
    background-image: url(resources/images/bg.png);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
}

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

.navigation {
    position: absolute;
    top: 40px;
    right: 100px;
    z-index: 10;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(130, 90, 169, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #C2B8FF;
}

.header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.header-work {
    display: block;
    text-align: center;
    margin-bottom: 60px;
}

.header h1 {
    display: block;
}

.back-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: color 0.3s ease;

    position: fixed;
    z-index: 10;
    width: 100%;
    top: 0;
    padding: 10px 0;
    background: transparent;
    left: 0;
    backdrop-filter: blur(10px);
}

.back-link:hover {
    color: #ccc;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
    position: relative;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0;
    color: #ffffff;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-icon {
    display: inline-block;
    font-size: 2.5rem;
    animation: sparkleAndRotate 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes sparkleAndRotate {
    0% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
        color: #764ba2;
    }
    12.5% {
        opacity: 1;
        transform: scale(1.2) rotate(5deg);
        color: #667eea;
    }
    25% {
        opacity: 0.8;
        transform: scale(1.1) rotate(-3deg);
        color: #8fa4f3;
    }
    37.5% {
        opacity: 1;
        transform: scale(1.15) rotate(2deg);
        color: #667eea;
    }
    50% {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
        color: #764ba2;
    }
    62.5% {
        opacity: 0.9;
        transform: scale(1.1) rotate(180deg);
        color: #667eea;
    }
    75% {
        opacity: 1;
        transform: scale(1.2) rotate(360deg);
        color: #8fa4f3;
    }
    87.5% {
        opacity: 0.8;
        transform: scale(1.1) rotate(365deg);
        color: #667eea;
    }
    100% {
        opacity: 0.6;
        transform: scale(1) rotate(360deg);
        color: #764ba2;
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 0;
    font-weight: 300;
}

.content {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.content p {
    color: #F4F2F0;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.content a {
    color: #C2B8FF;
    text-decoration: none;
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: color 0.3s ease;
    vertical-align: bottom;
}

.content a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(130, 90, 169, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.content a:hover::before {
    left: 100%;
}

.content a:hover {
    color: #9284e5;
}

.experience-section {
    margin: 40px 0;
}

.experience-section h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.experience-item {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative; /* Nodig voor tooltip positionering */
    flex-wrap: wrap; /* To allow mobile tooltip to appear below */
}

.experience-item a {
    color: #ccc;
}

.bullet {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #333;
    border: 1px solid #555;
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 0 4px rgba(85, 85, 85, 0.2), inset 0 0 4px rgba(0, 0, 0, 0.3);
}

.bullet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.experience-item.current .bullet {
    background: radial-gradient(circle, #4ade80 0%, #22c55e 80%);
    border: 1px solid #4ade80;
    box-shadow: 
        0 0 8px rgba(74, 222, 128, 0.3),
        0 0 16px rgba(74, 222, 128, 0.15),
        inset 0 0 6px rgba(0, 0, 0, 0.4);
    animation: subtleGlow 4s ease-in-out infinite alternate;
}

.experience-item.current .bullet::before {
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

@keyframes subtleGlow {
    0% {
        box-shadow: 
            0 0 8px rgba(74, 222, 128, 0.3),
            0 0 16px rgba(74, 222, 128, 0.15),
            inset 0 0 6px rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow: 
            0 0 12px rgba(74, 222, 128, 0.4),
            0 0 24px rgba(74, 222, 128, 0.2),
            inset 0 0 8px rgba(0, 0, 0, 0.5);
    }
}

.company, .company-text {
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 400;
    flex-grow: 1;
    text-decoration: none;
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: color 0.3s ease;
    min-width: 0;
}

.company:hover {
    color: #e5e5e5;
}

.experience-item.current .company {
    color: #e5e5e5;
    overflow: hidden;
}

.experience-item.current .company::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.experience-item.current .company:hover::before {
    left: 100%;
}

.experience-item.current .company:hover {
    color: #4ade80;
}

.years {
    color: #888;
    font-size: 0.9rem;
    font-weight: 300;
    margin-left: auto;
    padding-left: 10px;
}

.tooltip-trigger-mobile {
    display: none; /* Hidden by default */
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.tooltip-trigger-mobile:hover {
    color: #C2B8FF;
}
.mobile-tooltip-content {
    display: none; /* Hidden by default */
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 2px solid #555;
    padding: 10px 15px 10px 27px; /* Align with bullet */
    margin-top: 8px;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}

.experience-item.mobile-tooltip-open {
    align-items: flex-start;
}

.experience-item.mobile-tooltip-open .tooltip-trigger-mobile {
    transform: translateY(4px);
}

.experience-item.current .years {
    color: #4ade80;
}

.images-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.image-item {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.image-item:hover {
    transform: translateY(-2px);
    border-color: #555;
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 20px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

.image-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.image-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

.activity-section {
    margin: 40px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

 .activity-section:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.activity-section::after {
    content: '→';
    position: absolute;
    top: 25px;
    right: 25px;
    color: #888;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.activity-section:hover::after {
    opacity: 1;
    transform: translateX(5px);
    color: #C2B8FF;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.activity-header h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0;
}

.activity-count {
    color: #888;
    font-size: 0.9rem;
}

.contribution-graph {
    width: 100%;
}

.months {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2px;
    margin-bottom: 8px;
    padding-left: 30px;
}

.months span {
    color: #888;
    font-size: 0.75rem;
    text-align: left;
}

.graph-container {
    display: flex;
    gap: 8px;
}

.days-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 105px;
    padding-top: 2px;
}

.days-labels span {
    color: #888;
    font-size: 0.75rem;
    line-height: 1;
}

.contribution-grid {
    display: grid;
    grid-template-rows: repeat(7, 15px);
    grid-auto-columns: 15px;
    gap: 2px;
    overflow-x: auto;
    flex: 1;
}

.contribution-day {
    width: 15px;
    height: 15px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.contribution-day.level-0 {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contribution-day.level-1 {
    background-color: rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.5);
}

.contribution-day.level-2 {
    background-color: rgba(102, 126, 234, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.7);
}

.contribution-day.level-3 {
    background-color: rgba(102, 126, 234, 0.7);
    border: 1px solid rgba(102, 126, 234, 0.9);
}

.contribution-day.level-4 {
    background-color: rgba(102, 126, 234, 1);
    border: 1px solid rgba(102, 126, 234, 1);
    box-shadow: 0 0 6px rgba(102, 126, 234, 0.4);
}

.contribution-day:hover {
    transform: scale(1.1);
    z-index: 10;
}

 .contribution-day.shimmer {
    animation: shimmerEffect 1s ease-in-out;
}

@keyframes shimmerEffect {
    0% {
        transform: scale(1);
        box-shadow: none;
    }
    20% {
        transform: scale(1.15);
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
        background-color: rgba(255, 255, 255, 0.9) !important;
        border-color: rgba(255, 255, 255, 1) !important;
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(102, 126, 234, 0.8);
        background-color: rgba(255, 255, 255, 1) !important;
        border-color: rgba(255, 255, 255, 1) !important;
    }
    80% {
        transform: scale(1.15);
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
        background-color: rgba(255, 255, 255, 0.9) !important;
        border-color: rgba(255, 255, 255, 1) !important;
    }
    100% {
        transform: scale(1);
        box-shadow: none;
    }
}


.activity-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 15px;
    padding-right: 10px;
}

.legend-text {
    color: #888;
    font-size: 0.75rem;
}

.legend-squares {
    display: flex;
    gap: 2px;
}

.legend-square {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-square.level-0 {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-square.level-1 {
    background-color: rgba(102, 126, 234, 0.3);
}

.legend-square.level-2 {
    background-color: rgba(102, 126, 234, 0.5);
}

.legend-square.level-3 {
    background-color: rgba(102, 126, 234, 0.7);
}

.legend-square.level-4 {
    background-color: rgba(102, 126, 234, 1);
}

.tooltip {
    position: absolute;
    background-color: #1a1a1a;
    color: #F4F2F0;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 250px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-15px) scale(0.95);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    overflow: hidden;
}

.tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.tooltip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(130, 90, 169, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.tooltip.visible::before {
    left: 100%;
}

@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }

    .header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .header-work {
        margin-top: 40px;
    }

    .contribution-grid {
        max-width: 300px;
    }

    .activity-header {
        display: block;
    }

    .avatar {
        width: 60px;
        height: 60px;
    }

    h1 {
        font-size: 1.3rem;
    }
    .ai-icon {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .content p {
        font-size: 1.1rem;
    }
    .images-grid {
        gap: 30px;
    }

    .image-caption {
        padding: 15px;
    }

    .error-terminal p {
        font-size: 1.1rem;
    }
    .tooltip { display: none; }
    .tooltip-trigger-mobile { display: inline-block; }
    .company, .company-text {
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(8, 7, 8, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    animation-name: zoomIn;
    animation-duration: 0.3s;
    animation-timing-function: ease-out;
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
}

@keyframes slideInFromRight {
    from { transform: translate3d(100%, -50%, 0); opacity: 0; }
    to { transform: translate3d(-50%, -50%, 0); opacity: 1; }
}
@keyframes slideOutToLeft {
    from { transform: translate3d(-50%, -50%, 0); opacity: 1; }
    to { transform: translate3d(-150%, -50%, 0); opacity: 0; }
}
@keyframes slideInFromLeft {
    from { transform: translate3d(-150%, -50%, 0); opacity: 0; }
    to { transform: translate3d(-50%, -50%, 0); opacity: 1; }
}
@keyframes slideOutToRight {
    from { transform: translate3d(-50%, -50%, 0); opacity: 1; }
    to { transform: translate3d(100%, -50%, 0); opacity: 0; }
}

.slide-out-left { animation: slideOutToLeft 0.3s ease-in-out forwards; }
.slide-in-right { animation: slideInFromRight 0.3s ease-in-out forwards; }
.slide-out-right { animation: slideOutToRight 0.3s ease-in-out forwards; }
.slide-in-left { animation: slideInFromLeft 0.3s ease-in-out forwards; }

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #f1f1f1;
    transition: 0.3s;
    cursor: pointer;
    width: 32px;
    height: 32px;
}

.close:hover,
.close:focus {
    color: #bbb;
}

@media (max-width: 700px) {
    .modal-content {
        width: 95%;
    }
}

.prev, .next {
    z-index: 1;
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    padding: 8px;
    margin-top: -22px;
    color: white;
    transition: 0.3s ease;
    border-radius: 50%;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.6);
}

@media (max-width: 700px) {
    .modal-content {
        width: 95%;
    }
}

.error-terminal {
    margin-bottom: 3rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    p {
        font-size: 1.5rem;
        line-height: 1.8;
    }
    .highlight {
        background-color: #e0e0e0;
        color: #080708;
        padding: 0 0.5rem;
        display: inline-block;
        position: relative;
        &::after {
            content: '▋';
            animation: blink 1s step-end infinite;
            position: absolute;
            right: 2px;
            top: 0;
        }
    }
}

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

.footer-block {
    font-size: 0.75rem;
    color: #666;
    word-break: break-all;
    line-height: 1.4;
    opacity: 0.7;
    margin-bottom: 3rem;
}