/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  --kurumi-black: #121212;      /* Kegelapan abadi */
  --kurumi-red: #8b0000;        /* Merah crimson yang elegan */
  --kurumi-gold: #d4af37;       /* Emas jarum jam Zafkiel */
  --kurumi-white: #f5f5f5;      /* Kontras yang murni */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--kurumi-black);
    color: var(--kurumi-white);
}

.navbar {
    width: 100%;
    background: linear-gradient(135deg, #4a0000 0%, #000000 100%);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--kurumi-red); /* Aksen merah */
    cursor: pointer;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 55px; /* Jarak antara menu dan logo */
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--kurumi-white);
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease; /* Transisi halus untuk efek hover */
}

.nav-links a:hover {
    color: var(--kurumi-gold); /* Warna berubah saat disentuh */
    text-shadow: 0 0 20px var(--kurumi-gold); /* Efek cahaya emas */
    transform: scale(1.05); /* Sedikit membesar saat hover */
    letter-spacing: 2px; /* Menambah jarak antar huruf saat hover */
}

.logo img {
    height: 60px; /* Sesuaikan ukuran logo sesuai kebutuhan */
    width: auto;
    border-radius: 50%; /* Membuat logo bulat */
    transition: all 0.5s ease; /* Durasi animasi */
}

.logo img:hover {
    transform: rotate(360deg) scale(1.1); /* Animasi putar dan membesar saat hover */
    box-shadow: 0 0 20px var(--kurumi-gold); /* Efek cahaya emas */
}

.gold {
    color: var(--kurumi-gold);
    font-weight: bold;
    transition: all 0.3s ease; /* Transisi halus untuk efek hover */
    cursor: pointer; /* Menunjukkan bahwa elemen ini interaktif */
}

.gold:hover {
    text-shadow: 0 0 5px var(--kurumi-gold), 0 0 10px var(--kurumi-gold); /* Efek cahaya emas saat hover */
    text-decoration: underline; /* Menambahkan garis bawah saat hover */
    letter-spacing: 1px; /* Menambah jarak antar huruf saat hover */
    font-weight: bold;
}

#alert {
    color: #ff0000;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
    display: none; /* Sembunyikan pesan error secara default */
}

#scrollToTop {
    display: none; /* Sembunyikan tombol saat halaman pertama kali dimuat */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-image: url(up.png); /* Ganti dengan ikon panah ke atas yang sesuai */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    transition: all 0.3s ease;
}

#scrollToTop:hover {
    transform: scale(1.25);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
}

/* --- Section Home --- */
#home {
    padding: 100px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #333;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    filter: brightness(67%);
    border: 4px solid #ff0000; /* Aksen merah yang berani */
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    transition: all 0.5s ease;
    cursor: pointer;
}

.profile-pic:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.7);
    filter: brightness(115%);
}

#home h2 {
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

#home h2:hover {
    text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
    letter-spacing: 2px;
}

#home h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    color: #ffffff;
    transition: all 0.3s ease;
}

#home h3:hover {
    text-shadow: 0 0 25px var(--kurumi-white);
}

#home p {
    max-width: 700px;
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 15px;
}

/* --- Section Skill --- */
#skills {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #333;
}

#skills h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #ff0000;
    transition: all 0.3s ease;
}

#skills h2:hover {
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
    letter-spacing: 3px;
}

/* Mengatur daftar skill agar berbaris rapi */
#skills ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Kotak untuk setiap item skill */
#skills ul li {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--kurumi-gold);
    box-shadow: 0 0 5px var(--kurumi-gold);
    font-weight: 600;
    color: var(--kurumi-white);
    transition: all 0.3s ease;
    cursor: default;
}

#skills ul li:hover {
    background-color: #ff0000;
    color: var(--kurumi-gold);
    transform: translateY(-5px) scale(1.075);
    border-color: #ff0000;
    box-shadow: 0 5px 15px var(--kurumi-red);
    letter-spacing: 0.225px;
}

#skills a {
    display: inline-block;
    width: 150px;
    padding: 10px;
    text-align: center;
    background-color: transparent;
    color: #ff0000;
    text-decoration: none;
    border: 2px solid #ff0000;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#skills a:hover {
    background-color: #ff0000;
    color: var(--kurumi-white);
    letter-spacing: 0.5px;
}

/* --- Section Gallery --- */
#gallery {
    padding: 80px 0;
}

#gallery h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #ff0000;
    transition: all 0.3s ease;
}

#gallery h2:hover {
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
    letter-spacing: 3px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.gallery-item {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: grayscale(50%); /* Sedikit efek dramatis */
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%);
}

.gallery-item p {
    padding: 15px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
}

/* Tombol See More */
#gallery a, #skills a {
    display: block;
    width: 150px;
    margin: 30px auto 0;
    padding: 10px;
    text-align: center;
    background-color: transparent;
    color: #ff0000;
    text-decoration: none;
    border: 2px solid #ff0000;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

#gallery a:hover, #skills a:hover {
    background-color: #ff0000;
    color: var(--kurumi-white);
    letter-spacing: 0.5px;
}

/* Gaya untuk Modal (Latar Belakang) */
.modal {
    display: none; /* Sembunyi sampai dipanggil */
    position: fixed;
    z-index: 10001; /* Lebih tinggi dari navbar */
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Hitam pekat transparan */
}

/* Gaya untuk Gambar di dalam Modal */
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border: 2px solid var(--kurumi-gold); /* Aksen emas */
    border-radius: 15px;
    animation: zoom 0.6s; /* Efek membesar */
    cursor: pointer;
    transition: box-shadow 0.3s ease; /* Transisi untuk efek hover */
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

.modal-content:hover {
    box-shadow: 0 0 30px var(--kurumi-gold); /* Efek cahaya emas saat hover */
}

/* Tombol Tutup */
.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    color: var(--kurumi-white);
    font-size: 50px;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--kurumi-gold);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: var(--kurumi-white);
    padding: 10px 0;
}

/* --- Section Contact --- */
#contact {
    padding: 80px 0;
    max-width: 600px; /* Agar formulir tidak terlalu lebar dan tetap elegan */
    margin: 0 auto;
    border-bottom: 1px solid #333;
}

#contact h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #ff0000;
    transition: all 0.3s ease;
}

#contact h2:hover {
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
    letter-spacing: 3px;
}

/* Gaya untuk Label */
#contact label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

/* Gaya untuk Input dan Textarea */
#contact input, 
#contact textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--kurumi-white);
    font-family: inherit;
    transition: all 0.3s ease; /* Transisi untuk efek fokus */
}

/* Efek saat input difokuskan (diklik) */
#contact input:focus, 
#contact textarea:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 15px var(--kurumi-red);
}

#contact textarea {
    height: 150px;
    resize: vertical; /* Pengunjung bisa mengatur tinggi pesan, tapi tetap rapi */
}

#contact button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #ff0000;
    color: var(--kurumi-white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#contact button:hover {
    background-color: #cc0000;
    transform: translateY(-2px) scale(1.05);
    letter-spacing: 1px;
}

#contact button:active {
    transform: translateY(0);
}

/* Gaya Popup Custom */

.custom-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    animation: fadeIn 0.4s;
}

.popup-content {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #ff0000;
    text-align: center;
    box-shadow: 0 0 30px var(--kurumi-red);
    max-width: 400px;
}

.popup-content i {
    font-size: 4rem;
    color: var(--kurumi-white);
    margin-bottom: 20px;
}

.popup-content p {
    font-size: 1.2rem;
    color: var(--kurumi-white);
    margin-bottom: 25px;
}

#close-popup {
    background-color: #ff0000;
    color: var(--kurumi-white);
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#close-popup:hover {
    background-color: var(--kurumi-red);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 0;
    color: #777;
    font-size: 0.9rem;
}