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

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

:root {
    --main-color: #00ffee;
    --light-main-color: #f75023;
    --bg-color: #080808;
    --bg-body-color: #080808;
    --second-bg-color: #13131313;
    --navbar-secondary-drop: rgba(0, 0, 0, 0.3);
    --text-color: white;
    --text-shadow-logo: 0 0 25px var(--main-color);
    --light-bg-color: #ffffff;
    --light-navbar-secondary-drop: #faf6f6f9;
    --light-bg-body-color: url(../img/background.jpg);
    --light-text-color: #000;
    --light-secound-bg-color: #a09dab;


}

html {
    font-size: 60%;
    overflow-x: hidden;
}

/* css particle */

body {
    width: 100%;
    min-height: 100vh;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    background: var(--bg-body-color) !important;
    color: var(--text-color) !important;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem;
    background: var(--navbar-secondary-drop) !important;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo {
    font-size: 3rem;
    color: var(--text-color) !important;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3 ease;
    text-decoration: none;
}

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

.logo span {
    text-shadow: var(--text-shadow-logo) !important;
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
    text-decoration: none;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color) !important;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color) !important;
    display: none;
}

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



.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

span {
    color: var(--main-color) !important;
}

.logo span {
    color: var(--main-color) !important;
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.home-content h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

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

.home-img img {
    position: relative;
    border-radius: 50%;
    top: 3rem;
    width: 32vw;
    cursor: pointer;
    transition: 0.4 ease-in-out;

}



.homes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    margin-top: 70px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 10%, var(--bg-color)) !important;

}

.homes-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.homes-content h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.homes-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
    text-align: justify;
}

.narasi a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 10.5rem;
    height: 2.5rem;
    background: transparent;
    border: 2px solid var(--main-color) !important;
    font-size: 1.5rem;
    border-radius: 4px;
    color: var(--main-color) !important;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3 ease-in-out;
    text-decoration: none;
}

.narasi .hak-akses {
    border: none !important;
    color: var(--text-color) !important;
    font-size: 1.9rem;
}

.homes-img {
    border-radius: 8px;
}

.homes-img img {
    position: relative;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.4 ease-in-out;
    width: 100%;

}

.screnshot {
    position: absolute;
    /* Tambahkan posisi absolut */
    top: 100%;
    /* Atur posisi di bawah konten lainnya */
    left: 50%;
    /* Pusat horizontal */
    transform: translate(-50%, 0);
    /* Pusat horizontal */
    margin-top: -40px !important;
    width: 100%;
    background: var(--second-bg-color);
}

.screnshot h2 {
    margin-bottom: 2rem;
    margin-top: -8rem;
    font-size: 2.5rem;
    text-align: center;
    color: var(--main-color) !important;
    z-index: 2 !important;
}

.information {
    position: absolute;
    /* Jadikan posisi absolut */
    top: calc(100% + 500px);
    /* Tempatkan di bawah elemen .screenshot dengan jarak 20px */
    left: 50%;
    /* Pusat horizontal */
    transform: translateX(-50%);
    /* Pusat horizontal */
    width: 100%;
    /* Lebar sesuai container */
    background: var();
}

.information h2 {
    margin-bottom: 2rem;
    margin-top: -14rem;
    font-size: 2.5rem;
    color: var(--main-color) !important;
    z-index: 2 !important;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color) !important;
}

.navbar i {
    font-size: 25px;
}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color) !important;
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color) !important;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3 ease-in-out;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-of-type(1) {
    background-color: var(--bg-color);
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(1):hover {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: var(--bg-color);
}

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

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: "Web Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 2px solid var(--main-color);
    }
}

@keyframes words {

    0%,
    20% {
        content: "Web Developer";
    }

    21%,
    40% {
        content: "Frontend";
    }
}

@keyframes typing {

    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95% {
        width: 0;
    }

    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85% {
        width: calc(100% + 8px);
    }
}


.heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

.education {
    padding: 100px 15px;
    background: var(--second-bg-color);
}

.education-porto {
    padding: 100px 15px;
    background: var(--bg-color);
}


.education h2 {
    font-size: 5em;
    margin-bottom: 5rem;
}

.education-porto h2 {
    font-size: 5em;
    margin-bottom: 5rem;
}

.timeline-items {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}

.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}


.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    height: 18px;
    content: "";
    width: 18px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
        0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
}

.timeline-date {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    margin: 6px 0 15px;
}

.timeline-content {
    background: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3 {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 800;
    line-height: 22px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 12px;

    text-align: justify;
    text-transform: capitalize;
}

.timeline-content ul {
    font-size: 11px;
    text-align: justify;
    text-transform: capitalize;
    padding: 8px;
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

.portofolio-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 5rem;
    margin-bottom: 5px;
}

.col {
    flex: 0 1 calc(33.33% - 1rem);
    /* 4 kolom dalam satu baris */
    position: relative;
    margin-bottom: 2rem;
    /* Jarak antar gambar */
}

.col img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}


.layer {
    margin: 5px;
    text-align: center;

}

.layer a {
    text-decoration: none;
}

.layer a abbr {
    text-decoration: none;
}


.layer h3 {
    color: var(--text-color);
    text-decoration: none;
    font-size: 2em;
}


.pagination {
    display: none;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-item {
    list-style: none;
    margin-right: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 1.1rem;
    /* Slightly larger font size */
}

.pagination-item:hover {
    background-color: #f0f0f0;
}

.pagination-item.active {
    background-color: #007bff;
    color: #fff;
}


.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--second-bg-color);
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}

.footer .social a {
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}


.footer .social a:hover {
    transform: scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}

.footer ul {
    margin-top: 0;
    text-decoration: none;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li a {
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
    border-bottom: 3px solid var(--main-color);
}

.footer ul li {
    display: inline-block;
    padding: 0 15px;
}

.footer .copyright {
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}


.slice-1 {
    background-image: url(../img/binar-porto/bg-1.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: auto;
    height: 300px;
    margin-top: 0px;

}

.slice-2 {
    background-image: url(../img/movie-porto/bg-1.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: auto;
    height: 300px;
    margin-top: 0px;

}
.slice-3 {
    background-image: url(../img/help-porto/bg-1.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: auto;
    height: 300px;
    margin-top: 0px;

}


.wrapper img {
    height: 300px;
}


table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid var(--text-color);
    text-align: left;
    padding: 8px;
    color: var(--main-color);
    font-size: 2em;
}

th {
    text-align: center;
}


/* modal */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    width: 100%;
    text-align: center;
    z-index: 3;
}

/* Styling for image */
.modal img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    width: 250px;
}

/* Styling for buttons */
.modal button {
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    background-color: var(--main-color);
}

.modal #btnYes {
    background-color: var(--main-color);
}

.modal #btnNo {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* end modal */



/* aturan untuk mobile ekstra small */
@media only screen and (min-width: 320px) and (max-width: 400px) {

    .carousel img {
        width: 100% !important;
    }

    .wrapper img {
        height: 100%;
    }

    .homes-content h1 {
        padding: 14px;
        margin-top: -30px !important;
        font-size: 24px !important;
    }

    .homes-content h3 {
        padding: 14px;
        margin-top: -10px;
        font-size: 20px !important;
    }

    .homes-content p {
        margin-top: -20px;
        font-size: 14px !important;
        text-align: justify;
        padding: 14px;
    }

    .narasi .hak-akses {
        font-size: 11px !important;
    }

    .narasi a {
        margin: 5px;
        margin-top: 14px;
        margin-bottom: 40px;
    }

    .timeline-items::before {
        left: 7px;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 37px;
    }

    .timeline-dot {
        left: 0;
    }

    .img-tools {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }

    .education h2 {
        font-size: 1em;
        margin-top: -50px;
    }

    .education-porto h2 {
        margin-top: -50px;
    }

    .portofolio-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 5rem;
        text-align: center;
        cursor: pointer;
    }

    .col {
        position: relative;
        text-align: center;
        /* width: 60%; */
    }

    .screnshot {
        position: absolute;
        top: 120% !important;
        left: 50%;
        transform: translate(-50%, 0);
        width: 100%;
        background: var(--second-bg-color) !important;

    }

    .information {
        width: 100%;
        background: var(--bg-color) !important;
    }

    .information h2 {
        margin-top: -70px;

    }

}

/* untuk mobile small device */
@media only screen and (max-width: 600px) {
    .narasi a {
        margin: 0px;
        margin-top: 14px;
        margin-bottom: 40px;
    }

    .timeline-items::before {
        left: 7px;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 37px;
    }

    .timeline-dot {
        left: 0;
    }

    .screnshot {

        top: 108%;
        /* Atur posisi di bawah konten lainnya */
        left: 50%;
        transform: translate(-50%, 40px);
        margin-top: 10px !important;
        width: 100%;
    }

    .img-tools {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }

    .education h2 {
        font-size: 2em;
        margin-bottom: 5rem;
    }

    .information h2 {
        margin-top: -70px;
    }

}

/* ayuran tabley guys */
@media screen and (max-width: 895px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(20px);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color) !important;
        border-bottom: 2px solid var(--main-color) !important;
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: white;
    }

    .home {
        flex-direction: column-reverse;
        margin: 5rem 4rem;
    }


    .home-content h3 {

        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 4rem;
        margin-top: -4rem;
    }

    .home-content p {
        max-width: 600px;
        margin: 0 auto;
    }

    .home-img img {
        width: 56vw;
    }

    .education h2 {
        font-size: 4rem;
    }

    .homes {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3rem;
        padding: 1rem;
    }

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

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

    .homes-content p {
        font-size: 1.2rem;
    }

    .narasi a {
        min-width: 8rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }

    .narasi .hak-akses {
        font-size: 1.4rem;
    }

    .homes {
        align-items: center;

    }

    .homes-img img {
        width: 50vw;
        padding-top: 150px;
    }

    .narasi a {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 4rem;
        height: 2.5rem;
        font-size: 1.2rem;
        border-radius: 4px;
        transition: 0.3 ease-in-out;
        text-decoration: none;
    }

    /* .screnshot {
        position: absolute;
        top: 100%;
        
        left: 50%;
       
        transform: translate(-50%, 0);
        
        margin-top: 80px !important;
      
        width: 100%;
        background: var(--second-bg-color);
    } */
    .information h2 {
        margin-top: -70px;
    }

    .information {
        position: absolute;
        /* Jadikan posisi absolut */
        top: calc(100% + 500px);
        /* Tetap di bawah elemen .screenshot dengan jarak 500px */
        left: 50%;

        transform: translateX(-50%);
        /* Pusat horizontal */
        width: 100%;
        /* Lebar sesuai container */
        background: var(--bg-color);
    }

    .img-tools {

        width: 100%;
        gap: 5px;
    }

    .img-tools img {
        text-align: center;
        padding: 5px;
        width: 100px;
    }

}

@media only screen and (min-width: 720px) and (max-width: 790px) {
    .screnshot {
        position: absolute;
        /* Tambahkan posisi absolut */
        top: 100%;
        /* Atur posisi di bawah konten lainnya */
        left: 50%;
        /* Pusat horizontal */
        transform: translate(-50%, 0);
        /* Pusat horizontal */
        margin-top: 200px !important;
        /* Atur jarak ke atas */
        width: 100%;
        background: var(--second-bg-color);
    }
}

/* aturan desktop large */
@media screen and (min-width: 992px) {
    header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }

    /* .screnshot {
        position: absolute;

        top: 100%;

        left: 50%;
        transform: translate(-50%, 0);
        margin-top: -20px !important;

        width: 100%;
        background: var(--second-bg-color);
    } */

    .information {
        position: absolute;
        /* Jadikan posisi absolut */
        top: calc(100% + 500px);
        /* Tetap di bawah elemen .screenshot dengan jarak 500px */
        left: 50%;
        margin-top: 150px;
        /* Pusat horizontal */
        transform: translateX(-50%);
        /* Pusat horizontal */
        width: 100%;
        /* Lebar sesuai container */
        background: var(--bg-color);
    }

}

/* pc large */
@media screen and (min-width: 1285px) {
    html {
        font-size: 55%;
    }

    .services-container {
        padding-bottom: 7rem;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 5rem;
    }

    .information {
        position: absolute;
        /* Jadikan posisi absolut */
        top: calc(100% + 500px);
        /* Tetap di bawah elemen .screenshot dengan jarak 500px */
        left: 50%;
        margin-top: 150px;
        /* Pusat horizontal */
        transform: translateX(-50%);
        /* Pusat horizontal */
        width: 100%;
        /* Lebar sesuai container */
        background: var(--bg-color);
    }

}