
:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: #334155;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --on-accent: #0f172a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --ring: rgba(56, 189, 248, 0.15);
    --glow: rgba(56, 189, 248, 0.35);

    --nav-height: 68px;
    --radius: 10px;
}

body.light-mode {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
    --accent: #0369a1;
    --accent-hover: #075985;
    --on-accent: #ffffff;
    --shadow: 0 4px 6px rgba(15, 23, 42, 0.1);
    --ring: rgba(3, 105, 161, 0.12);
    --glow: rgba(3, 105, 161, 0.28);
}

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

html {
    scroll-padding-top: var(--nav-height); /* judul section tidak tertutup navbar sticky */
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.navbar {
    background-color: var(--surface);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: var(--nav-height);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: clamp(1rem, 2vw, 1.75rem);
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
    color: var(--text);
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.icon-btn:hover {
    border-color: var(--accent);
    background-color: var(--bg);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    padding-block: clamp(2.5rem, 8vw, 5rem);
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.photo {
    width: min(72%, 280px);
    margin-inline: auto;
}

.photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent);
    background-color: var(--surface);
    box-shadow: 0 0 0 10px var(--ring), 0 0 60px var(--glow);
}

.content {
    text-align: center;
}

.overline {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.name {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.role {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--accent);
    margin-block: 0.5rem 1.25rem;
}

.text {
    max-width: 52ch;
    margin-inline: auto;
    margin-bottom: 2rem;
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text);
    color: var(--text);
}

.btn-outline:hover {
    background-color: var(--text);
    color: var(--bg);
}

@media (min-width: 768px) {
    .hero {
        display: flex;
        align-items: center;
        min-height: calc(100vh - var(--nav-height));
        min-height: calc(100svh - var(--nav-height));
    }

    .grid {
        grid-template-columns: minmax(240px, 380px) 1fr;
        gap: clamp(2.5rem, 6vw, 5rem);
    }

    .photo {
        width: 100%;
    }

    .content {
        text-align: left;
    }

    .text {
        margin-inline: 0;
    }

    .actions {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--surface);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem clamp(1rem, 4vw, 2.5rem) 1rem;
    }

    .nav-links li + li {
        border-top: 1px solid var(--border);
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 0;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        flex: 1 1 100%;
    }

    .btn-outline {
        flex: 1 1 calc(50% - 0.375rem);
    }
}