@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    overflow-x: hidden;
}
body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1e293b;
    overflow-x: hidden;
}

.cv-container {
    max-width: 1300px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.08), 0 8px 25px rgba(59, 130, 246, 0.04);
    position: relative;
}

/* Organic flowing shapes */
.organic-shape {
    position: absolute;
    z-index: 1;
}


.main-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    position: relative;
    z-index: 2;
    overflow: visible;
}

/* Left sidebar with organic curves */
.sidebar {
    background: linear-gradient(180deg, #1e40af 0%, #1d4ed8 100%);
    color: #f8fafc;
    padding: 40px 35px;
    position: relative;

    clip-path: polygon(0 0, 96% 0, 100% 6%, 100% 94%, 96% 100%, 0 100%);
    border-radius: 30px 0px 0px 30px;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 50px;
}

.profile-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    position: relative;
}

.profile-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #60a5fa 50%, transparent 100%);
    border-radius: 10px;
}

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    position: relative;
    background: #3b82f6;
    border: 6px solid transparent;
    background-clip: padding-box;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
}

.profession {
    font-size: 1em;
    color: #93c5fd;
    font-weight: 500;
    margin-bottom: 15px;
    font-family: 'JetBrains Mono', monospace;
}

.bio {
    font-size: 0.9em;
    line-height: 1.6;
    color: #e2e8f0;
    opacity: 0.95;
}

.contact-section {
    margin: 30px 0;
}

.section-title {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateX(5px);
}

.contact-icon {
    width: 18px;
    height: 18px;
    margin-right: 15px;
    fill: #60a5fa;
    flex-shrink: 0;
}

.contact-info {
    font-size: 0.9em;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
}
.contact-info a:hover {
    text-decoration: underline;
    color: #93c5fd;
}

.skills-section {
    margin: 35px 0;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 8px;
    color: #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-level {
    font-size: 0.9em;
    color: #93c5fd;
    font-family: 'JetBrains Mono', monospace;
}

.skill-bar {
    height: 6px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 10px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    animation: shimmer 2s infinite;
    z-index: 1;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 10px;
    position: relative;
    transition: width 2s ease-in-out;
    z-index: 2;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.languages-section {
    margin: 35px 0;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
}

.language-name {
    font-size: 0.9em;
    color: #e2e8f0;
    font-weight: 500;
}

.language-level {
    font-size: 0.8em;
    color: #60a5fa;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(96, 165, 250, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

/* Right content area */
.content {
    padding: 50px 45px;
    background: #ffffff;
    border-radius: 30px;
}

.content-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.content-title {
    font-size: 3em;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-subtitle {
    font-size: 1.3em;
    color: #3b82f6;
    font-weight: 400;
    margin-bottom: 25px;
}

.content-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #374151;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 50px;
}

.content-section-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 30px;
    position: relative;
    padding-left: 25px;
}

.content-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 30px;
    background: linear-gradient(180deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 10px;
}

.experience-item, .education-item {
    margin-bottom: 35px;
    padding: 25px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    position: relative;
    transition: all 0.3s ease;
}

.experience-item:hover, .education-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.12);
    border-color: #bfdbfe;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.item-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.item-company {
    font-size: 1.1em;
    color: #475569;
    font-weight: 500;
}

.item-period {
    font-size: 0.9em;
    color: #3b82f6;
    font-family: 'JetBrains Mono', monospace;
    background: #dbeafe;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.item-description {
    font-size: 1em;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 15px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-item {
    font-size: 0.8em;
    background: #1e40af;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
    border-color: #bfdbfe;
}
.project-title {
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 8px 0;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}
.project-role {
    color: #7f8c8d;
    font-size: 0.9em;
    font-weight: 500;
    margin: 0 0 16px 0;
    font-style: italic;
}
.project-description {
    word-break: break-word;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.project-tech-item {
    font-size: 0.75em;
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    font-size: 0.85em;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

.project-link:hover {
    background: #ede9fe;
    color: #232946;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}


.skill-item.auto .power-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    z-index: 2;
    font-weight: bold;
    font-size: 1.1em;
    pointer-events: none;
    white-space: nowrap;
    animation: continuous-flow 4s linear infinite;
    width: 200%;
    opacity: 50%;
}

@keyframes continuous-flow {
    0% {
        transform: translateY(-50%) translateX(-50%);
    }
    100% {
        transform: translateY(-50%) translateX(0);
    }
}

.tooltip {
    position: relative;
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline dotted;
}
.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: -36px;
    transform: translateX(-50%);
    background: #232323;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 1;
    pointer-events: none;
}

/* Hot tag style */
.hot-tag {
    background: #e53935;
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 6px;
    animation: hot-blink 1s infinite;
    box-shadow: 0 0 8px #e53935;
}

.hot-percent {
    background: #e53935;
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 6px;
    animation: hot-blink 1s infinite;
    box-shadow: 0 0 8px #e53935;
    font-size: 1.15em;
}

@keyframes hot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Highlight Tech Lead AI */
.highlight-ai {
    color: #1e40af;
    font-weight: bold;
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    letter-spacing: 0.5px;
}

/* Responsive design */
@media (max-width: 768px) {

    .sidebar::before {
        display: none;
    }

    .sidebar {
        border-radius: 30px 30px 0 0 ;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        clip-path: none;
        padding: 30px 25px;
    }

    .content {
        padding: 30px 25px;
    }

    .content-title {
        font-size: 2.2em;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-period {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .cv-container {
        border-radius: 16px;
    }

    .content-title {
        font-size: 1.8em;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .name {
        font-size: 1.8em;
    }
}

.blog-link-section {
    margin-top: 32px;
    text-align: center;
}

.blog-link-btn {
    display: inline-block;
    padding: 12px 36px;
    border: 2px solid #fff;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-shadow: 0 2px 8px rgba(30,64,175,0.08);
}

.blog-link-btn:hover {
    background: #fff;
    color: #1e40af;
    border-color: #1e40af;
}

.skill-item.hot .skill-progress {
    background: linear-gradient(90deg, #ff6a00 0%, #ff1e40 100%);
}
.skill-item.auto .skill-progress{
    position: relative;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}
.skill-item.auto .power-arrows {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    z-index: 2;
    font-weight: bold;
    font-size: 0.95em;
    pointer-events: none;
    white-space: nowrap;
    animation: continuous-flow 4s linear infinite;
    opacity: 0.5;
    width: 100%;
    text-align: right;
    padding-right: 8px;
    box-sizing: border-box;
}
.skill-item.hot .skill-bar {
    background: rgba(229,57,53,0.2);
}
