/* ===== Custom Styles for MG Brew ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D0B09;
}
::-webkit-scrollbar-thumb {
  background: #3A3025;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C0603A;
}

/* Selection color */
::selection {
  background: rgba(192, 96, 58, 0.3);
  color: #F5E6D3;
}

/* ===== Navbar ===== */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #E8956A;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(13, 11, 9, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245, 230, 211, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animations */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.mobile-menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger animation */
.menu-line {
  transition: all 0.3s ease;
}
#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero-gradient {
  background: linear-gradient(135deg, #0D0B09 0%, #1A1612 50%, #0D0B09 100%);
}

/* ===== Product Cards ===== */
.product-card {
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(192,96,58,0), rgba(192,96,58,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.5s ease;
  pointer-events: none;
}
.product-card:hover::before {
  background: linear-gradient(135deg, rgba(192,96,58,0.3), rgba(212,168,75,0.1));
}

/* ===== Feature Cards ===== */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== Button Glow ===== */
.btn-glow:hover {
  box-shadow: 0 0 40px rgba(192, 96, 58, 0.4), 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* ===== Input Focus ===== */
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(192, 96, 58, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(192, 96, 58, 0.1) !important;
}

/* ===== Fade In Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Stagger Children ===== */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .font-display {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* ===== Print ===== */
@media print {
  nav, #contactForm button, #menuBtn {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
