@import url('https://fonts.googleapis.com/css2?family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* === main layout & styling === */
body {
  font-family: 'Karla', sans-serif;
  background-image: url("pattern.png");
  background-size: 40%;
  background-color: #0e1111;
  color: white;
  margin: 50px;
  height: 100%;
}

/* links inherit text color and have no underline */
a {
  text-decoration: none;
  color: inherit;
}

/* main heading */
h1 {
  font-size: 38px;
  text-align: left;
}

/* section links (projects, collaborations, etc.) */
h2 {
  position: relative;
  color: rgba(179, 179, 179, 0.225);
  font-size: 24px;
  margin-bottom: -17px;
  transition: 0.8s;
}

h2:hover {
  color: white;
  opacity: 1;
  transition: 0.4s;
}

/* top-left logo */
#logo {
  margin-top: 20px;
  position: absolute;
  display: inline-block;
}

/* “contact” button in corner */
#contact {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border-radius: 50px;
  padding: 4px 10px; /* tighter horizontal + vertical spacing */
  border: 1.3px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.35s ease;
  display: inline-block;
  cursor: pointer;
  line-height: 1.2;
}

/* Hover: soft glow + color accent */
#contact:hover {
  border-color: #e03a3a; /* bright Luarasi red */
  color: #e03a3a;
  background: rgba(224, 58, 58, 0.08);
  box-shadow:
    0 0 6px rgba(224, 58, 58, 0.4),
    0 0 14px rgba(224, 58, 58, 0.25);
  transform: translateY(-1px) scale(1.03);
}


/* main header container */
.header {
  margin-top: 10%;
  margin-right: 40%;
}

/* spacing for icons */
#link_icon {
  padding-left: 20px;
}

/* smooth hover for social icons */
.icon_link {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  will-change: transform;
  opacity: 0.9;
}

.icon_link:hover {
  transform: translateY(-4px) scale(1.08);
  opacity: 1;
}

/* === responsive adjustments === */

/* tablets and medium screens */
@media screen and (max-width: 800px) {
  h1 {
    font-size: 34px;
    margin-right: 10%;
  }
}

/* phones and smaller screens */
@media screen and (max-width: 450px) {
  h1 {
    font-size: 24px;
    margin-right: 10%;
  }

  h2 {
    font-size: 20px;
    margin-bottom: -14px;
  }
}
