/**
 * home.css
 * Styles for the homepage widgets: stats band, industries served,
 * whychoose us, vdarshan rotation globe, and client testimonial sliders.
 *
 * @package Srushti_Theme
 */

/* ─────────────────────────────────────────────
   STATS BAND MODULE
   ───────────────────────────────────────────── */

.stats-band {
  padding: var(--space-12) 0;
  background: var(--glass-base);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border-top: 1px solid var(--color-border-tech);
  border-bottom: 1px solid var(--color-border-tech);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(204, 0, 0, 0.02), transparent);
  pointer-events: none;
}

.stats-desktop-only {
  display: block;
}

.stats-mobile-marquee {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stat-item {
  text-align: left;
  padding: var(--space-3) 0 var(--space-3) var(--space-6);
  border-left: 2px solid var(--color-border-tech);
  position: relative;
  transition: border-color 0.30s var(--ease-out), padding-left 0.30s var(--ease-out), background-color 0.30s ease;
}

.stat-item:hover {
  border-left-color: var(--color-brand-red-bright);
  padding-left: calc(var(--space-6) + 6px);
  background: rgba(204, 0, 0, 0.02);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1;
  color: var(--color-brand-red);
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: var(--space-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   INDUSTRIES SERVED MODULE
   ───────────────────────────────────────────── */

.industry-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
  position: relative;
  transition: all 0.35s var(--ease-out);
}

.industry-icon {
  width: 44px;
  height: 44px;
  background: rgba(204, 0, 0, 0.05);
  border: 1px solid var(--color-border-tech);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-red);
  margin-bottom: var(--space-5);
  transition: all 0.30s var(--ease-out);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 10, 15, 0.08), 0 0 20px rgba(204, 0, 0, 0.06);
}

.industry-card:hover .industry-icon {
  background: var(--color-brand-red);
  color: #FFFFFF;
  border-color: var(--color-brand-red);
  transform: scale(1.05);
}

.industry-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.industry-desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}



/* ─────────────────────────────────────────────
   VDARSHAN 360 SECTION SPECIALS
   ───────────────────────────────────────────── */

.vdarshan-section {
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(204, 0, 0, 0.03) 0%, transparent 70%),
    var(--color-void);
  overflow: hidden;
  border-top: 1px solid var(--color-border-tech);
  border-bottom: 1px solid var(--color-border-tech);
}

/* Ensure text in the VDarshan section remains perfectly readable */
.vdarshan-section h2,
.vdarshan-section h3,
.vdarshan-section h4,
.vdarshan-section .text-primary,
.vdarshan-section .section-title {
  color: var(--text-primary) !important;
}

.vdarshan-section p,
.vdarshan-section li,
.vdarshan-section .text-secondary,
.vdarshan-section .why-desc,
.vdarshan-section .section-desc {
  color: var(--text-secondary) !important;
}

.vdarshan-globe-wrap {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  pointer-events: none;
}

.vdarshan-globe {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(204, 0, 0, 0.15);
  animation: globeRotate 24s linear infinite;
}

.vdarshan-globe::before {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid rgba(204, 0, 0, 0.10);
  animation: globeRotate 18s linear infinite reverse;
}

.vdarshan-globe::after {
  content: '';
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  border: 1px dashed rgba(204, 0, 0, 0.08);
  animation: globeRotate 12s linear infinite;
}

/* Simulated wireframe globe lines */
.globe-line-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(204, 0, 0, 0.15);
}

.globe-line-v {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(204, 0, 0, 0.15);
}

.vdarshan-section:hover .vdarshan-globe {
  animation-play-state: paused;
}

/* ─────────────────────────────────────────────
   CLIENT TESTIMONIALS MODULE
   ───────────────────────────────────────────── */

.testimonial-card {
  padding: var(--space-8);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.quote-icon-wrap {
  margin-bottom: var(--space-2);
  line-height: 1;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: var(--color-brand-red);
  line-height: 1;
  display: block;
  height: 32px;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  font-style: normal;
  flex-grow: 1;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  border-top: 1px solid rgba(10, 10, 15, 0.06);
  padding-top: var(--space-4);
}

.testimonial-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  font-style: normal;
}

.testimonial-company {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ─────────────────────────────────────────────
   NEW LAYOUT & ALIGNMENT STYLES
   ───────────────────────────────────────────── */

/* Hero Split Screen Image Wrapper */
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-base);
  padding: var(--space-3);
  box-shadow: 0 20px 40px rgba(10, 10, 15, 0.08);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out);
}

.hero-image-wrap:hover {
  transform: translateY(-4px);
}

.hero-img-element {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}


/* Reduced VDarshan section title size */
.vdarshan-title {
  font-size: clamp(26px, 3.5vw, 36px) !important;
  line-height: 1.25 !important;
}

/* VDarshan Virtual Tour Preview Card */
.vdarshan-preview-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(204, 0, 0, 0.15) !important;
  background: var(--glass-base);
  padding: var(--space-3);
  box-shadow: 0 24px 48px rgba(10, 10, 15, 0.05);
  overflow: hidden;
  max-width: 420px;
  height: 440px;
  margin-left: auto;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.vdarshan-preview-card:hover {
  border-color: rgba(204, 0, 0, 0.3) !important;
  box-shadow: 0 24px 48px rgba(204, 0, 0, 0.06);
}

.vdarshan-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.vdarshan-preview-card:hover .vdarshan-preview-img {
  transform: scale(1.03);
}

/* Immersive 360 Floating Badge styling */
.vdarshan-preview-badge {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid rgba(204, 0, 0, 0.20);
  border-left: 3px solid var(--color-brand-red-bright);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.vdarshan-preview-badge svg {
  color: var(--color-brand-red-bright);
}

/* Center-aligned Industries list on Home page */
.industries-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: var(--space-6) !important;
  margin-top: var(--space-12) !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .why-img-element {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .stats-desktop-only {
    display: none !important;
  }

  .stats-mobile-marquee {
    display: block !important;
    overflow: hidden;
    width: 100%;
    padding: var(--space-2) 0;
    -webkit-mask: linear-gradient(90deg, transparent 0%, #000000 15%, #000000 85%, transparent 100%);
    mask: linear-gradient(90deg, transparent 0%, #000000 15%, #000000 85%, transparent 100%);
  }

  .stats-marquee-track {
    display: flex;
    gap: var(--space-8);
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
  }

  .stats-mobile-marquee .stat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    flex-shrink: 0;
    text-align: left;
    padding: var(--space-3) var(--space-6);
    border-left: 2px solid var(--color-brand-red);
    min-width: 180px;
    background: rgba(204, 0, 0, 0.02);
  }

  .stats-mobile-marquee .stat-item:hover {
    padding-left: var(--space-6) !important;
    background: rgba(204, 0, 0, 0.02) !important;
  }
}