/* ============================================================
   HOME.CSS — CoreLink Enterprises Homepage
   Theme: Global Network & Digital Infrastructure
   ============================================================ */

/* ── 1. HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
  padding-top: var(--header-height);
  color: var(--text-light);
}

/* Network Background Effect */
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(6,182,212,0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(37,99,235,0.15), transparent 25%);
  z-index: 1;
}

.hero-grid {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.15rem;
  color: #94A3B8;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  height: 80%;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  mix-blend-mode: luminosity;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

/* ── 2. OVERVIEW ── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.overview-card {
  padding: 40px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--accent);
}
.overview-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.overview-card h3 { margin-bottom: 15px; }

/* ── 3. STATISTICS DASHBOARD ── */
.stats-dashboard {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats-dashboard::before {
  content: ''; position: absolute; right: 0; top: 0; height: 100%; width: 50%;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.1));
}
.stat-box { text-align: center; position: relative; z-index: 2; }
.stat-num { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 0.9rem; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.1em; }

/* ── 4. GLOBAL NETWORK MAP ── */
.network-map {
  position: relative;
  padding: 80px 0;
  text-align: center;
}
.map-container {
  max-width: 1000px; margin: 50px auto 0; position: relative;
}
.map-container img { width: 100%; opacity: 0.1; }
.node {
  position: absolute; width: 12px; height: 12px; background: var(--accent);
  border-radius: 50%; box-shadow: var(--shadow-glow);
  animation: pulse 2s infinite;
}
.node::after {
  content: ''; position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px;
  border: 1px solid var(--accent); border-radius: 50%; animation: pulse 2s infinite reverse;
}
/* Node positions (approximate based on a standard world map) */
.node-1 { top: 30%; left: 20%; }
.node-2 { top: 40%; left: 25%; }
.node-3 { top: 35%; left: 50%; }
.node-4 { top: 45%; left: 68%; } /* India */
.node-5 { top: 60%; left: 75%; }
.node-6 { top: 70%; left: 85%; }
.map-line {
  position: absolute; border-top: 1px dashed var(--accent); opacity: 0.5;
  transform-origin: 0 50%;
}
.map-label { position: absolute; font-size: 0.75rem; font-weight: 600; color: var(--primary); top: 50%; left: 70%; margin-top: -20px; }

/* ── 5. SERVICES ── */
.services-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px;
}
.service-item {
  display: flex; gap: 24px; padding: 30px; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); transition: var(--transition-fast);
}
.service-item:hover {
  border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px);
}
.service-icon {
  width: 60px; height: 60px; background: rgba(6,182,212,0.1); color: var(--accent);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.service-text h3 { margin-bottom: 12px; font-size: 1.3rem; }

/* ── 6. PROCESS TIMELINE ── */
.process-wrapper {
  display: flex; justify-content: space-between; margin-top: 60px; position: relative;
}
.process-wrapper::before {
  content: ''; position: absolute; top: 30px; left: 0; width: 100%; height: 2px;
  background: var(--border-light); z-index: 1;
}
.process-step {
  width: 23%; text-align: center; position: relative; z-index: 2;
}
.step-num {
  width: 60px; height: 60px; background: #fff; border: 2px solid var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--primary);
  margin: 0 auto 20px;
}
.process-step h4 { margin-bottom: 10px; font-size: 1.1rem; }
.process-step p { font-size: 0.9rem; }

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-image { display: none; }
  .overview-grid { grid-template-columns: 1fr; }
  .stats-dashboard { flex-direction: column; gap: 40px; }
  .services-layout { grid-template-columns: 1fr; }
  .process-wrapper { flex-direction: column; gap: 40px; }
  .process-wrapper::before { display: none; }
  .process-step { width: 100%; }
}
