/**
 * CV Personal Website - Main Stylesheet
 * Modern, Minimalist Design
 */

:root {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --secondary-color: #7b68ee;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-sidebar: #f5f7fa;
    --border-color: #e0e0e0;
    --accent-color: #50c878;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

.cv-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    background: var(--bg-color);
    box-shadow: var(--shadow);
    min-height: 100vh;
}

/* Sidebar Styles */
.cv-sidebar {
    background: var(--bg-sidebar);
    padding: 40px 30px;
    border-right: 1px solid var(--border-color);
}

.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    object-fit: contain;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}

.profile-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.profile-image-placeholder {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-image-placeholder svg {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 
                0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.profile-position {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
    max-height: calc(1.4em * 3);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.profile-location {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Contact Info (Email & Phone) */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 13px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateX(3px);
}

.contact-link svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-link.email-link:hover {
    background: #f0f7ff;
    border-color: #4a90e2;
}

.contact-link.phone-link:hover {
    background: #f0fff0;
    border-color: var(--accent-color);
}

.contact-link.phone-link svg {
    color: var(--accent-color);
}

.about-section {
    margin-bottom: 30px;
}

.about-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.about-section p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Social Media Section */
.social-media-section {
    margin-bottom: 30px;
}

.social-media-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.social-links-inline {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon.whatsapp {
    color: #25D366;
}

.social-icon.whatsapp:hover {
    background: #25D366;
    color: white;
}

.social-icon.telegram {
    color: #0088cc;
}

.social-icon.telegram:hover {
    background: #0088cc;
    color: white;
}

.social-icon.youtube {
    color: #FF0000;
}

.social-icon.youtube:hover {
    background: #FF0000;
    color: white;
}

.social-icon.tiktok {
    color: #000000;
}

.social-icon.tiktok:hover {
    background: #000000;
    color: white;
}

/* Skills Section in Sidebar */
.skills-section-sidebar {
    margin-bottom: 30px;
}

.skills-section-sidebar h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.skills-container-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item-sidebar {
    background: var(--bg-color);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.skill-header-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-name-sidebar {
    font-weight: 500;
    color: var(--text-color);
    font-size: 13px;
}

.skill-level-text-sidebar {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.skill-progress-sidebar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress-bar-sidebar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Bahasa Section in Sidebar */
.bahasa-section-sidebar {
    margin-bottom: 30px;
}

.bahasa-section-sidebar h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.bahasa-container-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bahasa-item-sidebar {
    background: var(--bg-color);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.bahasa-header-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bahasa-name-sidebar {
    font-weight: 500;
    color: var(--text-color);
    font-size: 13px;
}

.bahasa-tahap-text-sidebar {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.bahasa-progress-sidebar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.bahasa-progress-bar-sidebar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Rujukan Section in Sidebar */
.rujukan-section-sidebar {
    margin-bottom: 30px;
}

.rujukan-section-sidebar h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fbbf24;
}

.rujukan-list-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.rujukan-item-sidebar {
    background: var(--bg-color) !important;
    padding: 20px 25px !important;
    border-radius: 8px;
    border: 1px solid var(--border-color) !important;
    border-left: 4px solid #fbbf24 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.rujukan-perkara {
    font-size: 14px;
    color: var(--text-color);
    line-height: 0.8;
    margin: 0;
    white-space: pre-wrap;
}

.export-section {
    margin-top: 30px;
}

.btn-export {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-export:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Main Content Styles */
.cv-main {
    padding: 40px 50px;
}

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

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 3px var(--bg-sidebar);
}

.timeline-content {
    background: var(--bg-light);
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.timeline-header {
    margin-bottom: 10px;
}

.timeline-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.timeline-company {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
}

.timeline-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.timeline-period {
    font-weight: 500;
}

.responsibilities {
    list-style: none;
    margin: 15px 0;
}

.responsibilities li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.responsibilities li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.tech-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Education Styles */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.education-item {
    background: var(--bg-light);
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.education-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.education-field {
    display: block;
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.education-year {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary-color);
    color: white;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.education-summary {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
    line-height: 1.6;
}

/* Innovation Styles */
.innovation-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.innovation-item {
    background: var(--bg-light);
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.innovation-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.innovation-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.innovation-impact {
    font-size: 14px;
    color: var(--text-color);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Anugerah Styles */
.anugerah-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.anugerah-item {
    background: var(--bg-light);
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.anugerah-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.anugerah-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.anugerah-tahun {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.anugerah-organisasi {
    font-size: 15px;
    color: var(--text-light);
}

/* Skills Styles */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: 8px;
}

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

.skill-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
}

.skill-level-text {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.skill-progress {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Footer */
.cv-footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .cv-container {
        grid-template-columns: 1fr;
    }
    
    .cv-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .cv-main {
        padding: 30px 25px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-marker {
        left: -8px;
    }
    
    .timeline {
        padding-left: 25px;
    }
}

@media (max-width: 600px) {
    .cv-main {
        padding: 20px 15px;
    }
    
    .cv-sidebar {
        padding: 30px 20px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        border-radius: 12px;
    }
    
    .profile-name {
        font-size: 18px;
    }
    
    .profile-position {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* Print Styles (for PDF) */
@media print {
    body {
        background: white;
    }
    
    .cv-container {
        box-shadow: none;
        max-width: 100%;
    }
    
    .export-section {
        display: none;
    }
    
    .cv-footer {
        page-break-inside: avoid;
    }
}


