.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.09);
    opacity: 0;
    animation: cardFadeIn 0.6s ease forwards;
}

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

.card:nth-child(2) {
    animation-delay: 0.2s;
}

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

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.card.loading {
    animation: none;
    opacity: 1;
}

.card.loading h3,
.card.loading .skills-list,
.card.loading .project-details {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    color: transparent;
    border-color: transparent;
}

.card.loading h3 {
    height: 1.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card.loading .skills-list,
.card.loading .project-details {
    list-style: none;
    gap: 0.75rem;
}

.card.loading .skills-list li,
.card.loading .project-details li {
    height: 1.8rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }

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

.card:hover {
    box-shadow: 0 16px 32px rgba(96, 165, 250, 0.15);
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(96, 165, 250, 0.25);
}

.card:hover h3 {
    color: #ffffff;
}

.card:hover p,
.card:hover li {
    color: rgba(255, 255, 255, 0.92);
}

.card h3 {
    font-family: 'Montserrat', 'Nunito', sans-serif;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.5rem;
    font-weight: 600;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    background: rgba(96, 165, 250, 0.16);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.skills-list li:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(96, 165, 250, 0.2);
    background: rgba(96, 165, 250, 0.22);
    border-color: rgba(96, 165, 250, 0.4);
}

.project-details {
    margin-top: 1rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.project-details li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ── Travel Modal ─────────────────────────────────────────── */
.travel-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.34s ease, visibility 0.34s ease;
}

.travel-modal.active {
    opacity: 1;
    visibility: visible;
}

.travel-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    backdrop-filter: blur(0.8px);
    -webkit-backdrop-filter: blur(0.8px);
}

.travel-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -49%) scale(0.985);
    width: min(420px, 92vw);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s ease;
    opacity: 0;
    will-change: transform, opacity;
}

.travel-modal.active .travel-modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Reuse site h2 style but scoped inside modal */
.travel-modal-content h2 {
    font-family: 'Montserrat', 'Nunito', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.3rem;
    padding-bottom: 0.65rem;
    position: relative;
}

.travel-modal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), rgba(96, 165, 250, 0.3), transparent);
    border-radius: 1px;
}

.travel-modal-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0.55rem 0 1.25rem;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.2px;
}

/* Unified list */
.travel-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.travel-item {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    transition: color 0.2s ease;
}

/* Visited — strikethrough + muted */
.travel-item.visited {
    text-decoration: line-through;
    text-decoration-color: rgba(96, 165, 250, 0.6);
    text-decoration-thickness: 1.5px;
    color: rgba(255, 255, 255, 0.38);
}

.travel-item.visited:hover {
    background: none;
    border-color: transparent;
}

/* Close button */
.travel-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.travel-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.travel-modal-close:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    width: inherit;
    height: auto;
    gap: 1.5rem;
    /* background: blue; */
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.timeline-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-item-logo {
    display: flex;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.86);
    z-index: 99;
    padding: 0;
    margin: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    animation: none;
}

.timeline-item-logo>img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0;
}

.timeline-content {
    display: inline-flex;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        padding: 1.35rem;
        border-radius: 10px;
    }

    .card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.65rem;
    }

    .skills-list {
        gap: 0.55rem;
    }

    .skills-list li {
        font-size: 0.84rem;
        padding: 0.44rem 0.72rem;
    }

    .project-details {
        margin-top: 0.85rem;
        padding-left: 1rem;
    }

    .project-details li {
        font-size: 0.9rem;
    }

    .travel-modal-content {
        width: min(420px, calc(100vw - 1rem));
        max-height: min(78vh, 620px);
        overflow-y: auto;
        padding: 1.35rem 1.1rem 1.2rem;
        border-radius: 14px;
    }

    .travel-modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }

    .travel-item {
        font-size: 0.9rem;
    }

    .travel-modal-close {
        top: 0.7rem;
        right: 0.7rem;
        width: 36px;
        height: 36px;
    }
}

@media (hover: none) {

    .skills-list li:hover,
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
}