/* Custom styles for Tuscany Jewelers */

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

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

/* Navigation transitions */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #a73416;
    transition: width 0.3s ease;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(254, 253, 251, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-text {
    color: #1c1917 !important;
}

.navbar-scrolled .nav-subtext {
    color: #78716c !important;
}

.navbar-scrolled .nav-line {
    background-color: #1c1917 !important;
}

.navbar-scrolled .nav-link {
    color: #44403c !important;
}

.navbar-transparent .nav-text {
    color: #1c1917 !important;
}

.navbar-transparent .nav-subtext {
    color: #78716c !important;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

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

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Mobile menu button active state */
.menu-btn-active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-btn-active .nav-line:nth-child(2) {
    opacity: 0;
}

.menu-btn-active .nav-line:nth-child(3) {
    width: 100%;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal-left {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-left[data-reveal] {
        opacity: 0;
        transform: translateX(-24px);
    }
    
    .reveal-right {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-right[data-reveal] {
        opacity: 0;
        transform: translateX(24px);
    }
}

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

/* Selection color */
::selection {
    background-color: #f0ab8a;
    color: #3c1008;
}

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

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

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

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

/* Contact form styles */
.form-input {
    border: 1px solid #d6d3d1;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: #a73416;
    box-shadow: 0 0 0 3px rgba(167, 52, 22, 0.1);
    outline: none;
}

.form-input::placeholder {
    color: #a8a29e;
}

/* Success message */
.success-message {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
