/* ============================
   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); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Manual animation triggers */
.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fadeInSlow {
    animation: fadeInSlow 1.2s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out forwards;
}


/* ============================
   SCROLL OBSERVER ANIMATION
   ============================ */

.fade-in,
.fade-up {
    opacity: 0;
    pointer-events: none;
    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 - Enhanced */
.card-hover {
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

/* 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;
    color: inherit;
    text-decoration: none;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.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: 900;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    tracking: 1px;
}

.footer-list li {
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-weight: 700;
}

.footer-link {
    color: #1e40af;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer-link:hover {
    color: #1e3a8a;
    transform: translateX(4px);
    text-decoration: underline;
}

/* Link global modern */
.nav-link,
.mobile-link,
a {
    transition: 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
a:hover {
    color: #2563eb; /* blue-600 */
    text-decoration: underline;
}

.mobile-link:hover {
    padding-left: 8px;
}

/* ============================
   BACK TO TOP BUTTON
   ============================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    z-index: 40;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

