@import url("https://fonts.googleapis.com/css2?family=Almendra&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quattrocento+Sans&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Rye&family=VT323&display=swap");

:root {
  --clr-neutral-900: hsl(20, 19%, 9%);
  --clr-neutral-100: hsl(0, 0%, 100%);
  --clr-accent-400: #9b59b6;
}

* {
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: hsla(267, 86%, 50%, 0.15);
}

*::-webkit-scrollbar-thumb {
  background: hsla(267, 86%, 50%, 0.25);
}

html {
  scroll-behavior: smooth;
}

.small {
  width: 150px;
}

.nav1 {
  background-color: #291a38;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
}

.nav-div * {
  font-size: 25px;
}

.nav-div li {
  display: inline-block;
  list-style: outside none none;
  padding: 0;
}

.nav-div a {
  padding: 0.1em 0;
  color: #e8e8e8;
  position: relative;
  text-decoration: none;
  display: inline-block;
  font-family: "VT323", monospace;
}

.nav-div a:before,
.nav-div a:after {
  height: 3px;
  position: absolute;
  content: "";
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
  background-color: #e8e8e8;
  width: 0;
}

.nav-div a:before {
  top: 0;
  left: 0;
}
.nav-div a:after {
  bottom: 0;
  right: 0;
}

.nav-div a:hover,
.nav-div .current a {
  color: #f8f8f8;
}

.nav-div a:hover:before,
.nav-div .current a:before,
.nav-div a:hover:after,
.nav-div .current a:after {
  width: 100%;
}

.navbar {
  padding: 0.8rem;
}
.navbar-nav li {
  padding-right: 20px;
}
.nav-link {
  font-size: 1.1em !important;
}
.custom-toggler.navbar-toggler {
  border-color: #fff;
}
.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/* welcome section */
#welcome-section {
  background: url(img/me-cover.png);
  height: 100vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
}

.image {
  border-radius: 30px;
  width: 250px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.lead {
  text-align: center;
}
.lead p {
  font-family: "VT323", monospace;
}

.my-4 {
  background-color: #41107b;
  max-width: 50%;
  margin: 40px auto;
  text-align: center;
}

hr:after {
  background: #e8e8e8;
  content: "< >";
  padding: 0 4px;
  position: relative;
  top: -13px;
}

@keyframes blink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  50.1% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

.font-weight-light::after {
  content: "";
  display: inline-block;
  margin-left: 3px;
  background-color: #391339;
  animation-name: blink;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
}

p.font-weight-light::after {
  height: 13px;
  width: 6px;
}

#about-me {
  padding-top: 70px;
}

.card-me {
  color: var(--clr-neutral-100);
  background-image: url(img/me-card.jpeg);
  background-size: cover;
  padding: 10rem 0 0;
  max-width: 50ch;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: 400ms ease;
  margin: 0 auto;
  margin-top: 70px;
  margin-bottom: 70px;
}

.card-me:hover,
.card-me:focus-within {
  transform: scale(1.04);
}

.card-content {
  padding: 1.5rem;
  background: linear-gradient(
    hsl(0 0% 0% / 0),
    hsl(20 0% 0% / 0.8) 40%,
    hsl(0 0% 0% / 0.9)
  );
}

.card-title {
  position: relative;
  width: max-content;
  text-shadow:
    1px 1px 1px #291a38,
    2px 2px 4px var(--clr-accent-400);
}

.card-title::after {
  content: "";
  position: absolute;
  height: 4px;
  left: calc(1.5rem * -1);
  bottom: -2px;
  background: var(--clr-accent-400);
  width: calc(100% + 1.5rem);
  transform-origin: left;
  transition: transform 400ms ease;
}

.card-body {
  color: rgb(255 255 255 / 0.85);
  text-align: center;
}

.card-me:hover .card-title::after,
.card-me:focus-within .card-title::after {
  transform: scaleX(1);
}

@media (hover) {
  .card-content {
    transform: translateY(80%);
    transition: transform 400ms ease;
  }
  .card-me:hover .card-content > *:not(.card-title),
  .card-me:focus-within .card-content > *:not(.card-title) {
    opacity: 1;
    transition-delay: 600ms;
  }
  .card-content > *:not(.card-title) {
    opacity: 0;
    transition: opacity 400ms linear;
  }
  .card-me:hover .card-content,
  .card-me:focus-within .card-content {
    transform: translateY(0);
    transition-delay: 300ms;
  }
  .card-me:focus-within .card-content {
    transition-duration: 0ms;
  }
  .card-title::after {
    transform: scaleX(0);
  }
}

.card:hover {
  transform: scale(1.04);
}

.card {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border-radius: 0.6rem;
  overflow: hidden;
  margin-bottom: 20px;
  margin-top: 50px;
  height: 100%;
}

.card-titles {
  margin: 10px;
  text-align: center;
  font-family: "VT323", monospace;
}

.card-bodys {
  margin: 0px 20px 10px 20px;
  text-align: justify;
  font-family: "Quattrocento Sans", sans-serif;
  flex-grow: 1;
}

.card-bodys span {
  font-weight: bold;
  color: var(--clr-accent-400);
}

.card-btns {
  margin: 10px auto;
  text-align: center;
  background-color: var(--clr-accent-400);
  outline: none;
  border: none;
  width: 100px;
  border-radius: 1rem;
  font-family: "Quattrocento Sans", sans-serif;
}

.card-btns:hover {
  background-color: var(--clr-accent-400);
}

#wobble_skew:hover {
  animation: wobble_skew 0.7s alternate ease;
}

@keyframes wobble_skew {
  20% {
    transform: skewX(-15deg);
  }
  40% {
    transform: skewX(10deg);
  }
  60% {
    transform: skewX(-8deg);
  }
  80% {
    transform: skewX(6deg);
  }
  100% {
    transform: skewX(0deg);
  }
}

.indicator {
  max-width: 80%;
  margin: 0 auto;
  padding-bottom: 20px;
  border-radius: 2px;
  border-bottom: 4px solid var(--clr-accent-400);
}

h2 {
  font-family: "Quattrocento Sans", sans-serif;
  font-weight: bold;
  text-transform: capitalize;
  padding-top: 40px;
}

.content {
  margin: 70px auto;
  max-width: 55ch;
  background: #e8e8e8;
  padding: 20px 30px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.content p {
  font-size: 14px;
  font-family: "Quattrocento Sans", sans-serif;
  transition: transform 500ms ease;
  text-align: justify;
}

.content p:hover {
  transform: scale(1.05);
}

.content li {
  font-size: 14px;
  font-family: "Quattrocento Sans", sans-serif;
  font-weight: 600;
  color: var(--clr-accent-400);
  text-shadow: 0.3px 0.3px 0.5px #000;
}

.content h3 {
  margin-top: 10px;
  margin-bottom: 30px;
  font-size: 18px;
  text-align: center;
  font-family: "Quattrocento Sans", sans-serif;
  font-weight: 600;
}

.content h6 {
  margin-top: 10px;
  font-size: 12px;
  font-family: "Quattrocento Sans", sans-serif;
}

.tab {
  overflow: hidden;
}

.tab button {
  background: #e8e8e8;
  float: left;
  width: 25%;
  border: none;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "VT323", monospace;
  border-bottom: 3px solid #888;
  color: #888;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  font-size: 18px;
  gap: 8px;
}

.tab button i {
  font-size: 24px;
}

.tab button.active {
  color: var(--clr-accent-400);
  border-bottom: 3px solid var(--clr-accent-400);
}

.tabcontent {
  display: none;
  padding: 6px 12px;
}

.tabcontent span {
  font-weight: bold;
  color: var(--clr-accent-400);
}

.active {
  display: block;
}

.container-skillbar {
  width: 100%;
  padding-top: 30px;
  height: auto;
}

.skillbar {
  position: relative;
  display: block;
  margin-bottom: 15px;
  width: 100%;
  font-family: "Quattrocento Sans", sans-serif;
  background: #efefef;
  height: 30px;
  border-radius: 3px;
}

.skillbar-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 130px;
  font-size: 13px;
  color: #fff;
  border-radius: 3px 0 0 3px;
}

.skillbar-title span {
  display: block;
  background: rgba(0, 0, 0, 0.15);
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
  border-radius: 3px 0 0 3px;
}

.skillbar-bar {
  height: 30px;
  width: 0px;
  border-radius: 3px;
}

.skill-bar-percent {
  position: absolute;
  right: 10px;
  top: 0;
  font-size: 14px;
  height: 30px;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.8);
}

.togglerC {
  margin: 70px auto;
}
.tablinks-c {
  margin-top: 30px;
  background: #ffffff;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  font-size: 22px;
  width: 25%;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "VT323", monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tabcontent-c {
  display: none;
  padding: 6px 12px;
}
.togglerC button.active {
  color: var(--clr-accent-400);
}
.active2 {
  display: block;
}
.tabcontent-c img {
  margin-top: 20px;
  max-width: 100%;
  border: 2px solid var(--clr-accent-400);
}
.tablinks-c img {
  border-radius: 50%;
  max-width: 18px;
}

#profile-lin {
  padding-top: 20px;
  background-color: #291a38;
  color: white;
  padding-bottom: 20px;
}

.contact-me {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.contact-me a {
  color: white;
  font-size: 40px;
  margin-left: 30px;
}

.contact-me a:hover {
  color: var(--clr-accent-400);
  transform: scale(1.2);
}

.left-linkedin {
  margin-left: 0px !important;
}

.indicator-contact {
  border-bottom: 1px solid white;
  width: 20%;
  margin: 10px auto;
  opacity: 0.5;
}

.copyright {
  text-align: center;
  margin-top: 10px;
  font-family: "Quattrocento Sans", sans-serif;
}

.copyright span {
  color: #7decbe;
}

.nobubbles {
  background: #ffffff;
}
.bubbles {
  position: relative;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -50px;
  border-radius: 50%;
  opacity: 0.5;
  z-index: -1;
  animation: flying 20s infinite ease-in;
  background: hsla(267, 86%, 50%, 0.25);
}

@keyframes flying {
  0% {
    bottom: -10%;
    transform: translateX(0);
  }
  50% {
    transform: translateX(100px);
  }
  100% {
    bottom: 120%;
    transform: translateX(-200px);
  }
}

@media (max-width: 768px) {
  .nav * {
    font-size: 18px;
  }
  .card-titles {
    font-size: 20px;
  }
  .tablinks-c {
    font-size: 14px;
    padding: 5px 2px;
  }
}

.research-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px 40px;
  background: #e8e8e8;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.springer-citation {
  font-family: "Quattrocento Sans", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 25px;
  padding-left: 30px;
  text-indent: -30px;
  text-align: left;
}

.springer-citation:last-child {
  margin-bottom: 0;
}

.springer-citation strong {
  color: #111;
}

.springer-citation em {
  font-style: italic;
}

.springer-citation a {
  color: var(--clr-accent-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.springer-citation a.paper-link {
  color: #222;
}

.springer-citation a.paper-link:hover {
  text-decoration: underline;
  color: var(--clr-accent-400);
}

.springer-citation a:not(.paper-link) {
  font-size: 14px;
  font-weight: bold;
  margin-left: 5px;
}

.springer-citation a:not(.paper-link):hover {
  text-decoration: underline;
}

/* Projects Section (Clean Portfolio Style) */
.project-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px 40px;
  background: #e8e8e8;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-item {
  border-bottom: 1px solid #ccc;
  padding: 25px 0;
}

.project-item:first-child {
  padding-top: 0;
}

.project-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-title {
  font-family: "Quattrocento Sans", sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: var(--clr-accent-400);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.project-title:hover {
  color: var(--clr-neutral-900);
  text-decoration: underline;
}

.project-tech {
  font-family: "VT323", monospace;
  font-size: 18px;
  color: #666;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.project-desc {
  font-family: "Quattrocento Sans", sans-serif;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: left;
}
