/* 1. Global Reset & Variables (TIDAK BERUBAH) */
:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #00ff00;
    --secondary-color: #2c2c2c;
    --card-bg: #1e1e1e;
    --font-primary: 'Roboto', sans-serif;
}
/* ... (Bagian CSS global lainnya) ... */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #00cc00; 
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.accent {
    color: var(--accent-color);
}

/* 2. Container and Section Styles (TIDAK BERUBAH) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* 3. Header & Navigation (TIDAK BERUBAH) */
header {
    background-color: var(--secondary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu a {
    margin-left: 1.5rem;
    font-weight: 500;
    font-style: tahoma;
}

.menu-toggle {
    display: none; 
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}
/* ... */

/* 4. Hero Section (TIDAK BERUBAH) */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--bg-color);
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.hero-links .btn {
    margin: 0 0.5rem;
}

/* 5. Buttons (TIDAK BERUBAH) */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
    border: 2px solid transparent;
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.primary-btn:hover {
    background-color: #00cc00;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.secondary-btn:hover {
    background-color: rgba(0, 255, 0, 0.1);
    transform: translateY(-2px);
}

.small-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

/* 6. About Me & Skills (TIDAK BERUBAH) */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-badge {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-color);
}


/* 7. ACHIEVEMENTS - Compact List Style (TIDAK BERUBAH) */
.compact-achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    background-color: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.achievement-item:hover {
    background-color: #252525;
}

.award-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1.5rem;
}

.award-details {
    flex-grow: 1; 
}

.award-details h3 {
    margin-bottom: 0.25rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.award-details .issuer {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 0.25rem;
}

.award-details .date {
    font-size: 0.8rem;
    color: #666666;
}

.view-btn {
    flex-shrink: 0; 
    margin-left: 1rem;
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.view-btn:hover {
    background-color: rgba(0, 255, 0, 0.1);
}

/* 8. HALL OF FAME - NEW Compact List Style */
.hall-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hall-item {
    background-color: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    border-left: 3px solid #33aaff; /* Aksen biru untuk proyek */
    transition: background-color 0.3s;
}

.hall-item:hover {
    background-color: #252525;
}

.hall-date {
    font-size: 0.85rem;
    color: #aaaaaa;
    flex-shrink: 0;
    width: 80px; /* Lebar tetap untuk tanggal */
}

.hall-vulnerability {
    font-weight: bold;
    color: #ff5555; /* Warna untuk kerentanan */
    flex-shrink: 0;
    width: 250px;
}

.hall-target {
    flex-grow: 1;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hall-link {
    font-size: 1.2rem;
    margin-left: 1rem;
}


/* 9. BAGIAN BARU: CTF ACHIEVEMENTS CARD GRID */
.intro-text {
    margin-bottom: 2rem;
    font-style: italic;
    color: #aaaaaa;
}

.ctf-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.ctf-card {
    background-color: var(--card-bg);
    border: 1px solid var(--secondary-color);
    border-top: 5px solid var(--accent-color); /* Aksen Hijau */
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.ctf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.1);
}

.ctf-card img {
    width: 100%;
    max-height: 200px;
    object-fit: cover; /* Memastikan gambar menutupi area */
    margin-bottom: 1rem;
    background-color: #2c2c2c; 
    border-radius: 4px;
}

.card-details h3 {
    margin-top: 0;
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.ctf-ranking {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ctf-platform {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 1.5rem;
}

.ctf-links {
    display: flex;
    gap: 0.5rem;
}


/* 10. Blog (TIDAK BERUBAH) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-post {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.blog-post h4 {
    color: var(--accent-color);
}

.blog-post .date {
    font-size: 0.8rem;
    color: #aaaaaa;
    margin-bottom: 1rem;
}

/* 11. CONTACT SECTION LAMA DIHAPUS */
/* CSS untuk .contact-section dan .contact-form dihapus */

/* 12. Footer (NEW CONTACT STYLE) */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--secondary-color);
    color: #aaaaaa;
    font-size: 0.9rem;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    font-size: 1.8rem;
    margin: 0 0.8rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}


/* 13. Media Queries (Responsiveness) */
@media (max-width: 768px) {
    .nav-menu {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px; 
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        margin: 0;
        padding: 0.75rem 2rem;
        border-bottom: 1px solid #121212;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    /* Responsiveness for Hall of Fame List */
    .hall-item {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .hall-date, .hall-vulnerability {
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: left;
    }
    
    .hall-target {
        width: 80%;
        text-align: left;
    }
}

/* Tambahkan sedikit penyesuaian untuk CTF di mobile */
@media (max-width: 600px) {
    .ctf-links {
        flex-direction: column;
    }
    .ctf-links .btn {
        width: 100%;
    }
}

/*9*/
.slider-section {
    background-color: var(--secondary-color); /* Pertahankan background section lama */
    overflow: hidden; /* Penting untuk menyembunyikan gambar yang tidak terlihat */
}

.gallery-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto; /* Memungkinkan geser manual di browser modern */
}

.gallery-item {
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: start;
    padding: 0 1rem;
    box-sizing: border-box;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    max-height: 450px;
    object-fit: contain; /* Menjaga rasio gambar */
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    margin-bottom: 1rem;
    background-color: #000;
}

.caption h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.caption p {
    color: #aaaaaa;
    font-size: 0.9rem;
}

/* Tombol Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-color);
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    color: white;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}