/**
 * Homepage dynamic styles
 * Developer: Majedul Islam
 */

/* ============ HERO SLIDER ============ */
.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 80px 20px;
}
.hero-slider .slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 2;
}
.hero-slider .slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.1);
  z-index: 0;
}
.hero-slider .container { position: relative; z-index: 1; }

.hero-bg-shapes {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-bg-shapes .shape {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35;
  background: #fff;
}
.shape-1 { width: 450px; height: 450px; top: -120px; left: -120px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 320px; height: 320px; bottom: -80px; right: 12%; animation: float 10s ease-in-out infinite 2s; }
.shape-3 { width: 220px; height: 220px; top: 40%; right: 32%; animation: float 6s ease-in-out infinite 1s; }
@keyframes float {
  0%,100% { transform: translate(0,0) }
  50%     { transform: translate(30px,-30px) }
}

.hero-text { max-width: 720px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.22);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
}
.hero-slider h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.hero-slider p {
  font-size: clamp(16px, 2vw, 20px);
  opacity: .96;
  margin-bottom: 34px;
  line-height: 1.7;
  max-width: 620px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-actions .btn-primary {
  background: #fff;
  color: #0ea5e9;
  padding: 16px 34px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.hero-actions .btn-outline {
  display: inline-block;
  padding: 16px 34px;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: background .2s, color .2s;
}
.hero-actions .btn-outline:hover {
  background: #fff;
  color: #0ea5e9;
}
.hero-contact {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 14px; opacity: .9;
}

/* Slide navigation */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.slide-nav:hover { background: rgba(255,255,255,.35); }
.slide-nav.prev { left: 20px; }
.slide-nav.next { right: 20px; }

.slide-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.slide-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none; cursor: pointer;
  transition: background .2s, width .2s;
}
.slide-dots .dot.active {
  background: #fff;
  width: 32px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .hero-slider { min-height: 520px; }
  .slide-nav { width: 40px; height: 40px; font-size: 24px; }
  .slide-nav.prev { left: 8px; }
  .slide-nav.next { right: 8px; }
}

/* ============ FEATURES ============ */
.features-section { padding: 100px 20px; background: var(--surface); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  padding: 40px 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,.1);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  font-size: 52px;
  margin-bottom: 20px;
  display: inline-block;
  padding: 18px;
  background: linear-gradient(135deg, rgba(14,165,233,.1), rgba(16,185,129,.1));
  border-radius: 50%;
}
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ============ CATEGORIES ============ */
.categories-section { padding: 100px 20px; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.category-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  padding: 40px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.category-card::after {
  content: '→';
  position: absolute;
  bottom: 16px; right: 20px;
  font-size: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all .3s;
  color: var(--primary);
}
.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(14,165,233,.18);
}
.category-card:hover::after { opacity: 1; transform: translateX(0); }
.category-icon { font-size: 56px; margin-bottom: 16px; }
.category-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.category-count { font-size: 13px; color: var(--muted); }

/* ============ PRODUCTS ============ */
.products-section { padding: 100px 20px; background: var(--surface); }
.view-all-wrap { text-align: center; margin-top: 50px; }

/* ============ ABOUT STRIP ============ */
.about-strip {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}
[data-theme="dark"] .about-strip {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .about-inner { grid-template-columns: 1fr; gap: 40px; } }
.about-text .eyebrow {
  display: inline-block;
  background: var(--bg);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.about-text h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.about-excerpt { color: var(--muted); line-height: 1.8; margin-bottom: 30px; font-size: 16px; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-stats .stat {
  background: var(--bg);
  padding: 30px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.about-stats .stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.stat-icon { font-size: 30px; margin-bottom: 8px; }
.about-stats .stat strong {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1;
}
.about-stats .stat span { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ============ CTA ============ */
.cta-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.cta-section::before { width: 400px; height: 400px; top: -200px; left: -200px; }
.cta-section::after { width: 300px; height: 300px; bottom: -150px; right: -150px; }
.cta-inner { position: relative; z-index: 2; }
.cta-inner h2 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; margin-bottom: 16px; letter-spacing: -1px; }
.cta-inner p { font-size: 18px; opacity: .95; margin-bottom: 34px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-section .btn-primary {
  background: #fff;
  color: #0ea5e9;
  padding: 16px 40px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.cta-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

/* ============ SECTION HEAD ============ */
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.15;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============ PRODUCT CARD ENHANCE ============ */
.product-card {
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,.12);
}