/* ============================================================
   CompuTechNet Services Ltd — Home Page Styles
   File: css/home.css
   ============================================================ */

/* --- Hero ------------------------------------------------- */
.hero {
  background: var(--navy-dark);
  color: var(--white);
  padding: 90px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-tag {
  display: inline-block;
  background: rgba(42, 111, 203, 0.25);
  border: 1px solid rgba(42, 111, 203, 0.5);
  color: #a0c8ff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: #5da8ff;
}

.hero-sub {
  font-size: 16px;
  color: #9ab3cc;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 420px;
}

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

/* Hero visual panel */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 18px 20px;
}

.hero-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #5da8ff;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 12px;
  color: #7a99b5;
  letter-spacing: 0.03em;
}

.hero-badge {
  background: rgba(42, 111, 203, 0.2);
  border: 1px solid rgba(42, 111, 203, 0.4);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-badge-icon { font-size: 28px; flex-shrink: 0; }

.hero-badge-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.hero-badge-text span { font-size: 12px; color: #7a99b5; }

/* Hero animation */
.hero-content > * { animation: fadeUp 0.6s ease both; }
.hero-tag         { animation-delay: 0.05s; }
.hero h1          { animation-delay: 0.15s; }
.hero-sub         { animation-delay: 0.25s; }
.hero-actions     { animation-delay: 0.35s; }

/* --- Services Grid ---------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.svc-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(26, 46, 74, 0.1);
  transform: translateY(-2px);
}
.svc-card:hover::after { transform: scaleX(1); }

.svc-card.security-card {
  border-color: var(--accent2);
  background: var(--accent);
}

.svc-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.svc-card.security-card .svc-icon-wrap {
  background: rgba(42, 111, 203, 0.15);
}

.svc-icon {
  width: 22px;
  height: 22px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-new {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.svc-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.svc-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- App Spotlight ---------------------------------------- */
.app-spotlight {
  background: var(--navy-dark);
  color: var(--white);
  border-radius: 12px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.app-spotlight-icon {
  width: 80px;
  height: 80px;
  background: rgba(42, 111, 203, 0.3);
  border: 1px solid rgba(42, 111, 203, 0.5);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-spotlight-icon svg {
  width: 40px;
  height: 40px;
  stroke: #5da8ff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-spotlight-body { flex: 1; }

.app-spotlight-body h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-spotlight-body p {
  font-size: 15px;
  color: #9ab3cc;
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--navy-dark);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.app-store-btn:hover { opacity: 0.9; }

/* --- Tech Stack ------------------------------------------- */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

.stack-pill svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* --- Contact Section -------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 14px;
}

.contact-info p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-dark);
  transition: color 0.2s;
}
.contact-item-value:hover { color: var(--blue); }

/* Contact form */
.contact-form {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42, 111, 203, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 13px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.form-submit:hover { background: var(--blue); }

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner         { grid-template-columns: 1fr; }
  .hero-visual        { display: none; }
  .services-grid      { grid-template-columns: 1fr 1fr; }
  .contact-grid       { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services-grid      { grid-template-columns: 1fr; }
  .app-spotlight      { flex-direction: column; padding: 28px 24px; }
  .form-row           { grid-template-columns: 1fr; }
}
