/* ==========================================================================
   AIRAA SRL — glassmorphism
   Frosted surfaces, translucent cards, ambient glow. Loaded FIRST so the
   component rules in style.css can still override .card padding and colour.
   ========================================================================== */

/* --------------------------------------------------------------------------
   5. Ambient decoration
   -------------------------------------------------------------------------- */

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}

.orb--blue { background: radial-gradient(circle at 30% 30%, rgba(75, 107, 255, 0.55), transparent 68%); }
.orb--violet { background: radial-gradient(circle at 30% 30%, rgba(124, 107, 245, 0.5), transparent 68%); }
.orb--cyan { background: radial-gradient(circle at 30% 30%, rgba(53, 198, 232, 0.45), transparent 68%); }

.orb--a { width: 34rem; height: 34rem; top: -10rem; left: -12rem; }
.orb--b { width: 28rem; height: 28rem; top: 12%; right: -10rem; }
.orb--c { width: 26rem; height: 26rem; bottom: -8rem; left: 28%; }

.grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 10%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 10%, transparent 78%);
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 22%, var(--line-strong) 78%, transparent);
}

/* --------------------------------------------------------------------------
   6. Glass surfaces
   -------------------------------------------------------------------------- */

.glass {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow-md);
}

/* Thin light catch along the top edge — the "glass" tell. */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--glass-edge), rgba(255, 255, 255, 0) 46%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.glass--flat {
  box-shadow: var(--shadow-sm);
}

.glass--panel {
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
}

.card {
  padding: clamp(1.5rem, 2.4vw, 2rem);
  height: 100%;
  transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease),
    border-color 0.42s var(--ease-soft);
}

.card h3,
.card h4 {
  margin-bottom: 0.625rem;
}

.card p {
  color: var(--ink-500);
  font-size: 0.9375rem;
  line-height: 1.68;
}

/* Interactive lift + a soft gradient glow that fades in behind the card. */
.card--hover::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(75, 107, 255, 0.5), rgba(124, 107, 245, 0.4) 48%, rgba(53, 198, 232, 0.45));
  filter: blur(16px);
  transition: opacity 0.42s var(--ease-soft);
  pointer-events: none;
}

.card--hover:hover,
.card--hover:focus-within {
  transform: translateY(-6px);
  border-color: rgba(75, 107, 255, 0.28);
  box-shadow: var(--shadow-lg);
}

.card--hover:hover::after,
.card--hover:focus-within::after {
  opacity: 0.5;
}

/* Icon chip */
.icon-chip {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  /* Chips sit beside text in flex rows (.contact-card). Without this they
     shrink below their declared width and stop being square. */
  flex: none;
  margin-bottom: 1.125rem;
  border: 1px solid rgba(75, 107, 255, 0.18);
  border-radius: 15px;
  background: linear-gradient(140deg, rgba(75, 107, 255, 0.14), rgba(53, 198, 232, 0.1));
  color: var(--brand-600);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.42s var(--ease);
}

.card--hover:hover .icon-chip {
  transform: translateY(-2px) scale(1.04);
}

/* Per-page inline icon sprite. Kept out of flow rather than display:none,
   which some engines treat as a reason not to resolve <use> references. */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: none;
}

.icon--sm { width: 17px; height: 17px; }
.icon--lg { width: 28px; height: 28px; }

.card-index {
  display: block;
  margin-bottom: 0.875rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-600);
}
