/* Custom styles for Primal Personal Training */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf9f6;
}

::-webkit-scrollbar-thumb {
    background: #4d7d58;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d6346;
}

/* Selection color */
::selection {
    background: #4d7d58;
    color: white;
}

/* Focus styles */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #4d7d58;
    outline-offset: 2px;
}

/* Animation delays for staggered reveals */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }
.reveal:nth-child(6) { transition-delay: 0.6s; }

/* Hover effects for cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(77, 125, 88, 0.15);
}

/* Button hover effects */
.btn-primary,
.btn-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

/* Mobile menu overlay */
.mobile-menu {
    backdrop-filter: blur(10px);
}

/* Form input focus states */
.form-input:focus {
    border-color: #4d7d58;
    box-shadow: 0 0 0 3px rgba(77, 125, 88, 0.1);
}

/* Success message animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    animation: slideIn 0.3s ease-out;
}

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