@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Jost', sans-serif;
}

html{
    font-size: 62.5%;
}

body {
    width: 100%;
    height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #000; /* hitam dominan */

    /* Beberapa bulatan gradasi kecil ungu-biru */
    background:
        radial-gradient(circle at 15% 20%, rgba(45,8,87,0.5), transparent 20%),
        radial-gradient(circle at 40% 60%, rgba(25,4,129,0.5), transparent 25%),
        radial-gradient(circle at 70% 30%, rgba(70,12,150,0.5), transparent 15%),
        radial-gradient(circle at 80% 75%, rgba(50,10,140,0.5), transparent 20%),
        #000;

    background-size: 200% 200%;
    animation: rotateGalaxy 15s linear infinite;
    color: white;
    position: relative;
    background-attachment: fixed;
}

/* Animasi putar bulatan secara terus-menerus */
@keyframes rotateGalaxy {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    15% {
        background-position: 25% 50%, 30% 40%, 40% 60%, 35% 55%, 0% 0%;
    }
    25% {
        background-position: 50% 100%, 60% 30%, 70% 80%, 65% 40%, 0% 0%;
    }
    35% {
        background-position: 75% 50%, 90% 60%, 90% 50%, 80% 60%, 0% 0%;
    }
    50% {
        background-position: 100% 0%, 120% 40%, 100% 70%, 95% 35%, 0% 0%;
    }
    65% {
        background-position: 75% 50%, 90% 60%, 90% 50%, 80% 60%, 0% 0%;
    }
    75% {
        background-position: 50% 100%, 60% 30%, 70% 80%, 65% 40%, 0% 0%;
    }
    85% {
        background-position: 25% 50%, 30% 40%, 40% 60%, 35% 55%, 0% 0%;
    }
    100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}


header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #3de0fc;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3 ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #3de0fc;
    border-bottom: 3px solid #3de0fc;
}

@media(max-width:995px){
    nav{
        position:absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #3de0fc;
        border-bottom: 3px solid #3de0fc;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #3de0fc;
    }
}

section{
    min-height: 100vh;
    padding: 10rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: transparent;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #3de0fc;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #3de0fc;
    cursor: pointer;
    transition: 0.2s linear;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #3de0fc;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #3de0fc;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #3de0fc;
    box-shadow: 0 0 25px #3de0fc;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: transparent;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #3de0fc;
    letter-spacing: 0.2rem;
    font-weight: 600;
    border: 2px solid #3de0fc;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #3de0fc;
    color: black;
    box-shadow: 0 0 25px #3de0fc;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position:relative;
}

.typing-text span::before{
    content: "Graphic Designer";
    color: #3de0fc;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #3de0fc;
    }
}

@keyframes words{
    0%, 20%{
        content: "BINUS Student";
    }
    21%, 40%{
        content: "Graphic Designer";
    }
    41%, 60%{
        content: "BINUS Student";
    }
    61%, 80%{
        content: "Graphic Designer";
    }
    81%, 100%{
        content: "BINUS Student";
    }
}

@media (max-width:1000px){
    .home{
        gap: 4rem;
    }
}

@media (max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img{
        width: 70vw;
        margin-top: 4rem;
    }
}

/* SERVICES SECTION */
.services {
    background-color: transparent;
    text-align: center;
    padding-top: 10rem;
    padding-bottom: 10rem;
    scroll-margin-top: 40px;
}

.heading {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 4rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8rem;
}

.service-box {
    border: 1px solid var(--main-color);
    border-radius: 2rem;
    padding: 3rem;
    width: 32rem;
    transition: 0.3s ease, background-color 0.3s ease; 
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px #3de0fc;
    background-color: rgba(0, 0, 0, 0.4);
}

.service-box i {
    font-size: 4rem;
    color: #3de0fc;
    margin-bottom: 2rem;
}

.service-box h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.service-box p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.art-preview {
    display: flex;
    flex-wrap: wrap;         
    justify-content: center;  
    align-items: center;      
    gap: 1rem;                
    max-width: 45rem;         
    margin: 0 auto;           
}

.art-preview img {
    width: 8rem;
    height: 8rem;
    border-radius: 1rem;
    object-fit: cover;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
}

.art-preview img:hover {
    transform: scale(1.1);
    border-color: #3de0fc;
}

/* POPUP GALLERY */
.gallery-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 200;
    padding: 2rem;
}

.gallery-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 90%;
}

.gallery-content img {
    width: 55vw;
    max-width: 850px;
    border-radius: 1.5rem;
    transition: 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

.gallery-content img:hover {
    transform: scale(1.03);
}

.art-description {
    color: white;
    max-width: 30rem;
    text-align: left;
}

.art-description h3 {
    font-size: 2.5rem;
    color: #3de0fc;
    margin-bottom: 1rem;
}

.art-description p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #ddd;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: #3de0fc;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: white;
}

.nav-btn {
    background: none;
    border: none;
    color: #3de0fc;
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem 2.5rem;
    transition: 0.3s;
    position: relative;
}

.prev-btn {
    margin-right: 4rem; /* moves left arrow farther from image */
}

.next-btn {
    margin-left: 4rem; /* moves right arrow farther from text */
}

.nav-btn:hover {
    color: white;
    transform: scale(1.2);
}

/* Fade transition for image and text */
.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease;
}

@media (max-width: 900px) {
    .gallery-content {
        flex-direction: column;
    }

    .gallery-content img {
        width: 80vw;
    }
}

html{
    scroll-behavior: smooth;
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #3de0fc;
    border-bottom: 3px solid #3de0fc;
}

/* SKILLS SECTION */
.skills {
    background-color: transparent;
    text-align: center;
    padding: 10rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-margin-top: -1px;
    margin-top: 5rem;
}

.skills .heading {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: white;
    text-align: center; 
    width: 100%;
}

.skills-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4rem 12rem;
}

.skill-box {
    background: transparent;
    border: 1px solid var(--main-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: 0.3s, background-color 0.3s ease;
    width: 250px; 
    height: auto;
}

.skill-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px #3de0fc;
    background-color: rgba(0, 0, 0, 0.4);
}

.skill-box i {
    font-size: 4rem;
    color: #3de0fc;
    margin-bottom: 2rem;
}

.skill-box h3 {
    font-size: 2.3rem;
    color: white;
    margin-bottom: 1rem;
}

.skill-box p {
    font-size: 1.5rem;
    color: #ccc;
    line-height: 1.6;
}

/* Responsive grid */
@media (max-width: 900px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
        width: 90%;
    }
}

@media (max-width: 600px) {
    .skills-container {
        grid-template-columns: 1fr;
        width: 85%;
    }
}

/* EDUCATION SECTION */
.education {
    background-color: transparent;
    text-align: left;
    scroll-margin-top: 90px;
    margin-top: 40px;
}

.education .heading {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 6rem;
    color: white;
    text-align: center;
    width: 100%;
    padding-left: 0;
    margin-top: -2rem;
}

.education-text {
    margin-left: 40px;
}

.education-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24.5rem;
    width: 100%;
    max-width: 1400px;
    margin-left: -4rem;
    margin-top: 5rem;
}

.education-content {
    flex: 1;
    min-width: 400px;
    max-width: 900px;
    text-align: left;
    margin-left: -7rem;
    margin-top: 3rem;
    padding-left: 0;
}

.education-content h3 {
    font-size: 2.6rem;
    color: #3de0fc;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.education-content h3 i {
    color: #3de0fc;
    font-size: 2.3rem;
    margin-left: -3.5rem;
}

.education-content h4 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 500;
    width: 40vw;
}

.education-content .year {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.education-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 1.5rem;
    width: 35vw;
}

/* RIGHT: IMAGE */
.education-img {
    flex: 1.4;
    display: flex;
    justify-content: flex-end;
    align-items: right;
    margin-left: 14.2rem;
}

.education-img img {
    position: relative;
    width: 32vw;
    height: 36vh;
    border-radius: 1.2rem;
    transition: 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    margin-left: -10.3rem;
    margin-top: -2rem;
    cursor: pointer;
}

.education-img img:hover {
    transform: scale(1.05); 
}

/* EXPERIENCE SECTION */
.experience-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 70px;
}

.experience .heading {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: #3de0fc;
    margin-top: -2rem; 
}

.experience .experience-item {
    margin-top: 5rem;
}

.exp-photo {
    width: 700px;
    max-width: 1000px;
    height: 250px;
    object-fit: cover;
    border-radius: 1.2rem;
    transition: 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.exp-photo:hover {
    transform: scale(1.05);
}

.exp-text {
    flex: 3;
    text-align: left;
    max-width: 600px;
}

.exp-icon {
    font-size: 2.3rem;
    color: #3de0fc;
    margin-bottom: 10px;
}

.experience-item h3 {
    font-size: 2.15rem;
    margin-bottom: 10px;
    color: #3de0fc;
}

.exp-info {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 15px;
    font-style: italic;
}

.exp-desc {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #ccc;
    max-width: 100%;
    width: 45vw;
}

.experience {
    margin-top: -100px; 
    scroll-margin-top: 60px;
}

/* CONTACT SECTION */
.contact {
    background-color: transparent;
    color: white;
    text-align: center;
    padding: 17.5rem 5% 10rem; 
    scroll-margin-top: 40px; 
    overflow: visible;
}

.contact .heading {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 3.8rem;
    color: white;
}

.contact-msg {
    font-size: 1.8rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.8;
}

/* === SOSMED SELALU 1 BARIS === */
.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7rem;
    flex-wrap: nowrap; 
    overflow-x: auto; 
    overflow-y: visible;
    margin-top: 3rem;
    padding: 4rem 0;
    scrollbar-width: none;
}
.contact-links::-webkit-scrollbar {
    display: none;
}

.contact-item {
    flex: 0 0 auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
}

.contact-item.instagram {
    margin-right: 0.5rem; /* geser Instagram lebih ke kanan */
}

.contact-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #3de0fc;
    width: 6rem;
    height: 6rem;
    background-color: transparent;
    border: 2px solid #3de0fc;
    border-radius: 50%;
    transition: 0.3s ease;
    text-decoration: none;
}

.contact-item a:hover {
    background-color: #3de0fc;
    color: black;
    transform: scale(1.25) translateY(-5px);
    box-shadow: 0 0 25px #3de0fc;
}

.contact-item p {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: #ccc;
}

/* === HOME ON MOBILE === */
@media (max-width: 768px) {
  .home {
    margin-top:70px;
    padding-top: 15px; /* sesuaikan nilai ini */
    min-height: 100vh;
    display: flex;
    transform: translateY(-20px); /* geser seluruh isi ke atas */
  }

  .home-content {
    margin-top: -15px; /* hilangkan jarak tambahan kalau ada */
  }

  .home .home-content h1 {
    font-size: 3.6rem; /* "Hi! It's Isyana" */
  }

  .home-content h3 {
    font-size: 1rem; /* "I'm a graphic designer" */
  }

  .home-content p {
    font-size: 1.35rem; /* paragraf deskripsi */
    line-height: 1.4;
  }

  .home-img {
    display: flex;
    justify-content: center;     /* horizontal center */
    align-items: center;         /* vertical center */
    width: 100%;
    margin-top: 2rem;            /* jarak atas */
  }

  .home-img img {
    width: 200px;            /* sedikit lebih kecil di layar HP */
  }

  .social-icons a{
    margin-top: 20px;
    font-size: 2rem;
  }

  .btn{
    font-size: 1.5rem;
    margin-top: -6px
  }

  .logo {
    font-size: 23px; /* perkecil ukuran tulisan "Isyana" */
  }
}

/* === SERVICES ON MOBILE === */
@media (max-width: 768px) {
  .services h2 {
    font-size: 3.6rem; /* perkecil judul section */
  }

  .services-container {
    margin-top: -20px;
    gap: 2rem;
  }

  .service-box i {
    font-size: 4rem;
    color: #3de0fc;
  }

  .service-box h3 {
    font-size: 2.5rem;
    color: white;
  }

  .service-box p {
    font-size: 1.35rem;
    color: #ccc;
  }

  /* POPUP GALLERY */
  .art-description h3 {
    font-size: 2.3rem;
    color: #3de0fc;
    margin-bottom: 1rem;
  }

  .art-description p {
    font-size: 1.35rem;
    color: #ddd;
  }
}

/* === SKILLS ON MOBILE === */
@media (max-width: 768px) {
  .skills {
    margin-top: 90px; /* ⬅️ tambahkan jarak dari atas (naikkan nilai untuk lebih turun) */
  }

  .skills .heading {
    font-size: 3.6rem;
  }

  .skills h2 {
    font-size: 3.6rem; /* ubah sesuai keinginan */
  }

  .skills-container {
    margin-top: -20px; /* naikkan isi agar lebih dekat ke judul */
  }

  .skill-box p {
    font-size: 1.35rem;
    color: #ccc;
  }

  .skills-container {
    gap: 2rem;
  }
}

/* === EDUCATION ON MOBILE === */
@media (max-width: 768px) {
   .education {
    margin-top: 20px; /* geser seluruh section ke atas */
  }
  .education .heading {
    font-size: 3.6rem;
  }

  .education-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* teks tetap kiri */
    text-align: left;
    width: 100%;
    padding-left: 2rem;
  }

  .education-img {
    order: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: -30px 0 10px -2.2rem;
    width: 100%;
  }

  .education-img img {
    width: 70vw; 
    height: auto;
    display: block;
    margin: 0 auto;
  }

   .education-content {
    order: 2;
    text-align: left; /* teks tetap kiri */
    width: 100%;
    max-width: 200%;
    margin-top: -21.5rem;
    padding-left: 5rem; /* geser teks ke kanan */
   }

   .education-content h3 {
    color: #3de0fc;
    font-size: 2rem;
   }

   .education-content h4 {
    font-size: 1.65rem;
    color: white;
    width: 80%;
   }

   .education-content .year {
    font-size: 1.3rem;
    color: #aaa;
   }

   .education-content p {
    font-size: 1.35rem;
    color: #ccc;
    max-width: 82.5%;
    width: 100%;
   }
}

/* === EXPERIENCE ON MOBILE === */
@media (max-width: 768px) {
  .experience {
    margin-top: 60px; 
    scroll-margin-top: 40px;
  }

  .experience .experience-item {
    margin-top: -0.8rem; 
  }

  .experience .heading {
    font-size: 3.6rem; 
    text-align: center;
  }

  .experience-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem; 
  }

  .exp-photo {
    width: 100%;
    max-width: 1200px; 
    height: auto;
  }

  .exp-text {
    max-width: 200%;
    margin-top: 1rem;
    margin-left: 0.5rem; /* geser teks lebih ke kiri */
    text-align: left;   /* pastikan teks tetap rata kiri */
    width: 100%;
  }

  .exp-icon {
    font-size: 2.3rem;
    color: #3de0fc;
    margin-bottom: 10px;
  }

  .experience-item h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #3de0fc;
  }

  .exp-info {
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 15px;
    font-style: italic;
  }

  .exp-desc {
    font-size: 1.35rem;
    color: #ccc;
    max-width: 100%;
    width: 100%;
  }
}

/* === CONTACT ME ON MOBILE === */
@media (max-width: 768px) {
    .contact {
    scroll-margin-top: 40px;
    padding-top: 8rem;
  }

    .contact .heading {
    font-size: 3.6rem; 
    text-align: center;
  }

   .contact-msg {
    font-size: 1.35rem;
    color: #ccc;
    max-width: 100%;
    margin-top: -2rem;
  }

   .contact-links {
    flex-direction: column; /* susun vertikal */
    align-items: center;    /* rata tengah */
    justify-content: center;
    gap: 3rem;              /* jarak antar ikon, bisa diubah */
    padding: 1.5rem 0; /* beri ruang vertikal */
    margin-top: 2rem;
    overflow: visible; /* pastikan hover tidak terpotong */
  }

  .contact-item {
    margin: 0;              /* hilangkan margin horizontal */
  }

  .contact-item.instagram {
    margin: 0;
  }

   .contact-item a {
    font-size: 2rem;
    width: 4rem;
    height: 4rem;
  }

   .contact-item p {
    font-size: 1.35rem;
    color: #ccc;
    align-items: center;    /* rata tengah */
    justify-content: center;
  }
}

body {
    position: relative;
    z-index: 0;
}

/* LAYER 1 (twinkle cepat) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 70%) 10% 12%,
        radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 70%) 35% 18%,
        radial-gradient(circle, rgba(120,170,255,0.9) 0%, transparent 70%) 20% 65%,
        radial-gradient(circle, rgba(120,170,255,0.9) 0%, transparent 70%) 55% 55%;

    background-size: 5px 5px;
    background-repeat: no-repeat;
    animation: twinkleA 2.5s infinite ease-in-out;
    opacity: 0.8;
}

/* LAYER 2 (twinkle sedang) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 70%) 75% 35%,
        radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 70%) 80% 15%,
        radial-gradient(circle, rgba(120,170,255,0.9) 0%, transparent 70%) 60% 18%,
        radial-gradient(circle, rgba(120,170,255,0.9) 0%, transparent 70%) 72% 48%;

    background-size: 5px 5px;
    background-repeat: no-repeat;
    animation: twinkleB 3.2s infinite ease-in-out;
    opacity: 0.8;
}

/* LAYER 3 (twinkle lambat) */
body {
    position: relative;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        /* putih */
        radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 60%) 10% 12%,
        radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 60%) 20% 40%,
        radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 60%) 30% 70%,
        radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 60%) 55% 85%,
        radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 60%) 75% 60%,

        /* biru */
        radial-gradient(circle, rgba(120,170,255,0.9) 0%, transparent 60%) 15% 55%,
        radial-gradient(circle, rgba(120,170,255,0.9) 0%, transparent 60%) 28% 22%,
        radial-gradient(circle, rgba(120,170,255,0.9) 0%, transparent 60%) 45% 40%,
        radial-gradient(circle, rgba(120,170,255,0.9) 0%, transparent 60%) 55% 55%,
        radial-gradient(circle, rgba(120,170,255,0.9) 0%, transparent 60%) 70% 77%;

    background-size: 3px 3px; /* ukuran bintang DIPERKECIL */
    background-repeat: no-repeat;

    animation: twinkleStars 3s infinite ease-in-out;
    opacity: 0.8;
}

@keyframes twinkleStars {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}
