/* ===== Custom Styles for Guanajuato Mix ===== */

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

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.scroll-reveal.revealed:nth-child(2) {
    transition-delay: 0.1s;
}

.scroll-reveal.revealed:nth-child(3) {
    transition-delay: 0.2s;
}

/* ===== Navbar ===== */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-link {
    color: rgba(30, 41, 59, 0.8) !important;
}

.navbar-scrolled .nav-link:hover {
    color: #0d9488 !important;
}

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

/* ===== Feature Cards ===== */
.feature-card {
    transition: all 0.4s ease;
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.03), rgba(20, 184, 166, 0.08));
}

.feature-card:hover .w-14 {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.4s ease;
}

/* ===== Menu Cards ===== */
.feature-card,
.bg-white.rounded-3xl {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Gallery Images ===== */
.rounded-2xl img,
.rounded-3xl img {
    will-change: transform;
}

/* ===== Buttons ===== */
button, a[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== Selection ===== */
::selection {
    background: rgba(20, 184, 166, 0.2);
    color: #134e4a;
}

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

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

/* ===== Back to Top ===== */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px);
}

/* ===== Form Focus States ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

@media (min-width: 769px) {
    #mobile-menu {
        display: none !important;
    }
}
