:root {
    --main-bg: #18181B;
    --main-accent: #6C63FF;
    --main-white: #fff;
    --main-dark: #23234A;
    --main-light: #F3F3F3;
    --main-font: 'Poppins', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    font-family: var(--main-font);
    background: var(--main-bg);
    color: var(--main-white);
    scroll-behavior: smooth;
}

.section {
    padding: 80px 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--main-dark);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-logo {
    font-family: var(--heading-font);
    font-size: 1.7rem;
    color: var(--main-accent);
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    font-family: var(--heading-font);
    font-size: 1.1rem;
    color: var(--main-white);
    transition: color .3s, font-size .2s;
    padding: 6px 14px;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover, .nav-link:focus {
    color: var(--main-accent);
    background: rgba(108,99,255,0.12);
    font-size: 1.15rem;
    cursor: pointer;
    outline: none;
}

.home-section {
    background: linear-gradient(120deg, #23234A 70%, #18181B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.home-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1.1s;
}

.home-hi {
    font-family: var(--heading-font);
    font-size: 2.3rem;
    color: var(--main-white);
    margin-bottom: 10px;
    letter-spacing: 1px;
    animation: fadeInDown 1.1s;
}

.home-name {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.home-im {
    color: var(--main-white);
    font-weight: 700;
    letter-spacing: 1px;
}

.home-nandio {
    color: var(--main-accent);
    font-weight: 700;
    animation: colorPulse 1.5s infinite alternate;
}

@keyframes colorPulse {
    0% { color: var(--main-accent);}
    100% { color: #33d9b2;}
}

.home-role {
    font-family: var(--main-font);
    font-size: 1.5rem;
    color: #33d9b2;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 1px;
    animation: fadeIn 1.3s;
}

.home-desc {
    font-size: 1.1rem;
    color: var(--main-light);
    margin-top: 10px;
}

.about-section {
    background: #23234A;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: auto;
    width: 100%;
    animation: fadeInLeft 1.3s;
}

.about-text {
    flex: 2;
    animation: fadeInLeft 1.3s;
}

.about-text h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--main-accent);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--main-light);
    margin-bottom: 0;
}

.about-photo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1.3s;
    -webkit-animation: fadeInRight 1.3s;
}

.profile-img {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--main-accent);
    box-shadow: 0 0 24px #6C63FF33;
    animation: scaleBounce 1.2s;
    -webkit-animation: scaleBounce 1.2s;
}

@keyframes scaleBounce {
    0% { transform: scale(0.6); -webkit-transform: scale(0.6); -moz-transform: scale(0.6); -ms-transform: scale(0.6); -o-transform: scale(0.6); }
    80% { transform: scale(1.08); -webkit-transform: scale(1.08); -moz-transform: scale(1.08); -ms-transform: scale(1.08); -o-transform: scale(1.08); }
    100% { transform: scale(1); -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); }
}

.education-section {
    background: #18181B;
    align-items: flex-start;
}

.education-title {
    font-family: var(--heading-font);
    color: var(--main-accent);
    font-size: 2rem;
    text-align: center;;
}

.timeline {
    position: relative;
    margin: 60px auto 0 auto;
    width: 80%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-ball {
    width: 18px;
    height: 18px;
    background: var(--main-accent);
    border-radius: 50%;
    margin: 16px 0;
    border: 4px solid var(--main-white);
    box-shadow: 0 0 10px var(--main-accent);
    animation: fadeIn .5s;
    -webkit-animation: fadeIn .5s;
}

.timeline-item {
    position: relative;
    width: 80%;
    min-height: 80px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    animation: fadeInUpTimeline 1.3s forwards;
    -webkit-animation: fadeInUpTimeline 1.3s forwards;
}

.timeline-item.left {
    flex-direction: row;
    align-self: flex-start;
    animation-delay: .2s;
}

.timeline-item.right {
    flex-direction: row-reverse;
    align-self: flex-end;
    animation-delay: .4s;
}

@keyframes fadeInUpTimeline {
    100% { opacity: 1;}
}

.timeline-content {
    background: #23234A;
    padding: 22px 28px;
    border-radius: 14px;
    box-shadow: 0 2px 16px #6C63FF22;
    min-width: 230px;
    margin: 8px;
    animation: fadeInUp .8s;
    -webkit-animation: fadeInUp .8s;
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
}

.timeline-number {
    font-size: 2.1rem;
    font-family: var(--heading-font);
    color: var(--main-accent);
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.skills-section {
    background: #23234A;
    align-items: flex-start;
}

.skills-title {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--main-accent);
    text-align: center;
    margin-bottom: 38px;
}

.skills-container {
    display: flex;
    gap: 36px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 850px;
    margin: 0 auto;
}

.skill-card {
    background: var(--main-bg);
    border-radius: 14px;
    box-shadow: 0 4px 12px #6c63ff22;
    padding: 38px 18px 24px 18px;
    text-align: center;
    width: 180px;
    transition: transform .3s, box-shadow .3s, background .3s;
    position: relative;
    animation: fadeInUp .9s;
    -webkit-animation: fadeInUp .9s;
    -webkit-transition: transform .3s, box-shadow .3s, background .3s;
    -moz-transition: transform .3s, box-shadow .3s, background .3s;
    -ms-transition: transform .3s, box-shadow .3s, background .3s;
    -o-transition: transform .3s, box-shadow .3s, background .3s;
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.06);
    box-shadow: 0 12px 32px #6c63ff55;
    background: #23234A;
    -webkit-transform: translateY(-8px) scale(1.06);
    -moz-transform: translateY(-8px) scale(1.06);
    -ms-transform: translateY(-8px) scale(1.06);
    -o-transform: translateY(-8px) scale(1.06);
}

.skill-img {
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    animation: rotateSkillImg 1.3s infinite alternate;
    -webkit-animation: rotateSkillImg 1.3s infinite alternate;
}

@keyframes rotateSkillImg {
    0% { transform: rotate(-6deg); -webkit-transform: rotate(-6deg); -moz-transform: rotate(-6deg); -ms-transform: rotate(-6deg); -o-transform: rotate(-6deg); }
    100% { transform: rotate(9deg); -webkit-transform: rotate(9deg); -moz-transform: rotate(9deg); -ms-transform: rotate(9deg); -o-transform: rotate(9deg); }
}

.skill-card h3 {
    font-family: var(--heading-font);
    font-size: 1.35rem;
    color: var(--main-accent);
    margin-bottom: 10px;
}

.skill-card p {
    font-size: 1rem;
    color: var(--main-light);
}

.contact-section {
    background: #18181B;
    align-items: flex-start;
}

.contact-title {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--main-accent);
    text-align: center;;
    margin-bottom: 26px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 400px;
    margin: 0 auto 32px auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    background: #23234A;
    color: var(--main-white);
    font-size: 1.08rem;
    resize: none;
    font-family: var(--main-font);
    transition: box-shadow .3s;
    -webkit-transition: box-shadow .3s;
    -moz-transition: box-shadow .3s;
    -ms-transition: box-shadow .3s;
    -o-transition: box-shadow .3s;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 8px var(--main-accent);
    outline: none;
}

.contact-send {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: var(--main-accent);
    color: var(--main-white);
    font-size: 1.1rem;
    font-family: var(--heading-font);
    cursor: pointer;
    transition: background .3s, box-shadow .3s;
    font-weight: 700;
    -webkit-transition: background .3s, box-shadow .3s;
    -moz-transition: background .3s, box-shadow .3s;
    -ms-transition: background .3s, box-shadow .3s;
    -o-transition: background .3s, box-shadow .3s;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.contact-send:hover {
    background: #33d9b2;
    box-shadow: 0 0 16px var(--main-accent);
}

.contact-buttons {
    display: flex;
    gap: 22px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #23234A;
    color: var(--main-white);
    border-radius: 12px;
    font-family: var(--heading-font);
    font-size: 1.08rem;
    text-decoration: none;
    transition: background .3s, color .3s, transform .2s;
    box-shadow: 0 2px 10px #6c63ff22;
    -webkit-transition: background .3s, color .3s, transform .2s;
    -moz-transition: background .3s, color .3s, transform .2s;
    -ms-transition: background .3s, color .3s, transform .2s;
    -o-transition: background .3s, color .3s, transform .2s;
}

.contact-btn:hover {
    background: var(--main-accent);
    color: var(--main-dark);
    transform: scale(1.07);
    -webkit-transform: scale(1.07);
    -moz-transform: scale(1.07);
    -ms-transform: scale(1.07);
    -o-transform: scale(1.07);
}

.instagram { background: linear-gradient(45deg, #fd5949, #d6249f, #285AEB); }
.instagram:hover { color: #fff; }
.whatsapp { background: #25D366; color: #18181B;}
.whatsapp:hover { color: #fff;}
.tiktok { background: #000; color: #fff;}
.tiktok:hover { background: #33d9b2; color: #18181B;}
.github { background: #23234A; color: #fff;}
.github:hover { background: #6c63ff; color: #23234A; }

@media (max-width: 900px) {
    .about-container {
        flex-direction: column-reverse;
        gap: 22px;
        text-align: center;
    }
    .timeline {
        width: 94%;
    }
    .skills-container {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0 10px;
        height: auto;
        flex-direction: column;
        gap: 8px;
    }
    .nav-links {
        gap: 12px;
    }
    .section {
        padding: 60px 8px;
    }
    .home-name {
        font-size: 2rem;
    }
    .about-photo .profile-img {
        width: 120px;
        height: 120px;
    }
    .skills-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Animasi */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(48px); -webkit-transform: translateY(48px); -moz-transform: translateY(48px); -ms-transform: translateY(48px); -o-transform: translateY(48px); }
    to { opacity: 1; transform: translateY(0); -webkit-transform: translateY(0); -moz-transform: translateY(0); -ms-transform: translateY(0); -o-transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-48px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-48px);}
    to { opacity: 1; transform: translateX(0);}
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(48px);}
    to { opacity: 1; transform: translateX(0);}
}
@keyframes fadeIn {
    from { opacity: 0;}
    to { opacity: 1;}
}