/* Resume Page Styles - Based on provided design */

.resume-section {
    min-height: calc(100vh - 5rem);
    background: #F9FAFB;
    padding: 4rem 1rem;
    overflow: visible;
}

/* CV Download Button Container */
#cv-download-btn {
    position: relative;
    z-index: 10;
}

#cv-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 99999 !important;
    overflow: visible !important;
}

/* Tab Navigation */
.resume-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.resume-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: 2px solid transparent;
    background: #F3F4F6;
    color: rgb(107, 114, 128);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.resume-tab:hover {
    background: #E5E7EB;
    color: rgb(55, 65, 81);
}

.resume-tab.active {
    background: #1E293B;
    border-color: #1E293B;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

.resume-tab svg {
    width: 20px;
    height: 20px;
}

/* Tab Contents */
.resume-tab-content {
    display: none;
}

.resume-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Resume Grid Layout - Same as image */
.resume-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .resume-grid {
        grid-template-columns: 1fr;
    }
}

/* Left Sidebar - Company/Education List */
.company-sidebar {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    overflow: hidden;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    margin: 0;
    border-bottom: 1px solid #F3F4F6;
    color: rgb(31, 41, 55);
}

.sidebar-title svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.company-list {
    padding: 0.5rem 0;
    max-height: 550px;
    overflow-y: auto;
}

.company-list::-webkit-scrollbar {
    width: 5px;
}

.company-list::-webkit-scrollbar-track {
    background: transparent;
}

.company-list::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.company-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.125rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.company-item:hover {
    background: #F9FAFB;
}

.company-item.active {
    background: #1E293B;
    border-left-color: var(--primary);
}

.company-item.active .company-name,
.company-item.active .company-period {
    color: white;
}

.company-item.active .company-arrow {
    color: white;
}

.company-icon {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-info {
    flex: 1;
    min-width: 0;
}

.company-name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.4;
    color: rgb(17, 24, 39);
}

.company-period {
    font-size: 0.8125rem;
    color: rgb(107, 114, 128);
    margin-top: 0.25rem;
}

.company-arrow {
    flex-shrink: 0;
    color: rgb(156, 163, 175);
    width: 18px;
    height: 18px;
}

/* Right Side - Company Details */
.company-details {
    position: relative;
}

.detail-card {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.detail-card.active {
    display: block;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 2px solid #F3F4F6;
}

.detail-header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.detail-icon {
    font-size: 2.5rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #F9FAFB;
    border-radius: 12px;
}

.detail-company {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: rgb(17, 24, 39);
    line-height: 1.2;
}

.detail-period {
    font-size: 0.9375rem;
    color: rgb(107, 114, 128);
    margin-top: 0.375rem;
    font-weight: 500;
}

/* Position Block */
.position-block {
    margin-bottom: 2.5rem;
}

.position-block:last-child {
    margin-bottom: 0;
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.position-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: rgb(17, 24, 39);
    flex: 1;
    line-height: 1.4;
}

.position-badge {
    padding: 0.5rem 1rem;
    background: #EEF2FF;
    color: #4338CA;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.position-description {
    line-height: 1.8;
    color: rgb(55, 65, 81);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.position-activities {
    margin-top: 1.5rem;
}

.position-activities h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgb(55, 65, 81);
}

.position-activities ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.position-activities li {
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.7;
    color: rgb(55, 65, 81);
    font-size: 0.9375rem;
}

.position-activities li::before {
    content: '•';
    position: absolute;
    left: 0.25rem;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.position-divider {
    border: none;
    border-top: 2px solid #E5E7EB;
    margin: 2.5rem 0;
}

/* Skills Container */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

.skills-column {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.skills-title {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: rgb(17, 24, 39);
}

.skills-title svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 600;
    font-size: 1rem;
    color: rgb(17, 24, 39);
}

.skill-percent {
    font-size: 0.9375rem;
    color: rgb(107, 114, 128);
    font-weight: 600;
}

.skill-bar {
    height: 10px;
    background: #E5E7EB;
    border-radius: 5px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #6366F1 100%);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* Skills Cards Grid for Skills Tab */
.skills-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.skill-category-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.skill-category-card:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.skill-category-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgb(17, 24, 39);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .resume-grid {
        grid-template-columns: 1fr;
    }
    
    .company-sidebar {
        position: relative;
        top: 0;
    }
    
    .company-list {
        max-height: 350px;
    }
    
    .skills-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .detail-card {
        padding: 1.5rem;
    }
    
    .detail-header {
        flex-direction: column;
    }
    
    .position-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .skills-cards-grid {
        grid-template-columns: 1fr;
    }
}
