
/* BODY HTML */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #07111f;
    color: #f8fafc;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

section {
    scroll-margin-top: 80px;
}

hr {
    margin: 0;
    border: none;
    border-top: 1px solid #24344d;
}


/* si opening */

.opening {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(139, 92, 246, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(6, 182, 212, 0.12),
            transparent 30%
        ),
        #030712;
    z-index: 1000;
    overflow: hidden;
    transition:
        opacity 0.9s ease,
        transform 1s cubic-bezier(.77, 0, .18, 1);
}

.opening.hide {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}


/* Opening Content */

.opening-content {
    position: relative;
    z-index: 5;
    text-align: center;
    animation: heroReveal 1.2s ease forwards;
}

.eyebrow {
    margin-bottom: 24px;
    font-size: 11px;
    letter-spacing: 5px;
    color: #22d3ee;
    opacity: 0.9;
}

.opening h1 {
    font-size: clamp(70px, 13vw, 180px);
    line-height: 0.82;
    font-weight: 700;
    letter-spacing: -6px;
}

.opening h1 span {
    color: transparent;
    -webkit-text-stroke: 1px #f8fafc;
}

.intro {
    margin-top: 32px;
    font-size: 14px;
    letter-spacing: 2px;
    color: #94a3b8;
}


/* Opening Button */

.enter-btn {
    margin-top: 45px;
    padding: 15px 24px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: transparent;
    border: 1px solid #8b5cf6;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition:
        background 0.35s ease,
        color 0.35s ease,
        gap 0.35s ease,
        transform 0.35s ease;

    box-shadow:
        0 0 10px rgba(139, 92, 246, 0.3),
        0 0 25px rgba(139, 92, 246, 0.15);
}

.enter-btn:hover {
    background: #8b5cf6;
    color: white;
    gap: 30px;
    transform: translateY(-3px);
}


/* Opening Glow */

.glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(5px);
}

.glow-1 {
    top: -250px;
    left: -150px;
    background: #8b5cf6;
    opacity: 0.12;
}
.glow-2 {
    bottom: -300px;
    right: -150px;
    background: #06b6d4;
    opacity: 0.10;
}


/* Scroll Indicator */

.scroll-indicator {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.scroll-indicator span {
    display: block;
    width: 100%;
    height: 20px;
    background: #22d3ee;
    animation: scrollLine 1.8s ease-in-out infinite;
}


/* Copyright */

.copyright {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-size: 10px;
    letter-spacing: 1px;
    color: #475569;
}


/* MENU UTAMA NYA */

.main-site {
    min-height: 100vh;
    background:
        linear-gradient(
            180deg,
            #07111f 0%,
            #0b1729 45%,
            #07111f 100%
        );
    position: relative;
}


/* navbar */

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(3, 7, 18, 0.88);
    border-bottom: 1px solid rgba(51, 65, 85, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 500;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    min-height: 70px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Logo */

.logo {
    color: #f8fafc;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo span {
    color: #22d3ee;
}


/* Menu */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.nav-menu a {
    position: relative;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #22d3ee;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #22d3ee;
}

.nav-menu a:hover::after {
    width: 100%;
}


/* Hamburger */

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 21px;
    height: 2px;
    background: #f8fafc;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* HOME */

.home-section {
    min-height: calc(100vh - 70px);

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    text-align: center;
    background:
        radial-gradient(
            circle at center,
            rgba(34, 211, 238, 0.08),
            transparent 35%
        );
}

.home-content {
    max-width: 850px;
}

.home-label {
    color: #22d3ee;
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.home-content h1 {
    font-size: clamp(45px, 8vw, 90px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 25px;
}

.home-content h1 span {
    color: #22d3ee;
}

.home-content > p:not(.home-label) {
    color: #94a3b8;
    font-size: 17px;
    margin-bottom: 35px;
}

.home-button {
    display: inline-block;
    padding: 13px 22px;
    color: #07111f;
    background: #22d3ee;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.home-button:hover {
    background: #67e8f9;
    transform: translateY(-3px);
}


/* about */

main {
    width: 100%;
    margin: auto;
}

#about {
    padding: 90px 0;
}

#about > h1 {
    text-align: center;
    color: #f8fafc;
    font-size: 45px;
    margin-bottom: 25px;
}

.about-intro {
    max-width: 800px;
    text-align: center;
    line-height: 1.7;
    color: #94a3b8;
    margin: 20px auto 60px;
}

#about .about-deskripsi {
    text-align: center;
    color: #22d3ee;
    font-weight: bold;
    margin-bottom: 25px;
}

.about-flex {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 30px auto;
    background: #0f1d31;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #24344d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: 0.3s;
}

.about-flex:hover {
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-3px);
}

.about-image,
.about-text {
    width: 50%;
    margin: 14px;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-flex h2 {
    color: #f8fafc;
    margin-bottom: 15px;
}

.about-flex p {
    color: #94a3b8;
    line-height: 1.7;
}

.about-image {
    overflow: hidden;
    border-radius: 10px;
}

.about-image img {
    width: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.about-image img:hover {
    transform: scale(1.05);
}


/* skill */

.container-skills {
    margin: auto;
    width: 100%;
    padding: 90px 0;
}

.header h1 {
    text-align: center;
    margin-top: 20px;
    color: #f8fafc;
    font-size: 45px;
}

.container-card-flex {
    width: 100%;
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 40px 5%;
    margin-bottom: 20px;
}

.card-items {
    width: 400px;
    background: #0f1d31;
    padding: 25px;
    margin-top: 30px;
    border-radius: 15px;
    border: 1px solid #24344d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    text-align: center;
}

.card-items:hover {
    transform: translateY(-8px);
    border-color: #22d3ee;
    box-shadow:
        0 15px 35px rgba(34, 211, 238, 0.12);
}

.card-items .skill-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #22d3ee;
    background: #07111f;
    color: #22d3ee;
    font-size: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    transition: 0.3s;
}

.card-items .skill-icon:hover {
    transform: scale(1.1);
    background: #22d3ee;
    color: #07111f;
}

.card-items h3 {
    margin-bottom: 12px;
    color: #f8fafc;
}

.card-items p {
    color: #94a3b8;
    line-height: 1.6;
}


/* projects */

.container-project {
    margin: auto;
    width: 100%;
    padding: 90px 0;
}

.container-project-flex {
    width: 100%;
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 40px 5%;
}

.card-project {
    width: 400px;
    background: #0f1d31;
    padding: 20px;
    margin-top: 30px;
    border-radius: 15px;
    border: 1px solid #24344d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    transition: 0.3s;
}

.card-project:hover {
    transform: translateY(-8px);
    border-color: #22d3ee;
    box-shadow:
        0 15px 35px rgba(34, 211, 238, 0.12);
}

.card-project img {
    width: 100%;
    border-radius: 10px;
    height: 240px;
    object-fit: contain;
}

.card-project h3 {
    margin-top: 25px;
    font-size: 25px;
    font-weight: bold;
    padding-bottom: 10px;
    color: #f8fafc;
}

.card-project p {
    margin-top: 5px;
    color: #94a3b8;
    line-height: 1.6;
}

.card-project a {
    color: #07111f;
    background: #22d3ee;
    text-decoration: none;
    text-align: center;
    display: block;
    margin-top: 30px;
    border-radius: 8px;
    padding: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.card-project a:hover {
    background: #67e8f9;
    transform: translateY(-2px);
}


/* contacs */

#contact {
    padding: 90px 0;
}

.contact-flex {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin: 50px auto 30px;
    width: 80%;
}

.map {
    width: 60%;
}

.map h3,
.social-media h3 {
    text-align: center;
    margin-bottom: 15px;
}

.map iframe {
    border-radius: 10px;
    width: 100%;
}

.social-media {
    width: 30%;
    padding: 10px;
}

.social-icon {
    display: block;
    width: 100%;
    margin-top: 10px;
    text-decoration: none;
    text-align: center;
    color: white;
    padding: 12px;
    font-weight: bold;
    border-radius: 10px;
    transition: 0.3s;
}

.whatsapp {
    background: #25D366;
}

.instagram {
    background: #e4405f;
}

.linkedin {
    background: #0077b5;
}

.social-icon:hover {
    opacity: 0.85;
    transform: translateY(-3px);
}


/* footer */

.footer-container {
    background: #030712;
    border-top: 1px solid #24344d;
}

.footer-flex {
    max-width: 1100px;
    margin: auto;
    padding: 40px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-items h3 {
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.footer-items p {
    color: #22d3ee;
    margin-bottom: 5px;
}

.footer-items span {
    color: #64748b;
    font-size: 13px;
}

.footer-items-text {
    color: #64748b;
    font-size: 13px;
}


/* animasinya */

@keyframes heroReveal {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes scrollLine {

    0% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(35px);
    }
    100% {
        transform: translateY(35px);
    }

}


/* untuk tablet */

@media screen and (max-width: 768px) {

    /* NAVBAR */
    .nav-container {
        width: 90%;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px 0;
        flex-direction: column;
        gap: 0;
        background: rgba(3, 7, 18, 0.97);
        border-bottom: 1px solid #24344d;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: 0.3s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 14px;
    }
    .nav-menu a::after {
        display: none;
    }


    /* HOME */
    .home-section {
        min-height: 80vh;
    }


    /* ABOUT */
    .about-flex {
        flex-direction: column;
    }

    .about-image, .about-text {
        width: auto;
    }

    .about-image {
        margin-bottom: 25px;
    }

    .about-intro {
        width: 85%;
        max-width: none;
        margin: 20px auto 50px;
        text-align: center;
    }


    /* PROJECTS */
    .card-project {
        width: 75%;
    }

    .card-project img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* CONTACT */
    .contact-flex {
        flex-direction: column;
        width: 85%;
    }

    .map, .social-media {
        width: 100%;
    }


    /* FOOTER */
    .footer-flex {
        flex-direction: column;
        text-align: center;
    }

}


/* untuk hp */

@media screen and (max-width: 481px) {

    /* OPENING */
    .opening h1 {
        font-size: 75px;
        letter-spacing: -4px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 4px;
    }

    .intro {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .enter-btn {
        padding: 14px 18px;
        gap: 15px;
    }

    .copyright {
        right: 20px;
        bottom: 20px;
    }

    .scroll-indicator {
        bottom: 35px;
    }


    /* HOME */
    .home-content h1 {
        font-size: 48px;

        letter-spacing: -2px;
    }
    .home-content > p:not(.home-label) {
        font-size: 14px;
    }

    /* HEADINGS */
    #about > h1,
    .header h1 {
        font-size: 36px;
    }

    /* PROJECTS */
    .card-project {
        width: 90%;
    }

    .card-project img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }


    /* ABOUT */
    .about-intro {
        width: 85%;
        margin: 15px auto 40px;
        font-size: 14px;
        line-height: 1.6;
    }


    /* SKILLS */
    .card-items {
        width: 90%;
    }

    /* CONTACT */
    .contact-flex {
        width: 90%;
    }

}
