/* ==========================================================================
   SHIMIO — WELCOME & QR SCAN EXPERIENCE STYLESHEET
   Dark, Mobile-First Luxury Aesthetic with Aakash Custom Cursor & Sparkles
   ========================================================================== */

:root {
  --w-bg-dark: #0A0C10;
  --w-bg-card: rgba(18, 22, 31, 0.85);
  --w-bg-card-hover: rgba(26, 32, 46, 0.92);
  --w-border-card: rgba(0, 229, 153, 0.18);
  --w-border-card-hover: rgba(0, 229, 153, 0.45);
  
  --w-emerald: #00E599;
  --w-emerald-glow: rgba(0, 229, 153, 0.35);
  --w-emerald-deep: #1E4638;
  
  --w-gold: #D4AF37;
  --w-gold-glow: rgba(212, 175, 55, 0.3);
  
  --w-text-main: #FFFFFF;
  --w-text-muted: #94A3B8;
  --w-text-sub: #CBD5E1;
  
  --w-font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --w-font-serif: 'Playfair Display', Georgia, serif;
  
  --w-radius-lg: 24px;
  --w-radius-md: 16px;
  --w-radius-sm: 12px;
  --w-radius-pill: 9999px;
  
  --w-transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --w-transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --w-transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--w-bg-dark);
  color: var(--w-text-main);
  font-family: var(--w-font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* CUSTOM AAKASH CURSOR (DESKTOP / FINE POINTERS) */
@media (pointer:fine) {
  body.has-custom-cursor * {
    cursor: none !important;
  }
}

.cursor, .cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999;
  border-radius: 50%;
  display: block;
}

.cursor {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 229, 153, 0.7);
  box-shadow: 0 0 15px rgba(0, 229, 153, 0.35);
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s, border-color 0.25s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--w-emerald);
  box-shadow: 0 0 10px var(--w-emerald);
  transform: translate(-50%, -50%);
}

.cursor.is-hover {
  width: 58px;
  height: 58px;
  background: rgba(0, 229, 153, 0.15);
  border-color: var(--w-emerald);
}

.cursor.is-down {
  width: 22px !important;
  height: 22px !important;
  border-color: var(--w-emerald) !important;
  box-shadow: 0 0 22px rgba(0, 229, 153, 0.8) !important;
}

.cursor-dot.is-down {
  transform: translate(-50%, -50%) scale(0.6) !important;
}

@media (pointer:coarse) {
  .cursor, .cursor-dot {
    display: none !important;
  }
}

/* Explicit Heading Text Visibility Fix: NEVER allow black text */
h1, h2, h3, h4, h5, h6,
.w-hero__title,
.w-section__title,
.w-card-info__title,
.w-market-card__title {
  color: #FFFFFF !important;
}

/* 3D WebGL Canvas Layer */
#welcomeCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
  touch-action: none;
  opacity: 1;
  visibility: visible;
}

/* Ambient Radial Glow Lighting Layer */
.welcome-ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: 
    radial-gradient(circle at 50% 25%, rgba(0, 229, 153, 0.08) 0%, transparent 65%),
    radial-gradient(circle at 85% 75%, rgba(212, 175, 55, 0.05) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(30, 70, 56, 0.15) 0%, transparent 60%);
}

/* Main Container Wrapper */
.welcome-app {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* HEADER & NAVBAR WITH SOFT FADED BOTTOM EDGE ON BLUR */
.w-nav {
  width: 100%;
  max-width: 1200px;
  padding: 16px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;

  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

/* CLEAN SHIMIO TEXT LOGO ONLY */
.w-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.w-brand__text-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 229, 153, 0.3));
}

.w-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BUTTONS — STRICT SINGLE LINE formatting (white-space: nowrap) */
.w-btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--w-radius-pill);
  background: var(--w-bg-card);
  border: 1px solid var(--w-border-card);
  color: var(--w-text-main);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(16px);
  transition: all var(--w-transition-fast);
}

.w-btn-glass:hover {
  background: var(--w-bg-card-hover);
  border-color: var(--w-emerald);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--w-emerald-glow);
}

.w-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--w-radius-pill);
  background: linear-gradient(135deg, var(--w-emerald) 0%, #00B377 100%);
  color: #04120D;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 20px var(--w-emerald-glow);
  transition: all var(--w-transition-fast);
}

.w-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 229, 153, 0.5);
}

.w-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--w-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--w-text-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(16px);
  transition: all var(--w-transition-fast);
}

.w-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--w-gold);
  color: var(--w-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--w-gold-glow);
}

/* HERO SECTION */
.w-hero {
  width: 100%;
  max-width: 1000px;
  padding: 40px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.w-badge-qr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--w-radius-pill);
  background: rgba(0, 229, 153, 0.08);
  border: 1px solid rgba(0, 229, 153, 0.3);
  color: var(--w-emerald);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 15px var(--w-emerald-glow);
}

.w-badge-qr__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--w-emerald);
  box-shadow: 0 0 8px var(--w-emerald);
}

.w-hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.w-hero__title-prefix {
  display: inline-block;
  color: #FFFFFF !important;
  line-height: 1;
}

@media (min-width: 769px) {
  .w-hero__title-logo {
    height: 2.5rem !important;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    position: relative;
    top: 4px;
    margin-left: 14px;
    filter: drop-shadow(0 0 20px rgba(0, 229, 153, 0.35));
  }
}

.w-gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--w-emerald) 60%, var(--w-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.w-hero__subtitle {
  font-size: clamp(0.98rem, 2.2vw, 1.25rem);
  color: var(--w-text-muted);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 36px;
  font-weight: 400;
}

.w-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

/* 3D INTERACTIVE BUSINESS CARD MOCKUP SECTION */
.w-card-experience {
  width: 100%;
  max-width: 420px;
  perspective: 1000px;
  margin: 10px 0 40px;
}

.w-biz-card {
  width: 100%;
  height: 230px;
  border-radius: var(--w-radius-lg);
  background: linear-gradient(145deg, rgba(20, 26, 38, 0.95), rgba(10, 12, 16, 0.98));
  border: 1px solid var(--w-border-card-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px var(--w-emerald-glow);
  padding: 24px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.w-biz-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.w-biz-card__logo-text {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.w-biz-card__chip {
  width: 36px;
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, #D4AF37 0%, #AA820A 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.w-biz-card__body {
  z-index: 2;
  text-align: left;
}

.w-biz-card__tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--w-emerald);
  font-weight: 700;
  margin-bottom: 4px;
}

.w-biz-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--w-text-main);
  margin-bottom: 2px;
}

.w-biz-card__desc {
  font-size: 0.82rem;
  color: var(--w-text-muted);
}

.w-biz-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.w-biz-card__code {
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

.w-biz-card__hint {
  font-size: 0.75rem;
  color: var(--w-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* INFO SECTION */
.w-section {
  width: 100%;
  max-width: 1100px;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.w-section__title {
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  color: #FFFFFF !important;
}

.w-section__subtitle {
  color: var(--w-text-muted);
  text-align: center;
  font-size: 1.0rem;
  max-width: 580px;
  margin-bottom: 40px;
}

.w-grid-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
}

.w-card-info {
  background: var(--w-bg-card);
  border: 1px solid var(--w-border-card);
  border-radius: var(--w-radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(20px);
  transition: all var(--w-transition-normal);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.w-card-info:hover {
  transform: translateY(-6px);
  border-color: var(--w-border-card-hover);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.8), 0 0 20px var(--w-emerald-glow);
}

.w-card-info__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--w-radius-md);
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--w-emerald);
}

.w-card-info__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF !important;
}

.w-card-info__desc {
  font-size: 0.9rem;
  color: var(--w-text-muted);
  line-height: 1.55;
}

/* SHIMLA LOCAL MARKETS SHOWCASE */
.w-markets-showcase {
  width: 100%;
  margin-top: 30px;
}

.w-markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
}

.w-market-card {
  height: 200px;
  border-radius: var(--w-radius-md);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all var(--w-transition-normal);
}

.w-market-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.w-market-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 16, 0.95) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.w-market-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF !important;
}

.w-market-card__subtitle {
  font-size: 0.78rem;
  color: var(--w-emerald);
  font-weight: 600;
}

.w-market-card:hover {
  transform: translateY(-4px);
  border-color: var(--w-emerald);
}

.w-market-card:hover img {
  transform: scale(1.08);
}

/* STICKY FLOATING ACTION DOCK (MOBILE FIRST EXCELLENCE) */
.w-floating-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(15, 20, 28, 0.94);
  border: 1px solid rgba(0, 229, 153, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 20px var(--w-emerald-glow);
  border-radius: var(--w-radius-pill);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  width: calc(100% - 32px);
  max-width: 440px;
  justify-content: space-around;
}

.w-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--w-text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--w-radius-md);
  transition: all var(--w-transition-fast);
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.w-dock-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform var(--w-transition-spring);
}

.w-dock-btn:hover, .w-dock-btn.active {
  color: var(--w-emerald);
}

.w-dock-btn--primary {
  background: linear-gradient(135deg, var(--w-emerald) 0%, #00B377 100%);
  color: #04120D !important;
  border-radius: var(--w-radius-pill);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.8rem;
  flex-direction: row;
  gap: 6px;
  box-shadow: 0 4px 15px var(--w-emerald-glow);
}

.w-dock-btn--primary svg {
  fill: #04120D;
}

/* FOOTER */
.w-footer {
  width: 100%;
  max-width: 1100px;
  padding: 36px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--w-text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* MODAL STYLES */
.w-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.w-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.w-modal__card {
  width: 100%;
  max-width: 400px;
  background: #11151F;
  border: 1px solid var(--w-emerald);
  border-radius: var(--w-radius-lg);
  padding: 28px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 35px var(--w-emerald-glow);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.w-modal.active .w-modal__card {
  transform: scale(1);
}

.w-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--w-text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.w-modal__close:hover { color: var(--w-text-main); }

/* MOBILE RESPONSIVE UN-CONGESTED LAYOUT ENGINE */
@media (max-width: 768px) {
  .w-nav {
    padding: 12px 16px 20px;
  }
  
  .w-brand__text-logo {
    height: 22px;
  }

  .w-nav__actions .w-btn-glass {
    display: none;
  }

  .w-nav__actions .w-btn-primary {
    padding: 8px 14px;
    font-size: 0.78rem;
    border-radius: var(--w-radius-pill);
    white-space: nowrap;
  }

  .w-hero {
    padding: 24px 16px 20px;
  }

  .w-hero__title {
    font-size: 2.1rem;
    margin-bottom: 16px;
  }

  .w-hero__title-logo {
    height: 2.0rem !important;
  }

  .w-hero__subtitle {
    font-size: 0.92rem;
    margin-bottom: 28px;
  }

  .w-hero__ctas {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 32px;
    gap: 10px;
  }

  .w-hero__ctas .w-btn-primary,
  .w-hero__ctas .w-btn-secondary,
  .w-hero__ctas .w-btn-glass {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    justify-content: center;
  }

  .w-card-experience {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .w-biz-card {
    height: 210px;
    padding: 18px;
  }

  .w-grid-info {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .w-markets-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
