/* ===== Custom Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.1); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.2); }
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== Scroll Reveal ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease-out forwards;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0c0c0e;
}

::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

/* ===== Navigation ===== */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* Navbar states */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(63, 63, 70, 0.2);
}

#navbar.menu-open {
  background: #0c0c0e;
}

/* ===== Mobile Menu ===== */
#mobile-menu-btn.open .hamburger-lines span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

#mobile-menu-btn.open .hamburger-lines span:nth-child(2) {
  opacity: 0;
}

#mobile-menu-btn.open .hamburger-lines span:nth-child(3) {
  top: 8px;
  width: 100%;
  transform: rotate(-45deg);
}

#mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-nav-link:nth-child(6) { transition-delay: 0.35s; }

/* ===== Product Cards ===== */
.product-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Stagger animation for product grid */
.product-card:nth-child(1) { transition-delay: 0.0s; }
.product-card:nth-child(2) { transition-delay: 0.05s; }
.product-card:nth-child(3) { transition-delay: 0.1s; }
.product-card:nth-child(4) { transition-delay: 0.15s; }
.product-card:nth-child(5) { transition-delay: 0.2s; }
.product-card:nth-child(6) { transition-delay: 0.25s; }
.product-card:nth-child(7) { transition-delay: 0.3s; }
.product-card:nth-child(8) { transition-delay: 0.35s; }
.product-card:nth-child(9) { transition-delay: 0.4s; }
.product-card:nth-child(10) { transition-delay: 0.45s; }
.product-card:nth-child(11) { transition-delay: 0.5s; }
.product-card:nth-child(12) { transition-delay: 0.55s; }

/* ===== Lightbox ===== */
#lightbox {
  transition: opacity 0.3s ease;
}

#lightbox.active {
  display: flex;
  opacity: 1;
}

#lightbox-img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Form Styles ===== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===== Scroll To Top ===== */
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===== Page Header (sub-pages) ===== */
.page-header {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 12, 14, 0.95), rgba(39, 39, 42, 0.9));
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #0c0c0e, transparent);
}

/* ===== Spec Cards ===== */
.spec-card {
  background: rgba(39, 39, 42, 0.5);
  border: 1px solid rgba(63, 63, 70, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s ease;
}

.spec-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.05);
  transform: translateY(-4px);
}

/* ===== Store Card ===== */
.store-card {
  background: rgba(39, 39, 42, 0.5);
  border: 1px solid rgba(63, 63, 70, 0.3);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s ease;
}

.store-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* ===== Contact Info Card ===== */
.contact-info-card {
  background: rgba(39, 39, 42, 0.3);
  border: 1px solid rgba(63, 63, 70, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(39, 39, 42, 0.5);
}

/* ===== Selection Color ===== */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
}

/* ===== Loading Shimmer ===== */
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ===== Focus Visible ===== */
:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
