/* ============================
   GLOBAL ANIMATION (2025 STYLE)
   ============================ */

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInSlow {
    from { opacity: 0; transform: translateY(35px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Manual animation triggers */
.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fadeInSlow {
    animation: fadeInSlow 1.2s ease-out forwards;
}


/* ============================
   SCROLL OBSERVER ANIMATION
   ============================ */

.fade-in,
.fade-up {
    opacity: 0;
    pointer-events: none; /* supaya lebih smooth */
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* Reveal */
.show {
    opacity: 1;
    pointer-events: auto;
}

/* Fade-in */
.fade-in {
    transform: translateY(20px);
}
.fade-in.show {
    transform: translateY(0);
}

/* Fade-up */
.fade-up {
    transform: translateY(40px);
}
.fade-up.show {
    transform: translateY(0);
}


/* ============================
   MODERN HOVER / UI EFFECTS
   ============================ */

/* Card Hover */
.card-hover {
    transition: 0.25s ease;
    will-change: transform, box-shadow;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Glass Effect */
.glass {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Underline Animation */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile link style */
.mobile-link {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}
.mobile-link:last-child {
    border-bottom: none;
}

/* Navbar shrink on scroll */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-list li {
    margin-bottom: 0.35rem;
}

.footer-link {
    color: #9ca3af;
    transition: 0.2s ease;
}

.footer-link:hover {
    color: #fff;
    padding-left: 3px;
}

/* Link global modern */
.nav-link,
.footer-link,
.mobile-link,
a {
    transition: 0.25s ease;
}

.nav-link:hover,
.footer-link:hover,
.mobile-link:hover,
a:hover {
    color: #2563eb; /* blue-600 */
    text-decoration: underline;
}

.footer-link {
    color: #d1d5db;
}

.footer-link:hover {
    color: #ffffff;
}

.mobile-link:hover {
    padding-left: 8px;
}
