/* Custom styles for Fiesta Mix */

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

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

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

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

/* Selection color */
::selection {
    background: rgba(184, 148, 78, 0.3);
    color: #f5f0e8;
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(184, 148, 78, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Mobile link hover effect */
.mobile-link {
    position: relative;
    padding-left: 0;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b8944e, #c4726a);
    transition: width 0.3s ease;
}

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

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

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

/* Gold gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #d4b06a, #b8944e, #c4726a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(184, 148, 78, 0.15);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #111111 inset !important;
    -webkit-text-fill-color: #d4cab8 !important;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #b8944e;
    outline-offset: 2px;
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Loading state for form */
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23918070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(184, 148, 78, 0.03) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 50%, rgba(196, 114, 106, 0.03) 0%, transparent 50%);
}
