
/* =========================================
    1. MODERN PRELOADER (Logo Pulse)
    ========================================= */
#preloader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ffffff; z-index: 99999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.preloader-inner { position: relative; }

/* Logo Animation */
.preloader-logo {
    width: 100px; /* Ukuran Logo saat loading */
    animation: breathe 2s ease-in-out infinite;
}

/* Garis Loading di bawah logo */
.loading-bar {
    width: 150px; height: 3px; background: #f0f0f0;
    margin-top: 20px; border-radius: 3px; overflow: hidden;
}
.loading-bar::after {
    content: ''; display: block; width: 40%; height: 100%;
    background: #0d6efd; /* Warna Primary */
    animation: loading-slide 1s infinite linear;
}

@keyframes breathe {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes loading-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

/* =========================================
    2. MODERN NAVBAR / HEADER
    ========================================= */
header {
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Sticky State (Saat di-scroll) */
header.sticky {
    padding: 10px 0;
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.9); /* Lebih transparan dikit */
    backdrop-filter: blur(20px); /* Blur lebih kuat (Glassmorphism) */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Menu Links Animation */
.main-menu__list li a {
    font-weight: 500;
    color: #333;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-menu__list li a:hover,
.main-menu__list li a.active {
    color: #0d6efd !important; /* Warna Primary */
}

/* Garis bawah animasi saat hover */
.main-menu__list li a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 0; background-color: #0d6efd !important;
    transition: width 0.3s ease;
}

.main-menu__list li a:hover::after,
.main-menu__list li a.active::after {
    width: 100%;
}

/* Button Header Style */
.header-btn {
    background: #0d6efd !important; color: white;
    padding: 10px 25px; border-radius: 50px;
    font-weight: 600; font-size: 14px;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.header-btn:hover {
    background: #0b5ed7; transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4); color: white;
}

/* =========================================
    3. FLOATING WA & FOOTER
    ========================================= */
.float-wa {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50%;
    text-align: center; font-size: 30px; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: all 0.3s ease;
}
.float-wa:hover { background-color: #128C7E; transform: translateY(-5px); color: #FFF; }

.pulse-animation { animation: pulse-green 2s infinite; }

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer */
.footer-modern { background-color: #0F172A; color: #94a3b8; padding-top: 80px; }
.footer-widget h5 { color: #fff; font-weight: 700; margin-bottom: 25px; font-size: 1.2rem; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: #60A5FA; padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; margin-top: 50px; }

@media (max-width: 767px) {
    .float-wa { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 24px; }
    header { padding: 15px 0; }
}

/* =========================================
    4. FILTER PILLS (BLOG & PORTFOLIO)
    ========================================= */
.gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tracking-widest {
    letter-spacing: 3px;
}

/* Filter Button Styling */
.btn-filter {
    color: #64748b;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
}

.btn-filter.active {
    background: #0d6efd !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.text-nowrap {
    white-space: nowrap;
}

/* Mobile Responsive Filter Pills */
@media (max-width: 768px) {
    .filter-scroll-wrapper {
        display: flex !important;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        max-width: 100vw;
        -webkit-overflow-scrolling: touch;
        padding: 10px 15px !important;
        scrollbar-width: none;
        border-radius: 12px !important;
    }
    
    .filter-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .btn-filter {
        flex: 0 0 auto;
        font-size: 12px !important;
        padding: 8px 20px !important;
    }
    
    .filter-scroll-wrapper.shadow-sm {
        box-shadow: none !important;
        background-color: #f8f9fa !important;
    }
}

/* =========================================
    5. BLOG & PORTFOLIO CARDS
    ========================================= */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.blog-card img {
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.project-card {
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-primary:hover {
    color: #0d6efd !important;
}

.gallery-item {
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
}

.gallery-item:hover {
    transform: scale(1.05);
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Article Content Styling */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.article-content h3 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 3px solid #0d6efd;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}

/* Breadcrumb Styling */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
}

.italic {
    font-style: italic;
}

/* Pagination */
.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

