/* Scotty's Treats LLC — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.3);
    color: #f1f5f9;
}

/* Base typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(2, 6, 23, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

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

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* Fade-in animation for scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll.visible:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll.visible:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll.visible:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll.visible:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll.visible:nth-child(5) { transition-delay: 0.5s; }
.animate-on-scroll.visible:nth-child(6) { transition-delay: 0.6s; }

/* Mobile menu */
#mobile-menu {
    pointer-events: none;
}
#mobile-menu.open {
    pointer-events: all;
}

/* Gold accent line */
.gold-line {
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    height: 1px;
}

/* Image hover overlay */
.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.group:hover .img-overlay {
    opacity: 1;
}

/* Input focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .img-overlay,
    .group:hover .img-overlay {
        opacity: 0;
        transition: none;
    }
    .floating-card {
        animation: none;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.2;
    }
}
