:root { --bg:#0b1220; --card:#111a2e; --text:#e8eefc; --muted:#a8b3cf; --ring:#2a3a63; }

html, body { 
  margin: 0;
  padding: 0;
  height: 100%; 
}
body { 
  min-height: 100vh; 
  min-height: 100svh;
  overflow-x: hidden;
}

*{ box-sizing:border-box; }

body{
  background:
    linear-gradient(rgba(11,18,32,.25), rgba(11,18,32,.25)),
    url("images/cyberpunk-winter.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-position: center 70%; /* <-- try 60–85% */
}

.wrap{
  max-width:980px;
  margin:0 auto;
  padding:32px 18px 48px;
}

/* Center header */
header{
  display:flex;
  justify-content:center;
  text-align:center;
}

h1{
  font-size:34px;
  line-height:1.1;
  margin:0;
}

/* Header subtitle */
header p{
  margin:10px 0 0;
  color:var(--muted);
}

/* Grid of cards */
.grid{
  margin-top:26px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
}

/* Card */
a.card{
  display:flex;
  flex-direction:column;
  height:140px; /* adjust to taste */
  text-decoration:none;
  color:inherit;
  background:linear-gradient(180deg, var(--card), #0e162b);
  border:1px solid var(--ring);
  border-radius:18px;
  padding:16px;
  transition:.15s transform, .15s border-color;
}

a.card:hover{
  transform:translateY(-2px);
  border-color:#4c67b5;
}

/* Tag at the top */
.tag{
  display:inline-block;
  font-size:12px;
  color:#cfe0ff;
  background:#1c2a52;
  border:1px solid #2c407a;
  border-radius:999px;
  padding:4px 9px;
  margin-bottom:10px;
}

.title{
  font-weight:700;
  font-size:16px;
  margin:0 0 4px;
  color: var(--text);
}

.desc{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

/* Layout under the tag: text bottom-left, icon top-right */
.cardRow{
  display:flex;
  flex-direction:row;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  width:100%;
  flex:1; /* fill remaining height below tag */
  min-height:0;
}

.cardMain{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end; /* push text to bottom-left */
}

.icon{
  width:28px;
  height:28px;
  object-fit:contain;
  flex:0 0 auto;
  align-self:flex-start; /* icon sits at the top-right under the tag */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}

/* Footer centered */
footer{
  margin-top:26px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}
