@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    color: #4a5568; 
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    transition: background-color 0.5s ease;
    overflow-x: hidden;
}
.cv-content {
    flex: 1;
    min-width: 0; 
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow: visible !important;
}
.cv-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px;
    cursor: default !important;
}
.cv-content img[src^="data:image/svg+xml"] {
    opacity: 0 !important; 
    pointer-events: none !important; 
}
.delete-box-btn, .add-skill-btn {
    display: none !important;
}
.resume-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}
.profile-sidebar {
    flex: 0 0 320px;
    position: sticky;
    top: 40px;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0,0,0,0.02);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}
.profile-sidebar .text-container { width: 100%; }
.profile-sidebar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    margin-bottom: 20px;
}
.profile-sidebar h1 {
    font-size: 1.6rem;
    color: #1a202c;
    margin-bottom: 5px;
    line-height: 1.3;
    word-wrap: break-word;
}
.lang-switch {
    margin-top: 30px; 
    display: flex; 
    justify-content: center; 
    gap: 10px; 
}
.lang-switch a { 
    text-decoration: none; 
    padding: 6px 16px; 
    background: #f1f5f9; 
    color: #475569; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: all 0.3s; 
}
.lang-switch a:hover { background: #e2e8f0; }
.lang-switch a.active { background: #2563eb; color: white; }
#scroll-progress { 
    position: fixed; top: 0; left: 0; width: 0%; height: 4px; 
    background: linear-gradient(90deg, #2563eb, #7c3aed); z-index: 9999; 
}
.reveal-on-scroll { 
    opacity: 0; transform: translateY(30px); visibility: hidden; 
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); 
}
.reveal-on-scroll.is-visible { opacity: 1; transform: none; visibility: visible; }
.typing-container { 
    font-size: 1rem; color: #7c3aed; font-weight: 600; 
    text-transform: uppercase; letter-spacing: 1px; min-height: 24px;
}
.cursor { 
    display: inline-block; width: 2px; background-color: #7c3aed; 
    margin-left: 2px; animation: blink 1s infinite; 
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.glow-card { position: relative; overflow: hidden; }
.glow-card::before { 
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; 
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.06), transparent 40%); 
    z-index: 0; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; 
}
.glow-card:hover::before { opacity: 1; }
.glow-card > * { position: relative; z-index: 1; }
.collapsible-wrapper {
    position: relative;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.collapsible-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 70px;
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 1;
}
.read-more-btn {
    display: none;
    background: none; border: none; color: #2563eb;
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    padding: 12px 0 0 0; margin-top: 15px; font-family: inherit;
    border-top: 1px dashed rgba(0,0,0,0.08); width: 100%;
    text-align: center; justify-content: center;
}
.cv-skill-badge {
    display: inline-block;
    color: #ffffff !important;
    padding: 6px 18px;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
@media (max-width: 850px) {
    .resume-container { flex-direction: column; margin: 20px auto; padding: 0 15px; gap: 25px; }
    .profile-sidebar { position: static; width: 100%; flex: none; padding: 30px 15px; border-radius: 20px; }
    .profile-sidebar img { width: 130px; height: 130px; margin-bottom: 15px; }
    .profile-sidebar h1 { font-size: 1.5rem; }
    .cv-content section {
        padding: 25px 20px !important;
        margin-bottom: 25px !important;
        border-radius: 16px !important;
    }
    .cv-content section h2 {
        font-size: 1.4rem !important;
        padding-bottom: 10px !important;
        margin-bottom: 20px !important;
    }
    .glow-card::before { display: none !important; }
}
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    align-items: center;
    justify-content: center;
}
#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}
@media (max-width: 850px) {
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    .cursor {
        display: none !important;
    }
    .typing-container {
        font-size: 0.8rem !important;
    }
    #typewriter::after {
        content: '|';
        color: #7c3aed;
        font-weight: 400;
        margin-left: 2px;
        animation: blink 1s infinite;
    }
}
@media (max-width: 768px) {
    .cv-layout-block {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .cv-layout-block > div {
     width: 100% !important;
        text-align: left !important;
    }
    .cv-layout-block img {
        max-width: 80px !important;
        margin-bottom: 5px;
    }
    .collapsible-body div[style*="display: flex"] {
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .collapsible-body div[style*="display: flex"] > div {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}