/* Import Font & Icons */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --accent: #00cec9;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Brand Colors */
    --wa-color: #25D366;
    --tg-color: #0088cc;
    --tk-color: #000000;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: radial-gradient(circle at top left, #2d3436, #000000);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 15px;
    position: relative;
    overflow-x: hidden;
}

/* Background Accents (Orbs) */
body::before, body::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.5;
}
body::before { background: #6c5ce7; top: -50px; left: -50px; }
body::after { background: #e17055; bottom: -50px; right: -50px; }

/* Container Utama */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- COMPONENTS --- */

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
}

/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.brand h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.brand span {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Social Media Icons (Tombol Bulat) */
.social-nav {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-btn:hover { transform: translateY(-3px) scale(1.1); }

/* Brand Hover Colors */
.social-btn.wa:hover { background: var(--wa-color); border-color: var(--wa-color); box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); }
.social-btn.tg:hover { background: var(--tg-color); border-color: var(--tg-color); box-shadow: 0 0 15px rgba(0, 136, 204, 0.4); }
.social-btn.tk:hover { background: #fff; color: #000; box-shadow: 0 0 15px rgba(255,255,255, 0.4); }

/* Search Bar */
.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 25px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
}

.search-btn:hover { color: white; }

/* Project Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card:hover::before { opacity: 1; }

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-visit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: var(--text-main);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-visit:hover {
    background: var(--primary);
    color: white;
}

/* Footer & Stats */
footer {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- ADMIN & FORM STYLES --- */
input[type="text"], input[type="password"], input[type="url"], textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    padding: 14px;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    margin-bottom: 15px;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.4);
}

label { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; display: block; color: var(--text-muted); }

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-primary:hover { filter: brightness(1.2); transform: translateY(-1px); }

/* Table Dashboard */
.table-wrapper { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
th { text-align: left; color: var(--text-muted); padding: 10px; font-weight: 500; font-size: 0.9rem; }
td { background: rgba(255,255,255,0.03); padding: 15px; first-child: border-radius: 10px 0 0 10px; last-child: border-radius: 0 10px 10px 0; }
tr { transition: 0.2s; }
tr:hover td { background: rgba(255,255,255,0.06); }

.action-btn {
    padding: 6px 12px;
    background: rgba(255, 71, 87, 0.2);
    color: #ff6b6b;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}
.action-btn:hover { background: #ff6b6b; color: white; }

/* Responsive Mobile */
@media (max-width: 768px) {
    header { flex-direction: column; text-align: center; gap: 20px; }
    .brand h1 { font-size: 1.8rem; }
    .grid-container { grid-template-columns: 1fr; }
    
    /* Table Responsive Card View */
    thead { display: none; }
    tr { display: block; margin-bottom: 15px; }
    td { display: block; text-align: right; padding: 12px; border-radius: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.05); }
    td::before { content: attr(data-label); float: left; font-weight: bold; color: var(--text-muted); font-size: 0.85rem; }
    td:first-child { border-radius: 12px 12px 0 0 !important; background: rgba(255,255,255,0.05); }
    td:last-child { border-radius: 0 0 12px 12px !important; text-align: center; }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease-out forwards; }
