/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #fff;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(10, 18, 32, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease-in-out, padding 0.3s ease-in-out;
}

header.scrolled {
    background: rgba(10, 18, 32, 1);
    padding: 15px 50px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #E63946;
    letter-spacing: 2px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #1abc9c;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Education Section */
#education {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 40px;
    background: rgba(30, 42, 71, 0.85); /* Mirip .about */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); /* Shadow lebih kuat */
    text-align: center;
    backdrop-filter: blur(15px); /* Blur lebih kuat */
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#education h2 {
    font-size: 40px;
    font-weight: 700;
    background: linear-gradient(90deg, #1abc9c, #E63946);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    position: relative;
}

#education h2::after {
    content: '';
    width: 50px; /* Mirip .about h2 */
    height: 3px;
    background: #E63946;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

.education-list {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.education-item {
    background: linear-gradient(135deg, rgba(40, 52, 81, 0.9), rgba(20, 30, 59, 0.9)); /* Gradien mirip .skills-list */
    padding: 30px;
    border-radius: 12px; /* Sedikit lebih kecil dari .about */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.education-item:hover {
    transform: scale(1.1) rotate(2deg); /* Efek mirip .skills-list */
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.6);
    background: linear-gradient(135deg, rgba(40, 52, 81, 1), rgba(20, 30, 59, 1));
}

.education-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1abc9c;
    margin-bottom: 10px;
}

.education-item p {
    font-size: 18px; /* Mirip .about-content p */
    color: #fff;
    opacity: 0.9;
    line-height: 1.8; /* Mirip .about-content p */
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background: rgba(10, 18, 32, 0.95);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    font-size: 16px;
    opacity: 0.85;
    position: relative;
    width: 100%;
}

/* Foto */
.education-item img {
    width: 100%; /* Menyesuaikan lebar elemen */
    max-width: 300px; /* Maksimum lebar gambar */
    height: auto;
    margin-top: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.education-item img:hover {
    transform: scale(1.05);
}



/* Foto Dokumentasi */
.image-slider {
    position: relative;
    max-width: 400px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Container untuk slide */
.slides-container {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

/* Gambar dalam slide */
.slide {
    width: 100%;
    display: none;
    border-radius: 10px;
}

/* Slide pertama tampil default */
.slide.active {
    display: block;
}

/* Indicator dots */
.indicators {
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 5px;
    background-color: #a8a8a8;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #E63946;
}

.dot:hover {
    background-color: #1abc9c;
}


/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-direction: column;
        gap: 10px;
    }

    #education {
        margin: 100px 20px 40px;
        padding: 30px;
    }

    #education h2 {
        font-size: 32px;
    }

    .education-item {
        width: 100%;
        max-width: 350px;
    }
}