/* Custom styles for TMG Trucking */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #ecfdf5;
}
::-webkit-scrollbar-thumb {
    background: #6ee7b7;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Selection color */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}

/* Geometric floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-8px) rotate(45deg); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.floating-shape {
    animation: float 6s ease-in-out infinite;
}

.floating-shape-reverse {
    animation: float-reverse 5s ease-in-out infinite;
}

.pulse-element {
    animation: pulse-ring 2.5s ease-in-out infinite;
}

/* Reduced motion */
@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;
    }
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Service card hover - ensure text readability */
.group:hover .group-hover\:text-white {
    color: #fffef8 !important;
}

.group:hover .group-hover\:stroke-white {
    stroke: #fffef8 !important;
}

/* Ensure navbar contrast on scroll */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
}
