/* Custom Styles for ReAligned */

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

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

::-webkit-scrollbar-track {
    background: #FAF7F5;
}

::-webkit-scrollbar-thumb {
    background: #9b2335;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #701423;
}

/* Navigation transitions */
#navbar.scrolled {
    background: rgba(250, 247, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

#navbar.scrolled .logo {
    color: #9b2335;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.4s; }

/* Button hover effects */
a[href="#collection"],
a[href="#visit"] {
    position: relative;
    overflow: hidden;
}

a[href="#collection"]::after,
a[href="#visit"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

a[href="#collection"]:hover::after,
a[href="#visit"]:hover::after {
    width: 80%;
}

/* Image hover effects */
.group:hover img {
    transform: scale(1.05);
}

/* Form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(155, 35, 53, 0.1);
}

/* Loading animation for images */
img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

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

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
    }
}
