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

body {
    font-family: 'Poppins', sans-serif;
    background: #0d0b18;
    color: #e2e2e2;
}

:root {
    --primary: #8a2be2;
    --secondary: #4a00e0;
    --gradient: linear-gradient(135deg, #4a00e0, #8a2be2);
}

/* NAVBAR */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: 0.3s;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.85);
}

.nav-container {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    transition: .3s;
}

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


/* HERO */
.hero {
    height: 100vh;
    background: radial-gradient(circle at top, #1b1830, #0d0b18);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 45px;
    margin-bottom: 14px;
}

.hero p {
    font-size: 18px;
    opacity: .8;
    margin-bottom: 45px;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    margin-top: 40px;
    top: 20px;
    border: none;
    cursor: pointer;
    background: var(--gradient);
    font-size: 16px;
    color: #fff;
    transition: .3s;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
}

@media (max-width: 480px) {
    .hero .btn {
        margin-top: 45px;
    }
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(138, 43, 226, .5);
}

/* SECTIONS */
.section {
    width: 90%;
    margin: auto;
    padding: 90px 0;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 50px;
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

/* ABOUT */
.about-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.profile-img {
    width: 320px;
    border-radius: 18px;
    box-shadow: 0 0 25px rgba(138, 43, 226, .3);
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* <-- 4 kolom */
    gap: 15px;
}

.skills-grid span {
    padding: 14px;
    border-radius: 10px;
    background: #181628;
    transition: .3s;
    font-weight: 600;
    text-align: center;
}

.skills-grid span:hover {
    transform: translateY(-6px);
    background: var(--primary);
    box-shadow: 0 0 18px rgba(138, 43, 226, .6);
}

@media (max-width: 960px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}


/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 kolom sejajar */
    gap: 25px;
}

.card {
    background: #181628;
    padding: 25px;
    border-radius: 15px;
    transition: .3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #dcd3ff;
    font-weight: 600;
}

.card p {
    opacity: .8;
    font-size: 15px;
    line-height: 1.5;
}

.card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 0 25px rgba(138, 43, 226, .45);
}

/* Responsive – Tablet */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive – HP */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}


/* EXPERIENCE */
.exp-list {
    width: 80%;
    margin: auto;
    text-align: left;
    line-height: 38px;
}

/* CONTACT */
.contact-form {
    max-width: 550px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 10px;
    background: #181628;
    border: none;
    color: #fff;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 35px;
    background: #0a0813;
    margin-top: 50px;
}

/* ANIMATION */
.animate {
    opacity: 0;
    transform: translateY(60px);
    transition: .8s;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE NAV */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #fff;
    margin: 4px;
}

@media (max-width: 850px) {
    .nav-links {
        display: none;
        position: absolute;
        right: 0;
        top: 70px;
        background: rgba(0, 0, 0, 0.85);
        flex-direction: column;
        width: 200px;
        padding: 20px;
        border-radius: 0 0 0 10px;
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

.hero-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(138, 43, 226, .35);
    margin-bottom: 25px;
}
