/* Import Font Modern: Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* === PALET WARNA MODERN === */
    --bg-dark: #0f0518;      /* Background Utama */
    --bg-card: #161022;      /* Warna Card */
    --primary: #7b2cbf;      /* Ungu Utama (Lebih cerah dari sebelumnya) */
    --accent: #e0aaff;       /* Ungu Muda Neon untuk highlight */
    
    /* === PERBAIKAN KONTRAS TEKS === */
    --text-main: #ffffff;    /* Putih murni untuk Judul */
    --text-muted: #e2e2e5;   /* Abu terang (Jauh lebih terang dari sebelumnya agar terbaca) */
    
    /* === EFEK === */
    --gradient-phantom: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    --glow-shadow: 0 0 20px rgba(123, 44, 191, 0.4);
}

/* === BASE STYLES === */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.7; /* Jarak antar baris diperlebar agar nyaman dibaca */
}

html {
    scroll-behavior: smooth;
}

section {
    /* Sesuaikan angka 100px ini dengan tinggi navbar kamu */
    scroll-margin-top: 100px; 
}

/* Scrollbar Modern */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { 
    background: var(--primary); 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* === NAVBAR (Glass Effect Updated) === */
.navbar {
    background-color: rgba(15, 5, 24, 0.85) !important;
    backdrop-filter: blur(12px); /* Blur lebih halus */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-main) !important;
    text-shadow: 0 0 15px rgba(123, 44, 191, 0.5); /* Glow pada logo */
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
    text-shadow: 0 0 8px var(--accent);
}

/* Garis bawah animasi saat hover menu */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }


.text-muted {
    color: var(--text-muted) !important;
    opacity: 0.9; /* Sedikit transparansi agar beda dengan judul, tapi tetap terang */
}
/* === HERO SECTION === */
#home {
    /* Efek sorot lampu ungu halus di tengah background */
    background: radial-gradient(circle at 50% 50%, rgba(123, 44, 191, 0.15) 0%, rgba(15, 5, 24, 0) 60%);
}

#home .badge {
    background: rgba(123, 44, 191, 0.2) !important;
    border: 1px solid var(--primary);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    padding: 0.8em 1.5em;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(123, 44, 191, 0.2);
}

#home h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Kelas khusus untuk teks gradasi (misal di kata Experience) */
.text-gradient {
    background: var(--gradient-phantom);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* PERBAIKAN UTAMA: Teks Deskripsi agar Jelas */
#home p.lead, p {
    color: var(--text-muted) !important; /* Menggunakan abu terang baru */
    font-size: 1.15rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6); /* Shadow agar teks 'pop' dari background */
}

/* === CARDS (Modern Style) === */
.phantom-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #12121f 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;

    /* INI KUNCINYA: */
    display: flex;             /* Mode Flexbox */
    flex-direction: column;    /* Susun dari atas ke bawah */
    height: 100%;              /* Paksa tinggi 100% mengikuti kolom */
    justify-content: flex-start; /* Mulai isi dari atas */
}

.phantom-card .btn {
    margin-top: auto; 
}

.phantom-card img {
    width: 100%;
    height: 200px; /* Opsional: Agar tinggi gambar seragam */
    object-fit: cover; /* Agar gambar tidak gepeng */
    border-radius: 8px;
    margin-bottom: 15px;
}

.phantom-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.2);
}

.phantom-card h5 {
    color: var(--text-main);
    font-weight: 700;
    margin-top: 10px;
}

.phantom-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    color: var(--text-muted);
    
    /* Magic Trick: */
    flex-grow: 1; /* Paksa teks mengisi ruang kosong */
    margin-bottom: 20px; /* Jarak aman antara teks dan tombol */
}

.phantom-card .btn, 
.phantom-card a { 
    width: 100%;
    margin-top: auto; /* Jaga-jaga dorong ke bawah */
}

/* Efek kilatan cahaya saat hover card */
.phantom-card::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.5s;
}

.phantom-card:hover::before { left: 100%; }

/* === BUTTONS === */
.btn-phantom {
    background: var(--gradient-phantom);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--glow-shadow);
    transition: all 0.3s ease;
}

.btn-phantom:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(123, 44, 191, 0.6);
    color: #fff;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.2);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-main);
}

.btn-outline-light:hover {
    background: white;
    color: var(--bg-dark);
    border-color: white;
    transform: translateY(-3px);
}

/* === TABLES (Admin) === */
.table-dark {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
}
.table-dark th {
    background-color: #2a1b3d;
    color: var(--accent);
    border: none;
    padding: 15px;
}
.table-dark td {
    color: var(--text-muted);
    border-color: rgba(255,255,255,0.05);
    padding: 15px;
    vertical-align: middle;
}

/* === FOOTER MODERN === */
footer {
    background-color: #05020a; /* Lebih gelap dari body */
    border-top: 1px solid rgba(123, 44, 191, 0.2);
    padding-top: 3rem;
    margin-top: auto; /* Agar footer selalu di bawah */
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    margin-right: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary);
    border-color: var(--primary);
}

/* === FIXED ROUND ICONS === */
.social-circle {
    width: 40px;           /* Lebar Pasti */
    height: 40px;          /* Tinggi Pasti */
    padding: 0;            /* Hapus Padding Bawaan (KUNCI AGAR TIDAK LONJONG) */
    display: inline-flex;  /* Agar bisa ditengahin */
    align-items: center;   
    justify-content: center;
    border-radius: 50%;    /* Bulatkan */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 10px;    /* Jarak antar icon */
}

.social-circle:hover {
    background-color: var(--primary); /* Warna Ungu saat hover */
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px); /* Efek naik dikit */
    box-shadow: 0 5px 15px rgba(123, 44, 191, 0.4);
}

footer a.text-muted:hover {
    color: var(--accent) !important;
    text-decoration: none;
}
/* === RESPONSIVE === */
@media (max-width: 768px) {
    #home h1 { font-size: 2.5rem; }
    #home p.lead { font-size: 1rem; }
    .phantom-card { margin-bottom: 20px; }
}