/* ======================= */
/* HEADER  */
/* ======================= */

header {
  position: fixed;
  width: 100%;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ebd4ef;
  /* background-color: #333; */
  padding: 1.6rem 3.2rem;
  z-index: 500;
}

.dark-mode header {
  background-color: #100412;
}

.logo-container {
  display: inline-block;
  animation: rollInLogo;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
}

.logo {
  height: 9.6rem;
  transition: all 0.5s ease-in;
}

.logo:hover {
  animation: rotateLogo 2s cubic-bezier(0.19, 1, 0.22, 1) 1s infinite;
}

.color-mode {
  display: flex;
  justify-content: flex-start;
  gap: 0.8rem;
  align-items: center;
}

.mode-icon {
  font-size: 3.6rem;
  cursor: pointer;
}

.mode-text {
  font-size: 1.6rem;
}

.icon-dark {
  color: #facc15;
}

.icon-light {
  color: #fb923c;
}

.theme-switch {
  display: inline-block;
  height: 3.4rem;
  width: 6rem;
  position: relative;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ba68c8;
  position: absolute;
  bottom: 0;
  cursor: pointer;
  left: 0;
  right: 0;
  top: 0;
  transition: all 0.4s;
}

.slider::before {
  background-color: #f7f7f7;
  content: "";
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  width: 2.6rem;
  height: 2.6rem;
  transition: all 0.4s;
  z-index: 1;
}

.slider.round {
  border-radius: 3.4rem;
}

.slider.round::before {
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #9c27b0;
}

input:checked + .slider::before {
  transform: translateX(2.6rem);
}

.main-menu {
  display: flex;
  justify-content: space-between;
  gap: 4.8rem;
}

.main-menu a:link,
.main-menu a:visited {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  font-size: 2.728rem;
  transition: all 0.3s;
  position: relative;
}

.main-menu a:hover {
  color: #9c27b0;
  transform: translateY(-0.4rem);
}

.main-menu a:active {
  transform: translateY(-0.1rem);
  outline: none;
}

.main-menu a::before {
  content: "";
  position: absolute;
  bottom: -25%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #9c27b0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

.main-menu a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu {
  display: none;
}

.mobile-icons {
  cursor: pointer;
}

.mobile-menu ion-icon {
  font-size: 4.8rem;
  z-index: 2;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4.8rem;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(206, 147, 216, 0.5);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  /* transform: translateX(20rem); */
  opacity: 1;
  z-index: 100;
  transition: all 0.5s ease-in;
}

.dark-mode .mobile-nav {
  background-color: rgba(31, 8, 35, 0.5);
}

.menu-closed.mobile-nav {
  transition: all 0.5s ease-in;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav-link:link,
.mobile-nav-link:visited {
  text-decoration: none;
  color: #333;
  font-size: 3.2rem;
}

.dark-mode .mobile-nav-link:link,
.dark-mode .mobile-nav-link:visited {
  color: #f7f7f7;
}

/* ======================= */
/* Contact links - sidebar */
/* ======================= */

aside {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 3.2rem;
  position: fixed;
  bottom: 5%;
  left: 1%;
  z-index: 200;
  background-color: #9c27b0;
  padding: 1rem;
  border-radius: 9px;
  opacity: 0.6;
  transition: all 0.3s;
}

aside:hover {
  opacity: 1;
}

.side-icon-container {
  display: inline-block;
  transition: 0.3s;
  color: white;
}

aside:hover .side-icon-container {
  color: #ce93d8;
}

aside:hover .side-icon-container:hover {
  transform: scale(1.25);
  color: white;
}

/* ======================= */
/* About section */
/* ======================= */

.section--about {
  background-color: #ebd4ef;
}

.dark-mode .section.section--about {
  background-color: #100412;
}

.profile-picture {
  perspective: 150rem;
  width: 100%;
  border-radius: 11px;
  align-self: center;
  justify-self: center;
  z-index: 10;
  box-shadow: 4px -4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.profile-picture:hover {
  transform: translateY(-2rem);
}

.section--about .grid {
  grid-template-columns: 2.75fr 2fr;
  column-gap: 3.2rem;
}

.flag-icon {
  height: 3.2rem;
}

.about-subheading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  font-size: 1.728rem;
  margin-bottom: 1.6rem;
}

.about-description .text {
  line-height: 1.8;
}

.about-cta {
  margin: 3.2rem 0;
}

/* ======================= */
/* work section */
/* ======================= */

.section--work .grid {
  grid-template-columns: repeat(3, 1fr);
  column-gap: 4.8rem;
  row-gap: 2.4rem;
  align-items: center;
}

.icon-tap,
.icon-hover {
  height: 1.728rem;
  fill: #9c27b0;
  position: relative;
}

.work-description {
  margin-bottom: 3.2rem;
}

.instruction {
  display: flex;
  align-items: center;
  margin-bottom: 1.6rem;
}

.hover-tap {
  margin-right: 4px;
  font-weight: 700;
}

.project-img {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 11px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.8s;
}

/* .section--work figure:nth-child(1),
.section--work figure:nth-child(2),
.section--work figure:nth-child(3) {
  grid-column: span 2;
}

.section--work figure:nth-child(4) {
  grid-column: 2/4;
}

.section--work figure:nth-child(5) {
  grid-column: 4/6;
} */

.project {
  position: relative;
}

.project-title {
  display: block;
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: aliceblue;
  border-radius: 11px;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: all 0.5s ease-out;
}

.project-overlay:hover {
  opacity: 1;
  visibility: visible;
}

.project-overlay:hover .project-description,
.project-overlay:hover .project-description-freelance {
  transform: translateY(0rem);
  opacity: 1;
}

.project-overlay.flex-center {
  justify-content: center;
}

.project-description {
  text-align: center;
  line-height: 1;
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  transition: all 0.8s;
  opacity: 0;
  transform: translateY(2rem);
}

.project-description-freelance {
  text-align: center;
  line-height: 1;
  padding: 0 8%;
  transition: all 0.8s;
  opacity: 0;
  transform: translateY(4rem);
}

.icon-live {
  fill: red;
  height: 24px;
  width: 24px;
}

.icon-google-sheet {
  fill: #34a853;
  height: 24px;
  width: 24px;
}

.icon-instagram {
  fill: #d62976;
  fill: linear-gradient(to left bottom, #d62976, #333);
  height: 24px;
  width: 24px;
}

.icon-pdf {
  fill: #f40f02;
  height: 24px;
  width: 24px;
}

.btn--project,
.btn--project:link,
.btn--project:visited {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  font-size: 1.2rem;
  padding: 1.6rem 3.2rem;
  background-color: #333;
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  border-radius: 0 0 9px 9px;
  transition: all 0.3s;
}

.btn--project:hover,
.btn--project:active {
  background-color: #111;
}

.btn-portfolio:link,
.btn-portfolio:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  width: 50%;
  font-size: 1.2rem;
  gap: 1.2rem;
  padding: 1.6rem 3.2rem;
}

.btn-live {
  background-color: #27272a;
  border-radius: 0 0 0 11px;
  transition: all 0.3s;
}

.btn-source {
  background-color: #1f2937;
  border-radius: 0 0 11px 0;
  transition: all 0.3s;
}

.btn-live:hover {
  background-color: #52525b;
}

.btn-source:hover {
  background-color: #4b5563;
}

.btn--project:focus,
.btn-portfolio:focus {
  outline: 1px solid white;
}

/* ======================= */
/* timeline section */
/* ======================= */


/* new roles */

.content-0 {
  position: relative;
  overflow: hidden;
  grid-row: 1;
}

.content-0 {
  position: relative;
  overflow: hidden;
  grid-row: 1;
  margin-top: 0; /* or a positive value like 2rem, 3rem, etc. for more space */
}

.content-placeholder-0 {
  grid-row: 1;
  opacity: 0;
  pointer-events: none;
}

.content-0::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 100%;
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
  background-color: #ce93d8;
  z-index: 1;
  transition: all 0.5s;
}

.content-0:hover::before {
  top: -100%;
  left: -100%;
}

.content-0:hover ~ .time-graph-0 .circle-0 {
  background-color: #9c27b0;
  box-shadow: 0 0 5px 5px #f7f7f7;
}


.section--education .grid {
  display: grid;
  grid-template-columns: 10fr 1fr 10fr;
  column-gap: 1.6rem;
}

.text-box {
  position: relative;
  border-radius: 11px;
  width: 100%;
  height: fit-content;
  background-image: linear-gradient(to right bottom, #ce93d8, #ba68c8);
  /* background-color: #ce93d8; */
  transition: all 0.3s;
  cursor: crosshair;
  padding: 1.6rem;
  margin-top: -2.5rem;
  transition: all 0.5s;
}

.text-box:hover {
  background-color: #ba68c8;
  background-image: linear-gradient(to right bottom, #ba68c8, #ce93d8);
}

.content-1,
.content-2,
.content-3,
.content-4,
.content-5,
.content-6 {
  position: relative;
  overflow: hidden;
}

.content-1::before,
.content-3::before,
.content-5::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
  background-color: #ce93d8;
  z-index: 1;
  transition: all 0.5s;
}

.content-1:hover::before,
.content-3:hover::before,
.content-5:hover::before {
  top: 100%;
  left: 100%;
}

.content-2::before,
.content-4::before,
.content-6::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 100%;
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
  background-color: #ce93d8;
  z-index: 1;
  transition: all 0.5s;
}

.content-2:hover::before,
.content-4:hover::before,
.content-6:hover::before {
  top: -100%;
  left: -100%;
}

.content-1:hover ~ .time-graph-1 .circle-1,
.content-2:hover ~ .time-graph-2 .circle-2,
.content-3:hover ~ .time-graph-3 .circle-3,
.content-4:hover ~ .time-graph-4 .circle-4,
.content-5:hover ~ .time-graph-5 .circle-5,
.content-6:hover ~ .time-graph-6 .circle-6 {
  background-color: #9c27b0;
  box-shadow: 0 0 5px 5px #f7f7f7;
}

.timeline-left .timeline-work,
.timeline-left .timeline-period,
.timeline-left .timeline-place {
  text-align: right;
  display: inline-block;
  width: 100%;
}

.timeline-work {
  font-weight: 400;
  text-transform: uppercase;
  width: 100%;
}

.timeline-place {
  text-transform: capitalize;
  width: 100%;
}

.timeline-period {
  font-size: 1.6rem;
  letter-spacing: -0.6px;
}

.content-0 {
  grid-row: 1;
}

.content-1 {
  grid-row: 2;
}
.content-2 {
  grid-row: 3;
}

.content-3 {
  grid-row: 4;
}
.content-4 {
  grid-row: 5;
}
.content-5 {
  grid-row: 6;
}

.content-6 {
  grid-row: 7;
}

.time-graph {
  display: flex;
  justify-content: center;
  grid-column: 2;
}

.time-graph:not(:first-child) {
  margin-top: -1.8rem;
}

.timeline-left {
  justify-self: right;

  grid-column: 1;
}

.timeline-right {
  justify-self: left;

  grid-column: 3;
}

.circle-outer {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #9c27b0;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: all 0.3s;
  z-index: 0;
}

.circle-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ebd4ef;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  transform: translate(-50%, -50%);
  transition: all 0.3s;
}

.circle-last {
  background-color: #9c27b0;
}

.flex-circle {
  position: relative;
}

.flex-line {
  position: relative;
  z-index: 1;
  /* height: 120px; */
  height: 100%;
}

.line-inner {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  /* height: 100px; */
  height: 100%;
  border: none;
  width: 4px;
  background-color: #ebd4ef;
  transition: all 0.6s;
}
.line-outer {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  /* height: 100px; */
  height: 100%;
  border: none;
  width: 16px;
  background-color: #9c27b0;
}

/* ======================= */
/* portfolio section */
/* ======================= */

.section--portfolio .grid {
  grid-template-columns: repeat(3, 1fr);
  column-gap: 4.8rem;
  row-gap: 2.4rem;
  align-items: center;
}

.portfolio-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  border-radius: 0 0 11px 11px;
  background-color: #333;
}

/* ======================= */
/* skills section */
/* ======================= */

.dark-mode .section.section--skills {
  background-color: #ebd4ef;
}

.section--skills .grid {
  grid-template-columns: repeat(8, 1fr);
  row-gap: 4.8rem;
}

.section--skills i,
.section--skills img {
  font-size: 9.6rem;
  width: 9.6rem;
  height: 9.6rem;

  transition: all 0.3s;
}

.section--skills i:hover,
.section--skills img:hover {
  transform: rotate(-6deg) scale(1.25);
  /* transform: scale(1.1); */
  box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* ======================= */
/* contact section */
/* ======================= */

.section--contact .grid {
  grid-template-columns: 2fr 1fr;
  column-gap: 3.2rem;
  justify-content: center;
  align-items: center;
}

.contact.grid {
  grid-template-columns: 1fr 1fr;
}

.contact-form {
  padding: 3.2rem;
  border-radius: 11px;
  background-color: #ebd4ef;
}

.dark-mode .contact-form {
  background-color: #100412;
}

.input-field:last-child {
  grid-column: 1/-1;
}

.input-field:last-child .input {
  width: 100%;
  height: 16rem;
  margin-bottom: 3.2rem;
}

.input-field label {
  cursor: crosshair;
  display: inline-block;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.input {
  margin-bottom: 1.6rem;
  width: 100%;
  padding: 1.6rem;
  font-size: 1.728rem;
  color: #333;
  font-family: "Play", sans-serif;
  border-radius: 9px;
  border: none;
}

.dark-mode .input {
  background-color: #1f0823;
  color: #f7f7f7;
}

textarea {
  resize: vertical;
  max-height: 50rem;
}

.btn--send:hover,
.btn--send:active {
  background-color: #5e176a;
}

.btn--send {
  border: none;
  cursor: pointer;
  color: #f7f7f7;
  padding: 1.6rem 3.2rem;
  background-color: #9c27b0;
  font-size: 1.728rem;
  border-radius: 9px;
  transition: all 0.3s;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
}

.contact-details .heading-secondary {
  text-align: center;
}

.contact-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.contact-details li {
  text-align: center;
  font-size: 1.728rem;
}

.contact-details li a {
  transition: all 0.3s;
}

.contact-details li a:link,
.contact-details li a:visited {
  color: #9c27b0;
  text-decoration: none;
}

.contact-details li a:hover,
.contact-details li a:active {
  color: #5e176a;
}

.contact-details strong {
  color: #333;
}

.dark-mode .contact-details strong {
  color: #f7f7f7;
}

.dark-mode .contact-details li a:link,
.dark-mode .contact-details li a:visited {
  color: #ce93d8;
}

.dark-mode .contact-details li a:hover,
.dark-mode .contact-details li a:active {
  color: #ba68c8;
}

.profile-link {
  width: fit-content;
}

.profile-link:link,
.profile-link:visited {
  text-decoration: none;
  cursor: pointer;
}

.social-profiles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.social-icon-contact {
  font-size: 2.488rem;
}

.btn--profile {
  cursor: pointer;
  color: #f7f7f7;
  border-radius: 9px;
  border: none;
  background-color: #9c27b0;
  padding: 1.6rem 3.2rem;
  font-size: 1.728rem;
  display: flex;

  gap: 4px;
  align-items: center;
  transition: all 0.3s;
}

.btn--profile:hover {
  box-shadow: -2px 4px 16px rgba(0, 0, 0, 0.2);
  /* transform: skew(-5deg); */
  transform: skew(-5deg) scale(1.1);
  background-color: #5e176a;
}

/* ======================= */
/* Footer section */
/* ======================= */

footer {
  margin: 9.6rem 0 0;
  padding: 4.8rem 0 1.6rem;
  background-color: #ebd4ef;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  transition: all 0.5s;
}

footer .text {
  color: inherit;
}

footer .logo {
  height: 4.8rem;
}

.dark-mode footer {
  background-color: #100412;
}

/* ===================== */
/* Colors
Main: #9c27b0
Tints (darker) : #5e176a, 
Shades (lighte) : #b052c0  #e1bee7  #ba68c8

Greys: #f7f7f7, #555, #333, #888, #eee;
*/
/* ===================== */

/* ===================== */
/* Typography */

/*  10px 12px 14.4px 17.28px 20.74px 24.88px 29.86px
    35.83px 43px 51.6px 61.92px 74.3px 89.16px
*/
/* ===================== */

/* ===================== */
/* Spacing*/
/* 2 4 8 16 32 48 64 80 96 112 128 144 160 px  */
/* ===================== */

/* ===================== */
/* Border radius */
/* 9px 11px */
/* ===================== */

/* ===================== */
/* Box shadow */
/* ===================== */
