/* ==========================================================================
   Inurum Technologies — Homepage Hero Product Carousel Stylesheet
   ========================================================================== */

:root {
  --hero-card-w: 320px;
  --hero-card-h: 460px;
  --color-grid: oklch(0.63 0.14 75 / 0.08);
}

/* Hero Section Base */
.inurum-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  background-color: var(--surface-l0);
}

.inurum-hero-section .blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

/* Subtle background radial glow */
.inurum-hero-section::before {
  content: "";
  position: absolute;
  top: 25%;
  right: 10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, oklch(0.63 0.14 75 / 0.05) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}

/* Left Content Styles */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-content .eyebrow-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #1a1a2e;
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid rgba(216, 132, 0, 0.35);
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.hero-content .eyebrow-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-cta);
  box-shadow: 0 0 10px var(--color-cta), 0 0 20px rgba(216,132,0,0.4);
  flex-shrink: 0;
}


.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero-content h1 span.highlight {
  color: var(--color-cta);
  position: relative;
}

.hero-content .hero-desc {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: var(--space-2xl);
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

/* Carousel Control Area on Left Side */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  user-select: none;
}

.carousel-arrows {
  display: flex;
  gap: 12px;
}

.arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-outline);
  background: var(--surface-l2);
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1.1rem;
}

.arrow-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.arrow-btn:active {
  transform: translateY(0) scale(0.95);
}

.carousel-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator-dot.active {
  width: 24px;
  border-radius: 4px;
  background-color: var(--color-cta);
  opacity: 1;
}

/* Right Side: 3D overlapping Carousel Deck */
.hero-carousel-column {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  height: 520px;
  width: 100%;
  position: relative;
}

.carousel-deck {
  position: relative;
  width: var(--hero-card-w);
  height: var(--hero-card-h);
  transform-style: preserve-3d;
}

/* Individual 3D Ad Cards */
.carousel-card {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--hero-card-w);
  height: var(--hero-card-h);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.65s ease, z-index 0s;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  cursor: pointer;
}

/* Glass & Glossy Premium overlays */
.carousel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
  z-index: 10;
}

/* Ambient glow matching the card product's theme */
.card-ambient-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

/* Card Header */
.card-header {
  position: relative;
  z-index: 3;
}

.card-header .prod-category {
  font-family: 'Fira Code', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 2px;
}

.card-header h3 {
  font-family: 'Fira Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.card-header p {
  font-size: 0.75rem;
  opacity: 0.75;
  font-weight: 500;
}

/* Center Visual Area */
.card-visual-area {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  z-index: 2;
  transform: translateZ(30px);
  /* 3D pop effect */
  transition: transform 0.5s ease;
}

.card-visual-area img {
  max-height: 220px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.22));
  transition: transform 0.5s ease;
}

/* Feature tags at bottom of cards */
.card-footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.feat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
}

.feat-tag i,
.feat-tag svg {
  width: 12px;
  height: 12px;
  opacity: 0.8;
}

/* Card Themes & Color Schemes */
/* 1. Dashcam - Slate Steel Dark */
.carousel-card[data-product="dashcam"] {
  background: linear-gradient(145deg, #181d26 0%, #0d1016 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.carousel-card[data-product="dashcam"] h3 {
  color: #fff;
}

.carousel-card[data-product="dashcam"] .card-ambient-glow {
  background: #3b82f6;
}

.carousel-card[data-product="dashcam"] .card-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.carousel-card[data-product="dashcam"] .feat-tag {
  color: rgba(255, 255, 255, 0.7);
}

.carousel-card[data-product="dashcam"] .prod-category {
  color: #60a5fa;
}

/* 2. GPS Tracker - Deep Blue Nebula */
.carousel-card[data-product="gps"] {
  background: linear-gradient(145deg, #10203e 0%, #081024 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.carousel-card[data-product="gps"] h3 {
  color: #fff;
}

.carousel-card[data-product="gps"] .card-ambient-glow {
  background: #10b981;
}

.carousel-card[data-product="gps"] .card-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.carousel-card[data-product="gps"] .feat-tag {
  color: rgba(255, 255, 255, 0.7);
}

.carousel-card[data-product="gps"] .prod-category {
  color: #34d399;
}

/* 3. Attendance System - Mint Sage Industrial */
.carousel-card[data-product="attendance"] {
  background: linear-gradient(145deg, #092c24 0%, #041410 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.carousel-card[data-product="attendance"] h3 {
  color: #fff;
}

.carousel-card[data-product="attendance"] .card-ambient-glow {
  background: #00f2fe;
}

.carousel-card[data-product="attendance"] .card-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.carousel-card[data-product="attendance"] .feat-tag {
  color: rgba(255, 255, 255, 0.7);
}

.carousel-card[data-product="attendance"] .prod-category {
  color: #00f2fe;
}

/* 4. 8Bottle - Cosmic Royal Indigo */
.carousel-card[data-product="bottle"] {
  background: linear-gradient(145deg, #1a163a 0%, #0e0a24 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.carousel-card[data-product="bottle"] h3 {
  color: #fff;
}

.carousel-card[data-product="bottle"] .card-ambient-glow {
  background: #a855f7;
}

.carousel-card[data-product="bottle"] .card-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.carousel-card[data-product="bottle"] .feat-tag {
  color: rgba(255, 255, 255, 0.7);
}

.carousel-card[data-product="bottle"] .prod-category {
  color: #c084fc;
}

/* 5. SmartStarter - Crimson Amber Automotive */
.carousel-card[data-product="starter"] {
  background: linear-gradient(145deg, #4c1d05 0%, #200b00 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.carousel-card[data-product="starter"] h3 {
  color: #fff;
}

.carousel-card[data-product="starter"] .card-ambient-glow {
  background: #f59e0b;
}

.carousel-card[data-product="starter"] .card-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.carousel-card[data-product="starter"] .feat-tag {
  color: rgba(255, 255, 255, 0.7);
}

.carousel-card[data-product="starter"] .prod-category {
  color: #fbbf24;
}

/* 6. SmartShaker - Techno Cyan retail */
.carousel-card[data-product="shaker"] {
  background: linear-gradient(145deg, #063942 0%, #021a1f 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.carousel-card[data-product="shaker"] h3 {
  color: #fff;
}

.carousel-card[data-product="shaker"] .card-ambient-glow {
  background: #06b6d4;
}

.carousel-card[data-product="shaker"] .card-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.carousel-card[data-product="shaker"] .feat-tag {
  color: rgba(255, 255, 255, 0.7);
}

.carousel-card[data-product="shaker"] .prod-category {
  color: #22d3ee;
}

/* 7. SmartSign - Safety Roadside Gold */
.carousel-card[data-product="sign"] {
  background: linear-gradient(145deg, #101622 0%, #050810 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.carousel-card[data-product="sign"] h3 {
  color: #fff;
}

.carousel-card[data-product="sign"] .card-ambient-glow {
  background: #ffb703;
}

.carousel-card[data-product="sign"] .card-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.carousel-card[data-product="sign"] .feat-tag {
  color: rgba(255, 255, 255, 0.7);
}

.carousel-card[data-product="sign"] .prod-category {
  color: #ffb703;
}


/* ── 3D Card Deck Overlapping Positions ── */

/* Position 0 (Center active card) */
.carousel-card[data-pos="0"] {
  transform: translate3d(0, 0, 80px) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.carousel-card[data-pos="0"] .card-visual-area {
  transform: translateZ(40px) scale(1.05);
}

/* Position 1 (Right offset) */
.carousel-card[data-pos="1"] {
  transform: translate3d(140px, 12px, -30px) rotateY(-18deg) scale(0.85);
  opacity: 0.88;
  z-index: 5;
  pointer-events: auto;
}

/* Position 2 (Far Right offset) */
.carousel-card[data-pos="2"] {
  transform: translate3d(240px, 24px, -110px) rotateY(-30deg) scale(0.72);
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

/* Position -1 (Left offset) */
.carousel-card[data-pos="-1"] {
  transform: translate3d(-140px, 12px, -30px) rotateY(18deg) scale(0.85);
  opacity: 0.88;
  z-index: 5;
  pointer-events: auto;
}

/* Position -2 (Far Left offset) */
.carousel-card[data-pos="-2"] {
  transform: translate3d(-240px, 24px, -110px) rotateY(30deg) scale(0.72);
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

/* Hidden cards (Back of deck) */
.carousel-card[data-pos="hidden"] {
  transform: translate3d(0, 40px, -200px) rotateY(0deg) scale(0.5);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Lift on Hover (Active card only) */
.carousel-card[data-pos="0"]:hover {
  transform: translate3d(0, -15px, 110px) rotateY(0deg) scale(1.03);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.36), 0 0 30px oklch(0.63 0.14 75 / 0.1);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .hero-grid {
    gap: 20px;
  }

  /* Scale down spacing for cards on smaller desktops */
  .carousel-card[data-pos="1"] {
    transform: translate3d(110px, 10px, -30px) rotateY(-18deg) scale(0.82);
  }

  .carousel-card[data-pos="2"] {
    transform: translate3d(180px, 20px, -100px) rotateY(-30deg) scale(0.7);
  }

  .carousel-card[data-pos="-1"] {
    transform: translate3d(-110px, 10px, -30px) rotateY(18deg) scale(0.82);
  }

  .carousel-card[data-pos="-2"] {
    transform: translate3d(-180px, 20px, -100px) rotateY(30deg) scale(0.7);
  }
}

@media (max-width: 1024px) {
  .inurum-hero-section {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-content .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions-row {
    justify-content: center;
    width: 100%;
  }

  .carousel-controls {
    justify-content: center;
    width: 100%;
  }

  .hero-carousel-column {
    height: 480px;
  }
}

@media (max-width: 640px) {
  :root {
    --hero-card-w: 280px;
    --hero-card-h: 420px;
  }

  .inurum-hero-section {
    padding-top: 100px;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .hero-actions-row .btn {
    width: 100%;
  }

  .hero-carousel-column {
    height: 440px;
    overflow: hidden;
  }

  /* Reduce 3D side spreads to fit mobile screens without clipping */
  .carousel-card[data-pos="1"] {
    transform: translate3d(50px, 8px, -40px) rotateY(-12deg) scale(0.8);
    opacity: 0.7;
  }

  .carousel-card[data-pos="2"] {
    transform: translate3d(90px, 16px, -100px) rotateY(-20deg) scale(0.68);
    opacity: 0.3;
  }

  .carousel-card[data-pos="-1"] {
    transform: translate3d(-50px, 8px, -40px) rotateY(12deg) scale(0.8);
    opacity: 0.7;
  }

  .carousel-card[data-pos="-2"] {
    transform: translate3d(-90px, 16px, -100px) rotateY(20deg) scale(0.68);
    opacity: 0.3;
  }
}