:root {
    --primary: #2563eb;
    --dark: #020617;
    --secondary: #64748b;
    --accent: #38bdf8;
    --overlay: rgba(2, 6, 23, 0.65);
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    color: var(--dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Global Components --- */
.btn-primary { background-color: var(--primary); border: none; transition: 0.3s; }
.btn-primary:hover { background-color: #1d4ed8; transform: translateY(-2px); }

/* --- Navbar Perbaikan Mobile --- */
.navbar {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 1.5rem 0;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
/* Memastikan menu mobile memiliki latar belakang saat dibuka */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .navbar:not(.scrolled) .nav-link, 
    .navbar:not(.scrolled) .navbar-brand { color: var(--dark) !important; }
    .navbar:not(.scrolled) .bi-grid-3x3-gap-fill { color: white !important; }
}

.navbar-brand { font-weight: 800; font-size: 1.6rem; color: white !important; }
.scrolled .navbar-brand { color: var(--dark) !important; }
.nav-link { color: rgba(255,255,255,0.9) !important; font-weight: 600; white-space: nowrap !important;}
.scrolled .nav-link { color: var(--dark) !important; }
.nav-link:hover { color: var(--accent) !important; }

/* --- Hero Section Perbaikan Mobile --- */
.hero-fullscreen {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.9) 0%, rgba(37, 99, 235, 0.4) 100%),  url('../assets/img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    padding: 100px 0; /* Tambahan padding untuk mobile */
}

@media (max-width: 768px) {
    .hero-fullscreen { background-attachment: scroll; } /* Performa lebih baik di HP */
    .hero-title { font-size: 2.5rem !important; letter-spacing: -1px !important; }
    .hero-tag { font-size: 0.65rem !important; }
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(5px);
    padding: 8px 18px; border-radius: 100px;
    font-weight: 700; font-size: 0.75rem; color: var(--accent);
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-title { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 800; line-height: 0.95; letter-spacing: -3px; }
.scroll-hint {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    animation: bounce 2s infinite; color: rgba(255,255,255,0.5);
}

/* --- About Section --- */
.about-short-section { padding: 80px 0; background-color: #ffffff; }
.about-label { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 20px; display: block; }
.about-lead-text { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.4; color: var(--dark); margin-bottom: 30px; letter-spacing: -1px; }
.feature-point { display: flex; align-items: flex-start; gap: 15px; margin-top: 30px; }
.feature-icon { width: 45px; height: 45px; background: #eff6ff; color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }

/* --- Bento Grid Perbaikan Mobile --- */
.bento-section { padding: 80px 0; background: #fdfdfd; }
.bento-item {
    border-radius: 32px; padding: 40px; height: 100%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid #f1f5f9; background: white;
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
@media (max-width: 576px) {
    .bento-item { padding: 30px; }
    .bento-item h2 { font-size: 2.2rem !important; }
}
.bento-item:hover { transform: translateY(-12px); border-color: var(--primary); box-shadow: 0 40px 80px -20px rgba(0,0,0,0.1); }
.bento-research { background: var(--dark); color: white; border: none; }
.bento-dashboard { background: linear-gradient(135deg, #2563eb, #3b82f6); color: white; border: none; }

/* --- Research Cards --- */
/* --- Latest Research Section --- */
.latest-research { padding: 80px 0; background-color: #f8fafc; }
.research-meta { font-size: 0.8rem; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; }

.research-card-modern {
    background: white;
    border-radius: 28px;
    padding: 32px;
    height: 100%;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.research-card-modern:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.research-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.research-card-modern h3 {
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--dark);
}

.research-card-modern p {
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.research-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.file-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ef4444; /* PDF Red Color */
}

/* --- Stats --- */
.stat-card { text-align: center; padding: 20px; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); letter-spacing: -1px; }

/* --- Footer --- */
.footer-celys { color: rgba(255, 255, 255, 0.8); padding: 80px 0 30px; font-size: 0.9rem; }
.footer-brand { color: #ffffff; font-weight: 800; font-size: 1.8rem; text-decoration: none; display: block; margin-bottom: 20px; }
.footer-title { color: #ffffff; font-weight: 700; margin-bottom: 25px; }
.footer-link { color: rgba(255, 255, 255, 0.6); text-decoration: none; display: block; margin-bottom: 12px; transition: 0.3s; }
.footer-link:hover { color: var(--accent); padding-left: 5px; }
.social-circle { width: 38px; height: 38px; background: rgba(255, 255, 255, 0.05); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: white; margin-right: 10px; transition: 0.3s; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
}

@media (max-width: 768px) {
    .navbar { background: transparent; }
    .footer-celys { text-align: center; }
    .footer-celys .social-circle { margin: 0 5px; }
    .section-header { text-align: center; flex-direction: column; align-items: center !important; gap: 20px; }
}

/*bento grid*/
/* --- Bento Grid 9 Focus Areas --- */
.focus-section { padding: 80px 0; background-color: #ffffff; }
.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 20px;
}

.focus-card {
    position: relative;
    border-radius: 24px;
    padding: 30px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--dark);
}

.focus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--primary);
    background: white;
}

.focus-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.focus-card h4 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.focus-card p {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 0;
}

/* Ukuran Spesifik untuk Bento Effect */
.item-tall { grid-row: span 2; } /* Card yang memanjang ke bawah */
.item-wide { grid-column: span 2; } /* Card yang melebar ke samping */

/* Responsive Grid */
@media (max-width: 1200px) {
    .focus-grid { grid-template-columns: repeat(3, 1fr); }
    .item-wide { grid-column: span 1; }
}

@media (max-width: 992px) {
    .focus-grid { grid-template-columns: repeat(2, 1fr); }
    .item-tall { grid-row: span 1; }
}

@media (max-width: 576px) {
    .focus-grid { 
        grid-template-columns: 1fr; 
        grid-auto-rows: auto;
    }
}

/* Pastikan logo memiliki transisi halus dan keadaan awal putih */
#navLogo {
    filter: brightness(0) invert(1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Samakan dengan transisi navbar Anda */
}
/* Keadaan Default (Saat Navbar Transparan / Di Atas) */
.navbar:not(.scrolled) #navLogo {
    filter: brightness(0) invert(1); /* Mengubah logo menjadi putih */
}

/* Keadaan Saat Di-scroll (Saat Navbar menjadi Putih) */
.navbar.scrolled #navLogo {
    filter: brightness(1) invert(0); /* Kembali ke warna asli */
}

/* Perbaikan untuk Mobile Menu agar logo tetap berwarna asli saat menu dibuka */
@media (max-width: 991.98px) {
    .navbar-collapse.show ~ .navbar-brand #navLogo,
    .navbar-toggler[aria-expanded="true"] ~ .navbar-brand #navLogo {
        filter: brightness(1) invert(0) !important;
    }
}

.lang-pill {
    position: relative;
    z-index: 9999; /* Pastikan selalu di atas elemen lain */
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 3px;
    border-radius: 50px;
}

/* Gaya Khusus Card dengan Background */
.has-bg {
    border: none !important;
}

.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.focus-card:hover .card-bg-img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradien agar teks di atas tetap terbaca */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

/* Memastikan z-index konten berada di atas overlay */
.z-2 {
    z-index: 2;
}

/* Responsif Mobile */
@media (max-width: 767px) {
    .has-bg {
        min-height: 250px; /* Memberi ruang lebih di HP agar background terlihat bagus */
    }
}