* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #0d0d0d;
  color: white;
  line-height: 1.6;
}

header,
footer {
  padding: 10px;
  background-color: rgba(34, 34, 34, 0.849);
  box-shadow: 0 0 15px rgba(175, 130, 255, 0.3),
    0 0 25px rgba(175, 130, 255, 0.4);
}

header {
  position: sticky;
  background: linear-gradient(to bottom,
      rgb(34, 34, 34),
      rgba(34, 34, 34, 0.8));
  top: 0;
  z-index: 1000;
}

footer {
  text-align: center;
  font-size: 0.8rem;
  z-index: 1;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

nav h1 {
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: #d1c4e9;
}

.hamburger {
  cursor: pointer;
  height: 48px;
  width: 48px;
}

.hamburger input {
  display: none;
}

.hamburger svg {
  /* The size of the SVG defines the overall size */
  height: 3em;
  /* Define the transition for transforming the SVG */
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  /* Define the transition for transforming the Stroke */
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
}

.hamburger input:checked+svg {
  transform: rotate(-45deg);
}

.hamburger input:checked+svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

nav ul.menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 68px;
  right: 20px;
  padding: 10px;
  background-color: rgb(34, 34, 34);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(175, 130, 255, 0.3),
    0 0 25px rgba(175, 130, 255, 0.4);
  z-index: 1000;
}

nav ul.menu.show {
  display: flex;
  transition: all 0.5s;
}

nav ul.menu li {
  margin: 5px 10px;
}

.menu-toggle {
  display: block;
}

nav ul {
  display: none;
}

main {
  padding: 0 20px;
}

@media (min-width: 1080px) {

  .about,
  .projects,
  .skills,
  .contact {
    width: 1040px;
    align-items: center;
  }

  main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
}

.about,
.projects,
.skills,
.contact {
  margin: 20px 0;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(175, 130, 255, 0.3),
    0 0 25px rgba(175, 130, 255, 0.4);
}

h2 {
  margin-bottom: 10px;
}

ul {
  list-style: none;
}

li {
  margin-bottom: 5px;
}

.card-container {
  display: flex;
  overflow: hidden;
  padding: 30px 0;
  position: relative;
  transition: transform 0.5s ease;
  width: 100%;

  mask-image: linear-gradient(to right,
      transparent,
      black 20%,
      black 80%,
      transparent);
}

.card {
  perspective: 1000px;
  width: 100%;
  height: 100%;
  margin: 0 15px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .card:hover .card-inner {
    transform: none;
  }
}

.card-inner {
  position: relative;
  width: 190px;
  height: 254px;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  border-radius: 35px;
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  border-radius: 35px;
  backface-visibility: hidden;
}

.card-front {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(175, 130, 255, 0.2),
    0 0 25px rgba(175, 130, 255, 0.3);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  font-size: 20px;
  text-align: center;
}

.card-back {
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 15px rgba(175, 130, 255, 0.4),
    0 0 25px rgba(175, 130, 255, 0.5);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  transform: rotateY(180deg);
}

.card.is-flipped .card-inner {
  transform: rotateY(180deg);

  .card-front {
    visibility: hidden;
  }
}

.know-more {
  min-width: 120px;

  position: relative;
  cursor: pointer;

  padding: 12px 17px;
  margin-top: 20px;
  border: 0;
  border-radius: 7px;

  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: radial-gradient(ellipse at bottom,
      rgba(255, 255, 255, 0.1) 0%,
      rgb(54, 54, 54));

  color: rgb(255, 255, 255, 0.66);

  transition: all 0.5s cubic-bezier(0.15, 0.83, 0.66, 1);
}

.know-more:hover {
  color: rgb(255, 255, 255, 1);
  transform: scale(1.1) translateY(-3px);
}

#view-projects {
  color: #fff;
  padding: 0.7em 1.7em;
  font-size: 18px;
  border-radius: 0.5em;
  background: rgb(54, 54, 54);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(175, 130, 255, 0.2),
    0 0 25px rgba(175, 130, 255, 0.3);
}

#view-projects:hover {
  background: rgb(39, 39, 39);
  box-shadow: 0 0 15px rgba(175, 130, 255, 0.4),
    0 0 25px rgba(175, 130, 255, 0.5);
}

#view-projects:active {
  background: rgb(29, 29, 29);
  box-shadow: 0 0 15px rgba(175, 130, 255, 0.4),
    0 0 25px rgba(175, 130, 255, 0.5);
}

.contact {
  padding: 50px 20px;
  text-align: center;
  background: linear-gradient(to top right, #ffffff2a, #ffffff0d);
  color: white;
}

.contact h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #fff;
}

.contact-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}

.contact-links a {
  color: white;
  font-size: 1.2em;
  transition: transform 0.3s ease;
  display: flex;
}

.contact-links a img {
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.contact-links a:hover {
  transform: scale(1.5);
}

.contact-links a:hover img {
  transform: rotate(10deg);
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 25px;
  background: linear-gradient(to top right, #00000062, #0000001c);
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(175, 130, 255, 0.2),
    0 0 25px rgba(175, 130, 255, 0.3)
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.input-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  background-color: rgba(39, 39, 39);
  color: white;
}

.input-box .label {
  font-size: 15px;
  padding-left: 10px;
  position: absolute;
  top: 13px;
  transition: 0.3s;
  pointer-events: none;
}

.input {
  width: 200px;
  height: 45px;
  border: none;
  outline: none;
  padding: 0px 7px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  background-color: transparent;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 1),
    -1px -1px 6px rgba(255, 255, 255, 0.4);
}

.input:focus {
  border: 2px solid transparent;
  color: #fff;
  transition: 0.3s;
  background-color: rgb(54, 54, 54);
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 1),
    -1px -1px 6px rgba(255, 255, 255, 0.4),
    inset 3px 3px 10px rgba(0, 0, 0, 1),
    inset -1px -1px 6px rgba(255, 255, 255, 0.4);
}

.input-box .input:valid~.label,
.input-box .input:focus~.label {
  transition: 0.3s;
  padding-left: 2px;
  font-size: 12px;
  transform: translateY(-35px);
}

.input-box .input:valid,
.input-box .input:focus {
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 1),
    -1px -1px 6px rgba(255, 255, 255, 0.4),
    inset 3px 3px 10px rgba(0, 0, 0, 1),
    inset -1px -1px 6px rgba(255, 255, 255, 0.4);
}

.textarea {
  width: 400px;
  height: 150px;
  max-width: 550px;
  max-height: 200px;
  min-width: 250px;
  min-height: 75px;
  border: none;
  outline: none;
  padding: 7px;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  background-color: transparent;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 1),
    -1px -1px 6px rgba(255, 255, 255, 0.4);
}

.textarea:focus {
  border: 2px solid transparent;
  color: #fff;
  transition: 0.3s;
  background-color: rgb(54, 54, 54);
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 1),
    -1px -1px 6px rgba(255, 255, 255, 0.4),
    inset 3px 3px 10px rgba(0, 0, 0, 1),
    inset -1px -1px 6px rgba(255, 255, 255, 0.4);
}

.textarea .label {
  font-size: 15px;
  padding-left: 10px;
  position: absolute;
  top: 13px;
  transition: 0.3s;
  pointer-events: none;
}

.textarea:focus~.label {
  transition: 0.3s;
  padding-left: 2px;
  font-size: 12px;
  transform: translateY(-35px);
}

.submit-button {
  color: #fff;
  padding: 0.7em 1.7em;
  font-size: 18px;
  border-radius: 0.5em;
  background: rgb(54, 54, 54);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(175, 130, 255, 0.2),
    0 0 25px rgba(175, 130, 255, 0.3);
}

.submit-button:hover {
  background: rgb(39, 39, 39);
  box-shadow: 0 0 15px rgba(175, 130, 255, 0.4),
    0 0 25px rgba(175, 130, 255, 0.5);
}

.submit-button:active {
  background: rgb(29, 29, 29);
  box-shadow: 0 0 15px rgba(175, 130, 255, 0.4),
    0 0 25px rgba(175, 130, 255, 0.5);
}