/* ============================================
   BLUHR - Animation System
   ============================================ */

/* Scroll Reveal - Base State */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Direction Variants */
.animate[data-direction="down"] {
    transform: translateY(-30px);
}

.animate[data-direction="left"] {
    transform: translateX(-40px);
}

.animate[data-direction="right"] {
    transform: translateX(40px);
}

.animate[data-direction="scale"] {
    transform: scale(0.92);
}

.animate[data-direction="fade"] {
    transform: none;
}

/* Visible State */
.animate.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* ============================================
   NAV LINK UNDERLINE ANIMATION
   ============================================ */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-meteorite);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Active page link (bold) already set inline - add underline */
.nav-links a[style*="font-weight: 700"]::after {
    width: 100%;
    opacity: 0.5;
}

/* ============================================
   IMPROVED BUTTON TRANSITIONS
   ============================================ */
.btn {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

/* ============================================
   FOOTER FADE
   ============================================ */
.footer .social-links a {
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.footer .social-links a:hover {
    opacity: 1;
    color: var(--color-meteorite-light);
}

/* ============================================
   MODEL CARD ENHANCED HOVER
   ============================================ */
.model-card .model-overlay {
    transition: opacity 0.4s ease;
}

.model-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PAGE HEADER ANIMATION
   ============================================ */
.page-header .page-title,
.page-header .page-description {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.page-header .page-description {
    animation-delay: 0.15s;
}

/* ============================================
   FEATURE CARD HOVER
   ============================================ */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .animate,
    .story-section,
    .roadmap-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .page-header .page-title,
    .page-header .page-description {
        animation: none !important;
    }

    .btn:hover {
        transform: none;
    }

    .feature-item:hover {
        transform: none;
    }
}

/* ============================================
   MOBILE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .nav-links a::after {
        display: none;
    }

    .animate {
        /* Slightly smaller transforms on mobile */
        transform: translateY(20px);
    }

    .animate[data-direction="left"] {
        transform: translateX(-20px);
    }

    .animate[data-direction="right"] {
        transform: translateX(20px);
    }
}
