/* =========================================================
   Home page (index.html)
   ========================================================= */

/* Sections */
section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 90px 32px;
}

section > h2,
.split h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  margin-bottom: 48px;
  text-align: center;
}
section > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 4px;
  background: var(--grad);
}

/* Hero */
.hero {
  max-width: none;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px 110px;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, #ffffff 0%, #b9ccff 55%, #a99bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p {
  max-width: 720px;
  margin-top: 26px;
  padding: 0;
  color: #c4cde0;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.7;
  opacity: 1;
}
.hero-bg {
  background:
    radial-gradient(700px 420px at 50% 38%, rgba(79, 140, 255, 0.22), transparent 70%),
    linear-gradient(rgba(6, 8, 15, 0.55), rgba(6, 8, 15, 0.94)),
    url('../assests/hero/hero1.jpg') center / cover no-repeat;
}

/* Glass panels */
.glass {
  margin-block: 36px;
  padding: 64px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid:has(> .card:nth-child(8):last-child) { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgba(79, 140, 255, 0.14));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-10px);
  border-color: rgba(79, 140, 255, 0.55);
  box-shadow: 0 30px 60px -28px rgba(79, 140, 255, 0.45);
}
.card:hover::after { opacity: 1; }
.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  transition: transform 0.7s ease;
}
.card:hover img { transform: scale(1.07); }
.card p {
  padding: 20px 22px 24px;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
}

/* Split sections (Why us / Process) */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.split h2 { text-align: left; margin-bottom: 30px; }
.split h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 18px; border-radius: 4px; background: var(--grad); }
.split p {
  margin-top: 16px;
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-size: 1.12rem;
  border-left: 2px solid rgba(79, 140, 255, 0.55);
}
.split img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Call to action */
.bg-image {
  text-align: center;
  padding: 110px 40px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(124, 92, 255, 0.28), transparent 70%),
    linear-gradient(rgba(6, 8, 15, 0.72), rgba(6, 8, 15, 0.93)),
    url('../assests/hero/tech.jpg') center / cover no-repeat;
}
.bg-image h2 { margin-bottom: 36px; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.bg-image h2::after { display: none; }

/* Inputs (kept for any forms on this page) */
input, textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--surface);
  color: var(--text);
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
}
.logo-text {
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%   { opacity: 0.45; transform: scale(0.96); }
  50%  { opacity: 1;    transform: scale(1.04); }
  100% { opacity: 0.45; transform: scale(0.96); }
}

/* Responsive */
@media (max-width: 1000px) {
  .grid, .grid:has(> .card:nth-child(8):last-child) { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  section { padding: 64px 18px; }
  .glass { padding: 40px 22px; border-radius: 24px; }
  .grid, .grid:has(> .card:nth-child(8):last-child) { grid-template-columns: 1fr; }
  .card img { height: 200px; }
  .bg-image { padding: 70px 22px; }
}
