/* =============================================
   CSS Variables
   ============================================= */
:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --wa-color: #25d366;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f3f4f6;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }

/* Section Header */
.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}
.section-subtitle { font-size: 1.05rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* =============================================
   Navigation
   ============================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--primary-color); }
.logo-text {
    background: var(--primary-color);
    color: white;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
}
.logo-full { font-size: 1.2rem; }
.nav-menu { display: flex; gap: 28px; }
.nav-link { font-weight: 500; color: var(--text-dark); position: relative; padding: 8px 0; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary-color); cursor: pointer; }

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%, #fffbeb 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -10%; right: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(30,58,138,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30,58,138,0.1);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-title { font-size: 3.2rem; color: var(--primary-color); margin-bottom: 14px; }
.hero-subtitle { font-size: 1.3rem; color: var(--secondary-color); font-weight: 600; margin-bottom: 20px; }
.hero-description { font-size: 1.05rem; color: var(--text-light); margin-bottom: 32px; line-height: 1.8; }

.hero-cta { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-secondary:hover { background: var(--primary-color); color: white; }
.btn-full { width: 100%; justify-content: center; }

.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2.4rem; font-weight: 700; color: var(--primary-color); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }
.stat-divider { width: 1px; height: 50px; background: var(--border-color); }

.hero-image { display: flex; justify-content: center; align-items: center; }
.image-wrapper { position: relative; }
.image-placeholder {
    width: 340px; height: 340px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b5fd9 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 7.5rem;
    color: rgba(255,255,255,0.25);
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
}
.experience-badge {
    position: absolute;
    bottom: 20px; right: 10px;
    background: var(--secondary-color);
    color: white;
    width: 110px; height: 110px;
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}
.exp-years { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.exp-text { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; }
.scroll-down { color: var(--primary-color); font-size: 1.5rem; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* =============================================
   About Section
   ============================================= */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.lead-text { font-size: 1.2rem; color: var(--primary-color); font-weight: 600; margin-bottom: 14px; line-height: 1.6; }
.about-text p { margin-bottom: 14px; color: var(--text-light); line-height: 1.8; }

.about-info { margin-top: 28px; display: grid; gap: 14px; }
.info-item { display: flex; align-items: center; gap: 12px; color: var(--text-dark); }
.info-item i { width: 20px; text-align: center; }
.info-item i.fa-whatsapp { color: var(--wa-color); font-size: 1.2rem; }
.info-item i.fa-map-marker-alt { color: var(--secondary-color); }
.info-item i.fa-envelope { color: var(--primary-color); }
.info-item i.fa-linkedin { color: #0077b5; }
.info-item a { color: var(--primary-color); }
.info-item a:hover { color: var(--secondary-color); text-decoration: underline; }

.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-color); }
.info-card i { font-size: 2rem; color: var(--secondary-color); margin-bottom: 14px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary-color); }
.info-card p { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; }

/* =============================================
   Skills Section — 4 Card Sejajar 1 Baris
   ============================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolom sejajar */
    gap: 24px;
    margin-bottom: 48px;
    align-items: stretch; /* tinggi card sama */
}

.skill-category {
    background: white;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
}
.skill-category:nth-child(1) { border-top-color: var(--primary-color); }
.skill-category:nth-child(2) { border-top-color: var(--secondary-color); }
.skill-category:nth-child(3) { border-top-color: var(--accent-color); }
.skill-category:nth-child(4) { border-top-color: #8b5cf6; }

.skill-category:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.skill-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bg-light);
}
.skill-header i { font-size: 2rem; }
.skill-category:nth-child(1) .skill-header i { color: var(--primary-color); }
.skill-category:nth-child(2) .skill-header i { color: var(--secondary-color); }
.skill-category:nth-child(3) .skill-header i { color: var(--accent-color); }
.skill-category:nth-child(4) .skill-header i { color: #8b5cf6; }

.skill-header h3 { font-size: 1.05rem; color: var(--text-dark); }

.skill-list { flex: 1; }
.skill-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    color: var(--text-light);
    border-bottom: 1px dashed var(--bg-light);
    font-size: 0.9rem;
    line-height: 1.5;
}
.skill-list li:last-child { border-bottom: none; }
.skill-list li i { color: var(--accent-color); font-size: 0.75rem; flex-shrink: 0; margin-top: 4px; }

/* Languages */
.languages { background: white; padding: 36px 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.lang-title { text-align: center; margin-bottom: 28px; color: var(--primary-color); font-size: 1.4rem; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.lang-item { display: flex; flex-direction: column; gap: 10px; }
.lang-name { font-weight: 600; color: var(--text-dark); }
.lang-level { display: flex; align-items: center; gap: 14px; }
.level-badge { padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.level-badge.fluent { background: rgba(16,185,129,0.1); color: var(--accent-color); }
.level-badge.intermediate { background: rgba(245,158,11,0.1); color: var(--secondary-color); }
.progress-bar { flex: 1; height: 8px; background: var(--bg-light); border-radius: 4px; overflow: hidden; }
.progress { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); border-radius: 4px; width: 0; transition: width 1.2s ease; }

/* =============================================
   Experience Timeline
   ============================================= */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--border-color) 100%);
    top: 0;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 44px;
    margin-bottom: 36px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-marker {
    position: absolute;
    width: 18px; height: 18px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 16px;
    transition: var(--transition);
}
.timeline-marker.current {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 6px rgba(245,158,11,0.2);
    width: 22px; height: 22px;
}
.timeline-item:nth-child(odd) .timeline-marker { right: -9px; }
.timeline-item:nth-child(even) .timeline-marker { left: -9px; }

.timeline-content {
    background: white;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}
.timeline-item:nth-child(odd) .timeline-header { flex-direction: row-reverse; }

.timeline-date { font-size: 0.82rem; color: var(--text-light); font-weight: 500; display: flex; align-items: center; gap: 5px; }
.timeline-date i { color: var(--secondary-color); }
.timeline-badge { background: var(--accent-color); color: white; padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; }

.timeline-title { font-size: 1.15rem; color: var(--primary-color); margin-bottom: 4px; }
.timeline-company { font-size: 0.95rem; color: var(--text-dark); font-weight: 600; margin-bottom: 14px; }
.company-type { font-weight: 400; color: var(--text-light); font-style: italic; }

.timeline-details li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 7px;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
}
.timeline-item:nth-child(odd) .timeline-details li { padding-left: 0; padding-right: 14px; }
.timeline-details li::before { content: '▸'; position: absolute; left: 0; color: var(--secondary-color); font-size: 0.8rem; top: 1px; }
.timeline-item:nth-child(odd) .timeline-details li::before { left: auto; right: 0; }

/* =============================================
   Education Section
   ============================================= */
.edu-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.edu-category { font-size: 1.4rem; color: var(--primary-color); margin-bottom: 28px; display: flex; align-items: center; gap: 10px; }
.edu-category i { color: var(--secondary-color); }
.edu-item {
    display: flex; gap: 18px; margin-bottom: 20px;
    padding: 22px; background: white;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    transition: var(--transition);
}
.edu-item:hover { transform: translateX(8px); box-shadow: var(--shadow-lg); }
.edu-icon {
    width: 48px; height: 48px;
    background: var(--primary-color);
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.edu-content h4 { font-size: 1.05rem; color: var(--text-dark); margin-bottom: 4px; }
.edu-institution { color: var(--text-light); font-size: 0.9rem; margin-bottom: 4px; }
.edu-year { font-size: 0.85rem; color: var(--secondary-color); font-weight: 600; }

.cert-grid { display: grid; gap: 18px; }
.cert-item {
    display: flex; align-items: center; gap: 18px;
    padding: 20px 22px; background: white;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    transition: var(--transition);
}
.cert-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cert-badge {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, var(--primary-color), #3b5fd9);
    color: white; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.cert-info h4 { font-size: 1rem; color: var(--text-dark); margin-bottom: 4px; }
.cert-date { font-size: 0.85rem; color: var(--text-light); }

/* =============================================
   Contact Section
   ============================================= */
.contact-content { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-info { display: grid; gap: 20px; }

.contact-card {
    background: white;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.contact-card-link { display: block; cursor: pointer; }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.contact-card i { font-size: 2rem; margin-bottom: 12px; display: block; }
.contact-card:nth-child(1) i { color: var(--wa-color); }
.contact-card:nth-child(2) i { color: var(--primary-color); }
.contact-card:nth-child(3) i { color: #0077b5; }
.contact-card:nth-child(4) i { color: var(--secondary-color); }

.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--primary-color); }
.contact-card p { color: var(--text-light); font-size: 0.9rem; }
.contact-cta-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.contact-form-wrapper { background: white; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 500; color: var(--text-dark); font-size: 0.95rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit; font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-light);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}

/* =============================================
   Footer
   ============================================= */
.footer { background: var(--bg-dark); color: white; padding: 50px 0 20px; }
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px; padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 { font-size: 1.4rem; margin-bottom: 6px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.95rem; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary-color); transform: translateY(-3px); }
.footer-bottom { text-align: center; color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* =============================================
   Back to Top
   ============================================= */
.back-to-top {
    position: fixed; bottom: 90px; right: 28px;
    width: 46px; height: 46px;
    background: var(--primary-color); color: white;
    border: none; border-radius: 50%;
    cursor: pointer; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 998;
    box-shadow: var(--shadow-lg);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary-color); transform: translateY(-3px); }

/* =============================================
   WhatsApp Floating Button
   ============================================= */
.wa-float {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 54px; height: 54px;
    background: var(--wa-color);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    z-index: 999;
    transition: var(--transition);
    animation: pulse-wa 2.5s infinite;
}
.wa-float:hover { background: #1ebe57; transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); }

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 4px 28px rgba(37,211,102,0.8); }
}

/* =============================================
   Responsive Design
   ============================================= */

/* Tablet landscape → skills 2 kolom */
@media (max-width: 1100px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-container,
    .about-content,
    .edu-container,
    .contact-content {
        grid-template-columns: 1fr;
    }
    .hero-image { order: -1; }
    .image-placeholder { width: 250px; height: 250px; font-size: 6rem; }
    .experience-badge { width: 95px; height: 95px; }
    .about-cards { grid-template-columns: 1fr 1fr; }

    /* Timeline: semua rata kiri */
    .timeline::before { left: 24px; transform: none; }
    .timeline-item {
        width: 100%; left: 0 !important;
        padding-left: 68px; padding-right: 0;
        text-align: left !important;
    }
    .timeline-marker { left: 15px !important; right: auto !important; }
    .timeline-item:nth-child(odd) .timeline-header { flex-direction: row; }
    .timeline-item:nth-child(odd) .timeline-details li { padding-left: 14px; padding-right: 0; }
    .timeline-item:nth-child(odd) .timeline-details li::before { left: 0; right: auto; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%; top: 68px;
        flex-direction: column;
        background: white;
        width: 100%; text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 16px 0; gap: 0;
    }
    .nav-menu.active { left: 0; }
    .nav-link { display: block; padding: 14px 20px; }
    .nav-toggle { display: block; }

    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .hero-cta { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }

    /* Skills: mobile 1 kolom */
    .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .section { padding: 60px 0; }
    .hero-stats { gap: 16px; }
    .stat-number { font-size: 2rem; }
    .about-cards { grid-template-columns: 1fr; }
    .cert-item { flex-direction: column; text-align: center; }
    .edu-container { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 24px; }
}
