/* Personal CV / Portfolio Theme for MERDEKA138 */

:root {
    --bg-body: #f0f2f5;
    --cv-bg: #ffffff;
    --sidebar-bg: #1a1e23;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #ffffff;
    --accent-orange: #ff6b35; /* Vitamin vibe */
    --accent-green: #00b09b; /* Nutrition vibe */
    --border-color: #e1e4e8;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

/* Main Wrapper */
.cv-wrapper {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    width: 100%;
    background-color: var(--cv-bg);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Sidebar Styles */
.cv-sidebar {
    width: 320px;
    background: linear-gradient(145deg, var(--sidebar-bg), #0f1215);
    color: var(--text-light);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.avatar-container {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-green));
    padding: 4px;
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.2);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
    border-radius: 50%;
    border: 3px solid var(--sidebar-bg);
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-title {
    color: var(--accent-green);
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 24px;
}

.contact-info {
    margin-bottom: 3rem;
    flex-grow: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    background: rgba(255,255,255,0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.info-text strong {
    display: block;
    font-size: 0.85rem;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-text span {
    font-size: 1rem;
    font-weight: 500;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-resume {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-orange), #ff8c42);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
}

.btn-outline:hover {
    background: var(--accent-green);
    color: #fff;
    transform: translateY(-3px);
}

/* Main Content Styles */
.cv-main {
    flex-grow: 1;
    padding: 4rem;
    overflow-y: auto;
    max-height: 90vh; /* Make it scrollable like a real document */
}

/* Custom Scrollbar for Main */
.cv-main::-webkit-scrollbar {
    width: 8px;
}
.cv-main::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.cv-main::-webkit-scrollbar-thumb {
    background: var(--accent-green); 
    border-radius: 4px;
}

.cv-section {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--accent-orange);
}

/* Portfolio Banner Frame */
.portfolio-frame {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.portfolio-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-frame:hover .portfolio-img {
    transform: scale(1.03);
}

.portfolio-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

.badge {
    background-color: var(--bg-body);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Summary Box */
.summary-box {
    background-color: rgba(0, 176, 155, 0.05);
    border-left: 4px solid var(--accent-green);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Timeline / Experience */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-orange);
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 1rem;
    background-color: rgba(0, 176, 155, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Skills / Competencies */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.skill-percent {
    color: var(--accent-orange);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-orange));
    width: 0; /* Animated via JS */
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
}

/* Footer */
.cv-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cv-footer a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .cv-wrapper {
        flex-direction: column;
    }
    .cv-sidebar {
        width: 100%;
        padding: 3rem 2rem;
    }
    .cv-main {
        max-height: none;
        padding: 3rem 2rem;
    }
    .contact-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .sidebar-actions {
        flex-direction: row;
    }
    .sidebar-actions a {
        flex: 1;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
        background-color: var(--cv-bg);
    }
    .cv-wrapper {
        border-radius: 0;
        box-shadow: none;
    }
    .contact-info {
        grid-template-columns: 1fr;
    }
    .sidebar-actions {
        flex-direction: column;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
}