@font-face {
  font-family: "Bloopoly";
  src:
    local("Bloopoly"),
    url("/assets/fonts/Bloopoly.otf") format("opentype"),
}

:root {
  --bg: #0d3b66;
  --text: #faf0ca;
  --muted: #a1a1aa;
  --theme-bg: linear-gradient(
    120deg,
    #FFB3AB,
    #FFD3AC,
    #E39A7B,
    #DBB06B
  );
}

/*          main color list          */

.themes li {
  display: inline;
  margin: 10px 
}

.themes ul {
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.themes li button {
  border: 2px solid var(--muted);
  border-radius: 50px;
  padding: 12px;
  cursor: pointer;
  gap: 10px;
}

.themes li button.active {
  border: 2px solid var(--text);
}

.blue-white {
  background: linear-gradient(
    130deg,
    #ECEFF1 50%,
    #191970 50%
  );
}

.dark-blue {
  background: linear-gradient(
    130deg,
    #080708 50%,
    #3772ff 50%
  );
}

.lemonade {
  background: linear-gradient(
    130deg,
    #5bc0eb 50%,
    #fde74c 50%
  );
}

.ronflex {
  
  background: linear-gradient(
    130deg,
    #0d3b66 50%,
    #faf0ca 50%
  );
}

/*  BODY  */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  padding: 60px 20px;
  text-align: center;
  margin-top: 20px;
}

header h1 {
  font-size: 3.5rem;
  font-weight: 100;
  font-family: "Bloopoly";
}

header p {
  color: var(--muted);
}

li {
  list-style-type: none
}

section + section {
  margin-top: 50px
}

.base a {
  color: #93bff9;
  text-decoration: none;
}
.base a:hover {
  text-decoration: underline;
}

main {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
}

/*       ICONS       */

.bi {
  position: relative;
  top: 4px;
  font-size: 30px;
  padding: 10px;
  color: var(--text);
}

/*       HEADER       */


.animatedText {
  font-weight: 600;

  background: linear-gradient(
    270deg,
    var(--bg),
    var(--text)
  );

  background-size: 400% 400%;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: animationText 7s ease infinite;
}

@keyframes animationText {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/*       TERMINAL       */

.terminal {
  font-family: monospace;
  padding: 20px;
}

.base {
  background-color: #0c0c0c;
  color: var(--muted);
  width: 100%;
  max-width: 800px;
  min-height: 400px;
  border-radius: 6px;
  padding: 15px;
  box-sizing: border-box;
}

.version {
  margin-bottom: 15px;
}

.help {
  margin-bottom: 20px;
  line-height: 1.6;
}

.input-line {
  display: flex;
  align-items: center;
  font-family: monospace;
}

.cd {
  white-space: nowrap;
}

input {
  background: transparent;
  color: var(--text);
  border: none;
  outline: none;
  resize: none;
  height: 20px;
  flex: 1;
  font-family: inherit;
  font-size: 16px;
}

input:focus {
  outline: none;
}
.cursor {
  width: 8px;
  height: 18px;
  background-color: var(--text);
  margin-left: 2px;
  animation: blink 1s infinite;
}

.cursor.typing {
  animation: none;
  opacity: 1;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/*          ME          */

.embedAbout {
  background-color: var(--bg);
  border-left: 4px solid var(--text);
  border-radius: 3px;
  color: var(--text);
  
}

.embedAbout * {
  margin-left: 5px;
}

.links {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.link {
  
  position: relative;
  display: inline-block;
  text-align: center;
  background-color: var(--bg);
  border: 1px solid var(--text);
  border-radius: 6px;
  padding: 3px;
  width: 200px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: 0.05s ease-in-out;
}

.link:hover {
  background-color: #eceff11e;
  transition: 0.05s ease-in-out;
}

.link::after {
  content: "↗";
  position: absolute;
  top: -1px;
  right: 8px;
  font-size: 14px;
  transition: 0.2s ease-in-out;
}

.link:hover::after {
  transform: translate(2px, -2px);
  transition: 0.2s ease-in-out;
}

/*       PROJECTS       */


/*  CARDS  */

.project-card {
  position: relative;
  cursor: pointer;
  background: var(--text);
  color: var(--bg);
  padding: 20px;
  margin-top: 20px;
  border-radius: 16px;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--text) 100%);
  color: var(--text);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 1;
}

.project-card.featured {
  box-shadow:
    0 0 15px var(--bg),
    0 0 15px #000;
  border: 1px solid var(--bg);
}

.project-card.featured::before {
  
  filter: blur(1px);
}

/*  STACKS  */

.projectrow {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  align-items: stretch;
}

.v-separator {
  width: 1px;
  height: auto;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--muted),
    transparent
  );
}

.stacks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stacks span {
  background: var(--bg);
  color: var(--text);
  border: var(--bg) 1px solid;
  padding: 6px 10px;
  height: 31.5px;
  border-radius: 8px;
  font-size: 0.75em;
  white-space: nowrap;
}

.featured .stacks span {
  color: var(--text);
  border: none;
  background: linear-gradient(135deg, var(--bg) 0%, var(--text) 100%);
}

/*  HEADER  */

.projecthead {
  display: flex;
}


/*  OVERLAY  */

.alert-overlay {
  overflow-y: auto;
  padding: 20px;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 1000;
}

.alert-overlay.active {
  opacity: 1;
  pointer-events: all;
}


/*  BOXES  */

.alert-box { 
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background: var(--text);
  padding: 30px;
  border-radius: 20px;
  display: none;
  animation: pop .3s ease;
  text-align: center;

  max-width: 900px;
  width: 100%;
}

@keyframes pop {
  from { transform: scale(.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.alert-box video {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  margin: 15px 0;
}

.alert-box img {
  max-width: 100%;
  border-radius: 12px;
  margin: 15px 0;
}

.alert-box.active {
  display: flex;
}

.closeAlert {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 574px) { 
  .projectrow {
    display: block;
  }
  span {
    margin-top: 10px;
  }
  .v-separator {
    margin-top: 5px;
    width: 100%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      var(--muted),
      transparent
    );
}}
