@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth; /* nambah smoothscrolling kalo navbarnya dipencet */
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header {
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: rgba(9, 9, 255, 0.986);
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

#menu-icon {
    font-size: 3.6rem;
    color: white;
    cursor: pointer;
    display: none;
}


nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    transition: color 0.3s ease, border-color 0.3s ease; /* biar smooth */
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: rgba(100, 100, 116, 0.675);
    border-bottom: 3px solid rgba(100, 100, 116, 0.675);
}

@media (max-width: 995px) {
    #menu-icon {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 40%;
        border-left: 3px solid rgba(100, 100, 116, 0.675);
        border-bottom-left-radius: 2rem;
        padding: 1rem;
        background-color: rgba(0, 0, 0, 0.95);
        border-top: 0.1rem solid rgba(100, 100, 116, 0.675);
    }

    nav.active {
        display: block;
    }

    nav a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
}

section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

/* Home Section */
/* layout di desktop */

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    background-color: black;
    padding: 10rem 9% 5rem;
}

.home-content {
    max-width: 600px;
}

.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span {
    color: rgb(0, 0, 252);
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Image container */
.home-img {
    position: relative;
    width: 30vw;
    height: 30vw;
    max-width: 380px;
    max-height: 380px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #111;
    border: 3px solid rgba(100, 100, 116, 0.675);
    box-shadow: 0 0 25px rgba(100, 100, 116, 0.5);
    transition: 0.4s ease;
}

.home-img:hover {
    transform: scale(1.03);
    border-color: rgb(136, 136, 238);
    box-shadow: 0 0 35px rgba(136, 136, 238, 0.6);
}

.home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Social Icons */
.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: transparent;
    border: 0.2rem solid rgb(100, 100, 116);
    font-size: 2rem;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.social-icons a:hover {
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: rgb(100, 100, 116);
    box-shadow: 0 0 10px rgba(100, 100, 116, 0.675);
}

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.7rem;
    color: rgba(249, 249, 249, 0.675);
    background-color: rgba(2, 2, 2, 0.675);
    border-radius: 0.5rem;
    letter-spacing: 0.1rem;
    font-weight: 500;
    border: 2px solid rgb(1, 1, 252);
    margin-top: 2rem;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.1);
    background-color: rgb(250, 250, 255);
    color: black;
    box-shadow: 0 0 10px rgb(1, 1, 252);
}

/* Typing text */
.typing-text {
    font-size: 3.4rem;
    font-weight: 600;
}

.typing-text span.multiple-text {
    color: rgb(136, 136, 238);
}

.typed-cursor {
    color: rgb(136, 136, 238);
    font-size: 3.4rem;
}

/* Layout di hape (mobile) */

@media (max-width: 768px) {
    .home {
        flex-direction: column; /* dia nge stack vertikal kalo di hape */
        text-align: center;
        gap: 3rem;
        padding-top: 8rem;
    }

    .home-img {
        order: 1; /* urutannya tetap di atas, no 1 gt */
        width: 60vw;
        height: 60vw;
        max-width: 260px;
        max-height: 260px;
    }

    .home-content {
        order: 2; /* kontennya urutan kedua setelah image */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .social-icons a {
        margin: 2rem 0.75rem; /* biar dia tetap horizontal ga keikut vertikal */
    }
}

/* About Section */
section.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    background-color: #000;
    padding: 10rem 9% 5rem;
}

/* Itu, kontainer image nya, seperti biasa biar bulet2 */
section.about .about-img {
    flex-shrink: 0;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(100, 100, 116, 0.675);
    box-shadow: 0 0 25px rgba(100, 100, 116, 0.5);
    transition: 0.4s ease-in-out;
}

section.about .about-img:hover {
    transform: scale(1.03);
    border-color: rgb(136, 136, 238);
    box-shadow: 0 0 35px rgba(136, 136, 238, 0.6);
}

section.about .about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Text content bagian About (About Text Content) */
section.about .about-content {
    flex: 1;
}

section.about .about-content h1 {
    font-size: 5rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

section.about .about-content h1 span {
    color: rgb(0, 0, 252);
    margin-left: 1rem;
}

section.about .about-content p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

section.about .about-content .fun-facts-title {
    font-weight: 600;
    font-size: 1.8rem;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

section.about .about-content ul {
    list-style-type: disc;
    padding-left: 2rem;
}

section.about .about-content ul li {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 1rem;
}

/* Ini setting utk mobile, PLEEEASE WORK DEAR GOD */
@media (max-width: 995px) {
    section.about {
        flex-direction: column;
        text-align: center;
    }

    section.about .about-content h1 {
        text-align: center;
    }

    section.about .about-content ul {
        text-align: left;
    }
}

/* Dia di bawah paling kanan (harusnya) tetap stick di tempat */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

#music-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(100, 100, 116, 0.4);
    border: 2px solid rgb(136, 136, 238);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#music-toggle:hover {
    transform: scale(1.1);
    background-color: rgb(136, 136, 238);
    color: #000;
    box-shadow: 0 0 20px rgb(136, 136, 238);
}

/* Kalo aktif kayak jedag jedug gt */
#music-toggle.playing {
    border-color: rgb(0, 0, 252);
    box-shadow: 0 0 20px rgb(0, 0, 252);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 252, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 0, 252, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 252, 0);
    }
}

/* Services Section */
.services {
    background-color: #000;
    color: #fff;
    padding: 8rem 9% 5rem; /* nambah padding di section service supaya dia ga nempel ke sisi sana kemari*/
}

section.services .heading,
.services h1 {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 5rem;
    color: rgb(136, 136, 238);
}

.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch; /* semuanya bisa setara panjangnya, ga kek di indo- */
    gap: 2.5rem;
}

.service-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(136, 136, 238);
    min-height: 450px; /* fixed heightnya di ubah tadi sama ak soalnya kalo fixed height nnti kolomnya acak2an */
    border-radius: 3rem;
    cursor: pointer;
    border: 5px solid transparent;
    transition: 0.4s ease-in-out;
}

.service-box:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: rgb(136, 136, 238);
    border-color: rgb(136, 136, 238);
    box-shadow: 0 0 25px rgba(136, 136, 238, 0.5);
    transform: scale(1.03);
}

.service-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem; /* ngecilin paddingnya supaya bisa fit di mobile type hsi */
}

.service-info i {
    font-size: 7rem;
}

.service-info h3 {
    font-size: 3rem; /* ini td yg bermasalah di tulisan web development */
    margin: 1.5rem 0;
    font-weight: 800;
    word-break: break-word; /* ngehindarin textnya keluar dari kolom */
}

.service-info p {
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
    color: #e0e0e0;
}

/* nambah mobile adjustment soalnya tadi tulisannya ga fit di mobile */
@media (max-width: 768px) {
    .services-content {
        grid-template-columns: 1fr; /* Stack cards cleanly in 1 column */
    }

    .service-box {
        min-height: auto; /* Let content dictate height naturally on mobile */
    }

    .service-info {
        padding: 2.5rem 1.5rem;
    }

    .service-info h3 {
        font-size: 2.5rem; /* Fits long words easily on phone screens */
    }

    .service-info i {
        font-size: 5.5rem;
    }
}

/* Projects section */
.projects {
    background-color: #000;
    padding-top: 10rem;
}

.projects .heading {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.projects-content h2 {
    font-size: 1.8rem;
    color: #ccc;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    font-weight: 400;
}

/* Anuan grid videonya anu */
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    justify-content: center;
}

/* card videonya jd nanti itu kayak dia itu bisa dipisah2 gt kek kartu gt */
.video-card {
    background: #111;
    border: 2px solid rgba(100, 100, 116, 0.675);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgb(136, 136, 238);
    box-shadow: 0 0 25px rgba(136, 136, 238, 0.4);
}

.video-card video {
    width: 100%;
    border-radius: 1rem;
    outline: none;
    background-color: #000;
}

.video-card h3 {
    font-size: 2rem;
    color: #fff;
    margin-top: 1.5rem;
}

/* Art Projects */
/* Sub-heading for sections inside projects */
.projects .sub-heading {
    font-size: 3.5rem;
    margin: 5rem 0 3rem;
    text-align: center;
}

/* Art Grid Container */
.art-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

/* Individual Art Card */
.art-card {
    background: #111;
    border: 2px solid rgba(100, 100, 116, 0.675);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.art-card:hover {
    transform: translateY(-8px);
    border-color: rgb(136, 136, 238);
    box-shadow: 0 0 25px rgba(136, 136, 238, 0.4);
}

/* Image Container & Hover Overlay Effect */
.art-img-box {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.art-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.art-card:hover .art-img-box img {
    transform: scale(1.1);
}

/* Dark Glassmorphism Overlay */
.art-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 252, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 2rem;
    text-align: center;
}

.art-card:hover .art-overlay {
    opacity: 1;
}

.art-overlay h4 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.art-overlay p {
    font-size: 1.4rem;
    color: #e0e0e0;
}

/* Card Text Description */
.art-info {
    padding: 2rem;
}

.art-info h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.art-info p {
    font-size: 1.4rem;
    color: #ccc;
    line-height: 1.5;
}

/* Carousel Container */
.carousel {
    margin: 80px auto;
    width: 100%;
    max-width: 1200px;
    overflow: hidden; /* Prevents overflow scrollbars from appearing */
    display: flex;
    gap: 1.5rem;
    /* Optional: Fades edges into background for a smooth look */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Moving Groups */
.group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1.5rem;
    flex-shrink: 0;
    min-width: 100%;
    animation: spin 20s infinite linear; /* Slowed down for smooth scrolling */
}

/* Pause animation when user hovers */
.carousel:hover .group {
    animation-play-state: paused;
}

/* Card Wrapper */
.card {
    width: 220px;
    height: 280px;
    background-color: #111;
    border-radius: 2rem;
    overflow: hidden;
    border: 3px solid rgba(100, 100, 116, 0.5);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    transition: 0.3s ease;
    flex-shrink: 0;
}

.card:hover {
    transform: scale(1.05);
    border-color: rgb(136, 136, 238);
    box-shadow: 0 0 25px rgba(136, 136, 238, 0.5);
}

/* Image inside Card */
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Biar ga ke distorsi */
    object-position: center;
    display: block;
}

/* keyframe yg sdh dibikin */
@keyframes spin {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 1.5rem));
    }
}





/* Footer */

/* Footer Container */
.app-footer {
    background-color: #000;
    color: #fff;
    padding: 5rem 9% 3rem;
    width: 100%;
    border-top: 1px solid rgba(100, 100, 116, 0.3);
}

/* Center Content Wrapper */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer Slogan & Headings */
.footer-slogan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-slogan h1{
    color: #fff;
    font-size: large;
}

.footer-slogan .heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: rgb(136, 136, 238);
}

/* Social Icons Layout */
.app-footer .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.app-footer .social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background-color: transparent;
    border: 0.2rem solid rgb(100, 100, 116);
    color: #fff;
    font-size: 2.2rem;
    transition: 0.3s ease;
    text-decoration: none;
}

.app-footer .social-icons a:hover {
    color: #000;
    transform: scale(1.15) translateY(-4px);
    background-color: rgb(136, 136, 238);
    border-color: rgb(136, 136, 238);
    box-shadow: 0 0 15px rgba(136, 136, 238, 0.6);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .app-footer {
        padding: 4rem 5% 2.5rem;
    }

    .footer-slogan h1 {
        font-size: 2.2rem;
    }

    .footer-slogan .heading {
        font-size: 1.5rem;
    }

    .app-footer .social-icons a {
        width: 4rem;
        height: 4rem;
        font-size: 1.8rem;
    }
}