html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin-right: 15px;
}
.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
}
header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    background-color: #180161;
    color: white;
    z-index: 3;
}

.nav-links {
    display: flex;
    margin: 0;
    margin-right: 5rem;
    padding: 0;
    list-style: none;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #4cc9f0;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: #4cc9f0;
}
.nav-links a:hover::after {
    width: 100%;
}
nav li {
    margin-left: 3rem;
}


.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}
.hamburger i:hover {
    color: #4cc9f0;
}


main {
    display: flex;
    flex-wrap: wrap;

    background-color: #4F1787;
    color: white;
    min-height: 100vh;
}
article {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(24, 1, 97, 0.3);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}
article:hover {
    transform: translateY(-5px);
}
article h2 {
    text-align: center;
    margin-top: 0;
    color: #FB773C;
    border-bottom: 2px solid #EB3678;
    padding-bottom: 10px;
}

article p {
    text-align: justify;
    line-height: 1.6;
}
.content {
    padding: 2rem 3rem;
    width: 60%;
    box-sizing: border-box;
    padding-top: 8rem;
}
aside {
    margin: 0;
    padding: 2rem;
    width: 40%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;

}
aside h3 {
    text-align: center;
    color: #FB773C;
    margin-bottom: 1rem;
}
aside img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
aside img:hover {
    transform: scale(1.02);
}
aside figcaption {
    text-align: center;
    font-style: italic;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

#planet {
    padding: 8rem 2rem 2rem;
    width: 100%;
    box-sizing: border-box;
    background-color: #4F1787;
}

.planet-title {
    text-align: center;
    margin-bottom: 2rem;
}

.planet-title h2 {
    color: #FB773C;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.planet-title h2::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    background: #EB3678;
    bottom: 0;
    left: 15%;
}
.planet-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;

}

.card {
    flex: 0;
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #3a1266, #2c0e4d);
    padding: 25px;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
}

.card h3 {
    padding: 0 15px;
    text-align: center;
}

.card p {
    color: rgba(255, 255, 255, 0.9);
    padding: 0 15px 20px 15px;
    font-size: 0.95rem;
    text-align: center;
}



/* Styling untuk Footer */
footer {
    background-color: #180161;
    color: white;
    padding: 40px 20px 20px;
    position: relative;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-section {
    flex: 1 1 300px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #FB773C;
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: #EB3678;
    bottom: 0;
    left: 0;
}

.footer-section p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4cc9f0;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: #FB773C;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsivitas footer */
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-section {
        flex: 1 1 100%;
    }
}

@media screen and (max-width: 480px) {
    footer {
        padding: 30px 15px 15px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-section h3 {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .footer-section p {
        text-align: center;
    }
}
@media screen and (max-width: 992px) {
    .content, aside {
        width: 100%;
        padding: 1.5rem;
    }
    
    aside {
        margin-top: 0;
    }
    
    main {
        padding-top: 7rem;
    }
}


@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
        margin-right: 10px;
    }
    
    .nav-links {
        position: fixed;
        top: 105px;
        right: -100%;
        width: 40%;
        height: 100vh;
        background: rgba(79, 23, 135, 0.9); 
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transition: right 0.5s ease;
        margin: 0;
        padding-top: 20px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 30px 0;
    }

    .content, article {
        padding: 1rem;
    }


}


@media screen and (max-width: 480px) {
    .nav-links {
        top: 75px;
    }
    .logo h1 {
        font-size: 1.2rem;
    }
    .logo img {
        width: 50px;
        height: 45px;
    }
    .content, article {
        padding: 0.8rem;
    }
    main {
        padding-top: 6rem;
    }
}

