/* =======================================
   Color Theme Variables
======================================= */
:root {
  --primary-color: #ffffff;   /* white background / header/footer */
  --secondary-color: #2563eb; /* deeper blue accent */
  --accent-color: #1e40af;    /* darker blue for text/buttons */
  --tertiary-color: #10b981;  /* emerald green for highlights */
}

/* =======================================
   Body & Typography
======================================= */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--primary-color);
  color: var(--accent-color);
}

/* =======================================
   Header
======================================= */
header a {
  text-decoration: none;
}

header nav a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s;
}

header nav a:hover::before {
  width: 100%;
}

/* Mobile menu transition */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* =======================================
   Hero Gradient
======================================= */
.hero-gradient {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #e0f2fe 50%, var(--primary-color) 100%);
}

/* =======================================
   Buttons
======================================= */
.btn-primary {
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: var(--accent-color);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--accent-color);
  border: 1px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

/* =======================================
   Card Shadows
======================================= */
.card {
  background-color: #fff;
  border: 1px solid #f0f0f0;
  color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

/* =======================================
   Hero Section Animations
======================================= */
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stats {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 1s forwards;
}

/* Enhanced button hover effects */
.hero-cta-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.hero-cta-btn:hover::before {
  left: 100%;
}

.hero-cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Interactive stats */
.stat-item {
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-item:hover .stat-icon {
  transform: scale(1.15) rotate(7deg);
  box-shadow: 0 12px 35px rgba(255,255,255,0.4);
}

.stat-icon {
  transition: all 0.3s ease;
}

/* =======================================
   Footer
======================================= */
footer a {
  transition: color 0.3s;
}

/* Mobile specific tweaks for products page */
@media (max-width: 640px) {
  /* Reduce padding in product cards */
  .group > div.p-6 {
    padding: 1rem;
  }

  /* Adjust product image height */
  .group > div.relative.overflow-hidden > div.w-full.h-48 {
    height: 12rem; /* 192px */
  }

  /* Adjust button full width on mobile */
  .group a.inline-flex {
    width: 100%;
    justify-content: center;
  }
}

footer a:hover {
  color: var(--accent-color);
}
