/* Custom styles for Penny's Treasures & Gifts */

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

/* Floating card animations */
.floating-card {
    animation: float 3s ease-in-out infinite;
}

.floating-delay-1 {
    animation-delay: 0.5s;
}

.floating-delay-2 {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Feature card hover effect */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(253, 248, 244, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(107, 33, 168, 0.08) !important;
}

.nav-scrolled .nav-link {
    color: rgb(126, 34, 206) !important;
}

.nav-scrolled .font-serif {
    color: rgb(88, 28, 135) !important;
}

/* Mobile menu */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, rgb(168, 85, 247), rgb(251, 191, 36));
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.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;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(to right, rgb(147, 51, 234), rgb(245, 158, 11));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: rgb(253, 248, 244);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgb(200, 147, 254), rgb(251, 191, 36));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, rgb(168, 85, 247), rgb(251, 191, 36));
}

/* Selection color */
::selection {
    background: rgb(233, 213, 255);
    color: rgb(88, 28, 135);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgb(253, 248, 244) inset !important;
    -webkit-text-fill-color: rgb(255, 255, 255) !important;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid rgb(251, 191, 36);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .floating-card, button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
