/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --dark: #111111;
    --gray-dark: #1a1a1a;
    --gray: #333333;
    --gray-light: #888888;
    --gray-lighter: #cccccc;
    --white: #f5f5f5;
    --pure-white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span { color: var(--gray-light); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-lighter);
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--pure-white);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--pure-white); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 120px 20px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-greeting {
    font-size: 1rem;
    color: var(--gray-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 1.2rem;
    color: var(--gray-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--pure-white);
}

.btn-primary {
    background: var(--pure-white);
    color: var(--black);
}

.btn-primary:hover {
    background: transparent;
    color: var(--pure-white);
}

.btn-outline {
    background: transparent;
    color: var(--pure-white);
}

.btn-outline:hover {
    background: var(--pure-white);
    color: var(--black);
}

/* Socials */
.hero-socials {
    display: flex;
    gap: 18px;
}

.hero-socials a {
    font-size: 1.3rem;
    color: var(--gray-light);
    transition: var(--transition);
}

.hero-socials a:hover {
    color: var(--pure-white);
    transform: translateY(-3px);
}

/* Avatar */
.avatar-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid var(--gray);
    object-fit: cover;        /* Foto auto-crop agar pas */
    object-position: center;  /* Fokus ke tengah foto */
    transition: var(--transition);
    filter: grayscale(100%);  /* Hitam putih biar match tema */
}

.avatar-img:hover {
    filter: grayscale(0%);    /* Hover = warna asli muncul ✨ */
    border-color: var(--gray-light);
    transform: scale(1.05);
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--dark);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--gray-light);
    margin: 15px auto 0;
}

/* ========== ABOUT ========== */
.about-text p {
    font-size: 1.05rem;
    color: var(--gray-lighter);
    margin-bottom: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== TIMELINE ========== */
.timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    padding-left: 40px;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray);
}

/* Each Item */
.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Dot */
.timeline-dot {
    position: absolute;
    left: -40px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--pure-white);
    border: 3px solid var(--dark);
    box-shadow: 0 0 0 2px var(--gray-light);
    z-index: 1;
}

.dot-outline {
    background: transparent;
    border: 3px solid var(--gray-light);
    box-shadow: none;
}

/* Date */
.timeline-date span {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 10px;
}

/* Content Card */
.timeline-content {
    background: var(--gray-dark);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 28px 30px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(255,255,255,0.18);
    transform: translateX(5px);
}

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

.timeline-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.88rem;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-company i {
    font-size: 0.8rem;
}

.timeline-content p {
    font-size: 0.92rem;
    color: var(--gray-lighter);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Tags */
.timeline-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.timeline-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 14px;
    border: 1px solid var(--gray);
    border-radius: 50px;
    color: var(--gray-lighter);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.timeline-tags span:hover {
    border-color: var(--pure-white);
    color: var(--pure-white);
}

/* ========== CONTACT ========== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-center {
    grid-template-columns: 1fr;
    justify-items: center;
}

.contact-center .contact-info {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-center .contact-item {
    margin-bottom: 0;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 0.85rem;
    color: var(--gray-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    background: var(--gray-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(255,255,255,0.4);
}

.contact-form textarea { resize: vertical; }

.contact-form .btn {
    align-self: flex-start;
    font-family: inherit;
}

/* ========== FOOTER ========== */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content { text-align: center; }

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.footer-socials a {
    color: var(--gray-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--pure-white);
    transform: translateY(-2px);
}

.copyright {
    font-size: 0.8rem;
    color: var(--gray-light);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fadeInUp 0.8s ease forwards; }
.hero-image   { animation: fadeInUp 1s ease forwards; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 25px;
        transform: translateY(-120%);
        transition: var(--transition);
    }

    .nav-links.active { transform: translateY(0); }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
        padding-top: 100px;
    }

    .hero-buttons { justify-content: center; }
    .hero-socials { justify-content: center; }

    .avatar-img { width: 200px; height: 200px; }

    .about-stats { gap: 30px; }

    .contact-wrapper { grid-template-columns: 1fr; }

    /* Timeline responsive */
    .timeline { padding-left: 30px; }
    .timeline-dot { left: -30px; width: 14px; height: 14px; }
    .timeline-content { padding: 22px 20px; }
    .timeline-header h3 { font-size: 1.05rem; }

    .contact-center .contact-info {
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-name { font-size: 2.2rem; }
    .section { padding: 70px 0; }
    .btn { padding: 10px 24px; font-size: 0.85rem; }
    .about-stats { gap: 20px; }
    .stat-number { font-size: 1.8rem; }

    .timeline { padding-left: 25px; }
    .timeline::before { left: 5px; }
    .timeline-dot { left: -25px; width: 12px; height: 12px; }
    .timeline-content { padding: 18px 16px; }
    .timeline-tags span { font-size: 0.68rem; padding: 3px 10px; }
}