/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.navbar {
    background-color: #333;
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

.navbar a:hover {
    color: #00bcd4;
}

.section {
    padding: 50px 20px;
    text-align: center;
}

.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 20px;
    border: 4px solid #00bcd4;
}

.description {
    max-width: 600px;
    margin: 20px auto;
    font-size: 18px;
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.skill-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.skill-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Gallery */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#education {
    text-align: center;
    padding: 50px 20px;
}

.edu-slider {
    width: 100%;
    max-width: 500px;
    margin: auto;
    overflow: hidden;
    position: relative;
}

.edu-slide {
    display: none;
    animation: fade 0.6s ease-in-out;
}

.edu-slide.active {
    display: block;
}

.edu-slide img {
    width: 100%;
    max-width: 700px;   /* Semua foto dibuat sama ukuran */
    height: 350px;      /* Tinggi seragam */
    object-fit: cover;  /* Biar foto tidak gepeng */
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin: auto;
}

.edu-slide h3 {
    margin-top: 15px;
    font-size: 22px;
}

.edu-controls {
    margin-top: 15px;
}

.edu-btn {
    background: #3a087a;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 50px;
    font-size: 18px;
    transition: 0.3s;
}

.edu-btn:hover {
    background: #5a14b7;
}

@keyframes fade {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* Contact Form */
#contact-form {
    max-width: 500px;
    margin: 0 auto;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

#contact-form button {
    padding: 12px 20px;
    background-color: #00bcd4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

#contact-form button:hover {
    background-color: #0097a7;
}

#message-confirm {
    color: green;
    font-weight: bold;
    display: none;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer a {
    margin: 0 10px;
    color: inherit;
}

footer a:hover {
    opacity: 0.8;
}

.media-social i {
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.media-social i:hover {
    transform: scale(1.2);
}
