:root {
    --bg-color: #121212;
    --surface: #1E1E1E;
    --text-color: #F5F5F5;
    --muted: #A3A3A3;
    --border: #2A2A2A;
    --accent: #e9795d;

    /* Tambahan untuk mode terang */
    --section-bg: #0A0A0A;
    --input-bg: #121212;
    --glass-bg: rgba(30, 30, 30, 0.75);
    --shadow: rgba(0, 0, 0, 0.3);
}




body.light-mode {
    --bg-color: #F5F5F5;
    --surface: #FFFFFF;
    --text-color: #1A1A1A;
    --muted: #666666;
    --border: #DDDDDD;
    --accent: #e9795d;

    --section-bg: #EEEEEE;
    --input-bg: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.80);
    --shadow: rgba(0, 0, 0, 0.12);
}




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


html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: transparent !important;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;

    transition:
        color 0.3s ease;
}


.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}




.navbar {
    width: 95%;
    max-width: 1100px;

    background: var(--surface);

    border-radius: 20px;

    padding: 15px 30px;

    margin: 20px auto 40px;

    border: 1px solid var(--border);

    position: relative;
    z-index: 10;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}


.glass {
    background: var(--glass-bg);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    box-shadow:
        0 8px 32px var(--shadow);
}


.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}


.logo {
    color: var(--text-color);

    text-decoration: none;

    font-size: 22px;
    font-weight: 800;

    letter-spacing: -1px;
}


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


.nav-menu {
    display: flex;

    gap: 15px;

    list-style: none;
}


.nav-menu a {
    color: var(--text-color);

    text-decoration: none;

    padding: 8px 16px;

    border-radius: 30px;

    font-weight: 600;
    font-size: 14px;

    transition: all 0.3s ease;
}


.nav-menu a:hover {
    background: var(--text-color);

    color: var(--bg-color);
}




.dropdown {
    position: relative;
}


.dropdown-content {
    display: none;

    position: absolute;

    top: 120%;
    left: 0;

    width: 200px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 10px;

    list-style: none;

    z-index: 999;

    box-shadow:
        0 10px 30px var(--shadow);
}


.dropdown:hover .dropdown-content {
    display: block;
}


.dropdown-content a {
    display: block;

    padding: 12px;

    border-radius: 8px;
}


.dropdown-content a:hover {
    background: var(--border);

    color: var(--text-color);
}




.theme-toggle {
    display: flex;

    align-items: center;

    gap: 7px;

    padding: 8px 13px;

    border: 1px solid var(--border);

    border-radius: 30px;

    background: transparent;

    color: var(--text-color);

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.3s ease;
}


.theme-toggle:hover {
    border-color: var(--accent);

    color: var(--accent);
}




.hero {
    padding: 40px 0 80px;
}


.hero-grid {
    display: grid;

    grid-template-columns: 1.3fr 0.9fr;

    gap: 60px;

    align-items: center;
}


.badge {
    display: inline-block;

    padding: 6px 14px;

    border-radius: 50px;

    background: rgba(233, 121, 93, 0.15);

    color: var(--accent);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 20px;
}


.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);

    line-height: 1.1;

    letter-spacing: -1.5px;

    margin-bottom: 20px;
}


.accent-text {
    color: var(--accent);
}


.hero p {
    font-size: 1.1rem;

    color: var(--muted);

    margin-bottom: 30px;
}


.button-row {
    display: flex;

    gap: 15px;
}




.profile-card {
    background: var(--surface);

    padding: 20px;

    border-radius: 30px;

    border: 1px solid var(--border);

    box-shadow:
        0 20px 40px var(--shadow);

    text-align: center;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}


.image-wrapper {
    width: 100%;

    height: 300px;

    border-radius: 20px;

    overflow: hidden;

    margin-bottom: 20px;

    background: var(--border);
}


.profile-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: top;

    opacity: 0.5;

    filter:
        blur(2px)
        grayscale(30%);

    transition:
        all 0.4s ease-in-out;
}


.profile-image:hover {
    opacity: 1;

    filter:
        blur(0)
        grayscale(0%);
}


.profile-info h3 {
    font-size: 1.2rem;

    margin-bottom: 5px;

    color: var(--text-color);
}


.profile-info p {
    font-size: 0.95rem;

    color: var(--muted);

    margin-bottom: 15px;
}


.small-badge {
    font-size: 10px;

    margin: 0;
}




.section {
    padding: 60px 0;
}


.section-title {
    margin-bottom: 40px;
}


.eyebrow {
    color: var(--accent);

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    font-size: 12px;

    margin-bottom: 5px;
}


h2 {
    font-size: 2.5rem;

    letter-spacing: -1px;

    margin-bottom: 10px;
}


p {
    color: var(--muted);

    font-size: 1.05rem;
}




.two-column {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(300px, 1fr)
        );

    gap: 30px;
}


.three-column,
.skill-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 30px;
}


.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(300px, 1fr)
        );

    gap: 30px;
}


/* =========================
   DARK SECTION
========================= */

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

    border: 1px solid var(--border);

    border-radius: 40px;

    padding: 80px 40px;

    margin: 0 auto 40px;

    width: 95%;

    max-width: 1100px;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}


.dark-section .card {
    background: var(--surface);

    border: 1px solid var(--border);
}




.card {
    background: var(--surface);

    padding: 30px;

    border-radius: 20px;

    border: 1px solid var(--border);

    box-shadow:
        0 10px 30px var(--shadow);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}


.card:hover {
    transform: translateY(-5px);

    border-color: var(--accent);
}


.card h3 {
    font-size: 1.3rem;

    margin-bottom: 15px;

    letter-spacing: -0.5px;

    color: var(--text-color);
}




.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;
}


.tag {
    background: var(--border);

    color: var(--text-color);

    padding: 6px 14px;

    border-radius: 50px;

    font-size: 0.85rem;

    font-weight: 600;
}




.btn {
    display: inline-block;

    padding: 12px 24px;

    border-radius: 50px;

    text-decoration: none;

    font-weight: 700;

    font-size: 14px;

    border: none;

    cursor: pointer;

    transition: all 0.3s ease;
}


.btn-primary {
    background: var(--accent);

    color: #FFFFFF;
}


.btn-primary:hover {
    background: #D8684D;
}


.btn-secondary {
    background: transparent;

    border: 2px solid var(--border);

    color: var(--text-color);
}


.btn-secondary:hover {
    border-color: var(--accent);

    color: var(--accent);
}




.info-list {
    list-style: none;
}


.info-list li {
    margin-bottom: 15px;

    border-bottom: 1px solid var(--border);

    padding-bottom: 10px;

    color: var(--muted);
}


.info-list li strong {
    color: var(--text-color);
}




.contact-item {
    margin-bottom: 20px;
}


.contact-item a {
    color: var(--text-color);

    text-decoration: none;

    font-weight: 600;
}


.contact-item a:hover {
    color: var(--accent);
}




form {
    display: grid;

    gap: 15px;
}


input,
textarea {
    width: 100%;

    padding: 15px;

    margin-top: 8px;

    border: 1px solid var(--border);

    border-radius: 12px;

    font-family: inherit;

    background: var(--input-bg);

    color: var(--text-color);
}


input:focus,
textarea:focus {
    outline: none;

    border-color: var(--accent);
}


textarea {
    height: 120px;

    resize: vertical;
}




footer {
    text-align: center;

    padding: 40px;

    color: var(--muted);

    font-size: 0.9rem;

    margin-top: 40px;

    border-top: 1px solid var(--border);
}


.footer-name {
    color: var(--text-color);

    font-weight: bold;
}




#particleCanvas {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    z-index: -1;

    pointer-events: none;

    background-color: var(--bg-color);

    transition:
        background-color 0.3s ease;
}




@keyframes fadeUp {

    0% {
        opacity: 0;

        transform:
            translateY(40px);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0);
    }
}


.navbar {
    opacity: 0;

    animation:
        fadeUp 0.8s ease-out 0.1s forwards;
}


.hero-text,
.section-title {
    opacity: 0;

    animation:
        fadeUp 0.8s ease-out 0.3s forwards;
}


.profile-card {
    opacity: 0;

    animation:
        fadeUp 0.8s ease-out 0.5s forwards;
}


.card {
    opacity: 0;

    animation:
        fadeUp 0.8s ease-out forwards;
}


.card:nth-child(1) {
    animation-delay: 0.4s;
}


.card:nth-child(2) {
    animation-delay: 0.6s;
}


.card:nth-child(3) {
    animation-delay: 0.8s;
}


.card:nth-child(4) {
    animation-delay: 1s;
}


.card:nth-child(5) {
    animation-delay: 1.2s;
}


.card:nth-child(6) {
    animation-delay: 1.4s;
}




@media (max-width: 800px) {

    .nav-inner {
        flex-wrap: wrap;

        justify-content: center;
    }

    .nav-menu {
        flex-wrap: wrap;

        justify-content: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        margin-left: auto;
    }

}