:root {
    --bg: #0d1117;
    --bg-alt: #161b22;
    --text: #c9d1d9;
    --text-muted: #8b949e;
    --primary: #58a6ff;
    --accent: #0497ec;
    --border: #30363d;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.logo img {
    height: 40px;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Contact Me Button */
.contact-button {
    background-color: var(--accent);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-button:hover {
    background-color: #7a2386;
    transform: translateY(-2px);
}

/* Main Layout */
main {
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
}

/* KIRI: Intro */
.intro {
    flex: 1;
    min-width: 300px;
    background: var(--bg-alt);
    padding: 5rem 3rem;
    clip-path: polygon(0 0, 85% 0, 75% 100%, 0% 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.intro p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.intro h1 {
    font-size: 3rem;
    margin-bottom: 0.2rem;
    color: var(--primary);
}

.typewriter {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-muted);
    height: auto;
    margin-top: 0.5rem;
}

.scramble-text {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 1.5rem;
    font-family: monospace;
    letter-spacing: 2px;
}

/* Swiper Slider */
.swiper {
    width: 100%;
    max-width: 400px;
    margin-top: 2rem;
}

.swiper-slide {
    background-color: var(--bg);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* KANAN: Foto */
.photo {
    flex: 1;
    min-width: 300px;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 25% 100%);
}

.photo img {
    width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        height: auto;
    }

    .intro {
        clip-path: none;
        align-items: center;
        text-align: center;
    }

    .photo {
        clip-path: none;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    .contact-button {
        width: 100%;
        text-align: center;
    }

    .intro h1 {
        font-size: 2rem;
    }

    .scramble-text {
        font-size: 1.1rem;
    }

    .swiper {
        max-width: 90%;
    }
}
