﻿/* ═══════════════════════════════════════════════════════════════════
   FIELDFUSION - LAYOUT STYLES
   Separate CSS file for all layout-specific animations and styles
   ═══════════════════════════════════════════════════════════════════ */

/* Logo Glow Animation */
@keyframes logo-glow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(21, 128, 61, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(21, 128, 61, 0.5));
    }
}

.logo-glow:hover {
    animation: logo-glow 2s ease-in-out infinite;
}

/* Navigation Link Underline Animation */
.nav-link-underline {
    position: relative;
}

    .nav-link-underline::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(to right, #15803d, #22c55e);
        transform: translateX(-50%);
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-link-underline:hover::after {
        width: 100%;
    }

/* Mobile Menu Slide Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-menu-enter {
    animation: slideInRight 0.3s ease-out forwards;
}

/* Staggered Mobile Menu Items */
.mobile-menu-item {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.3s ease-out forwards;
}

    .mobile-menu-item:nth-child(1) {
        animation-delay: 0.05s;
    }

    .mobile-menu-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .mobile-menu-item:nth-child(3) {
        animation-delay: 0.15s;
    }

    .mobile-menu-item:nth-child(4) {
        animation-delay: 0.2s;
    }

    .mobile-menu-item:nth-child(5) {
        animation-delay: 0.25s;
    }

    .mobile-menu-item:nth-child(6) {
        animation-delay: 0.3s;
    }

    .mobile-menu-item:nth-child(7) {
        animation-delay: 0.35s;
    }

    .mobile-menu-item:nth-child(8) {
        animation-delay: 0.4s;
    }

/* Active Scale Animation */
.active\:scale-98:active {
    transform: scale(0.98);
}

.active\:scale-95:active {
    transform: scale(0.95);
}

/* Smooth Transitions */
* {
    -webkit-tap-highlight-color: transparent;
}
