@charset "utf-8";
/* CSS Document */
:root{
    --brand: #007bff;
    --overlay: rgba(0, 123, 255, 0.96);
    --bg: url('https://images.unsplash.com/photo-1550547660-d9450f859349?q=80&w=1920&auto=format&fit=crop');
  }
  * { box-sizing: border-box; }
  /*body {
    font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    background: #0a0a0a;
    color: #222;
    margin: 0;
  }*/
  .hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(180deg, rgba(0,0,0,0.50), rgba(0,0,0,0.55)),
      var(--bg);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.02);
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(600px 300px at 20% 20%, rgba(255,255,255,0.10), rgba(255,255,255,0) 60%),
                radial-gradient(800px 400px at 80% 60%, rgba(255,255,255,0.08), rgba(255,255,255,0) 60%);
    pointer-events: none;
    animation: glowShift 14s ease-in-out infinite;
  }
  @keyframes glowShift {
    0% { transform: translate3d(0,0,0); opacity: 0.9; }
    50% { transform: translate3d(2%, -2%, 0); opacity: 1; }
    100% { transform: translate3d(0,0,0); opacity: 0.9; }
  }
  .hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
  h1.hero-title {
    color: #fff;
    text-align: center;
    margin: 0 0 18px 0;
    font-size: clamp(24px, 5vw, 38px);
    letter-spacing: 0.3px;
  }
  .hero-sub {
    color: #e9eef6;
    text-align: center;
    margin: 0 auto 28px auto;
    font-size: clamp(14px, 2.4vw, 16px);
    max-width: 900px;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
  }
  .card {
    font-size: 75%;

    background: rgba(255,255,255,0.88); /*white #ffffffe0**/
    backdrop-filter: saturate(120%) blur(2px);
    -webkit-backdrop-filter: saturate(120%) blur(2px);
    border-radius: 14px;
    padding: 10px 8px; /*18px 16px*/
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 14px rgba(0,0,0,0.20); /**grey #00000033**/
    font-weight: 600;
    color: #333; /*font color**/
    cursor: pointer;
    outline: none;
  }
  .card:hover {
    transform: translateY(-8px) scale(1.5);
    z-index: 10;
    /*border-radius: 10px; *//*14px*/
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.28);
    background: rgba(255,255,255,0.94);
  }
  .card i {
    font-size: 38px;
    color: var(--brand);
    margin-bottom: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
 border-radius: 10px; /*14px*/
  }
.card a { border-radius: 14px; font-size:125%;}
.card i {color: #fff;} /**change the color of the icon on the card***/
  .hover-info {
    font-size: 75;

    position: absolute;
    inset: 0;
    color: #fff;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.35s ease, transform 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 22px;
    text-align: center;
    background: rgba(30, 84, 123, 1);  /** rgba(0, 123, 255, 0.94) #007afff0 popup background color**/
    background-image:
      radial-gradient(1200px 600px at 20% 20%, rgba(255,255,255,0.18), rgba(255,255,255,0) 55%),
      linear-gradient(120deg,
        rgba(0,123,255,0.98) 0%,
        rgba(0,95,230,0.98) 35%,
        rgba(0,160,255,0.98) 70%,
        rgba(0,123,255,0.98) 100%);
    background-size: 200% 200%, 200% 200%;
    background-position: 0% 0%, 0% 0%;
    animation: gradientShift 8s ease-in-out infinite;
  }
  .card:hover .hover-info {
    font-size: 80%; /*100% font size in pop up*/ 
	padding-bottom:5vw; /**4vw positions text in popup**/
 opacity: 1; transform: scale(1.06); }
  @keyframes gradientShift {
    0%   { background-position: 0% 0%,   0% 0%; }
    50%  { background-position: 100% 100%, 100% 100%; }
    100% { background-position: 0% 0%,   0% 0%; }
  }
  .hover-info i {
    font-size: 40px;
    margin-bottom: 10px;  /**10px; **/
    color: #fff;
    opacity: 0;
    transform: translateY(-20px);
    animation: bounceIn 0.5s ease forwards;
    animation-delay: 0.05s;
  }
  .hover-title {
    font-size: 18px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.4s ease forwards;
    animation-delay: 0.25s;
    margin-bottom: 8px;
  }
  .hover-desc {
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
    animation-delay: 0.45s;
  }
  .btn {
    margin-top: 12px;
    padding: 10px 20px;
    background: #fff;
    color: var(--brand);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s ease;
  }
  .btn:hover { background: #e0e0e0; }
  @keyframes bounceIn {
    0% { opacity: 0; transform: translateY(-20px) scale(0.9); }
    60% { opacity: 1; transform: translateY(5px) scale(1.05); }
    80% { transform: translateY(-3px) scale(0.98); }
    100% { transform: translateY(0) scale(1); }
  }
  @keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }

  /* Layout safety for scaled tiles */
  .grid { overflow: visible; }
  .card { transform-origin: center; will-change: transform; position: relative; }

  /* Desktop/hover-capable devices: 1.5x scale on hover */
  @media (hover: hover) and (pointer: fine) {
    .card:hover { transform: translateY(-8px) scale(1.5); z-index: 20; }
  }

  /* Touch devices: gentler scale to avoid overlap & accidental taps */
  @media (hover: none), (pointer: coarse) {
    .card:hover, .card:active, .card:focus-visible { transform: translateY(-4px) scale(1.12); z-index: 15; }
  }
/*@media (max-width: 768px) {
padding-top: 200vw;
}*/

/*@media (max-width: 480px) {
padding-top: 200vw;
}*/

