/* Custom styles for Perfect Mix Nutricion */

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d9a02e, #e5b43f);
    transition: width 0.3s ease;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

.navbar-scrolled .nav-link {
    color: #102a43 !important;
}

.navbar-scrolled .nav-text {
    color: #102a43 !important;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero floating images animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 6deg)); }
    50% { transform: translateY(-15px) rotate(var(--rotate, 6deg)); }
}

@media (prefers-reduced-motion: no-preference) {
    .absolute.top-32.right-16,
    .absolute.bottom-32.left-16 {
        animation: float 6s ease-in-out infinite;
    }
    
    .absolute.top-48.left-20 {
        animation: float 7s ease-in-out infinite reverse;
    }
}

/* Gradient text animation */
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-transparent.bg-clip-text {
    background-size: 200% 200%;
}

@media (prefers-reduced-motion: no-preference) {
    .text-transparent.bg-clip-text {
        animation: shimmer 4s ease-in-out infinite;
    }
}

/* Button hover effects */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 160, 46, 0.2);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d9a02e, #e5b43f);
    border-radius: 4px;
}

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    max-height: 500px;
}

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

/* Card shadow on hover */
.shadow-md {
    transition: box-shadow 0.3s ease;
}

.shadow-md:hover {
    box-shadow: 0 20px 40px rgba(16, 42, 67, 0.12);
}

/* Pulse animation for dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, #success-message {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
