/* Custom styles for Studio's Closet Boutique */

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

/* Selection color */
::selection {
    background-color: #ff906e;
    color: #ffffff;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9fa2a8;
}

/* Navigation transition */
#navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Image hover effects */
.group img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

a[href="#visit"]:hover::after,
a[href="#collection"]:hover::after {
    transform: translateX(0);
}

/* Fade in animations for scroll sections */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff6b3f;
    outline-offset: 2px;
}

/* Ensure all text has proper contrast */
.text-charcoal-600 {
    color: #4a4e56;
}

.text-charcoal-500 {
    color: #5f636b;
}

.text-charcoal-400 {
    color: #7a7e87;
}

/* Image aspect ratios */
.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}

.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* Responsive typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
        line-height: 1.2;
    }
}

@media (min-width: 1024px) {
    .font-serif {
        font-size: 3.75rem;
        line-height: 1.1;
    }
}

/* Subtle line decorations */
.divider-line {
    width: 60px;
    height: 1px;
    background-color: #ff906e;
}
