/* ═══════════════════════════════════════════
   Stoc Products — Custom Styles
   ═══════════════════════════════════════════ */

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

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

/* Selection color */
::selection {
    background-color: #065F46;
    color: #FAFAF5;
}

/* ═══════════════════════════════════════════
   Floating animations
   ═══════════════════════════════════════════ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* ═══════════════════════════════════════════
   Navbar active state
   ═══════════════════════════════════════════ */
.nav-scrolled {
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* ═══════════════════════════════════════════
   Mobile menu transitions
   ═══════════════════════════════════════════ */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* ═══════════════════════════════════════════
   Form focus ring custom
   ═══════════════════════════════════════════ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

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

/* ═══════════════════════════════════════════
   Service card hover glow
   ═══════════════════════════════════════════ */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

/* ═══════════════════════════════════════════
   Geometric accent animations
   ═══════════════════════════════════════════ */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* ═══════════════════════════════════════════
   Responsive adjustments
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .animate-float {
        animation: float 8s ease-in-out infinite;
    }
    .animate-float-delay {
        animation: float-delay 7s ease-in-out infinite;
        animation-delay: 2s;
    }
}
