* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'poppins', sans-serif;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
        --main-color:  #99ef33;
    --second-color :#63a53c;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Memaksa body setinggi layar penuh */
}


section {
    flex: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10%; /* Ubah 10rem menjadi 2rem agar konten tidak terdorong ke bawah */
    /* Pastikan min-height: 100vh DIHAPUS dari sini */
    min-height: 0;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a:hover {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.home {
    gap: 3rem;
}

.home-img {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45%;
}

.home-img img {
    width: 30vw;
    animation: floatImage 4s  ease-in-out infinite;
    position: relative;
    z-index: 2;
    /* padding-top: -10em; */
}

/* Particles Animation (Glowing Green Lights) */
.particles-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    display: block;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--main-color), 0 0 20px var(--main-color), 0 0 30px var(--main-color);
    animation: floatParticle 4s infinite ease-in-out alternate;
}

.particle:nth-child(1) { width: 8px; height: 8px; top: 10%; left: 20%; animation-duration: 3s; animation-delay: 0.2s; }
.particle:nth-child(2) { width: 12px; height: 12px; top: 80%; left: 15%; animation-duration: 5s; animation-delay: 1.5s; }
.particle:nth-child(3) { width: 6px; height: 6px; top: 40%; left: 85%; animation-duration: 4.5s; animation-delay: 0.7s; }
.particle:nth-child(4) { width: 10px; height: 10px; top: 75%; left: 75%; animation-duration: 6s; animation-delay: 2.1s; }
.particle:nth-child(5) { width: 7px; height: 7px; top: 20%; left: 80%; animation-duration: 3.5s; animation-delay: 0.5s; }
.particle:nth-child(6) { width: 9px; height: 9px; top: 50%; left: 5%; animation-duration: 4.2s; animation-delay: 1.1s; }
.particle:nth-child(7) { width: 11px; height: 11px; top: 15%; left: 50%; animation-duration: 5.5s; animation-delay: 0.8s; }

@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0) scale(0.8); opacity: 0.2; }
    50% { transform: translateY(-30px) translateX(15px) scale(1.2); opacity: 1; }
    100% { transform: translateY(10px) translateX(-15px) scale(0.8); opacity: 0.2; }
}



@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }

    100% {
        transform: translateY(0);
    }

}

.home-content {
    margin-top: -10%;
    width: 50%;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 600;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}



.home-content h1 {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
   
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background-color: #63a53c;
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--second-bg-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--second-color);
    font-size: 1.6rem;
    color: var(--second-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: 0 0 1rem var(--main-color);
    color: var(--main-color);
}


.footer {
    text-align: center;
    display: flex;             /* Ganti dari block */
    justify-content: center;
    /* justify-content: space-between; */
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: #1a2327;       /* Warna gelap yang solid sesuai tema */
    border-top: 1px solid var(--main-color); /* Tambahkan garis tipis warna hijau agar elegan */
    margin-top: -5rem;
}



.footer-text p {
    margin: 0;
font-size: 1.4rem; /* Ukuran teks yang nyaman dibaca */
    color: var(--text-color);
    opacity: 0.8;      /* Dibuat agak soft */   
}

/* Milestone Section */
.milestone-section {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 10%;
    margin-bottom: 5rem;
}

.milestone-header {
    text-align: center;
    margin-bottom: 3rem;
}

.milestone-header h2 {
    font-size: 3.5rem;
    color: var(--text-color);
}

.milestone-header p {
    font-size: 1.8rem;
    margin-top: 1rem;
}

.milestone-header span {
    color: var(--main-color);
    text-shadow: 0 0 10px var(--main-color);
    font-weight: 700;
}

.milestone-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.progress-bar-container {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    z-index: 0;
}

.progress-bar-fill {
    height: 100%;
    width: var(--progress-percent);
    background: var(--main-color);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(153, 239, 51, 0.6);
    transition: width 1s ease-in-out;
}

.milestone-boxes {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    position: relative;
    z-index: 1;
}

.milestone-box {
    background: var(--second-bg-color);
    padding: 2rem 3rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 120px;
    max-width: 180px;
}

.milestone-box h3 {
    font-size: 3rem;
    color: var(--text-color);
    opacity: 0.5;
}

.milestone-box p {
    font-size: 1.4rem;
    color: var(--text-color);
    opacity: 0.5;
}

.milestone-box i {
    font-size: 3rem;
    color: var(--text-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Hover Animation (Membesar saat disentuh) */
@keyframes shakeMilestone {
    0% { transform: scale(1.08) translateY(-5px) rotate(0deg); }
    20% { transform: scale(1.08) translateY(-5px) rotate(-3deg); }
    40% { transform: scale(1.08) translateY(-5px) rotate(3deg); }
    60% { transform: scale(1.08) translateY(-5px) rotate(-2deg); }
    80% { transform: scale(1.08) translateY(-5px) rotate(2deg); }
    100% { transform: scale(1.08) translateY(-5px) rotate(0deg); }
}

.milestone-box:hover {
    animation: shakeMilestone 0.5s ease-in-out forwards;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Active State (Nyala / Glowing) */
.milestone-box.active {
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(153, 239, 51, 0.4);
    background: rgba(153, 239, 51, 0.1);
    transform: translateY(-5px);
}

/* Active State + Hover */
.milestone-box.active:hover {
    box-shadow: 0 0 30px rgba(153, 239, 51, 0.7);
}

.milestone-box.active h3, 
.milestone-box.active p,
.milestone-box.active i {
    color: var(--main-color);
    opacity: 1;
    text-shadow: 0 0 10px rgba(153, 239, 51, 0.8);
}

.milestone-cta {
    text-align: center;
    margin-top: 4rem;
}

.milestone-cta p {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.milestone-cta .btn-modern {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}


/*Breakpoint*/
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        font-size: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }
    .home-img img {
        width: 40vw;
    }
    
    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 810px) {
    #menu-icon {   
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;

    }
    
    .home-content {
        margin-top: 1%;
    }
    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }
    .home-img {
        width: 100%;
    }
    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .milestone-wrapper {
        padding: 0;
        max-width: 300px;
    }

    .progress-bar-container {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 8px;
        height: 100%;
    }

    .progress-bar-fill {
        width: 100%;
        height: var(--progress-percent);
        transition: height 1s ease-in-out;
    }

    .milestone-boxes {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .milestone-box {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 550px) {
    .home-img img {
        width: 80vw;
    }
}