* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background: #fff9f3;
    color: #292929;
    overflow-x: hidden;
}

/* NAVBAR */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: #ff5c8a;
}

.logo span {
    color: #7657ff;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ff5c8a;
}

/* HOME */
.home {
    min-height: 90vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 10% 60px;
    position: relative;
    overflow: hidden;
    gap: 40px;
}

.home::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    background: #ffd86b;
    border-radius: 50%;
    top: -100px;
    right: -100px;
    opacity: 0.6;
}

.home::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    background: #a98bff;
    border-radius: 50%;
    bottom: -100px;
    left: -80px;
    opacity: 0.4;
}

.home-text {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hello {
    display: inline-block;
    background: #ffe4ef;
    color: #ff4f83;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.home h1 {
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.home h1 span {
    color: #7657ff;
}

.home p {
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    padding: 13px 25px;
    border-radius: 30px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary {
    background: #7657ff;
    color: white;
    box-shadow: 0 8px 20px rgba(118,87,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
}

.btn-secondary {
    border: 2px solid #ff5c8a;
    color: #ff5c8a;
}

.btn-secondary:hover {
    background: #ff5c8a;
    color: white;
}

/* FOTO PROFIL */
.profile-container {
    width: 350px;
    height: 350px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.profile {
    width: 300px;
    height: 300px;
    margin: 25px;
    padding: 10px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        #ff6b9d,
        #ffd86b,
        #8ee56b,
        #5edcff,
        #7657ff,
        #ff6b9d
    );
    background-size: 300% 300%;
    animation: colorfulBorder 6s ease infinite;
    box-shadow: 0 20px 50px rgba(118,87,255,0.25);
    transition: 0.4s ease;
}

.profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 4px solid white;
}

.profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(118,87,255,0.35);
}

@keyframes colorfulBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.star {
    position: absolute;
    font-size: 35px;
    animation: float 3s infinite ease-in-out;
}

.star.one {
    top: 0;
    right: 10px;
}

.star.two {
    bottom: 20px;
    left: 0;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* UMUM */
.page-content section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

.section-title span {
    color: #ff5c8a;
}

.section-title p {
    color: #777;
}

/* ABOUT */
.about {
    background: #fff;
    position: relative;
}

.about-content {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}

.info-box {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.info {
    padding: 20px 35px;
    border-radius: 20px;
    background: #fff5c7;
    font-weight: 600;
}

.info:nth-child(2) {
    background: #e8ddff;
}

.info:nth-child(3) {
    background: #d9f8ff;
}

/* EDUCATION */
.education {
    background: linear-gradient(135deg, #fff9f3, #f8f2ff, #fff0f6);
    position: relative;
}

.education-container {
    max-width: 900px;
    margin: auto;
    padding-left: 35px;
    border-left: 5px solid #ff9fc0;
}

.education-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 25px;
    background: #e8ddff;
    box-shadow: 0 12px 30px rgba(118,87,255,0.10);
    transition: 0.3s;
}

.education-card:nth-child(2) {
    background: #ffdce9;
}

.education-card:nth-child(3) {
    background: #d8f7ff;
}

.education-card:hover {
    transform: translateX(8px);
}

.education-icon {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 22px;
    font-size: 35px;
}

.education-text span {
    display: inline-block;
    padding: 5px 12px;
    background: white;
    border-radius: 20px;
    color: #7657ff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.education-text h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.education-text p {
    color: #666;
    line-height: 1.5;
}

/* SKILLS */
.skills {
    background: #f7f2ff;
}

.skill-container {
    max-width: 850px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.skill {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.skill-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 700;
}

.bar {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 20px;
}

.html {
    width: 20%;
    background: #ff704d;
}

.css {
    width: 20%;
    background: #4d9fff;
}

.design {
    width: 40%;
    background: #a05cff;
}

.editing {
    width: 40%;
    background: #ff5c9a;
}

/* PROJECTS */
.projects {
    background: #fff;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    padding: 30px;
    border-radius: 25px;
    min-height: 250px;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card:nth-child(1) {
    background: #ffd9e6;
}

.project-card:nth-child(2) {
    background: #dcd4ff;
}

.project-card:nth-child(3) {
    background: #d5f7ff;
}

.project-icon {
    font-size: 45px;
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 23px;
    margin-bottom: 12px;
}

.project-card p {
    color: #555;
    line-height: 1.6;
}

/* ACHIEVEMENT */
.achievement {
    background: linear-gradient(135deg, #fff4ce, #fff0f7, #f1edff);
}

.achievement-card {
    max-width: 850px;
    margin: auto;
    padding: 35px;
    border-radius: 25px;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 12px 30px rgba(118,87,255,0.10);
    line-height: 1.7;
}

.achievement-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

/* CONTACT */
.contact-page {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fff9f3, #f8f2ff, #fff0f6);
}

.contact {
    width: 100%;
    padding: 70px 10%;
}

.contact-box {
    max-width: 650px;
    margin: auto;
    padding: 40px;
    text-align: center;
    border-radius: 30px;
    background: white;
    box-shadow: 0 12px 35px rgba(118,87,255,0.12);
}

.contact-icon {
    font-size: 55px;
    margin-bottom: 15px;
}

.contact-box h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #7657ff;
}

.contact-box p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
}

.contact-box .email {
    font-weight: 700;
    color: #ff5c8a;
}

.contact-button {
    display: inline-block;
    margin-top: 10px;
    padding: 13px 28px;
    background: #7657ff;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.contact-button:hover {
    background: #ff5c8a;
    transform: translateY(-4px);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 25px;
    background: #29213f;
    color: white;
    font-size: 14px;
}

footer span {
    color: #ff9fc0;
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 800px) {
    nav {
        padding: 16px 5%;
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .home {
        flex-direction: column;
        text-align: center;
        padding: 150px 7% 60px;
    }

    .buttons {
        justify-content: center;
    }

    .profile-container {
        transform: scale(0.85);
        margin-top: 10px;
    }

    .project-container {
        grid-template-columns: 1fr;
    }

    .skill-container {
        grid-template-columns: 1fr;
    }

    .page-content section {
        padding: 80px 7%;
    }
}

@media (max-width: 500px) {
    .logo {
        font-size: 22px;
    }

    nav ul {
        gap: 13px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .home h1 {
        font-size: 38px;
    }

    .home p {
        font-size: 16px;
    }

    .profile-container {
        transform: scale(0.75);
        margin-top: -20px;
        margin-bottom: -30px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .education-card {
        gap: 15px;
        padding: 18px;
    }

    .education-icon {
        width: 55px;
        height: 55px;
        font-size: 27px;
    }

    .education-text h3 {
        font-size: 17px;
    }

    .education-text p {
        font-size: 14px;
    }

    .contact-box {
        padding: 25px;
    }
}