@import url('https://fonts.googleapis.com/css2?family=Capriola&family=Itim&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
/* --------------------------------------------------------------------------------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    broder: none;
    inline: none;
    scroll-behavior: smooth;
    font-family: 'Capriola', regular;
}

:root {
    --bg-color:#000000 ;
    --snd-bg-color:#1a1a1a ;
    --text-color:#fff ;
    --main-color:#5dade2 ;
}

html {
    font-size: 93.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: ;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 400;
    cursor: default;
}

.navbar a {
    position: relative; /* Tambahkan posisi relative untuk referensi pseudo-element */
    font-size: 1.5rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 400;
    transition: color 0.3s ease; /* Hanya transisi warna di sini */
    text-decoration: none; /* Menghilangkan garis bawah bawaan */
}

.navbar a::before {
    content: '';
    position: absolute;
    width: 0; /* Awalnya lebar garis 0 */
    height: 2px; /* Ketebalan garis bawah */
    bottom: -5px; /* Jarak garis dari teks */
    left: 0;
    background-color: var(--main-color); /* Warna garis bawah */
    transition: width 0.3s ease-in-out; /* Transisi kemunculan garis */
}

.navbar a:hover::before,
.navbar a.active::before {
    width: 100%; /* Saat dihover atau aktif, garis melebar dari kiri ke kanan */
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color); /* Warna teks berubah saat hover atau aktif */
    transition: color 0.3s ease;
}


#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 400;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 400;
    line-height: 1.3
}

.home-image img {
    width: 25vw;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2.4rem);
    }

    100% {
        transform: translateY(0);
    }
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height:4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: all .3s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--snd-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 400;
    transition: all .3s ease;
}

.btn:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background: var(--snd-bg-color);
}

.about-image img {
    width: 35vw;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.education h2 {
    margin-bottom: 5rem;
}

.education-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.education-container .education-box {
    flex: 1 1 30rem;
    background: var(--snd-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: all .3s ease;
}

.education-container .education-box:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 1rem var(--main-color);
    transform: scale(1.02);
}

.education-box h3 {
    font-size: 2.6rem;
}

.education-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.project-title {
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
}

.project-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.project-item:nth-child(1) {
    background-image: url('img/Cuplikan layar 2024-10-24 092633.png');
}

.project-item:nth-child(2) {
    background-image: url('img/Cuplikan layar 2024-10-24 092700.png');
}

.project-item:nth-child(3) {
    background-image: url('img/Cuplikan layar 2024-10-24 092839.png');
}

.project-item {
    position: relative;
    width: 400px;
    height: 250px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: 0.3s ease;
}

.project-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    
}

.project-item:hover .overlay {
    transition: 0.3s ease;
    opacity: 1;
    transform: scale(1.1);
}

.overlay h3 {
    margin: 0;
    font-size: 1.2em;
}

.overlay p {
    margin: 5px 0;
}

.overlay a {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    }

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-Bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--snd-bg-color);
    border-radius: .8rem;
    margin:.7rem 0;
}

.contact form .input-box input {
    width: 40%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top:2rem;
    cursor: pointer;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--snd-bg-color);
}

.footer-text {
    font-size: 1.6rem;
}

.footer-iconTop {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem 1rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: all .3s ease;
    color: var(--text-color)
}

.footer-iconTop:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(snd-bg-color)
}

/* Scroll Bar */
::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #1c1c1c;
  }
  
::-webkit-scrollbar-thumb {
    background: #525252;
  }


/* BreakPoint */

@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3%;
    }

    .education {
        padding: 7rem;
    }

    .project {
        padding-bottom: 7rem;
    }

    .contact {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content {
        order: 2;
    }

    .home-image img {
        width: 90vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column;
    }

    .about-image img {
        width: 90vw;
        margin-top: 4rem;
    }

    .education h2 {
        margin-bottom: 3rem;
    }

    .project h2 {
        margin-bottom: 3rem;
    }

    .project-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 617px) {
    .project-container {
        grid-template-columns: 1fr;
    }

    .home-image img {
        width: 80vw;
        margin-top: 8rem;
    }
    .about-image img {
        width: 100vw;
        margin-top: 4rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .contact form .input-box input {
        width: 100%;
    }
}