/* ============================================================
   Diamond TechSoft — Homepage Styles
   File: assets/css/home.css
   Extends: global.css
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,212,255,.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(123,92,240,.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.25);
  border-radius: 100px; padding: 6px 16px;
  font-size: .78rem; color: var(--accent);
  letter-spacing: 1px; text-transform: uppercase; font-weight: 500;
  margin-bottom: 28px; animation: fadeUp .6s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -2px; color: var(--text-heading);
  animation: fadeUp .7s .1s ease both;
}
.hero h1 .accent2 {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.7;
  max-width: 560px; margin: 24px 0 40px; font-weight: 300;
  animation: fadeUp .7s .2s ease both;
}
.hero-actions { animation: fadeUp .7s .3s ease both; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  animation: fadeUp .7s .4s ease both;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.stat-item .stat-num {
  font-family: var(--font-head); font-size: 2rem; font-weight: 800;
  color: var(--text-heading); line-height: 1;
}
.stat-item .stat-num span { color: var(--accent); }
.stat-item .stat-label {
  font-size: .78rem; color: var(--text-muted);
  margin-top: 4px; text-transform: uppercase; letter-spacing: 1px;
}
/* Hero visual */
.hero-visual { position: relative; animation: fadeLeft .8s .2s ease both; }
.hero-card-stack { position: relative; width: 100%; max-width: 480px; margin-left: auto; }
.tech-card {
  background: var(--blue-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 24px; transition: transform .3s;
}
.tech-card:hover { transform: translateY(-4px); }
.tech-card-main {
  padding: 28px;
  background: linear-gradient(135deg, var(--blue-card) 0%, rgba(0,212,255,.05) 100%);
}
.tech-card .card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 14px;
}
.tech-card .card-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text-heading); }
.tech-card .card-desc { font-size: .8rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.float-card {
  position: absolute;
  background: var(--blue-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px;
  backdrop-filter: blur(10px); animation: float 4s ease-in-out infinite;
}
.float-card-1 { top: -30px; right: -20px; animation-delay: 0s; }
.float-card-2 { bottom: 40px; left: -30px; animation-delay: 2s; }
.float-card .fc-label { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.float-card .fc-value { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.tech-stack-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tech-pill {
  background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.15);
  border-radius: 6px; padding: 4px 10px;
  font-size: .72rem; color: var(--accent); font-weight: 500;
}
.progress-bars { margin-top: 16px; }
.progress-item { margin-bottom: 10px; }
.progress-item-label { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-muted); margin-bottom: 4px; }
.progress-item-label span:last-child { color: var(--accent); font-weight: 500; }
.progress-track { height: 4px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 4px; }

/* ── LOGOS STRIP ──────────────────────────────────────────── */
.logos-strip {
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.logos-strip .label { font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.tech-logo-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border: 1px solid var(--border);
  border-radius: 8px; font-size: .82rem; color: var(--text-muted);
  font-weight: 500; transition: all .3s; white-space: nowrap;
}
.tech-logo-pill:hover { border-color: var(--accent); color: var(--accent); }

/* ── SERVICES SECTION ─────────────────────────────────────── */
.services-section { padding: 100px 0; }
.service-card {
  background: var(--blue-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; height: 100%;
  transition: all .35s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transition: transform .35s;
}
.service-card:hover { border-color: rgba(0,212,255,.3); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.service-card h4 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--text-heading); margin-bottom: 12px; }
.service-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }
.service-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: .82rem; font-weight: 500;
  margin-top: 20px; text-decoration: none; transition: gap .2s;
}
.service-card .read-more:hover { gap: 10px; }
.service-number {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 800;
  color: rgba(255,255,255,.03); line-height: 1;
}

/* ── TECH EXPERTISE ───────────────────────────────────────── */
.tech-section { padding: 100px 0; background: linear-gradient(180deg, transparent 0%, rgba(123,92,240,.03) 50%, transparent 100%); }
.tech-tab-nav {
  display: flex; gap: 4px; background: var(--blue-card);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; margin-bottom: 40px; flex-wrap: wrap;
}
.tech-tab {
  flex: 1; padding: 10px 20px; border: none; background: none;
  color: var(--text-muted); font-size: .85rem; font-weight: 500;
  border-radius: 8px; cursor: pointer; transition: all .2s;
  white-space: nowrap; text-align: center;
}
.tech-tab.active { background: rgba(0,212,255,.12); color: var(--accent); }
.tech-tab:hover:not(.active) { color: var(--text-heading); }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.tech-item {
  background: var(--blue-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; text-align: center; transition: all .3s;
}
.tech-item:hover { border-color: var(--accent); transform: translateY(-3px); background: rgba(0,212,255,.05); }
.tech-item .ti-icon { font-size: 1.8rem; margin-bottom: 8px; }
.tech-item .ti-name { font-size: .78rem; color: var(--text-muted); font-weight: 500; }

/* ── PROCESS ──────────────────────────────────────────────── */
.process-section { padding: 100px 0; }
.process-steps { position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 30px; left: 30px; bottom: 30px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--accent), var(--accent2), transparent);
  opacity: .3;
}
.process-step { display: flex; gap: 28px; margin-bottom: 40px; align-items: flex-start; }
.step-num {
  width: 60px; height: 60px; min-width: 60px; border-radius: 50%;
  background: var(--blue-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: .85rem; font-weight: 800;
  color: var(--accent); position: relative; z-index: 1;
}
.step-content { padding-top: 8px; }
.step-content h4 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; }
.step-content p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }
.process-visual {
  background: var(--blue-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.process-metric { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.process-metric:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.pm-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.pm-value { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--text-heading); }
.pm-value span { color: var(--accent); }
.pm-sub { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

/* ── WHY US ───────────────────────────────────────────────── */
.why-section { padding: 100px 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-item {
  background: var(--blue-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px; transition: all .3s;
}
.why-item:hover { border-color: rgba(0,212,255,.3); background: rgba(0,212,255,.04); }
.why-item .wi-icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }
.why-item h5 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; }
.why-item p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.testimonials-section { padding: 100px 0; background: linear-gradient(180deg, transparent 0%, rgba(0,212,255,.02) 50%, transparent 100%); }
.testimonial-card {
  background: var(--blue-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; height: 100%; position: relative;
}
.testimonial-card::before {
  content: '"'; position: absolute; top: 16px; right: 24px;
  font-family: var(--font-head); font-size: 5rem; line-height: 1;
  color: rgba(0,212,255,.1); font-weight: 800;
}
.testimonial-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.75; font-style: italic; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--blue-dark);
}
.author-name { font-size: .9rem; font-weight: 600; color: var(--text-heading); }
.author-role { font-size: .75rem; color: var(--text-muted); }
.stars { color: var(--accent-gold); font-size: .75rem; margin-bottom: 16px; }

/* ── RESPONSIVE ───────────────────────────────────────────── */


/* ============================================================
   RESPONSIVE — home.css
   ============================================================ */

/* ── Tablet (≤ 991px) ─────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-visual { display: none; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-stats { gap: 24px; }
  .process-steps::before { display: none; }
  .process-visual { margin-top: 32px; }
  .tech-tab-nav { flex-wrap: wrap; }
  .tech-tab { flex: initial; min-width: 120px; }
  .logos-strip .d-flex { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .services-section,
  .tech-section,
  .process-section,
  .why-section,
  .testimonials-section { padding: 70px 0; }
}

/* ── Mobile (≤ 767px) ─────────────────────────────────────── */
@media (max-width: 767px) {

  /* Hero */
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); letter-spacing: -1px; }
  .hero-sub { font-size: .95rem; margin: 16px 0 28px; max-width: 100%; }
  .hero-badge { font-size: .7rem; padding: 5px 12px; }
  .hero-actions .d-flex { flex-direction: column; align-items: stretch; gap: 12px !important; }
  .btn-primary-cta, .btn-outline-cta { width: 100%; justify-content: center; }

  /* Hero stats → 2×2 grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
    padding-top: 28px;
  }
  .stat-item .stat-num { font-size: 1.7rem; }
  .stat-item .stat-label { font-size: .7rem; }

  /* Why grid → single col */
  .why-grid { grid-template-columns: 1fr; }
  .why-item { padding: 22px; }

  /* Tech tabs → horizontal scroll */
  .tech-tab-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .tech-tab-nav::-webkit-scrollbar { display: none; }
  .tech-tab { white-space: nowrap; flex-shrink: 0; font-size: .78rem; padding: 8px 14px; }

  /* Tech grid */
  .tech-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }

  /* Process */
  .process-step { gap: 18px; }
  .step-num { width: 48px; height: 48px; min-width: 48px; font-size: .75rem; }
  .process-visual { padding: 24px; }

  /* Services */
  .service-card { padding: 24px; }

  /* Testimonials */
  .testimonial-card { padding: 24px; }

  /* Section spacing */
  .services-section,
  .tech-section,
  .process-section,
  .why-section,
  .testimonials-section { padding: 56px 0; }
}

/* ── Small Mobile (≤ 480px) ───────────────────────────────── */
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .float-card { display: none; }
  .logos-strip { overflow-x: auto; }
}
