/* ==============================
   CSS RESET & BOX SIZING
============================== */
*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
  font-family: Arial, sans-serif;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ==============================
   HEADER / TITLE / NAVIGATION
============================== */
h1 {
    text-align: center;
    line-height: 300px;
}

.gradient {
    font-weight: bold;
    font-size: 40px;
    line-height: 150px;
    margin: 0;
    background: linear-gradient(
        90deg, rgb(0,0,0), rgb(50,0,50), rgb(116,50,116),
        rgb(223,30,223), rgb(255,0,255), rgb(116,50,116), rgb(50,0,50)
    );
    background-size: 200% 100%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: animateGradient 3s linear infinite;
}

@keyframes animateGradient {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.image-behind {
  position: relative;
  width: 450px;
  height: 190px;
  text-align: center;
}

.image-behind .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: -1;
}

#myLinks {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

#myLinks a {
    color: magenta;
    background: #222;
    padding: 21px 42px;
    font-size: 21px;
    border-radius: 21px;
    border: 4px solid magenta;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

#myLinks a:hover {
    background: magenta;
    color: #000;
    transform: scale(1.08);
}

.Image-grid {
    margin: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* adjust 150px to image width */
  gap: 15px;
  margin-top: 20px;
}

.Image-item img {
  width: 100%; /* makes the image fill the grid cell */
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ==============================
    HEADER
============================== */
h2 {
    font-size: 50px;
     background: linear-gradient(
        90deg, rgb(0,0,0), rgb(50,0,50), rgb(116,50,116),
        rgb(223,30,223), rgb(255,0,255), rgb(116,50,116), rgb(50,0,50)
    );
    background-size: 200% 100%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: animateGradient 3s linear infinite;
}

.Image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

/* ==============================
   FOOTER
============================== */
.footer {
  background: #000000;
  color: #d606d2;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  margin-top: 50px;
}

/* ==============================
   RESPONSIVE LAYOUTS
============================== */
@media screen and (max-width: 1023px) {
  /* Tablet layout */
  .header-container {
    flex-direction: column;
    align-items: center;
  }
  .intro-wrapper {
    justify-content: center;
    padding-right: 0;
  }
  .placeholder {
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
  }
}

@media screen and (max-width: 410px) {
  /* Mobile layout */
  h1.gradient {
    font-size: 28px;
    line-height: 60px;
  }
  .intro-box {
    padding: 20px;
    font-size: 16px;
  }
  #myLinks a {
    padding: 12px 20px;
    font-size: 14px;
  }
}
