/* Animasi Global */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.3s;
}
.animate-delay-2 {
    animation-delay: 0.6s;
}
.animate-delay-3 {
    animation-delay: 0.9s;
}

/* Reset dan font dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #4a90e2;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.profile-pic img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    margin-bottom: 15px;
}

.title {
    font-size: 28px;
    margin-top: 10px;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

nav ul li {
    margin: 10px 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #02122c;
}

nav ul li a {
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1336b7;
    transition: 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}


/* Section Styling */
section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
    background-color: white;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.school-card,
.hobby-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-card:hover,
.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body, a, img, .school-card, .hobby-card {
    transition: all 0.3s ease-in-out;
}

section h2 {
    margin-bottom: 20px;
    color: #4a90e2;
    text-align: center;
}

/* About Me */
#home .profile-pic {
    text-align: center;
    margin-bottom: 20px;
}

#home p {
    font-size: 16px;
    text-align: center;
}

/* Riwayat Sekolah */
.school-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.school-card {
    flex: 1;
    min-width: 250px;
    background-color: #f0f4f8;
    padding: 20px;
    border-radius: 10px;
}

.school-card img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Skills */
#skills ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
}

#skills ul li {
    background-color: #e3f2fd;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    color: #1565c0;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#skills ul li:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hobby-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.hobby-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: #fffefe;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hobby-card img {
    border-radius: 10px;
    height: 170px; /* Sebelumnya 120px */
    object-fit: cover;
    margin-bottom: 10px;
}


/* Kontak */
#contact p {
    margin: 10px 0;
    text-align: center;
}

#contact a {
    color: #4a90e2;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #4a90e2;
}