:root {
  --text:      #e6f1ff;
  --bg:        #1d1d1d;
  --primary:   #61ffda;
  --secondary: #2c2c2c;
  --accent:    #61ffda;

  --border-radius: 20px;
  --socials-menu-spacer-height: 45px;

  --sec-num-color: var(--accent);

  --myGray1: #a2a2a3;
  --myDarkNavy: #192232;
  --myMidNavy: #253347;
  --myMidSlate: #7B8A9A;
}


/* Layout */

body {
  background-color: var(--bg);
  z-index: 3;
}

#main-body {
  font-family: sans-serif;
  color: var(--text);
  padding: 20px;
  max-width: 1200px;
  min-width: 1040px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
}


/* Cursor follow */

#cursor-container {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: 10001;
}

.cursor-follow {
  position: absolute;
  transform: translate(-28.5px, -29.5px);
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  opacity: 0.8;
  border-radius: 50%;
  animation: bounceOff 0.5s;
}

.circle-follow {
  position: absolute;
  transform: translate(-28.5px, -29.5px);
  width: 28px;
  height: 28px;
  border: 0.8px solid var(--accent);
  border-radius: 50%;
  opacity: 0.75;
  background-color: transparent;
}

.cursor-follow-clickable {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  animation: bounceOn 0.5s;
}

@keyframes bounceOn {
  0%   { width: 5px;  height: 5px; }
  30%  { width: 22px; height: 22px; }
  60%  { width: 18px; height: 18px; }
  100% { width: 20px; height: 20px; }
}

@keyframes bounceOff {
  0%   { width: 20px; height: 20px; }
  30%  { width: 3px;  height: 3px; }
  60%  { width: 7px;  height: 7px; }
  100% { width: 5px;  height: 5px; }
}


/* Header and menus */

.static-menu {
  background-color: var(--bg50);
  border-radius: var(--border-radius);
  width: 500px;
  z-index: 1;
  margin-right: 10px;
  margin-left: auto;
  position: static;
  right: 10px;
  opacity: 0;
}

.moving-menu {
  background-color: var(--bg50);
  border-radius: var(--border-radius);
  width: 500px;
  margin-right: 27px;
  margin-left: auto;
  position: fixed;
  right: calc(50% - 617px);
  opacity: 1;
  z-index: 4;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  top: -70px;
  transition: top 0.3s ease-in-out;
}

@media screen and (max-width: 1250px) {
  .moving-menu {
    right: 10px;
  }
}

.menu-sticky {
  position: fixed;
  top: 20px;
  opacity: 1;
  transition: top 0.3s ease-in-out;
}

.menu-invisible {
  opacity: 0;
}

.menu-list {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 3.5em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  color: var(--text50);
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

.menu-item:hover {
  color: var(--accent);
  transition: 0.3s ease-in-out;
}

.menu-spacer {
  border-width: 0.5px;
  border-style: solid;
  border-color: var(--text50);
  border-top-width: 8px;
  border-bottom-width: 8px;
}

.name-logo {
  text-decoration: none;
  margin: 20px;
  margin-top: 10px;
  font-size: 22px;
  color: var(--accent);
  border-radius: var(--border-radius);
  width: 37px;
  height: 37px;
  border: 1px solid var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translate(0, 0);
  transition: 0.3s ease-in-out;
}

.name-logo:hover {
  transform: translateY(-3.5px);
  background-color: var(--accent);
  color: var(--bg);
  transition: 0.3s ease-in-out;
}

.header-menu-container {
  display: flex;
}


/* Typing animation */

.cursor {
  background-color: var(--accent);
  width: 4px;
  display: inline-block;
  height: 1em;
  margin-left: 2px;
  animation: none;
}

@keyframes blink {
  50% { background-color: transparent; }
}

#typing-container {
  display: flex;
  transform: translateX(-290px);
}

#typing-left {
  border-radius: var(--border-radius);
  text-align: left;
}

#typing-right {
  padding: 60px 60px 0px 20px;
  justify-content: center;
  display: flex;
}

#typing-image {
  height: 400px;
  width: 225px;
  border-radius: var(--border-radius);
}

@keyframes slidein {
  from { }
  to   { transform: translateX(0); }
}

@keyframes slideInLeft {
  from { transform: translate3d(-250%, 0, 0); visibility: visible; }
  to   { transform: translate3d(0, 0, 0); visibility: visible; }
}

@keyframes slideInRight {
  from { transform: translateX(250%); visibility: visible; }
  to   { transform: translateX(0); visibility: visible; }
}

#typing-text {
  font-size: 70px;
  margin: 0;
  line-height: 1.2;
  font-weight: bold;
  position: relative;
  padding-top: 2.25em;
}

#typing-text .typing-accent {
  color: var(--accent);
}

#sub-text {
  color: var(--accent);
  letter-spacing: 3px;
  font-size: 14px;
  position: relative;
  opacity: 0;
  font-family: 'SF Mono', monospace;
}

@keyframes fadein {
  from { visibility: visible; opacity: 0; }
  to   { visibility: visible; opacity: 1; }
}


/* Socials sidebar */

#socials-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 10px;
  height: 100%;
  top: 0;
  padding-top: calc(75px - var(--socials-menu-spacer-height));
  opacity: 0;
}

.socials-menu-spacer {
  border-width: 0.5px;
  border-style: solid;
  border-color: var(--text20);
  border-top-width: var(--socials-menu-spacer-height);
  border-bottom-width: 0px;
}

.socials-menu-spacer2 {
  display: none;
}

.socials-item {
  height: 50px;
  width: 50px;
  border-radius: var(--border-radius);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.socials-item i {
  font-size: 24px;
  transform: translateY(0px);
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.socials-item:hover i {
  color: var(--accent);
  transform: translateY(-3.5px);
  transition: 0.3s ease-in-out;
}


/* Cards */

.card-style {
  padding: 20px;
  margin: 10px;
  margin-bottom: 0px;
  border-radius: var(--border-radius);
  background-color: var(--text10);
}


/* About and skills section */

.double-view-container {
  display: flex;
}

.double-view-left {
  width: 31%;
  float: left;
  visibility: hidden;
}

.double-view-right {
  width: 69%;
  float: right;
  visibility: hidden;
}

.card-title {
  color: var(--accent);
  font-size: 28px;
  margin: 0 0 12px 0;
  font-weight: bold;
}

.about-header {
  color: var(--accent);
}

.about-text {
  line-height: 1.5;
}

.skills-header {
  color: var(--accent);
}

.skills-section-header {
  color: var(--accent);
  font-size: 23px;
}

.skills-text {
  line-height: 1.5;
  margin-top: -10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--text20);
}

.skills-text:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.section-spacer {
  height: 8em;
}

.quick-links {
  margin-top: 2em;
}


/* Section headers (shared) */

.section-header {
  color: var(--accent);
  font-size: 40px;
  padding: 20px;
  margin: 10px;
  margin-bottom: 0px;
}

.section-header-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.section-header-spacer {
  background-color: var(--text20);
  flex-grow: 1;
  height: 1px;
  margin-right: 10px;
  margin-left: auto;
  transform: translateY(5px);
}


/* Jobs section */

#jobs-header-static {
  visibility: hidden;
}

#jobs-header { color: var(--accent); }

#jobs-section {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  width: calc(100% - 20px);
  color: var(--text);
}

@media (min-width: 1100px) {
  #jobs-section {
    display: flex;
    flex-direction: row;
    gap: 40px;
  }
}
@media (max-width: 1100px) {
  #jobs-section {
    display: block;
  }
}

.nav-container {
  position: relative;
  overflow-x: visible;
  white-space: nowrap;
  z-index: 1;
  align-self: flex-start;
  border-left: 3px solid var(--myMidNavy);
}

.menu-scroll-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.menu-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 225px;
  position: relative;
}
.menu li {
  margin: 0;
  cursor: pointer;
  color: var(--myMidSlate);
  padding: 12px 16px;
  font-size: 16px;
  transition: background-color 0.2s, color 0.2s;
}
@media (min-width: 1101px) {
  .menu li {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
  }
}
@media (max-width: 1100px) {
  .menu li {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
  }
}
.menu li:hover {
  background: var(--myMidNavy);
}
.menu li.selected {
  background: var(--myDarkNavy);
  color: var(--accent);
}

.highlight {
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: top 0.3s, height 0.3s, left 0.3s, width 0.3s, border-radius 0.3s;
  pointer-events: none;
  z-index: 999;
}

@media (max-width: 1100px) {
  .nav-container {
    border-left: none;
    overflow-x: hidden;
  }
  .menu-scroll-wrapper {
    border-bottom: 2px solid var(--myMidNavy);
  }
  .menu {
    display: inline-flex;
    min-width: 100%;
    width: auto;
  }
  .menu li {
    display: inline-block;
  }
  .highlight {
    height: 2px;
    border-radius: 0;
  }
}

#jobs-content-wrapper {
  position: relative;
  flex: 1;
}
@media (max-width: 1100px) {
  #jobs-content-wrapper {
    margin-top: 20px;
  }
}

.job-content {
  position: relative;
  width: 100%;
  background-color: var(--text10);
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  color: var(--text);
}
.job-content.hidden {
  display: none;
}
.job-content.showing {
  display: flex;
  z-index: 1;
}

.job-out-right {
  transform: translateX(1100px);
  transition: transform 0.5s ease-in-out;
}
.job-in-right {
  transform: translateX(1100px);
  animation: jobSlideInRight 0.5s forwards ease-in-out;
}
@keyframes jobSlideInRight {
  0%   { transform: translateX(1100px); }
  100% { transform: translateX(0); }
}

.job-title {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 5px;
}
.job-dates {
  font-family: 'SF Mono', monospace;
  font-size: 15px;
  color: var(--text50);
}
.job-bullets {
  list-style-type: disc;
  padding-left: 20px;
  line-height: 1.5;
}


/* Project section */

#project-header-static {
  visibility: hidden;
}

#project-header { color: var(--accent); }

.hidden {
  display: none;
}

.showing {
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: 100%;
}

.pill {
  font-family: 'SF Mono', monospace;
  font-size: 13px;
  color: var(--text50);
  border-radius: 20px;
  padding: 5px 14px;
  background-color: var(--text10);
  white-space: nowrap;
}



/* Contact section */

.contact-view-left, .contact-view-right {
  padding: 28px;
  margin: 10px;
  margin-bottom: 0px;
  background-color: var(--text10);
  border-radius: var(--border-radius);
}

.contact-view-left {
  width: 50%;
  float: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-view-left .contact-text {
  margin-top: 0;
  margin-bottom: 0;
}

.contact-view-left .quick-links {
  margin-top: 12px;
}

.contact-view-left .contact-menu {
  margin-top: 0;
  margin-bottom: 0;
}

.contact-view-right {
  width: 50%;
  float: right;
}

.contact-header {
  color: var(--accent);
}

.contact-text {
  line-height: 1.5;
}

.contact-image-wrapper {
  width: 50%;
  margin: 10px;
  margin-bottom: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  align-self: stretch;
  position: relative;
  min-height: 0;
}

.contact-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
  object-position: center;
}

.contact-menu {
  border-radius: var(--border-radius);
  width: auto;
  z-index: 1;
  margin: 10px;
  margin-right: auto;
  margin-left: auto;
  position: static;
}

.contact-menu .menu-list {
  justify-content: center;
  gap: 0;
}

.email-link, .linkedin-link {
  text-decoration: none;
  color: var(--accent);
  transition: color 0.3s ease-in-out;
}

.email-link:hover, .linkedin-link:hover {
  color: var(--accent);
  transition: color 0.3s ease-in-out;
}


/* References */

.references-header {
  color: var(--accent);
  font-size: 40px;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
}

.references-text {
  line-height: 1.5;
  color: var(--text);
  margin: 10px;
}

.text-link {
  text-decoration: none;
  color: var(--accent);
  transition: color 0.25s ease-in-out;
  position: relative;
  z-index: 2;
}

.text-link::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 0.5px;
  opacity: 0.7;
  background-color: var(--accent);
  transition: width 0.25s ease-in-out;
}

.text-link:hover::before {
  width: 100%;
}


/* Footer */

.footer-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.footer-text {
  text-align: center;
  color: var(--text50);
  font-size: 14px;
  line-height: 1.5;
}

.footer-spacer {
  margin: 20px;
  padding: 0;
  border-width: 0.5px;
  border-style: solid;
  border-color: var(--text20);
  width: 80px;
}


/* Button links */

.button-link {
  text-decoration: none;
  padding: 7px;
  color: var(--accent);
  border-radius: 10px;
  width: fit-content;
  border: 1px solid var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(0, 0);
  transition: 0.3s ease-in-out;
}

.button-link:hover {
  transform: translateY(-3.5px);
  background-color: var(--accent);
  color: var(--bg);
  transition: 0.3s ease-in-out;
}


/* Mobile-hidden elements (shown via mobile-styles.css) */

.static-menu-mobile {
  display: none;
}

.contact-menu-mobile {
  display: none;
}

.footer-container-mobile {
  display: none;
}


/* Blog section */

#blog-header-static {
  visibility: hidden;
}

#blog-header { color: var(--accent); }

.blog-scroll-container {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  width: calc(100% - 20px);
}

.blog-scroll-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-scroll-track::-webkit-scrollbar {
  display: none;
}

.blog-card {
  flex-shrink: 0;
  width: 380px;
  min-height: 180px;
  padding: 28px;
  border-radius: var(--border-radius);
  background-color: var(--text10);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease-in-out;
}

.blog-card:hover {
  background-color: var(--text15);
}

.blog-card-title {
  color: var(--text);
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.blog-card-date {
  font-family: 'SF Mono', monospace;
  font-size: 13px;
  color: var(--text50);
  margin: 0 0 14px 0;
}

.blog-card-excerpt {
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-scroll-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s ease-in-out;
}

.blog-scroll-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
  opacity: 0;
}

.blog-scroll-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
  opacity: 1;
}

.blog-see-all {
  text-align: right;
  padding: 15px 10px 0;
  max-width: 1180px;
  margin: 0 auto;
  width: calc(100% - 20px);
}

.sec-num {
  color: var(--sec-num-color);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8em;
  font-weight: 500;
  margin-right: 10px;
  letter-spacing: 1px;
  vertical-align: middle;
}
