/* ============================================================
   DRIVURA Products — Layout & Page Styles
   Grid systems, sections, responsive behavior
   ============================================================ */

/* ── Section Layouts ── */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.section--dark { background: var(--surface-dark); }
.section--darker { background: var(--surface-body); }

/* ── Hero Section ── */
.hero {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 110px;
  padding-bottom: 30px;
  box-sizing: border-box;
}

/* Ensure container inside hero fills width */
.hero .container {
  width: 100%;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0, 180, 216, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 80%, rgba(197, 149, 58, 0.04) 0%, transparent 50%);
  z-index: 1;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero__bg-speedo {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  opacity: 0.04;
  z-index: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  justify-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ── Left Column: Showcase Stage Card ── */
.hero__showcase-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 440px;
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--space-4) var(--space-4);
  box-shadow: var(--shadow-xl), 0 0 50px rgba(0, 0, 0, 0.6);
  z-index: 2;
  margin: 0 auto;
  animation: floatIn 1.2s var(--ease-out) 0.4s both;
}

/* Ambient Arch Glow Behind Product */
.hero__stage-halo {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  border-radius: 50% 50% 0 0;
  border: 1.5px solid rgba(0, 180, 216, 0.25);
  background: radial-gradient(ellipse at center 40%, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* 3D Dark Metallic Stage Podium with Cyan Ring Glow */
.hero__stage-podium {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 48px;
  background: linear-gradient(180deg, #1A1A24 0%, #0D0D14 100%);
  border-radius: 50% / 30%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 1;
}

.hero__podium-ring {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--brand-primary);
  box-shadow: 0 0 20px var(--brand-primary), inset 0 0 15px var(--brand-primary);
  opacity: 0.85;
}

/* Card Arrow Buttons (Left & Right inside card) */
.hero__card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: all var(--duration-fast) var(--ease-in-out);
}

.hero__card-arrow:hover {
  background: var(--brand-primary);
  color: var(--surface-body);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-glow-cyan);
}

.hero__card-arrow--prev { left: var(--space-4); }
.hero__card-arrow--next { right: var(--space-4); }

/* Slides Container & Images */
.hero__carousel-slides {
  position: relative;
  width: 100%;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9) translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

.hero__slide--active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.hero__slide img {
  max-height: 240px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.7));
  margin-bottom: var(--space-3);
}

.hero__slide-label {
  padding: 4px var(--space-4);
  background: rgba(6, 6, 11, 0.85);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--brand-primary);
  letter-spacing: var(--ls-wide);
  backdrop-filter: blur(8px);
}

/* Dots at bottom of card */
.hero__carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-3);
  z-index: 3;
}

.hero__carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.hero__carousel-dot--active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
}

/* ── Right Column: Hero Text Content ── */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--brand-primary);
  margin-bottom: var(--space-5);
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero__label-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-5);
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero__subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  line-height: var(--lh-body);
  max-width: 520px;
  margin-bottom: var(--space-7);
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: nowrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero__actions .btn { flex-shrink: 0; }

.hero__carousel-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-in-out);
}

.hero__carousel-arrow:hover {
  background: var(--brand-primary);
  color: var(--surface-body);
  border-color: var(--brand-primary);
}

.hero__carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.hero__carousel-dot--active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
}

/* ── Product Showcase Section ── */
.product-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* ── Featured Product Section ── */
.featured-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.featured-product__image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.04) 0%, transparent 70%);
  border-radius: var(--radius-xl);
}

.featured-product__image img {
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4));
}

.featured-product__info { padding: var(--space-4) 0; }

.featured-product__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.featured-product__spec {
  padding: var(--space-4);
  background: var(--surface-card);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
}

.featured-product__spec-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-tertiary);
  margin-bottom: var(--space-1);
}

.featured-product__spec-value {
  font-family: var(--font-mono);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--brand-primary);
}

/* ── CTA Banner ── */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-10);
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.06) 0%, rgba(197, 149, 58, 0.06) 100%);
  border: 1px solid rgba(0, 180, 216, 0.12);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__content { flex: 1; position: relative; z-index: 1; }

.cta-banner__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
}

.cta-banner__text {
  color: var(--text-secondary);
  margin: 0;
}

.cta-banner__actions {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px) translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

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

@keyframes rotateGauge {
  from { transform: rotate(-135deg); }
  to { transform: rotate(45deg); }
}

/* ── Responsive ── */
@media (max-width: 1280px) {
  .hero__product-image img { height: 420px; }
}

@media (max-width: 1024px) {
  :root {
    --section-padding: var(--space-10);
  }

  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__mobile-toggle { display: flex; }

  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 100px;
    padding-bottom: var(--space-8);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
    padding-top: var(--space-4);
  }

  .hero__showcase-card {
    max-width: 360px;
    height: 380px;
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
    align-items: center;
    padding: 0;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__product-carousel {
    max-width: 360px;
    margin: var(--space-4) auto 0;
  }

  .featured-product {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: var(--space-8);
    --gutter: var(--space-4);
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .category-card {
    flex-direction: row;
    padding: var(--space-5);
    text-align: left;
  }

  .category-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    margin-right: var(--space-4);
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer__legal { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 90px;
    padding-bottom: var(--space-6);
  }

  .hero__showcase-card {
    max-width: 320px;
    height: 340px;
  }

  .hero__slide img {
    max-height: 200px;
  }

  .hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__actions { flex-direction: column; align-items: center; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .btn--lg { width: 100%; }
}
