/* ============================================================
   COMBINOIT — Homepage-Only Styles
   Techy, Interactive, Modern
   ============================================================ */

/* --- Matrix/Grid Background Canvas --- */
#matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ==================== HERO ==================== */
.hp-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 2rem;
  overflow: visible;
}

.hp-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hp-hero-content {
  position: relative;
  z-index: 2;
}

.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  background: rgba(75, 156, 211, 0.06);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent-glow);
}

.hp-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hp-gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hp-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.02rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-ghost:hover {
  color: var(--accent);
  text-shadow: none;
}

.btn-ghost i {
  font-size: 1.3rem;
  color: var(--accent);
}

/* Tech tags */
.hp-tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.45s both;
}

.tech-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(75, 156, 211, 0.08);
  border: 1px solid rgba(75, 156, 211, 0.15);
  color: var(--accent);
  transition: var(--transition-smooth);
}

.tech-tag:hover {
  background: rgba(75, 156, 211, 0.18);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* --- Hero Visual: Solar System --- */
.hp-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeIn 1s ease 0.3s both;
}

.hp-solar-container {
  position: relative;
  width: 700px;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -80px -120px -80px 0;
}

#hero-orb {
  width: 700px;
  height: 700px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.hp-solar-label {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.hp-solar-container:hover .hp-solar-label {
  opacity: 0;
}

/* --- Scroll Hint --- */
.hp-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInUp 0.7s ease 0.8s both;
}

.hp-scroll-hint span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hp-scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.hp-scroll-wheel {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%, 100% { opacity: 1; top: 6px; }
  50% { opacity: 0.3; top: 18px; }
}

/* ==================== MARQUEE STRIP ==================== */
.hp-marquee-strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  background: rgba(75, 156, 211, 0.03);
}

.hp-marquee-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.hp-marquee-track span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.marquee-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== SECTIONS ==================== */
.hp-section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.hp-section-alt {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ==================== ABOUT / STATS ==================== */
.hp-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hp-about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.hp-about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.hp-about-text .btn {
  margin-top: 1rem;
}

.hp-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.hp-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.hp-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hp-stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.hp-stat-card:hover::before {
  opacity: 1;
}

.hp-stat-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hp-stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline;
  line-height: 1;
}

.hp-stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: inline;
}

.hp-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* ==================== SERVICES GRID ==================== */
.hp-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hp-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.hp-service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.hp-service-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
  color: inherit;
  text-shadow: none;
  /* transform handled by JS tilt */
}

.hp-service-card:hover::after {
  transform: scaleX(1);
}

.hp-svc-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(75, 156, 211, 0.08);
  border: 1px solid rgba(75, 156, 211, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
}

.hp-service-card:hover .hp-svc-icon-wrap {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.hp-service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.hp-service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.hp-svc-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hp-svc-link i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.hp-service-card:hover .hp-svc-link i {
  transform: translateX(4px);
}

.hp-svc-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 0 1.5rem;
}

.hp-svc-wide .hp-svc-icon-wrap {
  margin-bottom: 0;
  grid-row: 1 / 3;
}

.hp-svc-wide h3 {
  margin-bottom: 0.25rem;
  grid-column: 2;
}

.hp-svc-wide p {
  grid-column: 2;
  margin-bottom: 0;
}

.hp-svc-wide .hp-svc-link {
  grid-column: 3;
  grid-row: 1 / 3;
}

/* ==================== SOLUTIONS ==================== */
.hp-solutions-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.hp-sol-left h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.hp-sol-left > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
}

.hp-sol-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hp-sol-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

.hp-sol-card:hover {
  border-color: var(--accent);
  background: rgba(75, 156, 211, 0.05);
  transform: translateX(4px);
  color: inherit;
  text-shadow: none;
}

.hp-sol-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: rgba(75, 156, 211, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  transition: var(--transition-smooth);
}

.hp-sol-card:hover .hp-sol-icon {
  background: var(--accent);
  color: #fff;
}

.hp-sol-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: var(--text-primary);
}

.hp-sol-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.hp-sol-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.hp-sol-card:hover .hp-sol-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* Globe Card */
.hp-globe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hp-globe-visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hp-globe-visual > i {
  font-size: 4rem;
  color: var(--accent);
  position: relative;
  z-index: 2;
}

.hp-globe-pulse {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(75, 156, 211, 0.2);
  animation: globe-pulse 3s ease-in-out infinite;
}

.hp-globe-pulse-2 {
  width: 140px;
  height: 140px;
  animation-delay: 1s;
}

@keyframes globe-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0; }
}

.hp-globe-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.hp-globe-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ==================== TECH GRID ==================== */
.hp-tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hp-tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 110px;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: var(--transition-smooth);
  cursor: default;
}

.hp-tech-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.hp-tech-item i {
  font-size: 1.8rem;
  color: var(--accent);
}

.hp-tech-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==================== CTA BANNER ==================== */
.hp-cta-banner {
  position: relative;
  padding: 4.5rem 3rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(75, 156, 211, 0.1), rgba(46, 109, 164, 0.06));
  border: 1px solid var(--border-subtle);
  text-align: center;
  overflow: hidden;
}

.hp-cta-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(75, 156, 211, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(46, 109, 164, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hp-cta-content {
  position: relative;
  z-index: 2;
}

.hp-cta-banner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.hp-cta-banner p {
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  .hp-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 1.5rem;
  }

  .hp-hero-content {
    order: 1;
  }

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

  .hp-hero-actions {
    justify-content: center;
  }

  .hp-tech-tags {
    justify-content: center;
  }

  .hp-hero-visual {
    order: 0;
  }

  .hp-solar-container {
    width: 400px;
    height: 400px;
    margin: -40px auto;
  }

  #hero-orb {
    width: 400px;
    height: 400px;
  }

  .hp-about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hp-services-grid {
    grid-template-columns: 1fr;
  }

  .hp-svc-wide {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }

  .hp-svc-wide .hp-svc-icon-wrap {
    margin-bottom: 1.25rem;
  }

  .hp-solutions-block {
    grid-template-columns: 1fr;
  }

  .hp-scroll-hint {
    display: none;
  }
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .hp-solar-container {
    width: 300px;
    height: 300px;
  }

  #hero-orb {
    width: 300px;
    height: 300px;
  }

  .hp-hero-desc {
    font-size: 1rem;
  }

  .hp-tech-item {
    width: 100px;
  }

  .hp-about-grid { gap: 2rem; }

  .hp-service-card {
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .hp-hero h1 {
    font-size: 2rem;
  }

  .hp-hero-desc {
    font-size: 0.95rem;
  }

  .hp-hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hp-hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hp-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .hp-stat-card {
    padding: 1.25rem 1rem;
  }

  .hp-stat-number {
    font-size: 2rem;
  }

  .hp-section {
    padding: 4rem 0;
  }

  .hp-section-title {
    font-size: 1.5rem;
  }

  .hp-cta-banner {
    padding: 2.5rem 1.25rem;
    margin: 0 0.5rem;
    border-radius: 1rem;
  }

  .hp-cta-banner h2 {
    font-size: 1.4rem;
  }

  .hp-tech-item {
    width: 80px;
    padding: 0.75rem 0.4rem;
  }

  .hp-tech-item i {
    font-size: 1.5rem;
  }

  .hp-tech-item span {
    font-size: 0.65rem;
  }

  .hp-tech-grid {
    gap: 0.6rem;
  }

  .hp-marquee-track {
    font-size: 0.75rem;
    gap: 1.5rem;
  }

  .hp-solar-container {
    width: 260px;
    height: 260px;
  }

  #hero-orb {
    width: 260px;
    height: 260px;
  }

  .hp-service-card {
    padding: 1.5rem 1.25rem;
  }

  .hp-service-card h3 {
    font-size: 1.05rem;
  }
}

/* Very small phones */
@media (max-width: 400px) {
  .hp-hero h1 {
    font-size: 1.65rem;
  }

  .hp-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hp-solar-container {
    width: 220px;
    height: 220px;
  }

  #hero-orb {
    width: 220px;
    height: 220px;
  }

  .hp-tech-item {
    width: 70px;
    padding: 0.6rem 0.3rem;
  }
}
