* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.5s;
    z-index: 1000;
}

header.sticky {
    background-color: rgba(128, 128, 128, 0.5); /* Warna abu-abu dengan transparansi 50% */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); /* Efek bayangan */
    padding: 10px 20px; /* Padding untuk ruang di dalam header */
    position: sticky; /* Membuat header sticky */
    top: 0; /* Posisi header di bagian atas */
    z-index: 1000; /* Memastikan header selalu di atas elemen lain */
}


.logo {
    position: absolute;
    left: 50px;
    color: #333;
    font-size: 24px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-container {
    position: relative;
    width: 100%;
}

header ul {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    list-style: none;
}

header ul li a {
    text-decoration: none;
    color:white;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

header ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color:white;
    transition: width 0.3s ease-in-out;
}

header ul li a:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    background: linear-gradient(45deg, grey, #2196F3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

/* Sisanya tetap sama */
.content {
    padding: 50px;
    min-height: 100vh;
}

.section-title {
    font-size: 2em;
    margin-bottom: 30px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.portfolio-item {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* Styling untuk footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.copyright {
    margin: 0;
    font-size: 14px;
    position: absolute;
    left: 20px; /* Posisi copyright di kiri */
}

.social-links {
    display: flex;
    gap: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Posisi logo di tengah */
}

.social-links a {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #0077b5; /* Warna LinkedIn */
}

.social-links a[aria-label="GitHub"]:hover {
    color: #6e5494; /* Warna GitHub */
}