/* ========================================
   Aris Deli Grocery — Custom Styles
   ======================================== */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(13, 148, 136, 0.3);
  color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #14b8a6;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2dd4bf;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
  background-color: rgba(8, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #14b8a6;
  transition: width 0.3s ease, left 0.3s ease;
}

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

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
  position: relative;
  padding-left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-link:hover {
  color: #5eead4;
  padding-left: 0.75rem;
}

.mobile-link:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

/* ========================================
   Reveal Animations (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

/* ========================================
   Hover effects for product cards
   ======================================== */
.group:hover .group-hover\\:scale-110 {
  transform: scale(1.1);
}

/* ========================================
   Button focus states
   ======================================== */
a:focus-visible, button:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
  border-radius: 9999px;
}

/* ========================================
   Image loading placeholder
   ======================================== */
img {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  min-height: 200px;
}

/* ========================================
   Smooth image transitions
   ======================================== */
img {
  transition: filter 0.3s ease;
}

img:hover {
  filter: brightness(1.02);
}

/* ========================================
   Decorative line animations
   ======================================== */
@keyframes growWidth {
  from { width: 0; }
  to { width: 48px; }
}

/* ========================================
   Responsive adjustments
   ======================================== */
@media (max-width: 767px) {
  #hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* ========================================
   Print styles
   ======================================== */
@media print {
  #navbar, #menuBtn, .reveal {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
