/* ================================================
   HOME PAGE CSS — InfiWits Theme
   ================================================ */

/* ---- Hero 2100 Aesthetic ---- */
.iw-hero--2100 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-block: var(--space-20);
  background: #030712; /* Deep space black */
}

/* Ensure canvas sits all the way in the back */
#iw-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.iw-hero__inner--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.iw-hero__content--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.iw-badge--cyber {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 255, 204, 0.05);
  border: 1px solid rgba(0, 255, 204, 0.2);
  color: #00ffcc;
  font-family: var(--font-heading);
  font-size: var(--text-label-md);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-8);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.1);
}

.iw-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ffcc;
  box-shadow: 0 0 10px #00ffcc;
  animation: pulseCyber 2s infinite;
}

@keyframes pulseCyber {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #00ffcc; }
  50% { opacity: 0.4; box-shadow: 0 0 2px #00ffcc; }
}

.iw-hero__headline--cyber {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #ffffff;
  margin-bottom: var(--space-6);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.iw-gradient-text {
  background: linear-gradient(to right, #ffffff, #00ffcc, #0066ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.iw-hero__subtext--cyber {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 700px;
  margin-bottom: var(--space-10);
}

.iw-hero__ctas--center {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

/* Hologram Stats Grid (HUD) */
.iw-hero__hologram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  width: 100%;
  max-width: 900px;
  perspective: 1000px;
}

.iw-hologram-card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: rgba(10, 15, 30, 0.4);
  border: 1px solid rgba(0, 255, 204, 0.15);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 255, 204, 0.05);
  transition: border-color 0.3s ease;
}

.iw-hologram-card:hover {
  border-color: rgba(0, 255, 204, 0.5);
}

/* Internal HUD backdrop simulating glass layers */
.iw-hologram-card__backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1;
}

.iw-hologram-card__content {
  position: relative;
  z-index: 2;
  transform: translateZ(40px); /* 3D pop out */
  text-align: center;
}

.iw-text-glow {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
  margin-bottom: var(--space-2);
}

.iw-text-cyber {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00ffcc;
  opacity: 0.8;
}

/* Neon Button */
.iw-btn--neon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  background: transparent;
  color: #00ffcc;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid #00ffcc;
  border-radius: 4px; /* Sci-fi sharp edges */
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.2), inset 0 0 15px rgba(0, 255, 204, 0.1);
}

.iw-btn-neon__text {
  position: relative;
  z-index: 2;
}

.iw-btn--neon:hover {
  background: rgba(0, 255, 204, 0.1);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.4), inset 0 0 20px rgba(0, 255, 204, 0.3);
  color: #fff;
  text-shadow: 0 0 8px #00ffcc;
}

.iw-btn--glass-cyber {
  padding: var(--space-4) var(--space-8);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.iw-btn--glass-cyber:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Reticle / Scroll Dot */
.iw-hero__scroll-reticle {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.iw-reticle-crosshair {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 50%;
  position: relative;
  margin-bottom: var(--space-4);
  animation: spinSlow 10s linear infinite;
}
.iw-reticle-crosshair::before, .iw-reticle-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(0, 255, 204, 0.5);
}
.iw-reticle-crosshair::before { top: -5px; bottom: -5px; left: 14px; width: 1px; }
.iw-reticle-crosshair::after { left: -5px; right: -5px; top: 14px; height: 1px; }

@keyframes spinSlow { 100% { transform: rotate(360deg); } }

.iw-hero__scroll-dot--cyan {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, #00ffcc, transparent);
  animation: scrollDot 2s ease-in-out infinite;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .iw-hero__hologram-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .iw-hero__ctas--center {
    flex-direction: column;
    width: 100%;
  }
  .iw-btn--glass-cyber {
      margin-left: 0 !important;
  }
}


/* ---- Services Section (Bento Box) ---- */
.iw-section--services {
  background: transparent; /* Changed to let gradient mesh show through if needed */
  position: relative;
  padding-top: var(--space-20);
}

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

@media (min-width: 768px) {
  .iw-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .iw-bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
  }
  
  .iw-bento-item--large {
    grid-column: span 2;
  }
  
  .iw-bento-item--tall {
    grid-row: span 2;
  }
}

.iw-section__cta-row {
  text-align: center;
  margin-top: var(--space-12);
}

/* ---- Why Us Section (Sticky Sidebar) ---- */
.iw-sticky-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .iw-sticky-layout {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }
  
  .iw-sticky-layout__sidebar {
    position: sticky;
    top: 120px;
  }
}

.iw-sticky-layout .iw-section-header {
  text-align: left;
  margin-inline: 0;
}
.iw-sticky-layout .iw-divider {
  margin-inline: 0;
}

/* ---- Stats Section ---- */
.iw-section--stats {
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.iw-section__stats-headline {
  font-family: var(--font-heading);
  font-size: var(--text-display-md);
  font-weight: 700;
  color: var(--color-on-surface);
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-12);
  position: relative;
  z-index: 1;
}

.iw-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .iw-stats-row { grid-template-columns: repeat(4, 1fr); }
}

.iw-stat-item {
  text-align: center;
}

.iw-stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-2);
}

.iw-stat-item__label {
  font-size: var(--text-body-md);
  color: var(--color-on-surface-variant);
}

/* ---- Testimonials ---- */
.iw-testimonial {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.iw-testimonial__body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-on-surface-variant);
  font-style: italic;
}

.iw-testimonial__footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--glass-border);
}

.iw-testimonial__photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.iw-testimonial__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-on-surface);
  font-style: normal;
}

.iw-testimonial__role {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-on-surface-variant);
}

/* ---- CTA Banner ---- */
.iw-cta-banner {
  position: relative;
  overflow: hidden;
}

.iw-cta-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #001a4d 0%, #0d1b35 40%, #001233 70%, #0a0f1e 100%);
  z-index: 0;
}

.iw-cta-banner__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0,102,255,0.2) 0%, transparent 60%),
              radial-gradient(circle at 80% 50%, rgba(233,196,0,0.08) 0%, transparent 50%);
}

.iw-cta-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.iw-cta-banner__content {
  text-align: center;
  max-width: 640px;
}

.iw-cta-banner__headline {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.iw-cta-banner__sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(222, 225, 247, 0.8);
  margin-bottom: var(--space-8);
}
