/* Outer Card Style Data */
.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
}


/* Inner Card Style Data */
.card{
  background: linear-gradient(180deg,#121e2c 0%, #182637 100%);
  border-radius: 12px;
  padding: min(5vw, 2.25rem);
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Inner Card Effects */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.card:hover .title {
  background-position: right center; /* causes a shimmer-like sweep */
}
.card .logo {
  transition: filter 0.4s ease, transform 0.4s ease;
}
.card:hover .logo.consulting {
  filter: drop-shadow(0 0 18px rgba(110,214,255,0.45));
}
.card:hover .logo.development {
  filter: drop-shadow(0 0 28px rgba(122,77,255,0.55));
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px; /* border thickness */
  background: linear-gradient(135deg, #6ed6ff, #3ac8ff);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card.consulting::before {
  background: linear-gradient(135deg, #6ed6ff, #3ac8ff);
}
.card.development::before {
  background: linear-gradient(135deg, #3ac8ff, #7a4dff);
}
.card:hover::before {
  opacity: 1;
}

/* Title Style Data */
.title {
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: #6ed6ff; /* fallback if clip not supported */
  text-wrap: balance;
  position: relative;
  background-size: 200% auto;
  transition: background-position 0.8s ease;
}
.title-wrap { /*Wraps H1 and Taglines together */
  display: flex;
  flex-direction: column;
  align-items: center; /* lock tagline under text width */
  text-align: center;
}
.title.consulting{
  background: linear-gradient(90deg,#6ed6ff, #3ac8ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.title.development {
  background: linear-gradient(90deg, #3ac8ff, #7a4dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-position 1s ease;
  background-size: 200% auto; /* makes room to slide */
  background-position: left center; /* start position */
}

/* Subtext and Tagline Style */
.tag {
  margin: 0.4rem 0 0.15rem; /* a little breathing room above */
  font-size: clamp(0.8rem, 1.3vw, 1.2rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
}
.sub {
  margin-top: 0.35rem; /* space below tagline */
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  color: #cfe5f5;
  opacity: 0.9;
}
.tag,
.sub {
  width: 100%;
  text-align: center;
}

/* Logo Style */
.logo{
  width: clamp(120px, 20vw, 200px);
  height: auto;
  display: block;
  margin-bottom: clamp(.75rem, 2vw, 1.25rem);
}
.logo.consulting {
  filter: drop-shadow(0 0 12px rgba(110,214,255,0.28));
  transition: filter 0.35s ease, transform 0.35s ease;
}
.logo.development {
  filter: drop-shadow(0 0 18px rgba(122,77,255,0.40));
  transition: filter 0.35s ease, transform 0.35s ease;
}


.card a {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
}
.card a:focus-visible {
  outline: 0;
}
.card:focus-within::before {
  opacity: 1; /* show the gradient frame on keyboard focus */
}

/* ---- Respect reduced-motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- Optional: only run hover effects where hover exists ---- */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  .card:hover .logo { filter: none; }
  .card:hover .title { background-position: left center; }
}