:root {
    --space-dark: #050813;
    --neon-blue: #00f3ff;
    --neon-purple: #9d00ff;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--space-dark);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* Animasi Background Luar Angkasa (Stars + Twinkling dinamis murni CSS & JS) */
.stars {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    z-index: -2;
    background: radial-gradient(circle at center, #0d1128 0%, #050813 100%);
    overflow: hidden;
}

.stars i {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle linear infinite alternate;
    box-shadow: 0 0 5px #ffffff;
}

.twinkling {
    display: none; /* Kita tidak lagi memakai gambar eksternal yang gagal dimuat */
}

@keyframes twinkle {
    0% { opacity: 0.1; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 8px #fff, 0 0 15px var(--neon-blue); }
}

/* Tipografi */
h1, h2, h3 { font-weight: 800; }
h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}
span {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.6);
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: rgba(5, 8, 19, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.6));
    transition: transform 0.4s ease;
}

.logo:hover .logo-icon {
    transform: rotate(25deg) scale(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 650px;
    z-index: 10;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Tombol Menyala (Glow Effect) */
.btn-glow {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(0, 243, 255, 0.05);
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 0 5px var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2), inset 0 0 15px rgba(0, 243, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-glow:hover {
    background: var(--neon-blue);
    color: var(--space-dark);
    box-shadow: 0 0 30px var(--neon-blue), inset 0 0 20px var(--neon-blue);
    text-shadow: none;
}

/* Animasi Bintang Jatuh (Shooting Stars) */
.shooting-star {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0), var(--neon-blue));
    animation: shooting 4s linear infinite;
    z-index: 0;
    transform: rotate(20deg);
    opacity: 0;
}

.shooting-star::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 15px 5px var(--neon-blue);
}

@keyframes shooting {
    0% { transform: translate(0, 0) rotate(20deg); opacity: 0; }
    10% { opacity: 1; }
    20% { transform: translate(120vw, 40vh) rotate(20deg); opacity: 0; }
    100% { transform: translate(120vw, 40vh) rotate(20deg); opacity: 0; }
}

/* Planet Saturnus Melayang di Hero Section */
.saturn-container {
    position: absolute;
    right: 15%;
    top: 25%;
    width: 300px;
    height: 300px;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.saturn-body {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f4d03f, #e67e22, #050813);
    box-shadow: 0 0 60px rgba(230, 126, 34, 0.4), inset -20px -20px 40px rgba(0,0,0,0.8);
    position: absolute;
    z-index: 2;
}

.saturn-ring-back, .saturn-ring-front {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 140px;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    border: 30px solid rgba(244, 208, 63, 0.4);
    box-shadow: 0 0 20px rgba(244, 208, 63, 0.3), inset 0 0 20px rgba(244, 208, 63, 0.3);
}

.saturn-ring-back {
    z-index: 1; /* Di belakang planet */
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.saturn-ring-front {
    z-index: 3; /* Di depan planet */
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    border-color: rgba(244, 208, 63, 0.7);
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.02); }
    100% { transform: translateY(0px) scale(1); }
}

/* Padding Umum untuk Section */
section {
    padding: 120px 10%;
    min-height: 100vh;
}

/* Glassmorphism */
.glass-card, .glass-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Tentang Saya (About) */
.about .glass-card {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    position: relative;
    flex-shrink: 0;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(0, 243, 255, 0.3);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transition: transform 0.4s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    border-color: rgba(0, 243, 255, 0.8);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.5);
}

.image-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.6;
    transform: scale(1.2);
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1.1); opacity: 0.4; }
    100% { transform: scale(1.3); opacity: 0.7; }
}

.about-text {
    text-align: left;
}

.about p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.skill-tag {
    background: rgba(0, 243, 255, 0.05);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.skill-tag:hover {
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    transform: translateY(-3px);
}

/* Proyek Terbaru (Projects) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(157, 0, 255, 0.2);
    border-color: rgba(157, 0, 255, 0.4);
}

.project-image {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.view-btn {
    color: var(--neon-purple);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
}

.view-btn:hover {
    text-shadow: 0 0 10px var(--neon-purple);
    transform: translateX(5px);
}

/* Kontak (Contact) */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input, textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

textarea {
    resize: vertical;
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    background: rgba(5, 8, 19, 0.8);
    position: relative;
    z-index: 10;
}

/* Responsive */
@media (max-width: 900px) {
    .saturn-container {
        transform: scale(0.6);
        right: 0%;
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .nav-links { display: none; } /* Untuk sederhana, kita sembunyikan link di mobile, bisa ditambahkan hamburger menu nanti */
    .hero { padding: 100px 5%; text-align: center; justify-content: center; }
    .hero-content { align-items: center; display: flex; flex-direction: column; }
    .saturn-container { display: none; }
    .shooting-star { display: none; }
    
    .about-content { flex-direction: column; text-align: center; }
    .about-text { text-align: center; }
    .skills { justify-content: center; }
    
    section { padding: 80px 5%; }
}
