/* ===== Custom Styles for Mossburg Jewelry & Gifts ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
    background: #e06035;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c94525;
}

/* ===== Navbar ===== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e06035;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

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

/* ===== Mobile Menu ===== */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    position: relative;
}

/* ===== Hero ===== */
#hero {
    position: relative;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .reveal-scale {
        opacity: 0;
        transform: scale(0.95);
    }
    
    .reveal-scale.revealed {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Button ripple effect ===== */
button::after, a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

/* ===== Image hover zoom ===== */
.group img {
    will-change: transform;
}

/* ===== Section transitions ===== */
section {
    position: relative;
}

/* ===== Custom selection color ===== */
::selection {
    background-color: #f9d0b8;
    color: #71271a;
}

/* ===== Loading state for images ===== */
img {
    background-color: #ece4d8;
}

/* ===== Focus visible styles ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #e06035;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ===== Mobile menu animations ===== */
@media (max-width: 767px) {
    #mobile-menu {
        animation: slideDown 0.3s ease forwards;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ===== Card hover effects ===== */
.group:hover .group-hover\:scale-110 {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Glass morphism card ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== Gradient text utility ===== */
.gradient-text {
    background: linear-gradient(135deg, #e06035, #c94525);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Decorative blob ===== */
.blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob 8s ease-in-out infinite;
}

@keyframes blob {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* ===== Input focus animation ===== */
input:focus, textarea:focus {
    background-color: #fefdf8 !important;
    border-color: #ee7d54 !important;
    box-shadow: 0 0 0 3px rgba(224, 96, 53, 0.1);
}

/* ===== Footer link hover ===== */
footer a:hover {
    text-decoration: none;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}
