@font-face {
  font-family: "FantasqueSansMono";
  src: url("assets/fonts/fantasquesansmonoregular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* @link https://utopia.fyi/type/calculator?c=320,18,1.2,1240,20,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
  /* Theme variables */
  /* Modern Terminal Theme */
  --color-primary: #4d8ce7;
  --color-secondary: #4d8ce7;
  --color-tertiary: #4d8ce7;
  --color-background: #000000;
  --color-background-overlay: rgba(0, 0, 0, 0.95);
  --color-accent: #4d8ce7;
  --color-danger: #4d8ce7;
  --color-hover: #4d8ce7;
  --color-shadow: rgba(0, 0, 0, 0.5);
  --color-command: #4d8ce7;
  --color-error: #4d8ce7;
  --color-white: #4d8ce7;
  --color-spotify-bg: rgba(0, 0, 0, 0.95);
  --color-spotify-border: #4d8ce7;
  --color-spotify-icon: #4d8ce7;
  --color-spotify-text: #4d8ce7;
  --color-spotify-track-info: #4d8ce7;
  --background-image: none;

  /* Typography */
  --step--2: clamp(0.7813rem, 0.7747rem + 0.0326vw, 0.8rem);
  --step--1: clamp(0.9375rem, 0.9158rem + 0.1087vw, 1rem);
  --step-0: clamp(1.125rem, 1.0815rem + 0.2174vw, 1.25rem);
  --step-1: clamp(1.35rem, 1.2761rem + 0.3696vw, 1.5625rem);
  --step-2: clamp(1.62rem, 1.5041rem + 0.5793vw, 1.9531rem);
  --step-3: clamp(1.944rem, 1.771rem + 0.8651vw, 2.4414rem);
  --step-4: clamp(2.3328rem, 2.0827rem + 1.2504vw, 3.0518rem);
  --step-5: clamp(2.7994rem, 2.4462rem + 1.7658vw, 3.8147rem);
  --step-ascii: clamp(1.125rem, 0.916rem + 1.4435vw, 3.0518rem);
}



a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-accent);
}

body {
  background-color: var(--color-background);
  background-image: var(--background-image);
  background-attachment: scroll;
  background-size: cover;
  color: var(--color-secondary);
  -moz-text-size-adjust: auto;
  -webkit-text-size-adjust: auto;
  text-size-adjust: auto;
  overflow: hidden;
  font-family: "FantasqueSansMono";
  position: relative;
}

body::before {
  content: "                                                    _______________                                 \A\
                                                     \\            \\                                \A\
                                                      \\            \\                               \A\
         ______________                                \\            \\                              \A\
        /             /\\                               \\            \\                             \A\
       /             /  \\                              _\\           |                             \A\
      /             /    \\                         ###==\\          /                             \A\
     /             /     _\\                          \\==\\        /                              \A\
    /             /  ==###==\\                         \\  \\      /                               \A\
   /             /      |==\\ \\                        \\  \\    /                                \A\
  /             /       |   \\ \\                        \\  \\  /                                 \A\
 /_____________/        |    \\ \\                        \\  \\/                                  \A\
 \\             \\       |     \\ \\                        \\  \\                                 \A\
  \\             \\      |      \\ \\                        \\  \\                                \A\
   \\             \\     |       \\ \\             /\\        \\  \\                               \A\
    \\             \\    |        \\ \\           /  \\        \\  \\                              \A\
     \\             \\   |         \\ \\         /    \\        \\  \\                             \A\
      \\             \\  |          \\ \\       /      \\        \\  \\                            \A\
       \\             \\ |           \\ \\     /        \\        \\  \\                           \A\
        \\             \\|            \\ \\   /          \\        \\  \\                          \A\
         \\             \\             \\ \\ /            \\        \\  \\                         \A\
          \\             \\             \\ V              \\        \\  \\                         \A\
           \\             \\             \\                \\        \\  \\                        \A\
            \\             \\            /\\\\               \\        \\  \\                       \A\
             \\             \\          /  \\ \\              \\        \\  \\                      \A\
              \\             \\        /    \\  \\             \\        \\  \\                     \A\
               \\             \\      /      \\   \\            \\        \\  \\                    \A\
                \\             \\    /        \\    \\           \\        \\  \\                   \A\
                 \\             \\  /          \\     \\          \\        \\  \\                  \A\
                  \\             \\/            \\      \\         \\        \\  \\                 \A\
                   \\                           \\       \\        \\         \\ |                  \A\
                    \\                           \\        \\        \\        \\|                  \A\
                     \\                           \\         \\       \\        \\                  \A\
                      \\                           \\          \\      \\        \\                 \A\
                       \\                           \\           \\     \\        \\                \A\
                        \\___________________________|            \\    \\        \\                \A\
                                                                 \\    \\        \\                \A\
                                                                  \\    \\      /                  \A\
                                                                   \\    \\    /                   \A\
                                                                    \\    \\  /                    \A\
                                                                     \\    \\/                     \A\
                                                                      \\    \\                     \A\
                                                                       \\    \\                    \A\
                                                                        \\    \\                   \A\
                                                                         \\____\\                  ";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  color: rgba(77, 140, 231, 0.1);
  font-family: monospace;
  white-space: pre;
  z-index: -1;
  pointer-events: none;
  font-size: 8px;
  line-height: 1;
  animation: rotate 120s linear infinite;
}

.terminal-window {
  border: 1px solid var(--color-primary);
  background-color: var(--color-background-overlay);
  border-radius: 4px;
  width: 100%;
  height: 100%;
  min-height: 98vh;
  max-height: 105vh;
  overflow: hidden;
  box-shadow:
    0 20px 25px -5px var(--color-shadow),
    0 8px 10px -6px var(--color-shadow);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px 0 10px;
  position: relative;
  font-size: var(--step-0);
  font-family: "FantasqueSansMono";
}

hr {
  border: 1px ridge var(--color-primary);
}
.centered {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-icon {
  padding-top: 2.5px;
  font-size: 1.25rem;
  color: var(--color-tertiary);
}

/* Specific hover colors */
.github-icon:hover {
  color: var(--color-accent);
}

.close-icon:hover {
  color: var(--color-danger);
}

.ascii {
  font-family: monospace; /* Makes sure characters align */
  white-space: pre; /* Preserve formatting */
  display: inline-block;
  font-size: var(--step-ascii);
  padding-left: var(--step-2);
  color: var(--color-hover);
  white-space: pre-wrap;
  display: inline-block;
  overflow-wrap: break-word;
  line-height: 1;
}

.name {
  position: relative;
  display: inline-block;
  font-weight: bold;
  color: var(--color-primary);
}

.name::after {
  content: "------------------------------";
  display: block;
  margin-top: 0.5rem;
  width: 100%;
}

.info-item {
  display: flex;
  align-items: center;
  color: var(--color-primary);
  margin-bottom: 0.5rem; /* optional spacing between items */
}

.info-item i {
  margin-right: 0.6rem;
  min-width: 1.25rem; /* ensures consistent icon spacing */
  text-align: center;
}

.link-text {
  padding-left: 0.5rem; /* nice left indent */
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-text:hover {
  color: var(--color-accent); /* optional hover to match icon */
}

#contentscroll {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer and Edge */
  overflow-y: scroll;
}
.content-container {
  display: flex;
  flex-direction: row;
  gap: 9rem; /* space between ASCII and profile */
  flex-wrap: wrap; /* allows wrapping on small screens */
}

.ascii-Hero {
  flex-shrink: 0; /* prevent shrinking */
}

.profile-info {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  text-align: left;
  font-size: var(--step--1);
  padding: var(--step-2);
}

/* Responsive: stack on smaller screens */
@media (max-width: 1015px) {
  .content-container {
    flex-direction: column;
    gap: 0rem; /* space between ASCII and profile */
  }
  .profile-info {
    padding-top: var(--step--2);
  }

  .spotify-panel {
    float: left;
  }
}

/* Terminal input */
#terminal {
  height: 55vh;
  padding-left: var(--step-0);
  font-size: var(--step-0);
}

@media (max-width: 726px) {
  #terminal {
    height: 38vh;
  }
}

#command {
  cursor: text;
  height: 50px;
  color: var(--color-command);
}

.texter {
  position: absolute;
  opacity: 0;
  left: 0;
  top: 0;
  z-index: -1;
  pointer-events: none;
}

#liner {
  line-height: 1.3em;
  animation: show 0.5s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

#liner::before {
  content: "[sah²@ubuntu]~$";
}

.cursor {
  font-size: 12px;
  color: var(--color-command);
  background-color: var(--color-command);
  position: relative;
  opacity: 1;
  height: 1.5em;
  width: 10px;
  max-width: 10px;
  transform: translateY(4px);
  overflow: hidden;
  text-indent: -5px;
  display: inline-block;
  text-decoration: blink;
  animation: blinker 1s linear infinite;
}

/* Animations */
@keyframes show {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/* Colors */
.index {
  color: #dcdccc;
}

.color2 {
  color: #8285c1f0;
}

.command {
  color: var(--color-command);
  text-shadow: 0 0 5px var(--color-command);
}

.error {
  color: var(--color-error);
}

.white {
  color: var(--color-white);
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.5rem;
  z-index: 50;
  background: transparent;
  pointer-events: none;
}

.bottom-bar .spotify-panel {
  pointer-events: auto;
  margin: 15px;
}



/* Spotify styling */
.quote-panel {
  background-color: var(--color-background-overlay);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  max-width: max-content;
  padding: 0.8rem;
  margin: 1rem;
  position: relative;
  float: right;
  font-size: var(--step--1);
  color: var(--color-primary);
}

.quote-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quote-icon {
  font-size: var(--step-1);
  color: var(--color-primary);
}

.quote-text {
  font-style: italic;
  max-width: 600px;
}

pre {
  white-space: pre-wrap !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

a {
  word-break: break-word;
  overflow-wrap: break-word;
}
