@font-face {
    font-family: 'NotoColorEmojiLimited';
    unicode-range: U+1F1E6-1F1FF;
    src: url(https://raw.githack.com/googlefonts/noto-emoji/main/fonts/NotoColorEmoji.ttf);
}

.experience {
    max-width: 880px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.experience-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    position: relative;
}

.experience-header h1::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #8b5cf6, #8b5cf6);
}

.experience-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    margin-bottom: 2rem;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.company-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    padding: 0.75rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.company-details .company {
    font-size: 1.375rem;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 0.25rem;
}

.meta-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.location, .contract, .duration {
    font-size: 0.95rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location::before { content: '📍'; }
.contract::before { content: '📝'; }
.duration::before { content: '📅'; }

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.tech-tag {
    background: linear-gradient(to right, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    color: #8b5cf6;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(4px);
}

.tech-tag:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.1);
}

.tech-icon {
    width: 18px;
    height: 18px;
}

.experience-content {
    color: #475569;
    line-height: 1.8;
    font-size: 1.05rem;
}

.experience-content h2 {
    font-size: 1.625rem;
    color: #1e293b;
    margin: 2.5rem 0 1.25rem;
    padding-left: 1rem;
    border-left: 4px solid #8b5cf6;
}

.experience-content h3 {
    font-size: 1.375rem;
    color: #334155;
    margin: 2rem 0 1rem;
    position: relative;
}

.experience-content ul {
    padding-left: 1.75rem;
    margin: 1.5rem 0;
    list-style: none;
}

.experience-content li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #8b5cf6;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0 1rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #8b5cf6;
    transform: translateX(-4px);
}

.back-link::before {
    content: '←';
    transition: transform 0.3s ease;
}

.back-link:hover::before {
    transform: translateX(-4px);
}

.flag {
    display: inline-block;
    font-size: 1.2em;
    margin-right: 0.5em;
    font-family: 'NotoColorEmojiLimited', -apple-system, BlinkMacSystemFont, "Segoe UI Emoji", "Segoe UI Symbol";
    font-display: block;
}

@media (max-width: 768px) {
    .experience {
        margin: 1.5rem;
        padding: 1.75rem;
    }

    .experience-meta {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .meta-details {
        text-align: left;
    }

    .company-logo {
        width: 48px;
        height: 48px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .experience {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .experience-header h1 {
        color: #f8fafc;
    }

    .experience-header h1::after {
        background: linear-gradient(to right, #818cf8, #a78bfa);
    }

    .company-logo {
        background: rgba(15, 23, 42, 0.7);
    }

    .company-details .company {
        color: #8b5cf6;
    }

    .location, .contract, .duration {
        color: #94a3b8;
    }

    .tech-tag {
        background: rgba(139, 92, 246, 0.15);
        color: #8b5cf6;
        border-color: rgba(139, 92, 246, 0.3);
    }

    .experience-content {
        color: #cbd5e1;
    }

    .experience-content h2 {
        color: #e2e8f0;
        border-color: #8b5cf6;
    }

    .experience-content h3 {
        color: #e2e8f0;
    }

    .experience-content li::before {
        color: #8b5cf6;
    }

    .back-link {
        color: #94a3b8;
    }

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

/* Dark Mode using .dark selector */
.dark .experience {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .experience-header h1 {
    color: #f8fafc;
}

.dark .experience-header h1::after {
    background: linear-gradient(to right, #818cf8, #a78bfa);
}

.dark .company-logo {
    background: rgba(15, 23, 42, 0.7);
}

.dark .company-details .company {
    color: #8b5cf6;
}

.dark .location, 
.dark .contract, 
.dark .duration {
    color: #94a3b8;
}

.dark .tech-tag {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

.dark .experience-content {
    color: #cbd5e1;
}

.dark .experience-content h2 {
    color: #e2e8f0;
    border-color: #8b5cf6;
}

.dark .experience-content h3 {
    color: #e2e8f0;
}

.dark .experience-content li::before {
    color: #8b5cf6;
}

.dark .back-link {
    color: #94a3b8;
}

.dark .back-link:hover {
    color: #a78bfa;
}