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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #080808;
    color: white;
}

/* NAVBAR */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(10px);
}

.navbar {
    max-width: 1150px;
    margin: auto;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}

.logo {
    font-size: 25px;
    font-weight: bold;
}

.logo span {
    color: #00e5ff;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: .3s;
}

.nav-menu a:hover {
    color: #00e5ff;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    max-width: 1150px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 25px 50px;
}

.hero-text {
    max-width: 600px;
}

.hello {
    color: #00e5ff;
    font-weight: bold;
    letter-spacing: 4px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 70px);
    margin: 10px 0;
}

.hero h2 {
    color: #00e5ff;
    font-size: 22px;
    margin-bottom: 20px;
}

.hero-text > p {
    color: #aaa;
    line-height: 1.8;
}

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

.btn {
    display: inline-block;
    padding: 14px 25px;
    background: #00e5ff;
    color: #000;
    text-decoration: none;
    border: 2px solid #00e5ff;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,229,255,.3);
}

.btn.outline {
    background: transparent;
    color: white;
}

/* FOTO PROFIL */
.hero-image {
    display: flex;
    justify-content: center;
}

.image-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, #00e5ff, #0066ff);
    animation: float 4s ease-in-out infinite;
    transition: transform 0.1s ease-out; /* Menghaluskan efek mousemove */
}

.image-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #080808;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* KONTEN SECTIONS umum */
.section {
    max-width: 1150px;
    margin: auto;
    padding: 100px 25px 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title p {
    color: #00e5ff;
    font-weight: bold;
    letter-spacing: 3px;
}

.section-title h2 {
    font-size: 36px;
    margin-top: 8px;
}

/* CONTAINER UMUM (UNTUK ABOUT & PENDIDIKAN) */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-card,
.info-box,
.project-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 30px;
    transition: .3s;
}

.about-card:hover,
.info-box:hover,
.project-card:hover {
    transform: translateY(-8px);
    border-color: #00e5ff;
}

.about-card h3 {
    color: #00e5ff;
    margin-bottom: 20px;
}

.about-card p {
    color: #aaa;
    line-height: 1.8;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-box span {
    font-size: 35px;
}

.info-box h4 {
    margin-bottom: 5px;
}

.info-box p {
    color: #aaa;
}

/* SKILL */
.skills {
    max-width: 800px;
    margin: auto;
}

.skill {
    margin-bottom: 25px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-header span:last-child {
    color: #00e5ff;
}

.progress {
    width: 100%;
    height: 10px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0; /* Default 0, diisi lewat JavaScript */
    background: #00e5ff;
    border-radius: 10px;
    transition: width 1.5s ease;
}

/* PROJECTS GRID (Diubah menjadi responsif otomatis untuk 4 proyek) */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-icon {
    font-size: 45px;
    margin-bottom: 20px;
}

.project-card h3 {
    margin-bottom: 15px;
}

.project-card p {
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    padding: 6px 12px;
    border-radius: 20px;
    background: #082f35;
    color: #00e5ff;
    font-size: 12px;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #111;
    color: white;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    outline: none;
    font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00e5ff;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 50px 20px;
    background: #050505;
}

footer h3 {
    color: #00e5ff;
    margin-bottom: 10px;
}

footer p {
    color: #888;
}

.copyright {
    margin-top: 20px;
    font-size: 13px;
}

/* TOMBOL KEMBALI KE ATAS */
#topButton {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #00e5ff;
    font-size: 22px;
    cursor: pointer;
    display: none;
    z-index: 999;
}

/* MEDIA QUERIES (RESPONSIF SMARTPHONE/TABLET) */
@media (max-width: 800px) {
    .nav-menu {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: #111;
        flex-direction: column;
        align-items: center;
        padding: 25px;
        display: none;
        border-bottom: 1px solid #222;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .image-circle {
        width: 260px;
        height: 260px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }
}
