/* Reset basic margin dan padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f6f2;
    color: #333;
    scroll-behavior: smooth;
}

/* Estetika Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c3e50;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #a29bfe;
}

/* Hero Section dengan Estetika */
#hero {
    height: 100vh;
    background: url('bg.jpg') no-repeat center center/cover; /* Ganti dengan gambar sendiri */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay gelap agar teks terlihat lebih jelas */
    z-index: -1;
}


.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-in-out;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #6c5ce7;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #a29bfe;
}

/* Section Styles */
.section {
    padding: 80px 20px;
    text-align: center;
}

#about {
    background-color: #f7f6f2;
}

#skills {
    background-color: #f1f2f6;
}

.skills-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.skills-list li {
    background-color: #ffffff;
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Contact Section */
#contact {
    background-color: #ffffff;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#contact {
    background-color: #ffffff;
    padding: 40px 20px; /* Kurangi padding jika diperlukan */
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px; /* Kurangi jarak antar ikon */
    margin-top: 10px; /* Kurangi jarak atas dari teks */
}

.social-icon img {
    width: 25px; /* Ukuran ikon bisa disesuaikan */
    height: 25px; /* Ukuran ikon bisa disesuaikan */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}
/* Gaya Umum */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f6f2;
    color: #333;
    scroll-behavior: smooth;
}

.section {
    padding: 60px 20px;
    max-width: 800px; /* Maksimal lebar section */
    margin: 0 auto;  /* Pusatkan section */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Hero Section */
#hero {
    background: url('bg.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.2rem;
    }

    .cta-btn {
        padding: 10px 20px;
    }

    .section {
        padding: 40px 10px;
    }

    .social-icon img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 5px;
    }

    nav ul {
        gap: 5px;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .cta-btn {
        padding: 8px 15px;
    }

    .section {
        padding: 30px 5px;
    }

    .social-icon img {
        width: 18px;
        height: 18px;
    }
}
