@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,100..1000&display=swap");

body {
  --c-glass: #bbbbbc;
  --c-light: #fff;
  --c-dark: #000;

  --c-content: #224;
  --c-action: #0052f5;

  --c-bg: #e8e8e9;

  --glass-reflex-dark: 1;
  --glass-reflex-light: 1;

  --saturation: 150%;

  --base-variant: #dcdcdf;

  font-size: 20px;
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  background: var(--c-bg);
  color: var(--c-content);

  transition: background 400ms cubic-bezier(1, 0, 0.4, 1),
    color 400ms cubic-bezier(1, 0, 0.4, 1);
}

html {
  scroll-behavior: smooth;
}

body:has(input[value="dark"]:checked) {
  --c-glass: #bbbbbc;
  --c-light: #fff;
  --c-dark: #000;

  --c-content: #e1e1e1;
  --c-action: #03d5ff;

  --c-bg: #1b1b1d;

  --glass-reflex-dark: 2;
  --glass-reflex-light: 0.3;

  --saturation: 150%;
}

body:has(input[value="dim"]:checked) {
  --c-light: #99deff;
  --c-dark: #20001b;
  --c-glass: hsl(335 250% 74% / 1);

  --c-content: #d5dbe2;
  --c-action: #ff48a9;

  --c-bg: #152433;

  --glass-reflex-dark: 2;
  --glass-reflex-light: 0.7;

  --saturation: 200%;
}

.switcher {
  position: fixed;
  z-index: 1;
  top: 40px;
  left: 50%;
  translate: -50%;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 244px;
  max-width: 244px;
  height: 70px;
  box-sizing: border-box;
  padding: 8px 12px 10px;
  margin: 0 auto;
  border: none;
  border-radius: 99em;
  font-size: var(--fz);
  background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);
  backdrop-filter: blur(8px) url(#switcher) saturate(var(--saturation));
  -webkit-backdrop-filter: blur(8px) saturate(var(--saturation));
  box-shadow: inset 0 0 0 1px
      color-mix(
        in srgb,
        var(--c-light) calc(var(--glass-reflex-light) * 10%),
        transparent
      ),
    inset 1.8px 3px 0px -2px color-mix(in srgb, var(--c-light)
          calc(var(--glass-reflex-light) * 90%), transparent),
    inset -2px -2px 0px -2px color-mix(in srgb, var(--c-light)
          calc(var(--glass-reflex-light) * 80%), transparent),
    inset -3px -8px 1px -6px color-mix(in srgb, var(--c-light)
          calc(var(--glass-reflex-light) * 60%), transparent),
    inset -0.3px -1px 4px 0px
      color-mix(
        in srgb,
        var(--c-dark) calc(var(--glass-reflex-dark) * 12%),
        transparent
      ),
    inset -1.5px 2.5px 0px -2px
      color-mix(
        in srgb,
        var(--c-dark) calc(var(--glass-reflex-dark) * 20%),
        transparent
      ),
    inset 0px 3px 4px -2px color-mix(in srgb, var(--c-dark)
          calc(var(--glass-reflex-dark) * 20%), transparent),
    inset 2px -6.5px 1px -4px
      color-mix(
        in srgb,
        var(--c-dark) calc(var(--glass-reflex-dark) * 10%),
        transparent
      ),
    0px 1px 5px 0px
      color-mix(
        in srgb,
        var(--c-dark) calc(var(--glass-reflex-dark) * 10%),
        transparent
      ),
    0px 6px 16px 0px
      color-mix(
        in srgb,
        var(--c-dark) calc(var(--glass-reflex-dark) * 8%),
        transparent
      );
  transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 400ms cubic-bezier(1, 0, 0.4, 1);
}

.switcher__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.switcher__input {
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

.switcher__icon {
  display: block;
  width: 100%;
  transition: scale 200ms cubic-bezier(0.5, 0, 0, 1);
}

.switcher__filter {
  position: absolute;
  width: 0;
  height: 0;
  z-index: -1;
}

.switcher__option {
  --c: var(--c-content);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  width: 68px;
  height: 100%;
  box-sizing: border-box;
  border-radius: 99em;
  opacity: 1;
  transition: all 160ms;
}

.switcher__option:hover {
  --c: var(--c-action);
  cursor: pointer;
}

.switcher__option:hover .switcher__icon {
  scale: 1.2;
}

.switcher__option:has(input:checked) {
  --c: var(--c-content);
  cursor: auto;
}

.switcher__option:has(input:checked) .switcher__icon {
  scale: 1;
}

.switcher::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  display: block;
  width: 84px;
  height: calc(100% - 10px);
  border-radius: 99em;
  background-color: color-mix(in srgb, var(--c-glass) 36%, transparent);
  z-index: -1;
  box-shadow: inset 0 0 0 1px
      color-mix(
        in srgb,
        var(--c-light) calc(var(--glass-reflex-light) * 10%),
        transparent
      ),
    inset 2px 1px 0px -1px color-mix(in srgb, var(--c-light)
          calc(var(--glass-reflex-light) * 90%), transparent),
    inset -1.5px -1px 0px -1px color-mix(in srgb, var(--c-light)
          calc(var(--glass-reflex-light) * 80%), transparent),
    inset -2px -6px 1px -5px color-mix(in srgb, var(--c-light)
          calc(var(--glass-reflex-light) * 60%), transparent),
    inset -1px 2px 3px -1px
      color-mix(
        in srgb,
        var(--c-dark) calc(var(--glass-reflex-dark) * 20%),
        transparent
      ),
    inset 0px -4px 1px -2px
      color-mix(
        in srgb,
        var(--c-dark) calc(var(--glass-reflex-dark) * 10%),
        transparent
      ),
    0px 3px 6px 0px
      color-mix(
        in srgb,
        var(--c-dark) calc(var(--glass-reflex-dark) * 8%),
        transparent
      );
}

.switcher:has(input[c-option="1"]:checked)::after {
  translate: 0 0;
  transform-origin: right;
  transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 400ms cubic-bezier(1, 0, 0.4, 1),
    translate 400ms cubic-bezier(1, 0, 0.4, 1);
  animation: scaleToggle 440ms ease;
}

.switcher:has(input[c-option="2"]:checked)::after {
  translate: 76px 0;
  transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 400ms cubic-bezier(1, 0, 0.4, 1),
    translate 400ms cubic-bezier(1, 0, 0.4, 1);
  animation: scaleToggle2 440ms ease;
}

.switcher[c-previous="1"]:has(input[c-option="2"]:checked)::after {
  transform-origin: left;
}

.switcher[c-previous="3"]:has(input[c-option="2"]:checked)::after {
  transform-origin: right;
}

.switcher:has(input[c-option="3"]:checked)::after {
  translate: 152px 0;
  transform-origin: left;
  transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 400ms cubic-bezier(1, 0, 0.4, 1),
    translate 400ms cubic-bezier(1, 0, 0.4, 1);
  animation: scaleToggle3 440ms ease;
}

@keyframes scaleToggle {
  0% {
    scale: 1 1;
  }
  50% {
    scale: 1.1 1;
  }
  100% {
    scale: 1 1;
  }
}

@keyframes scaleToggle2 {
  0% {
    scale: 1 1;
  }
  50% {
    scale: 1.2 1;
  }
  100% {
    scale: 1 1;
  }
}

@keyframes scaleToggle3 {
  0% {
    scale: 1 1;
  }
  50% {
    scale: 1.1 1;
  }
  100% {
    scale: 1 1;
  }
}

/* //////////////////////////////////////////
/  Article Styles //////////////////////// */

.article {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0em 2em 3em 2em;
}

h1,
h2,
p,
blockquote {
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

@media only screen and (max-width: 372px) {
    /* Styles for mobile devices */
    h1 {
      line-height: 1em; /* Adjust font size as needed */
    }
  }


h1 {
  font-size: 3em;
  margin: 1.4em 0 0.6em;
}

h2 {
  font-size: 2em;
  margin: 1.4em 0 0.6em;
}

p {
  line-height: 160%;
  margin: 0 0 1em;
}

blockquote {
  margin-left: 0;
  margin-right: 0;
  font-size: 2em;
  padding-left: 1em;
  border-left: 0.1em solid currentColor;
}

figure {
  margin: 1em 0 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

figcaption {
  max-width: 600px;
  margin-top: 1em;
  font-size: 0.8em;
  color: color-mix(in srgb, var(--c-content) 60%, var(--c-bg));
}

a {
  color: var(--c-action);
  text-decoration-thickness: 0.05em;
  text-underline-position: under;
  text-decoration-color: color-mix(in srgb, currentColor, transparent 70%);
  transition: color 160ms, text-decoration-color 160ms;
}

a:hover {
  color: color-mix(in srgb, var(--c-action), var(--c-content) 40%);
  text-decoration-color: color-mix(in srgb, currentColor, transparent 30%);
}

img {
  display: block;
  border-radius: 0.8em;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

video {
  display: block;
  border-radius: 0.8em;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.box {
  padding: 1em 1.4em;
  border-top: 4px solid color-mix(in srgb, var(--c-action) 50%, transparent);
  border-radius: 0.8em;
  background-color: color-mix(in srgb, var(--c-action) 8%, var(--c-bg));
  transition: background 400ms cubic-bezier(1, 0, 0.4, 1);
}

.contact-list {
    font-size: 1.2em;
    line-height: 1.5em;
    font-family: Camphor, Open Sans, Segoe UI, sans-serif;
    text-align: center;
}

/* Footer */
footer {
    bottom: 0;
    width: 100%;
    padding: 30px 0;
    text-align: center;
}

.social-links a {
    color: #888;
    text-decoration: none;
    margin: 0 12px;
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--c-action);
}


/*Terminal*/
.about-container {
/* Existing styles */
    /* margin-top: 20vh; */ /* This line seems redundant as you override it below */
    margin: 0 auto;

    /* 👇 Add these lines to disregard the .article padding */
    margin-left: 0em;
    margin-right: 0em;
    /* You may need to add this to ensure full width */
    width: auto; 
    /* Or, set it to 100% and let the negative margins extend it */
    /* width: 100%; */
}

.about-container .terminal .terminal-header .green {
    background-color: #33c948;
    border: 1px solid #2dbb41;
}

.about-container .terminal .terminal-header .red {
    background-color: #f96256;
    border: 1px solid #f65549;
}

.about-container .terminal .terminal-header .yellow {
    background-color: #fdbc3d;
    border: 1px solid #ffb524;
}

.about-container .terminal .terminal-header .header-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 9px;
}

.about-container .terminal .terminal-header {
    height: 28px;
    background-color: var(--base-variant);
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.about-container .terminal .terminal-window {
    background-color: #5a5d7a;
    border-radius: 0px 0px 8px 8px;
    box-shadow: 0 50px 100px rgba(50, 50, 93, .15), 0 15px 35px rgba(50, 50, 93, .2), 0 5px 15px rgba(0, 0, 0, .12);
    font-family: Monaco, Consolas, Lucida Console, monospace;
}

.about-container .terminal .terminal-window a {
    color: #35feff;
}

.about-container .terminal .terminal-window .statement .input-statement {
    color: #f7f7f7;
}

.about-container .terminal .terminal-window .statement .return-statement {
    color: #e7d184;
}

.about-container .terminal .terminal-window .statement {
    margin-bottom: 25px;
    margin-left: 35px;
    margin-right: 35px;
    line-height: 24px;
}

.about-container .terminal .terminal-window .statement:last-child {
    padding-bottom: 60px;
}

.about-container .terminal .terminal-window .statement:first-child {
    padding-top: 35px;
}

body {
    margin: 6.5rem 20px 0; /* Top, right, bottom, left */
  }

  @media only screen and (max-width: 600px) {
    /* Styles for mobile devices */
    body {
      font-size: 16px; /* Adjust font size as needed */
    }
    .body {
      width: 10%; /* Make the container more responsive */
    }
    .image {
      width: 100%; /* Make images responsive */
    }
  }

.input-statement1 {
    font-size: 6vw;
    letter-spacing: 7px;
    font-family: Monaco, Consolas, Lucida Console, monospace;
    font-size: 16px;
    color: #f7f7f7;
    border-right: 5px solid;
    width: 3%;
    white-space: nowrap;
    overflow: hidden;
    line-height: normal;
    animation:
        typing 0.5 steps(2),
        cursor .4s step-end infinite alternate;
}

  html {
    min-height: 100vh;
    font-size: 0.9em;
    line-height: 30px;
    max-width: 1000px;
    margin: auto;
}

/*SOMEHOW KEEPS BLINKER CLOSE*/
.container {
    display: inline-block;
    margin-right: auto;
}

@media (max-width: 1000px) {
  .text {
      font-size: 4.5em;
  }
}

@media (max-width: 850px) {
  .text {
      font-size: 3.5em;
  }
}

@media (max-width: 720px) {
  .text {
      font-size: 3em;
  }
}

@media (max-width: 650px) {
    .text {
        font-size: 2em;
    }
}

@media (max-width: 400px) {
  .text {
      font-size: 1.5em;
  }
}

.text {
    letter-spacing: 7px;
    border-right: 5px solid;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    line-height: normal;
    animation:
        typing 1s steps(14),
        cursor .4s step-end infinite alternate;
}

/* cursor blinking */
@keyframes cursor {
    50% { border-color: transparent;}
}

/* typing effect */
@keyframes typing {
    from {width: 0px;}
}

@media (max-width: 768px) { /* Adjust breakpoint as needed */
        .button-container {
          justify-content: center; /* Center-align items on smaller screens */
        }
      }

#projects {
    scroll-margin-top: 5em;
}

#headerp {
    scroll-margin-top: 5em;
}

.blockquotefooter {
    line-height: 2.5rem;
}