/*! modern-normalize v0.5.0 | MIT License | https://github.com/sindresorhus/modern-normalize */

/* Document
   ========================================================================== */

/**
 * Use a better box model (opinionated).
 */

html {
  box-sizing: border-box;
  --green: #00b894;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/**
 * Use a more readable tab size (opinionated).
 */

:root {
  -moz-tab-size: 4;
  tab-size: 4;
}

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
 */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Grouping content
   ========================================================================== */

/**
 * Add the correct height in Firefox.
 */

hr {
  height: 0;
}

/* Text-level semantics
   ========================================================================== */

/**
 * Add the correct text decoration in Chrome, Edge, and Safari.
 */

abbr[title] {
  text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
 * 2. Correct the odd 'em' font sizing in all browsers.
 */

code,
kbd,
samp,
pre {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier,
    monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
 * Remove the inheritance of text transform in Edge and Firefox.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
 */

legend {
  padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome and Firefox.
 */

progress {
  vertical-align: baseline;
}

/**
 * Correct the cursor style of increment and decrement buttons in Safari.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to 'inherit' in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Chrome and Safari.
 */

summary {
  display: list-item;
}

/* End normalize */

:root {
  /*  --bg-color: #101113; */
  --bg-color: #121212;
  --font-color: rgba(255, 255, 255, 0.87);
  --font-secondary: rgba(255, 255, 255, 0.6);
  --font-heading: #90caf9;
  /* 	--foreground-color: #ffffff;
  --accent-color: #ff5252; */

  --card-background: rgba(25, 118, 210, 0.03);
  --work-sideline: #42526d;
}

[data-theme="light"] {
  --bg-color: #ffffff;
  --font-color: #101113;
  --font-secondary: rgba(0, 0, 0, 0.6);
  --font-heading: #1976d2;

  --card-background: rgba(25, 118, 210, 0.06);
  --work-sideline: #d0d6df;
}

body {
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--bg-color);
  padding: 0 1em;

  transition: 0.6s ease;
  -webkit-transition: 0.6s ease;
  -moz-transition: 0.6s ease;
  -ms-transition: 0.6s ease;
  -o-transition: 0.6s ease;
}

main {
  color: var(--font-color);

  margin: 20px auto 20px auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  /* font-family: Calibre, "San Francisco", "SF Pro Text", -apple-system, system-ui, BlinkMacSystemFont, Roboto, "Helvetica Neue", "Segoe UI", Arial, sans-serif; */
}

nav {
  display: flex;
  justify-content: space-between;
  color: var(--font-color);
  font-size: 26px;
  padding: 30px 0px;
}

.name {
  text-transform: uppercase;
}

.contact-link {
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1rem;
  color: var(--font-heading);
  font-family: Helvetica, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  border: 2px solid var(--font-heading);
  border-radius: 3px;
}
.mode-toggle input {
  opacity: 0;
  height: 0;
  width: 0;
}

.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 48px;
}

.theme-switch input {
  display: none;
}

.switch-logo {
  user-select: none;
  width: 16px;
  height: 16px;
  pointer-events: none;
  margin: 0 3px;
}

.slider {
  background-color: #282c35;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider:before {
  background-color: #fff;
  content: "";
  height: 24px;
  position: absolute;
  transition: 0.4s;
  width: 24px;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

.contact-text {
  text-align: center;
  font-size: 1.5em;
  margin: 0 auto;
}
.contact form {
  max-width: 400px;
  margin: 0 auto;
  padding: 2em 0;
  display: flex;
  flex-direction: column;
}

.contact textarea {
  min-height: 200px;
  resize: none;
}

.label-text {
  font-size: 1em;
  display: block;
  margin-bottom: 8px;
}
.label-input {
  display: block;
  margin-bottom: 20px;
}
input[type="text"],
input[type="email"],
textarea {
  font-size: 1em;
  padding: 0.3em 0.4em;
  width: 100%;
  border-radius: 3px;
  border: 1px solid #ced4da;
  user-select: none;
}

.block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 960px;
  margin: 0 auto;
  padding: 150px 0;
}
.section-heading {
  margin: 10px 0 40px;
  font-size: calc(1.1rem + 1vw);
}

.section-content {
  display: flex;
}

img {
  pointer-events: none;
}

.about-image {
  max-width: 300px;
  margin-left: 80px;

  border-radius: 50%;
}
.about-image img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
}

.description {
  padding: 150px 0 150px 0;
}

.text-gradient {
  font-size: calc(1rem + 0.1vw);
  color: var(--font-heading);
  font-weight: normal;
}
.description .name {
  /* font-size: 3.5rem; */
  font-size: calc(2rem + 1.1vw);
  margin: 0 0 5px;
}
.short-desc {
  /* font-size: 3rem; */
  font-size: calc(2rem + 1vw);
  color: var(--font-secondary);
}

.desc-wrapper {
  margin: 40px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.description .desc {
  margin-right: 0px;
  font-family: Helvetica, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
}
hr {
  margin-bottom: 3rem;
  border-width: 0;
  border-top: 2px solid var(--font-color);
  width: 40px;
  text-align: left;
  margin-left: 0;
}
.about .desc {
  max-width: 480px;
  line-height: 1.6;
  font-size: 1rem;
  font-family: Helvetica, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin: 0px 0px 10px;
}

.submit {
  text-align: center;
}

.submit button {
  padding: 0.5em 2em;
  border: 1px solid transparent;
  border-radius: 25px;
  cursor: pointer;
  background: linear-gradient(
    45deg,
    rgb(33, 150, 243) 30%,
    rgb(33, 203, 243) 90%
  );
  color: white;
}

button:focus,
input[type="submit"]:focus,
button[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

.work-content {
  display: flex;
}

.work-left {
  flex: 0 0 250px;
}

.work-title {
  font-weight: 600;
  font-size: 18px;
}
.work-time {
  font-size: 13px;
  margin-top: 5px;
}

.work-left,
.work-desc {
  padding-bottom: 20px;
}

.work-ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.work-entry-wrapper {
  display: flex;
  margin-bottom: 5px;
}
.work-sideline-circle {
  /* stroke: #d0d6df; */
  stroke: var(--work-sideline);
}
.work-sideline {
  display: flex;
  flex-direction: column;
}
.work-sideline-line {
  background: linear-gradient(var(--work-sideline), var(--work-sideline))
    no-repeat center/1px 100%;
  flex: 1 1 auto;
}
.work-entry {
  padding-left: 20px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.project-entry-wrapper {
  display: flex;
  flex-direction: column;
}
.project {
  padding: 20px 15px;
  border-radius: 3px;
  margin-bottom: 30px;

  border: 1px solid var(--work-sideline);
  background-color: var(--card-background);
}

.project-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
}

.project-description {
  line-height: 1.6;
  margin-bottom: 25px;
}
.leetcode-link {
  text-decoration: underline;
  color: var(--font-color);
}

.project-tech {
  margin-bottom: 20px;
  font-size: 14px;
  font-family: monospace;
  line-height: 2;
}
.tech-tag {
  font-family: monospace;
  font-size: 14px;
  margin-right: 5px;
}

.project-links {
  display: flex;
  justify-content: flex-start;
}
.project-links > a {
  margin-right: 30px;
}
.project-link-github {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-family: monospace;
}

.project-link-redirect {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-family: monospace;
}

.project-link-github span {
  margin-left: 10px;
}

.project-link-redirect span {
  margin-left: 10px;
}
.project-link-github svg {
  width: 26px;
  height: 26px;
  fill: var(--font-color);
}
.project-link-redirect svg {
  width: 30px;
  height: 30px;
  fill: var(--font-color);
}

a {
  color: var(--font-color);
  text-decoration: none;
}
@media (max-width: 600px) {
  .description {
    padding: 100px 0 150px 0;
  }
}

@media (max-width: 600px) {
  .about .section-content {
    flex-direction: column-reverse;
  }

  .about-image {
    max-width: 250px;
    margin-left: 0px;
    align-self: center;
  }

  .work-content {
    flex-direction: column;
  }
  .work-left {
    flex: 0 0 auto;
  }
}
