/* Custom Styles for Premier Performance LLC */

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

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

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

::-webkit-scrollbar-thumb {
    background: #458251;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e6338;
}

/* Selection Color */
::selection {
    background-color: #458251;
    color: #F9FAF7;
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@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 Animation */
.float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Ring Animation */
.pulse-ring {
    animation: pulse-ring 2s ease-in-out infinite;
}

/* Geometric Shape Animations */
@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #458251 0%, #6ba576 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Image Hover Zoom */
.img-zoom {
    transition: transform 0.5s ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Card Hover Lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(28, 64, 34, 0.15);
}

/* Navbar Glass Effect on Scroll */
.navbar-scrolled {
    background: rgba(249, 250, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.service-card:hover {
    transform: translateY(-12px) rotate(1deg);
}

/* Custom Form Focus States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(69, 130, 81, 0.2);
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-forest-800 {
        background-color: #0a1a0d !important;
    }
    
    .text-forest-600 {
        color: #1c4022 !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .card-lift:hover {
        transform: none;
    }
}

/* Wide Screen Optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .min-h-screen {
        min-height: auto;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-offwhite: #1a1a1a;
        --color-forest-50: #0a1a0d;
    }
}
