/* --- Global Styles --- */
body {
    font-family: 'Poppins', sans-serif;
    background: #121212;
    margin: 0;
    padding: 0;
    color: #e0e0e0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Navbar Modern --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64ffda;
    transition: color 0.3s, transform 0.3s;
}

.nav-brand:hover {
    color: #a0f0e3;
    transform: scale(1.05);
}

.nav-brand i {
    margin-right: 10px;
}

.search-box {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    background: #282828;
    transition: box-shadow 0.3s;
}

.search-box:focus-within {
    box-shadow: 0 0 10px #64ffda;
}

.search-box input {
    border: none;
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: #e0e0e0;
    outline: none;
    font-size: 1rem;
    width: 200px;
    transition: width 0.3s;
}

.search-box button {
    border: none;
    background: #64ffda;
    padding: 0 1rem;
    color: #121212;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background: #a0f0e3;
}

/* --- Header --- */
.main-header {
    padding: 5rem 2rem 3rem;
    position: relative;
    background-color: #121212;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #999;
    margin-top: 15px;
}

#back-btn {
    position: absolute;
    top: 5rem;
    left: 2rem;
    background: #64ffda;
    color: #121212;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.3s;
}

#back-btn:hover {
    transform: scale(1.05);
}

/* --- Main Content Container --- */
.content-page {
    flex-grow: 1;
    padding: 30px;
    max-width: 1200px;
    margin: auto;
}

/* --- Menu Grid (Halaman Beranda) --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px;
    max-width: 1200px;
    margin: auto;
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #1e1e1e;
    border-radius: 15px;
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #64ffda, #a0f0e3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 0;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: #121212;
}

.menu-card:hover::before {
    transform: translateY(0);
}

.card-icon, .card-title {
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 3.5rem;
    color: #64ffda;
    transition: color 0.3s ease;
}

.menu-card:hover .card-icon {
    color: #121212;
}

.card-title {
    margin-top: 20px;
}

/* --- Pagination Styles --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    gap: 10px;
}

.pagination a, .pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: #e0e0e0;
    background: #1e1e1e;
    border: 1px solid #333;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    cursor: pointer;
}

.pagination a:hover {
    background-color: #64ffda;
    color: #121212;
    transform: scale(1.1);
}

.pagination .current-page {
    background-color: #64ffda;
    color: #121212;
    font-weight: bold;
}

.pagination .disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* --- Footer --- */
footer {
    padding: 40px 20px;
    background: #0a0a0a;
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-top: auto;
    border-top: 2px solid #222;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    height: 10px;
    background: linear-gradient(to right, #64ffda, #a0f0e3);
    z-index: 1;
}

footer p {
    margin-bottom: 8px;
}

footer .links {
    margin-top: 15px;
}

footer .links a {
    color: #64ffda;
    font-weight: 600;
    margin: 0 15px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

footer .links a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.6);
}

footer .links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #64ffda;
    transition: width 0.3s ease;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

footer .links a:hover::after {
    width: 100%;
}

/* --- Gaya untuk Halaman Profil --- */
.profile-card {
    background-color: #1e1e1e;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.profile-photo-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #64ffda;
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.6);
    transition: border-color 0.3s ease;
}

.profile-photo-container:hover {
    border-color: #a0f0e3;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    margin-top: 20px;
}

.profile-details h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.profile-details p {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 5px 0;
}

.profile-details ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    text-align: left;
    display: inline-block;
}

.profile-details li {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.motto-hidup {
    margin-top: 30px;
    padding: 25px;
    background-color: #282828;
    border-left: 5px solid #64ffda;
    border-radius: 8px;
    font-style: italic;
    color: #e0e0e0;
}

.motto-hidup h3 {
    color: #64ffda;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.social-media {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-media h3 {
    width: 100%;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.social-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    color: #fff;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.social-icon i {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.social-icon span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.social-media .fa-youtube { background-color: #ff0000; }
.social-media .fa-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-media .fa-tiktok { background-color: #000; }
.social-media .fa-facebook-f { background-color: #3b5998; }

/* --- Gaya Formulir Kontak (Diperbaiki untuk dark mode) --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
    margin: 20px auto;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #a0f0e3;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    background-color: #282828;
    color: #e0e0e0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #64ffda;
    outline: none;
    box-shadow: 0 0 5px rgba(100, 255, 218, 0.5);
}

.contact-form textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #64ffda;
    color: #121212;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #a0f0e3;
    transform: translateY(-2px);
}

.contact-info-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
    max-width: 500px;
    margin: 20px auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #64ffda;
    width: 30px;
    text-align: center;
}

.contact-item p {
    margin: 0;
    font-size: 1rem;
    color: #e0e0e0;
}

.contact-item a {
    color: #64ffda;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* --- Responsif --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .search-box {
        width: 100%;
    }
    .search-box input {
        width: 100%;
    }
    .content-page {
        padding: 20px;
    }
    .menu-grid {
        padding: 0;
        gap: 20px;
    }
    .profile-card, .contact-form, .contact-info-list {
        padding: 20px;
        margin: 20px auto;
    }
    .profile-details h2 {
        font-size: 2rem;
    }
    .social-icon {
        width: 70px;
        height: 70px;
    }
    .social-icon i {
        font-size: 2rem;
    }
    .social-icon span {
        font-size: 0.8rem;
    }
}