/* Custom styles for Dual Control Motorcycle Systems */

/* Smooth focus outlines for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #528a3f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #528a3f;
    color: #fdfcf7;
}

/* Prevent content flash on scroll-reveal before JS loads */
.reveal {
    opacity: 1;
    transform: none;
}

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating animation for geometric shapes */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-16px) rotate(var(--rotation, 0deg)); }
}

.geo-circle, .geo-square, .geo-triangle {
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Mobile menu animation */
#bar1 {
    transition: transform 0.3s ease, margin-top 0.3s ease;
}
#bar2 {
    transition: opacity 0.3s ease;
}
#bar3 {
    transition: width 0.3s ease, transform 0.3s ease;
}

#menu-toggle[aria-expanded="true"] #bar1 {
    transform: translateY(7px) rotate(45deg);
}
#menu-toggle[aria-expanded="true"] #bar2 {
    opacity: 0;
}
#menu-toggle[aria-expanded="true"] #bar3 {
    width: 24px;
    transform: translateY(-7px) rotate(-45deg);
}

/* Card hover tilt effect */
.reveal:hover {
    transform: translateY(-4px) !important;
}

/* Subtle pattern overlay for cream sections */
.bg-cream-50::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(82,138,63,0.04) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Ensure all interactive elements have proper touch targets on mobile */
@media (max-width: 640px) {
    a, button {
        min-height: 44px;
    }
}
