/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Background Animation */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Navbar Styling - Sesuaikan dengan Style.css */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    background: rgba(255, 255, 255, 0.8); /* Transparansi sama dengan halaman utama */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Tambahkan bayangan */
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.navigation a {
    font-size: 1.1em;
    color: #333; /* Samakan warna teks dengan halaman utama */
    text-decoration: none;
    margin-right: 30px;
    font-weight: 500;
    transition: 0.3s ease;
}

.navigation a:hover {
    color: goldenrod; /* Efek hover sama dengan halaman utama */
    text-decoration: underline;
}

.D-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
}

.D-logo:hover {
    transform: scale(1.2); /* Sama seperti halaman utama */
}

/* Main Section Styles */
h1 {
    text-align: center;
    margin-top: 110px;
    font-size: 3em;
    color: #333;
}

.skills-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 50px 100px;
    margin-top: 50px;
}


.skill-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.skill-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.skill-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.skill-img {
    max-width: 100px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.skill-img:hover {
    transform: rotate(360deg);
}

.skill-description {
    font-size: 1em;
    color: #555;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .navigation a {
        margin-right: 10px;
        font-size: 0.9em;
    }

    .D-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .navigation a {
        font-size: 0.8em;
    }

    .D-logo {
        width: 50px;
        height: 50px;
    }

    .skills-section {
        grid-template-columns: repeat(auto-fit, minmax(175px, 5fr));
        gap: 30px;
    }

    .skill-card {
        padding: 10px;
        
    }
}
