/* ===== Custom Styles for Mingos on Main ===== */

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

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

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-fade-in-up {
    animation: fade-in-up 0.7s ease-out forwards;
}

.animate-fade-in-up-delay {
    animation: fade-in-up 0.7s ease-out 0.15s forwards;
    opacity: 0;
}

.animate-fade-in-up-delayed {
    animation: fade-in-up 0.7s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-up-delayed-2 {
    animation: fade-in-up 0.7s ease-out 0.45s forwards;
    opacity: 0;
}

.animate-bounce-slow {
    animation: bounce-slow 2.5s ease-in-out infinite;
}

/* Scroll-triggered animation states */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays for child elements */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ===== Navbar scroll state ===== */
.navbar-scrolled {
    background: rgba(4, 10, 16, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #08141f;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2c5a7c;
}

/* ===== Selection color ===== */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: #fff;
}

/* ===== Focus styles ===== */
:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* ===== Input autofill override ===== */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0d1f30 inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* ===== Mobile menu transitions ===== */
#mobileMenu {
    animation: slide-in-top 0.3s ease-out;
}

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

/* ===== Product card image hover ===== */
.group:hover .group-hover\:scale-105 {
    transition: transform 0.5s ease;
}

/* ===== Button ripple effect on hover ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Gradient text utility ===== */
.text-gradient-mint {
    background: linear-gradient(135deg, #86efac, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Subtle pattern for sections ===== */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(34, 197, 94, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ===== Card hover glow ===== */
.glow-mint:hover {
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.15);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 640px) {
    .animate-fade-in-up-delay,
    .animate-fade-in-up-delayed,
    .animate-fade-in-up-delayed-2 {
        animation-delay: 0s;
    }
}

/* ===== Print styles ===== */
@media print {
    nav, #contact, .animate-float, .animate-float-delayed {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
