/* Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('bg.jpg') no-repeat center center/cover;
    color: #4a4a4a;
    padding-top: 80px; /* Memberikan ruang di atas untuk header tetap terlihat */
}

/* Header Styles */
header {
    position: sticky; /* Membuat header tetap di atas saat scroll */
    top: 0; /* Tetap berada di atas */
    background: rgba(255, 255, 255, 0.8);
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Agar header berada di atas konten lain */
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    justify-content: center; /* Agar menu berada di tengah */
}

.nav-links a {
    color: #5e8aa5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #346b85;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    margin: 30px auto;
    width: 90%;
    max-width: 1200px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #5e8aa5;
}

.hero-content .btn {
    padding: 15px 30px;
    background: #5e8aa5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-content .btn:hover {
    background: #346b85;
    transform: scale(1.05);
}

/* About Section */
#about {
    padding: 50px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    margin: 30px auto;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
}

#about h2 {
    color: #5e8aa5;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #4a4a4a;
}

/* Skills Section */
#skills {
    padding: 50px 20px;
    text-align: center;
    background: rgba(250, 250, 250, 0.9);
    margin: 30px auto;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
}

.skills-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.skill-card {
    padding: 15px 30px;
    background: #5e8aa5;
    color: white;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-card:hover {
    transform: scale(1.1);
    background: #346b85;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #5e8aa5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Contact Section */
#contact {
    padding: 50px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    margin: 30px auto;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #5e8aa5;
}

#contact p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #4a4a4a;
}

#contact form input,
#contact form textarea {
    width: 100%;
    max-width: 500px;
    margin: 10px 0;
    padding: 15px;
    border: 1.5px solid #cccccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #4a4a4a;
    font-size: 1rem;
}

#contact form input:focus,
#contact form textarea:focus {
    outline: none;
    border-color: #5e8aa5;
    box-shadow: 0 0 8px rgba(94, 138, 165, 0.5);
}

#contact form button {
    padding: 15px 30px;
    background: #5e8aa5;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-top: 20px;
}

#contact form button:hover {
    background: #346b85;
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f1f1f1;
    margin-top: 20px;
}
