/* Custom CSS for The Scissortail Co. */

/* Color Palette */
:root {
    --plum-900: #1a0a2e;
    --plum-800: #2d1b4e;
    --plum-700: #3d2b5f;
    --plum-600: #4a3674;
    --plum-500: #5c4a8a;
    --plum-400: #7c6ba8;
    --plum-200: #d4cce8;
    --plum-100: #ede9f5;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-600: #d97706;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-900: #1c1917;
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(-3deg);
    }
}

@keyframes pulse-delayed {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

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

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
}

.animate-pulse-delayed {
    animation: pulse-delayed 3s ease-in-out infinite;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Scroll Effect */
nav.scrolled {
    background: rgba(26, 10, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--plum-500);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--plum-600);
}

/* Input Focus Styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Button Hover Effects */
button,
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image Hover Zoom */
img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Hover Effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Validation Styles */
input:invalid:focus,
textarea:invalid:focus {
    border-color: #ef4444;
}

input:valid:focus,
textarea:valid:focus {
    border-color: var(--amber-500);
}

/* Print Styles */
@media print {
    nav,
    #contact-form,
    .animate-float,
    .animate-float-delayed,
    .animate-pulse,
    .animate-pulse-delayed {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    section {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-plum-900,
    .bg-stone-900 {
        background-color: #000 !important;
    }

    .text-plum-900,
    .text-stone-900 {
        color: #000 !important;
    }

    .text-white,
    .text-amber-400 {
        color: #fff !important;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--amber-500);
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background-color: var(--amber-500);
    color: var(--stone-900);
}
