/* Custom styles for The Kitty Kat Shack */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f7f0;
}
::-webkit-scrollbar-thumb {
    background: #3d8b3d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d6e2d;
}

/* Selection color */
::selection {
    background: #3d8b3d;
    color: #fdfdf8;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Form styles */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d9ecd9;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #1d4a1d;
    background: #fdfdf8;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #3d8b3d;
    box-shadow: 0 0 0 3px rgba(61, 139, 61, 0.15);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #7fbf7f;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success message */
.form-success {
    display: none;
    background: #d9ecd9;
    border: 2px solid #3d8b3d;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
.form-success.show {
    display: block;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Card hover lift */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
