/* ------------- Reset ------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ------------- Base Layout ------------- */
body {
  font-family: "PT Mono", monospace;
  background-color: white;
  color: black;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ------------- Bars ------------- */
.top-bar,
.bottom-bar {
  position: fixed;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 1;
}
.top-bar { top: 0; height: 3rem; }
.bottom-bar { bottom: 0; height: 3rem; }

/* ------------- Links ------------- */
.corner {
  position: fixed;
  font-size: 1.2rem;
  padding: 1rem;
  z-index: 1000;
  display: block;
  
  text-decoration: none; /* removes underline */
  color: inherit;        /* use the surrounding text color */
}
.top-left { top: 0; left: 0; }
.top-right { top: 0; right: 0; text-align: right; }
.bottom-left { bottom: 0; left: 0; }
.bottom-right { bottom: 0; right: 0; }

.top-center {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

/* ------------- Container Layout ------------- */
.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-bottom: 2.5rem;
  flex: 1;
}
.center-content {
  width: 70vw;
  margin: 0 1rem;
  text-align: left;
}

/* ------------- Typography ------------- */
.main-title {
  font-size: 18vw; /* Responsive scaling */
  font-weight: bold;
  
  margin: 3rem 0 2rem;
  color: rgb(109, 236, 63);
}
.description {
  color: black;
  font-size: 1rem;
  line-height: 1.3rem;
  margin: 1rem 0;
}

/* Optional styling for ARASHIDA (brand) */
.brand {
  letter-spacing: 5px;
  
}

/* ------------- Media & Images ------------- */
.profile-image {
  display: block;
  max-width: 270px;
  width: 100%;
  margin: 1rem auto;
  height: auto;
}

.inline-image {
  width: 50%;
  float: left;
  margin: 1rem;
  border-radius: 8px;
}

/* ------------- Responsive Icon Grid ------------- */
.icon-cluster {
  display: flex;           /* Lays out icons in a row */
  flex-wrap: wrap;         /* Allows them to move to next line */
  justify-content: center; /* Centers icons in each row */
  gap: 1rem;             /* Space between icons */
  margin: 2rem 0;          /* Space above and below cluster */
}



/* Generic icon style */
.icon-image
 {
  position: relative;              /* Needed for glitch layers */
  width: 23%;                      /* ~4 per row on desktop */
  max-width: 750px;
  height: auto;
  transition: transform 0.1s ease; /* Smooth transform */
  image-rendering: crisp-edges;   /* For a pixelated feel */
  cursor: pointer;
  filter: contrast(110%);         /* Slightly sharper image */
}


.icon-image2 {
  position: relative;              /* Needed for glitch layers */
  width: 49%;                      /* ~3 per row on desktop */
  max-width: 850px;
  height: auto;
  transition: transform 0.1s ease; /* Smooth transform */
  image-rendering: crisp-edges;   /* For a pixelated feel */
  cursor: pointer;
  filter: contrast(110%);         /* Slightly sharper image */
}


/* Hue rotation animation */
.main-title:hover,
.profile-image:hover,
.icon-image:hover,
.icon-image2:hover {
  filter: hue-rotate(120deg);
}

.main-title:hover,
.profile-image,
.icon-image,
.icon-image2 {
  transition: filter 1s ease;
}

/* Hover glitch animation */
.main-title:hover,
.profile-image:hover,
.icon-image:hover,
.icon-image2:hover {
  animation: glitch 0.07s steps(2, end) infinite;
}

/* Glitch keyframes */
@keyframes glitch {
  0% {
    transform: skew(5deg, 5deg) translate(0, 0);
    clip-path: inset(0% 0% 0% 0%);
  }
  20% {
    transform: skew(0.5deg, -0.5deg) translate(-2px, 1px);
    clip-path: inset(10% 0% 85% 0%);
  }
  40% {
    transform: skew(-0.5deg, 0.5deg) translate(2px, -1px);
    clip-path: inset(85% 0% 5% 0%);
  }
  60% {
    transform: skew(0deg, 0deg) translate(0, 0);
    clip-path: inset(0% 0% 0% 0%);
  }
  100% {
    transform: none;
    clip-path: inset(0% 0% 0% 0%);
  }
}




/* Mobile: 2 icon per row */
@media (max-width: 1200px) {
  .icon-image
 {
    width: 48%;  /* Fits 2 icons neatly side by side */
  }
}
/* Mobile: 1 icon per row */

@media (max-width: 1000px) {
  .icon-image2 {
    width: 99%;  /* Fits 1 icons neatly side by side */
  }
}




/* ------------- Other Responsive Tweaks ------------- */
@media (max-width: 768px) {
  .main-title {
    font-size: 23vw;
    hyphens: auto;
    overflow-wrap: break-word;
    margin-top: 0;
  }

  .center-content {
    flex-basis: 100%;
    margin-top: 3rem;
  }

  .bottom-left,
  .bottom-right {
    padding-bottom: 0.5rem;
  }

  .top-bar { height: 3rem; }
  .bottom-bar { height: 2.5rem; }

  .description { font-size: 1rem; }

  .corner { font-size: 1rem; }
}



