/* ==========================================
   MI Miftahussalam - Custom Styles
   ========================================== */

/* Font */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ====== ANIMATIONS ====== */
@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes scroll-dot {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-pulse-slow { animation: pulse-slow 4s ease-in-out infinite; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-scroll-dot { animation: scroll-dot 1.5s ease-in-out infinite; }
.animate-gradient { background-size: 200% 200%; animation: gradient-shift 8s ease infinite; }
.animate-bounce-slow { animation: bounce-slow 2s ease-in-out infinite; }

/* ====== LINE CLAMP ====== */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ====== CUSTOM SCROLLBAR ====== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #10b981; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #059669; }

/* ====== NAVBAR ====== */
#navbar.scrolled .navbar-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

/* ====== SMOOTH IMAGE LOADING ====== */
img {
    transition: filter 0.3s ease;
}
img[loading] {
    filter: blur(5px);
}
img.loaded {
    filter: blur(0);
}

/* ====== CARD HOVER EFFECTS ====== */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

/* ====== BUTTON EFFECTS ====== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.btn-primary:hover::after {
    transform: translateX(0);
}

/* ====== GRADIENT TEXT ====== */
.gradient-text {
    background: linear-gradient(135deg, #059669, #0d9488, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== PAGINATION ====== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination a:hover {
    background: #10b981;
    color: white;
}
.pagination .active span {
    background: #10b981;
    color: white;
}

/* ====== LOADING SKELETON ====== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}

/* ====== FOOTER ====== */
footer a {
    position: relative;
}
footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #10b981;
    transition: width 0.3s ease;
}
footer a:hover::after {
    width: 100%;
}

/* ====== GLASSMORPHISM ====== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 640px) {
    h1 { font-size: 2rem !important; }
    .hero-section { min-height: 70vh !important; }
}

/* ====== PRINT ====== */
@media print {
    nav, footer, .no-print { display: none !important; }
}

/* ====== TAILWIND CUSTOM UTILITIES ====== */
@layer utilities {
    .text-balance { text-wrap: balance; }
}

/* ====== AOS CUSTOM ====== */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* ====== HERO OVERLAY ====== */
.hero-overlay {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.95), rgba(4, 120, 87, 0.85));
}