
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'ubuntu'; /* Pastikan font 'ubuntu' tersedia atau ganti dengan font fallback */
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
}

body {
    overflow-x: hidden; /* Mencegah scroll horizontal yang tidak diinginkan */
}

/* --- Header Section --- */
header{
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
    width: 90%; /* Menyesuaikan lebar header */
    max-width: 1200px; /* Batasi lebar maksimal */
}
.logo{
    color: white;
    font-size: 1.3rem;
    font-weight:600 ;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
}
.logo:hover{
    transform: scale(1.1);
}
.nav-links{
    display: flex;
    gap: 2rem;
}
li a{
    position: relative;
    color: white;
    font-weight: 300;
}
li a::before{
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right,rgb(0,157,255),rgb(255, 0, 255));
}
li a:hover::before{
    width: 100%;
}
.visit-btn{
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color:white;
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right,rgb(0,157,255),rgb(255, 0, 255)); 
}
.visit-btn:hover{
    background: linear-gradient(to right,rgb(255, 0, 255),rgb(0,157,255));      
    transform: scale(1.03); 
}
#menu-icon{
    font-size: 2rem;
    display: none; /* Defaultnya disembunyikan untuk desktop */
    cursor: pointer;
}

/* --- Global Section Styling --- */
section{
    min-height: 100vh;
    padding: 8rem 12%;
    width: 100%;
    position: relative;
}

/* --- About Section --- */
.about{
    display: flex;
    align-items: center;
    justify-content: center;
}
.about .about-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    flex-wrap: wrap; /* Memungkinkan item untuk wrap pada layar kecil */
}
.about img{
    width: 30vw;
    max-width: 300px; /* Batasi ukuran gambar */
    border-radius: 50%;
    object-fit: cover;
}
.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.info-box h3{
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.8;
}
.info-box h1{
    font-size: 3rem;
    font-weight: 600;
}
.info-box span{
    background: linear-gradient(to right,rgb(255, 0, 255),rgb(0,157,255)); 
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}
.btn-group{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* Memungkinkan tombol untuk wrap */
    justify-content: center;
}
.btn{
    border-radius: 3rem;
    padding: 0.9rem 1.5rem;
    border: 2px solid black;
    cursor: pointer;
    font-weight: 500;
    text-wrap: nowrap;
    transition: 0.2s ease-in-out;
}
.btn:hover{
    background-color: black;
    color: white;
}
.socials{
    display: flex;
    gap: 2rem;
}
.socials i{
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.socials i:hover{
    transform: scale(1.1);
}

/* --- Experience Section --- */
/* --- Experience Section --- */
.experience {
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,157,255,0.1) 0%, rgba(255,0,255,0.1) 100%);
    z-index: -1;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5rem;
    position: relative;
    color: #333;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, rgb(0,157,255), rgb(255, 0, 255));
    border-radius: 2px;
}

.experience-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.experience img {
    width: 350px;
    border-radius: 2rem;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.experience img:hover {
    transform: scale(1.03);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.grid-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
}

.grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, rgb(0,157,255), rgb(255, 0, 255));
    transition: width 0.3s ease;
}

.grid-card:hover::before {
    width: 10px;
}

.grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.grid-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    transition: all 0.3s ease;
}

.grid-card:hover i {
    transform: scale(1.1);
    background: linear-gradient(to right, rgb(0,157,255), rgb(255, 0, 255));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.grid-card span {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.grid-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
    position: relative;
    display: inline-block;
}

.grid-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, rgb(0,157,255), rgb(255, 0, 255));
    transition: width 0.3s ease;
}

.grid-card:hover h3::after {
    width: 100%;
}

.grid-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .experience-info {
        flex-direction: column;
        align-items: center;
    }
    
    .experience img {
        order: -1;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .grid-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .grid-card {
        padding: 1.5rem;
    }
    
    .grid-card i {
        font-size: 2rem;
    }
    
    .grid-card span {
        font-size: 1.2rem;
    }
    
    .grid-card h3 {
        font-size: 1.5rem;
    }
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar{
    width: 20px;
}
::-webkit-scrollbar-track{
    background-color: rgb(219,219,219);
}
::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom,rgb(255, 0, 255),rgb(0,157,255)); 
}
/* --- Projects Section --- */
.projects {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,0,255,0.05) 0%, rgba(0,157,255,0.05) 100%);
    z-index: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.project-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.project-card-desc {
    text-align: justify;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 1.5rem;

}
.project-card-desc p{
    color: #fff;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, rgb(0,157,255), rgb(255, 0, 255));
    transition: height 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-card:hover::after {
    height: 8px;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.03);
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
    position: relative;
    padding-bottom: 0.5rem;
}

.project-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, rgb(0,157,255), rgb(255, 0, 255));
    transition: width 0.3s ease;
}

.project-card:hover h3::after {
    width: 100px;
}

.project-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-card .btn-group {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.project-card .btn {
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    border: 2px solid #eee;
    background: #f9f9f9;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
}

.project-card .btn:hover {
    background: linear-gradient(to right, rgb(0,157,255), rgb(255, 0, 255));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.project-card .btn i {
    margin-right: 0.5rem;
}

/* Tech Tags1 */
.tech-tags1 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag1 {
    background: rgba(0,157,255,0.1);
    color: rgb(0,157,255);
    padding: 0.1rem 0.8rem;
    border-radius: 50px;
    font-size:10px;
    font-weight: 100;
}

/* === Tech Tags Styles === */
.tech-tags1 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-tags1 span {
    background: linear-gradient(135deg, rgba(0,157,255,0.1) 0%, rgba(255,0,255,0.1) 100%);
    color: #2c3e50;
    padding: 1px 8px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    border: 1px solid rgba(0,157,255,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.tech-tags1 span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,157,255,0.2) 0%, rgba(255,0,255,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-tags1 span:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    color: #009dff;
}

.tech-tags1 span:hover::before {
    opacity: 1;
}

.tech-tags1 span:nth{
    color: #007acc;
    border-color: rgba(0,122,204,0.3);
}
/* Animation on hover */
@keyframes tagPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.tech-tags1 span:hover {
    animation: tagPulse 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tech-tags1 span {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(0,157,255,0.1);
    color: rgb(0,157,255);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Contact Section --- */
.input-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    margin-top: 5rem;
}
.input-box input{
    border-radius: 3rem;
    border: 2px solid black;
    padding: 1.5rem 2rem; /* Sesuaikan padding */
    font-size: 1.2rem; /* Sesuaikan ukuran font */
    width: 100%; /* Mengisi lebar kontainer */
    max-width: 500px; /* Batasi lebar maksimal input */
    padding-left: 4rem; /* Ruang untuk ikon */
}
.input-box input::placeholder{
    font-size: 1.2rem; /* Sesuaikan ukuran font placeholder */
}
.input{
    position: relative;
    width: 100%; /* Penting untuk input agar bisa diatur max-width */
    max-width: 500px;
}
.input i{
    position: absolute;
    font-size: 2rem; /* Sesuaikan ukuran ikon */
    top: 50%;
    left: 1.5rem; /* Sesuaikan posisi ikon */
    transform: translate(0, -50%); /* Hanya geser ke atas 50% dari tingginya sendiri */
    color: #333; /* Warna ikon */
}

/* --- Footer Section --- */
footer{
    bottom: 0;
    left: 0;
    height: auto; /* Otomatis tinggi */
    padding: 2rem 0; /* Tambahkan padding */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
footer ul{
    display: flex;
    align-items: center;
    gap: 2rem; /* Sesuaikan gap */
    flex-wrap: wrap; /* Memungkinkan item untuk wrap */
    justify-content: center;
}
footer ul li a{
    color: black;
    font-weight: 600;
    font-size: 1rem; /* Sesuaikan ukuran font */
}
.copyright{
    font-size: 0.9rem; /* Sesuaikan ukuran font */
    margin-top: 1rem; /* Sesuaikan margin */
    text-align: center;
}

/* --- Media Queries for Responsiveness --- */

/* Extra Large Devices (1200px and up) - Desktop */
@media (min-width: 1200px) {
    /* Styles for larger desktops can go here, if needed */
}

/* Large Devices (992px - 1199px) - Laptops, larger tablets */
@media (max-width: 1199px) {
    section {
        padding: 6rem 8%;
    }
    .about .about-container {
        gap: 5rem;
    }
    .experience-info {
        gap: 3rem;
    }
    .section-title {
        font-size: 3.5rem;
    }
}

/* Medium Devices (768px - 991px) - Tablets */
@media (max-width: 991px) {
    html {
        font-size: 90%; /* Mengurangi ukuran font dasar */
    }
    header {
        padding: 0.5rem 1rem;
        gap: 2rem;
    }
    .logo {
        font-size: 1.1rem;
    }
    .nav-links {
        display: none; /* Sembunyikan navigasi di tablet, akan diaktifkan oleh JS */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(8px);
        padding: 1rem 0;
        border-radius: 0 0 1rem 1rem;
        align-items: center;
    }
    .nav-links.active { /* Class ini akan ditambahkan oleh JS saat menu dibuka */
        display: flex;
    }
    #menu-icon {
        display: block; /* Tampilkan ikon menu */
        color: white;
    }
    .visit-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    section {
        padding: 6rem 5%; /* Kurangi padding samping */
    }
    .about .about-container {
        flex-direction: column; /* Tumpuk gambar dan info secara vertikal */
        text-align: center;
        gap: 3rem;
    }
    .about img {
        width: 50vw; /* Sesuaikan ukuran gambar */
        max-width: 250px;
    }
    .info-box h1 {
        font-size: 2.5rem;
    }
    .info-box span {
        font-size: 1.8rem;
    }
    .experience-info {
        flex-direction: column; /* Tumpuk grid dan gambar secara vertikal */
        text-align: center;
        gap: 3rem;
    }
    .experience img {
        width: 50vw;
        max-width: 250px;
    }
    .grid {
        grid-template-columns: 1fr; /* Satu kolom untuk grid pengalaman */
    }
    .section-title {
        font-size: 3rem;
    }
    .input-box input {
        font-size: 1rem;
        padding: 1rem 2rem;
        padding-left: 3rem;
    }
    .input-box input::placeholder {
        font-size: 1rem;
    }
    .input i {
        font-size: 1.5rem;
        left: 1rem;
    }
    footer ul {
        gap: 1rem;
        flex-direction: column; /* Tumpuk item footer */
    }
}

/* Small Devices (576px - 767px) - Large phones */
@media (max-width: 767px) {
    html {
        font-size: 85%;
    }
    header {
        gap: 1rem;
        width: 95%; /* Lebih lebar di layar kecil */
    }
    .logo {
        font-size: 1rem;
    }
    .visit-btn {
        display: none; /* Sembunyikan tombol visit github di layar sangat kecil */
    }
    .section-title {
        font-size: 2.5rem;
    }
    .about img {
        width: 60vw;
        max-width: 200px;
    }
    .info-box h1 {
        font-size: 2rem;
    }
    .info-box span {
        font-size: 1.5rem;
    }
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    .socials i {
        font-size: 2rem;
    }
    .experience img {
        width: 60vw;
        max-width: 200px;
    }
    .grid-card {
        padding: 1.5rem;
    }
    .grid-card span {
        font-size: 1.2rem;
    }
    .input-box input {
        padding: 0.8rem 1.5rem;
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }
    .input-box input::placeholder {
        font-size: 0.9rem;
    }
    .input i {
        font-size: 1.2rem;
        left: 0.8rem;
    }
    footer ul li a {
        font-size: 0.9rem;
    }
    .copyright {
        font-size: 0.8rem;
    }
}

/* Extra Small Devices (less than 576px) - Phones */
@media (max-width: 575px) {
    html {
        font-size: 80%;
    }
    header {
        top: 0.5rem;
        padding: 0.4rem 0.8rem;
    }
    .logo {
        font-size: 0.9rem;
    }
    #menu-icon {
        font-size: 1.8rem;
    }
    section {
        padding: 4rem 3%; /* Padding yang lebih kecil */
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .about img {
        width: 70vw;
        max-width: 180px;
    }
    .info-box h1 {
        font-size: 1.8rem;
    }
    .info-box span {
        font-size: 1.2rem;
    }
    .socials {
        gap: 1.5rem;
    }
    .socials i {
        font-size: 1.8rem;
    }
    .btn-group {
        flex-direction: column; /* Tumpuk tombol di layar sangat kecil */
        gap: 0.8rem;
        width: 80%; /* Agar tombol tidak terlalu lebar */
    }
    .btn {
        width: 100%;
    }
    .experience img {
        width: 70vw;
        max-width: 180px;
    }
    .grid-card span {
        font-size: 1rem;
    }
    .grid-card h3 {
        font-size: 1.2rem;
    }
    .grid-card p {
        font-size: 0.8rem;
    }
    .project-card h3 {
        font-size: 1.5rem;
    }
    .project-card p {
        font-size: 0.8rem;
    }
    .input-box input {
        padding: 0.7rem 1rem;
        padding-left: 2.2rem;
        font-size: 0.8rem;
    }
    .input-box input::placeholder {
        font-size: 0.8rem;
    }
    .input i {
        font-size: 1rem;
        left: 0.5rem;
    }
    .input-box .btn {
        width: 80%;
    }
    footer ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    footer ul li a {
        font-size: 0.8rem;
    }
    .copyright {
        font-size: 0.7rem;
    }
}
