* {
  margin: 0%;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", sans-serif;
  background-color: hsl(264, 100%, 3%);
  margin: 0 auto;
  width: 90%;
  height: 100vh;
}
body #progress {
  z-index: 101;
  position: fixed;
  bottom: 20px;
  right: 10px;
  height: 55px;
  width: 55px;
  display: none;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
body #progress #progress-value {
  display: block;
  height: calc(100% - 13px);
  width: calc(100% - 13px);
  background-color: rgb(255, 255, 255);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.1875rem;
  font-weight: bold;
  color: #001a2e;
}
body .floating-menu {
  display: flex;
  justify-content: center;
  position: fixed;
  left: 35%;
  bottom: 0;
  height: 7vh;
  width: 30%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-top-right-radius: 20px; /* Top-right corner */
  border-top-left-radius: 20px; /* Bottom-right corner */
  z-index: 1;
  overflow: hidden;
}
body .floating-menu a {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
body .floating-menu a img {
  filter: brightness(0) invert(1);
  width: 3.3vw;
  display: inline-block;
}
body .floating-menu a:hover {
  background: hsla(192, 74%, 56%, 0.5);
}

header {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
header svg {
  width: 100px;
}
header nav {
  position: relative;
  margin: 0 auto 0;
  width: 40vw;
  height: 50px;
  border-radius: 8px;
  font-size: 0;
  margin-right: 13vw;
}
header nav a {
  font-size: 1.5vw;
  color: hsl(0, 0%, 100%);
  text-decoration: none;
  line-height: 50px;
  position: relative;
  z-index: 1;
  display: inline-block;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
}
header nav a:hover {
  color: hsl(192, 74%, 56%);
  transition: color 0.5s;
}


header .contact {
  position: relative;
  height: 3vh;
  width: 8vw;
  border-radius: 20px;
  background: transparent;
  border: 1px solid hsl(0, 0%, 100%);
}
header .contact a {
  color: hsl(0, 0%, 100%);
  white-space: nowrap;
  font-size: 1.2vw;
}


section {
  overflow: hidden;
}
section .sec-1 {
  position: relative;
  margin: 80px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
  border-radius: 20px;
  padding-top: 30px;
}
section .sec-1 .home .elidev {
  color: hsl(0, 0%, 100%);
  text-align: center;
}
section .sec-1 .home .elidev h1 {
  font-size: 4.8vw;
  font-weight: 600;
}
section .sec-1 .home .elidev h4 {
  font-size: 1.8vw;
  font-weight: 300;
}
section .sec-1 .home .elidev p {
  font-size: 1.4vw;
  font-weight: 300;
}
section .sec-1 .home .links {
  text-align: center;
  gap: 4px;
}
section .sec-1 .home .links button {
  height: 30px;
  width: 130px;
  background-color: hsl(192, 74%, 56%);
  color: hsl(180, 2%, 9%);
  border: none;
  border-radius: 20px;
  font-size: 1.2vw;
  margin-right: 15px;
  font-weight: 500;
}
section .sec-1 .home .links .cv {
  color: hsl(192, 74%, 56%);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  font-size: 1.2vw;
}
section .sec-1 .home .images {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10%;
  width: 80vw;
}
section .sec-1 .home .images .keyboard {
  -o-object-fit: cover;
     object-fit: cover;
  width: 82%;
}
section .sec-1 .home .images .Mouse {
  position: relative;
  width: 17%;
  left: 3%;
}
section .sec-2 {
  position: relative;
  margin: 50px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
}
section .sec-2 .about-me {
  color: hsl(0, 0%, 100%);
}
section .sec-2 .about-me .info-headings {
  text-align: center;
}
section .sec-2 .about-me .info-headings h2 {
  font-size: 3.8vw;
  font-weight: 500;
}
section .sec-2 .about-me .info-headings p {
  font-size: 1.8vw;
  font-weight: 300;
  padding-top: 5px;
}
section .sec-2 .about-me .descriptions {
  padding-top: 40px;
  display: flow-root;
}
section .sec-2 .about-me .descriptions .descrip {
  padding-top: 20px;
  font-size: 1.3vw;
  font-weight: 400;
}
section .sec-2 .about-me .descriptions .descrip i {
  padding-bottom: 20px;
  font-size: 2vw;
}
section .sec-2 .about-me .descriptions .photo {
  position: relative;
  width: 250px;
  height: 200px;
  float: right;
  margin-right: 10px;
  top: 35px;
}
section hr {
  position: relative;
  bottom: 22px;
  left: 1.7%;
  margin: 0;
  border: 1px s0lid hsl(180, 2%, 9%);
  border-color: hsl(180, 2%, 9%);
  width: 97%;
}
section .sec-3 {
  color: hsl(0, 0%, 100%);
}
section .sec-3 h2 {
  text-align: center;
  font-size: 3.5vw;
  font-weight: 600;
}
section .sec-3 .services {
  display: flex;
  flex-wrap: wrap;
  padding-top: 10px;
}
section .sec-3 .services .box {
  height: 270px auto;
  background: #100029;
  flex: 1 1 15rem;
  margin: 10px;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 20px;
  transition: background 0.5s, transform 0.5s;
}
section .sec-3 .services .box i {
  font-size: 5vw;
  color: hsl(192, 74%, 56%);
}
section .sec-3 .services .box h6 {
  padding: 10px;
  font-size: 2.5vw;
  font-weight: 600;
}
section .sec-3 .services .box p {
  font-size: 1.3vw;
  font-weight: 400;
}
section .sec-3 .services .box:hover {
  border: 1px solid hsl(192, 74%, 56%);
  transform: translateY(-10px);
}
section .sec-3 .services .box:hover + i {
  color: white;
}
section .sec-4 {
  color: hsl(0, 0%, 100%);
  padding: 50px 0;
}
section .sec-4 .projects h2 {
  text-align: center;
  font-size: 3.5vw;
  font-weight: 600;
}
section .sec-4 .projects h2 Span {
  color: hsl(192, 74%, 56%);
}
section .sec-4 .projects p {
  font-size: 1.8vw;
  font-weight: 300;
  padding-top: 5px;
  text-align: center;
}
section .sec-4 .projects .work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 10px;
  margin-top: 50px;
}
section .sec-4 .projects .work-list .work {
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 1rem var(--bg-color);
}
section .sec-4 .projects .work-list .work .layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), hsl(192, 74%, 56%));
  border-radius: 20px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  transition: height 0.5s;
}
section .sec-4 .projects .work-list .work .layer h3 {
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 2vw;
  color: whitesmoke;
}
section .sec-4 .projects .work-list .work .layer p {
  font-size: 1.4vw;
  color: whitesmoke;
}
section .sec-4 .projects .work-list .work .layer a {
  margin-top: 20px;
  color: hsl(180, 2%, 9%);
  text-decoration: none;
  font-size: 1.8vw;
  line-height: 50px;
  background: hsl(0, 0%, 100%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  font-weight: 400;
}
section .sec-4 .projects .work-list img {
  width: 100%;
  height: 550px;
  border-radius: 20px;
  margin-left: 15px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.5s;
}
section .sec-4 .projects .work-list .work:hover img {
  transform: scale(1.1);
}
section .sec-4 .projects .work-list .work:hover .layer {
  height: 100%;
}
section .sec-4 .btn {
  display: block;
  margin: 50px auto;
  width: -moz-fit-content;
  width: fit-content;
  color: hsl(192, 74%, 56%);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  font-size: 1.6vw;
  transition: color 0.5s;
}
section .sec-4 .btn:hover {
  color: hsl(0, 0%, 100%);
}

.contact-me {
  color: hsl(0, 0%, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-me .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
}
.contact-me .container .headings {
  text-align: center;
  padding: 10px;
}
.contact-me .container .headings h2 {
  font-size: 2.6vw;
  font-weight: 500;
}
.contact-me .container .headings p {
  font-size: 1vw;
  font-weight: 300;
  padding-top: 5px;
  color: #999999;
}
.contact-me .container .form-section {
  width: 80%;
}
.contact-me .container .form-section form {
  display: flex;
  flex-direction: column;
  padding-top: 30px;
  gap: 14px;
  width: 100%;
}
.contact-me .container .form-section form input {
  border: 1px solid #999999;
  background: transparent;
  border-radius: 20px;
  height: 45px;
  padding: 10px 10px;
}
.contact-me .container .form-section form input::-moz-placeholder {
  color: #999999;
}
.contact-me .container .form-section form input::placeholder {
  color: #999999;
}
.contact-me .container .form-section form textarea {
  border: 1px solid #999999;
  background: transparent;
  border-radius: 10px;
  padding: 10px 10px;
}
.contact-me .container .form-section form textarea::-moz-placeholder {
  color: #999999;
}
.contact-me .container .form-section form textarea::placeholder {
  color: #999999;
}
.contact-me .container .form-section form input, .contact-me .container .form-section form textarea {
  color: hsl(0, 0%, 100%);
  font-size: 1.1vw;
}
.contact-me .container .form-section form button {
  width: 30%;
  height: 30px;
  border-radius: 20px;
  background-color: hsl(192, 74%, 56%);
  font-size: 1vw;
  border: none;
}
.contact-me .container .form-section span {
  position: relative;
  top: 2%;
  color: #61b752;
  font-weight: 400;
  font-style: italic;
}
.contact-me .me {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-width: 40%;
  max-height: 420px;
  overflow: hidden;
}
.contact-me .me img {
  max-width: 80%;
  max-height: 480px;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.contact-me .me h2 {
  font-weight: 500;
  font-size: 1.8vw;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  height: 10%;
  width: 100%;
  margin: 0;
  padding: 25px;
  margin-top: 20px;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  background: #1b0042;
}
footer p {
  color: hsl(0, 0%, 100%);
  text-align: center;
  font-size: 1.3vw;
}

.animate {
  filter: blur(5px);
  transition: 1s;
}

.show-animate .animate {
  filter: blur(0);
}

.sec-1 .home .elidev .animate {
  transform: translate(-100%);
}

.show-animate .home .elidev .animate {
  transform: translateX(0);
}

.sec-2 .animate {
  transform: scale(0.7);
}

.show-animate .about-me .info-headings .animate {
  transform: translateX(0);
}

.sec-3 .animate {
  transform: scale(0.7);
}

.show-animate .animate {
  transform: translateX(0);
}

.show-animate .projects .work-list .work .animate {
  transform: translateX(0);
}

/* Responsiveness for tablet screen */
@media (max-width: 768px) {
  body {
    width: 100%;
  }
  header {
    justify-content: center;
  }
  header nav {
    display: none;
  }
  header .contact {
    display: none;
  }
  header svg {
    width: 300px;
  }
  section .sec-1 {
    margin: 30px auto;
    width: 100%;
  }
  section .sec-1 .home .elidev h1 {
    font-size: 5.7vw;
  }
  section .sec-1 .home .elidev h4 {
    font-size: 2.4vw;
  }
  section .sec-1 .home .elidev p {
    font-size: 2vw;
  }
  section .sec-1 .home .links button, section .sec-1 .home .links .cv {
    font-size: 2vw;
  }
  section .sec-2 .about-me .info-headings h2 {
    font-size: 4.7vw;
  }
  section .sec-2 .about-me .info-headings p {
    font-size: 2.4vw;
  }
  section .sec-2 .about-me .descriptions .descrip {
    font-size: 2vw;
    font-weight: 300;
  }
  section .sec-2 .about-me .descriptions .descrip i {
    font-size: 2.4vw;
    font-weight: 300;
  }
  section .sec-3 h2 {
    font-size: 5vw;
  }
  section .sec-3 .services .box i {
    font-size: 7vw;
  }
  section .sec-3 .services .box h6 {
    font-size: 4.2vw;
    font-weight: 500;
  }
  section .sec-3 .services .box p {
    font-size: 2vw;
  }
  section .sec-4 .projects h2 {
    font-size: 4.7vw;
  }
  section .sec-4 .projects p {
    font-size: 2.4vw;
  }
  section .sec-4 .projects .work-list .work .layer h3 {
    font-size: 2.9vw;
  }
  section .sec-4 .projects .work-list .work .layer a {
    font-size: 2.9vw;
  }
  section .sec-4 .projects .work-list .work .layer p {
    font-size: 2.4vw;
  }
  section .sec-4 .btn {
    font-size: 2.6vw;
  }
  .contact-me {
    flex-direction: column;
  }
  .contact-me .container {
    width: 80%;
  }
  .contact-me .container .headings h2 {
    font-size: 4.8vw;
  }
  .contact-me .container .headings p {
    font-size: 2.4vw;
  }
  .contact-me .container .form-section form input {
    height: 50px;
    font-size: 2.6vw;
  }
  .contact-me .container .form-section form input, .contact-me .container .form-section form textarea {
    font-size: 2.6vw;
  }
  .contact-me .container .form-section form button {
    font-size: 2vw;
    height: 40px;
  }
  .contact-me .container .form-section span {
    font-size: 1.8vw;
  }
  .contact-me .me {
    max-width: 80%;
    margin-top: 10px;
  }
  .contact-me .me h2 {
    font-size: 3.2vw;
  }
  footer p {
    font-size: 2vw;
  }
}
/* Responsiveness for mobile screen */
@media (max-width: 576px) {
  body .floating-menu {
    width: 40%;
    left: 30%;
  }
  section .sec-1 .home .images {
    width: 90vw;
  }
  section .sec-1 .home .elidev h1 {
    font-size: 7vw;
  }
  section .sec-1 .home .elidev h4 {
    font-size: 3vw;
  }
  section .sec-1 .home .elidev p {
    font-size: 2.6vw;
  }
  section .sec-1 .home .links button, section .sec-1 .home .links .cv {
    font-size: 2.6vw;
  }
  section .sec-2 .about-me .info-headings h2 {
    font-size: 5vw;
  }
  section .sec-2 .about-me .info-headings p {
    font-size: 2.8vw;
  }
  section .sec-2 .about-me .descriptions .descrip {
    font-size: 2.4vw;
    font-weight: 200;
  }
  section .sec-2 .about-me .descriptions .descrip i {
    font-size: 2.8vw;
    font-weight: 300;
  }
  section .sec-3 h2 {
    font-size: 5.5vw;
  }
  section .sec-3 .services .box i {
    font-size: 8vw;
  }
  section .sec-3 .services .box h6 {
    font-size: 4.8vw;
    font-weight: 500;
  }
  section .sec-3 .services .box p {
    font-size: 2.6vw;
  }
  section .sec-4 .projects h2 {
    font-size: 5.5vw;
  }
  section .sec-4 .projects p {
    font-size: 3vw;
  }
  section .sec-4 .projects .work-list .work .layer h3 {
    font-size: 4.5vw;
  }
  section .sec-4 .projects .work-list .work .layer a {
    font-size: 3vw;
  }
  section .sec-4 .projects .work-list .work .layer p {
    font-size: 3vw;
  }
  section .sec-4 .btn {
    font-size: 2.8vw;
  }
  .contact-me .container .form-section span {
    font-size: 2vw;
  }
  .contact-me .me h2 {
    font-size: 4vw;
  }
  footer p {
    font-size: 2.2vw;
  }
}
#preloader {
  background: hsl(264, 100%, 3%) url(Images/Loading.gif) no-repeat center center;
  background-size: 20%;
  height: 100vh;
  width: 100%;
  position: fixed;
  z-index: 100;
  margin: 0 auto;
  right: 0;
}

/* Responsive refinement layer */
:root {
  --page-max: 1200px;
  --page-gutter: clamp(1rem, 4vw, 3rem);
  --surface: #0d0c18;
  --surface-raised: #151422;
  --accent: #48c6e5;
  --text-muted: #a9a8b3;
}

body {
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  padding-inline: var(--page-gutter);
  font-family: "Nunito Sans", sans-serif;
}

header,
section,
.contact-me {
  width: min(100%, var(--page-max));
  margin-inline: auto;
}

header {
  min-height: 5.5rem;
  justify-content: space-between;
  gap: 2rem;
}

header nav {
  width: auto;
  height: auto;
  margin: 0;
  display: flex;
  gap: clamp(1.25rem, 3vw, 3rem);
}

header nav a,
header nav a:nth-child(n) {
  width: auto;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  line-height: 3rem;
}

header nav .animation {
  display: none;
}

header .contact {
  width: auto;
  height: 2.75rem;
  padding-inline: 1.25rem;
  flex: 0 0 auto;
}

header .contact a {
  font-size: 0.95rem;
}

body #progress {
  width: 3rem;
  height: 3rem;
  right: max(1rem, calc((100vw - var(--page-max)) / 2));
  bottom: 5.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body #progress.is-visible {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}

body #progress #progress-value {
  font-size: 1.35rem;
}

body .floating-menu {
  left: 50%;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  width: min(22rem, calc(100% - 2rem));
  height: 3.75rem;
  transform: translateX(-50%);
  border-radius: 0.5rem;
  z-index: 50;
}

body .floating-menu a {
  width: 100%;
  min-width: 3rem;
  padding: 0.75rem;
  transition: background-color 180ms ease;
}

body .floating-menu a img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

section .sec-1,
section .sec-2 {
  width: min(100%, 52rem);
}

section .sec-1 {
  min-height: calc(100svh - 8rem);
  margin-block: 1rem 5rem;
  padding-top: clamp(2rem, 6vh, 5rem);
}

section .sec-1 .home .elidev h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.02;
}

section .sec-1 .home .elidev h4 {
  margin-top: 1rem;
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  line-height: 1.6;
}

section .sec-1 .home .elidev p,
section .sec-2 .about-me .descriptions .descrip,
section .sec-3 .services .box p,
section .sec-4 .projects .work-list .work .layer p {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.7;
}

section .sec-1 .home .links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

section .sec-1 .home .links button {
  width: auto;
  min-height: 2.75rem;
  padding-inline: 1.25rem;
  margin: 0;
  font-size: 0.95rem;
  cursor: pointer;
}

section .sec-1 .home .links .cv,
section .sec-4 .btn {
  font-size: 0.95rem;
}

section .sec-1 .home .images {
  width: min(80vw, 54rem);
  margin-inline: auto;
  padding-top: clamp(3rem, 10vh, 7rem);
}

section .sec-2 {
  margin-block: 5rem;
}

section .sec-2 .about-me .info-headings h2,
section .sec-3 h2,
section .sec-4 .projects h2,
.contact-me .container .headings h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
}

section .sec-2 .about-me .info-headings p,
section .sec-4 .projects > p,
.contact-me .container .headings p {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  line-height: 1.6;
}

section .sec-2 .about-me .descriptions {
  padding-top: 2rem;
}

section .sec-2 .about-me .descriptions .descrip {
  padding-top: 1.25rem;
}

section .sec-2 .about-me .descriptions .descrip i {
  font-size: 1.4rem;
}

section .sec-3 .services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 2rem;
}

section .sec-3 .services .box {
  min-height: 20rem;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  text-align: left;
}

section .sec-3 .services .box i {
  font-size: 2.75rem;
}

section .sec-3 .services .box h6 {
  padding: 1.25rem 0 0.75rem;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

section .sec-4 {
  padding-block: 7rem;
}

section .sec-4 .projects .work-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

section .sec-4 .projects .work-list .work,
section .sec-4 .projects .work-list img,
section .sec-4 .projects .work-list .work .layer {
  border-radius: 0.5rem;
}

section .sec-4 .projects .work-list .work {
  aspect-ratio: 4 / 5;
  background: var(--surface-raised);
}

section .sec-4 .projects .work-list img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

section .sec-4 .projects .work-list .work .layer {
  padding: 1.5rem;
}

section .sec-4 .projects .work-list .work .layer h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

section .sec-4 .projects .work-list .work .layer a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1;
}

.contact-me {
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 2rem 8rem;
}

.contact-me .container {
  width: min(100%, 38rem);
}

.contact-me .container .form-section {
  width: 100%;
}

.contact-me .container .form-section form input,
.contact-me .container .form-section form textarea {
  min-height: 3rem;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 1rem;
  padding: 0.875rem 1rem;
}

.contact-me .container .form-section form button {
  width: auto;
  align-self: flex-start;
  min-height: 2.75rem;
  padding-inline: 1.25rem;
  border-radius: 1.5rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.contact-me .me {
  max-width: 24rem;
  max-height: none;
}

.contact-me .me img {
  width: 100%;
  max-width: none;
  max-height: 30rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.contact-me .me h2 {
  min-height: 2rem;
  margin-top: 1rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

footer {
  position: relative;
  left: calc(-1 * var(--page-gutter));
  width: calc(100% + 2 * var(--page-gutter));
  height: auto;
  min-height: 5rem;
  transform: none;
  margin-top: 0;
}

footer p {
  font-size: 0.9rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  header nav,
  header .contact {
    display: none;
  }

  header {
    justify-content: center;
  }

  header svg {
    width: 8rem;
  }

  section .sec-3 .services,
  section .sec-4 .projects .work-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-me {
    flex-direction: column;
  }

  .contact-me .container,
  .contact-me .me {
    width: min(100%, 38rem);
    max-width: none;
  }
}

@media (max-width: 600px) {
  body {
    padding-inline: 1rem;
    padding-bottom: 4.5rem;
  }

  header {
    min-height: 4.5rem;
  }

  section .sec-1 {
    min-height: calc(100svh - 6rem);
    padding-top: 2rem;
  }

  section .sec-1 .home .elidev {
    padding-inline: 0.25rem;
  }

  section .sec-1 .home .links {
    flex-direction: column;
    gap: 1rem;
  }

  section .sec-1 .home .images {
    width: 100%;
    padding-top: 3rem;
  }

  section .sec-1 .home .images .keyboard {
    width: 80%;
  }

  section .sec-1 .home .images .Mouse {
    width: 18%;
    left: 1%;
  }

  section .sec-2 {
    margin-block: 3rem 5rem;
  }

  section .sec-3 .services,
  section .sec-4 .projects .work-list {
    grid-template-columns: 1fr;
  }

  section .sec-3 .services .box {
    min-height: auto;
  }

  section .sec-4 {
    padding-block: 5rem;
  }

  section .sec-4 .projects .work-list .work {
    aspect-ratio: 4 / 5;
  }

  .contact-me {
    padding-bottom: 4rem;
  }

  .contact-me .container .form-section form button {
    width: 100%;
  }

  body #progress {
    bottom: 5.5rem;
  }
}

@media (hover: none), (pointer: coarse) {
  section .sec-4 .projects .work-list .work .layer {
    height: 58%;
    justify-content: flex-end;
    background: linear-gradient(transparent, rgba(5, 4, 12, 0.96) 28%);
  }

  section .sec-4 .projects .work-list .work .layer p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .animate,
  .sec-1 .home .elidev .animate,
  .sec-2 .animate,
  .sec-3 .animate {
    filter: none;
    transform: none;
  }
}

/* Modern theme system and side navigation */
:root {
  color-scheme: dark;
  --theme-bg: #090d1a;
  --theme-surface: #11182a;
  --theme-surface-strong: #17213a;
  --theme-text: #f4f7ff;
  --theme-muted: #a9b5cc;
  --theme-border: rgba(168, 188, 230, 0.18);
  --theme-accent: #4cc9f0;
  --theme-accent-strong: #00a9e8;
  --theme-shadow: 0 20px 50px rgba(1, 6, 20, 0.32);
}

:root[data-theme="light"],
body[data-theme="light"] {
  color-scheme: light;
  --theme-bg: #f6f8fc;
  --theme-surface: #ffffff;
  --theme-surface-strong: #edf3fb;
  --theme-text: #14213d;
  --theme-muted: #5b6880;
  --theme-border: rgba(20, 33, 61, 0.14);
  --theme-accent: #0077b6;
  --theme-accent-strong: #005f92;
  --theme-shadow: 0 20px 50px rgba(28, 58, 108, 0.12);
}

body {
  background: var(--theme-bg) !important;
  color: var(--theme-text);
  transition: background-color 220ms ease, color 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: linear-gradient(var(--theme-border) 1px, transparent 1px), linear-gradient(90deg, var(--theme-border) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, black, transparent 65%);
}

header {
  border-bottom: 1px solid var(--theme-border);
}

header nav a,
header .contact a,
section .sec-1 .home .elidev,
section .sec-2 .about-me,
section .sec-3,
section .sec-4,
.contact-me,
footer p {
  color: var(--theme-text) !important;
}

header .contact,
section .sec-1 .home .links button {
  border-color: var(--theme-border) !important;
  background: var(--theme-surface) !important;
  color: var(--theme-text) !important;
}

section .sec-1 .home .links button:hover,
.contact-me .container .form-section form button:hover {
  background: var(--theme-accent) !important;
  color: #ffffff !important;
}

section .sec-1 .home .links .cv,
section .sec-4 .btn,
section .sec-4 .projects h2 span {
  color: var(--theme-accent) !important;
}

section .sec-3 .services .box,
section .sec-4 .projects .work-list .work {
  background: var(--theme-surface) !important;
  border-color: var(--theme-border) !important;
  box-shadow: var(--theme-shadow);
}

section .sec-3 .services .box:hover {
  border-color: var(--theme-accent) !important;
  transform: translateY(-0.35rem);
}

section .sec-4 .projects .work-list .work .layer {
  background: linear-gradient(180deg, transparent 20%, rgba(4, 10, 27, 0.95)) !important;
}

.contact-me .container .form-section form input,
.contact-me .container .form-section form textarea {
  background: var(--theme-surface) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

.contact-me .container .form-section form input::placeholder,
.contact-me .container .form-section form textarea::placeholder,
.contact-me .container .headings p {
  color: var(--theme-muted) !important;
}

.contact-me .container .form-section form button {
  background: var(--theme-accent) !important;
  color: #ffffff !important;
}

footer {
  background: var(--theme-surface-strong) !important;
  border-top: 1px solid var(--theme-border);
}

body .floating-menu {
  left: max(0.75rem, env(safe-area-inset-left)) !important;
  right: auto;
  top: 50%;
  bottom: auto;
  width: 3.75rem;
  height: auto;
  min-height: 16rem;
  padding: 0.35rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.25rem;
  overflow: visible;
  border: 1px solid var(--theme-border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--theme-surface) 88%, transparent);
  box-shadow: var(--theme-shadow);
  backdrop-filter: blur(14px);
}

body .floating-menu a,
body .floating-menu .theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 3rem;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  color: var(--theme-text);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

body .floating-menu a:hover,
body .floating-menu .theme-toggle:hover {
  background: var(--theme-surface-strong);
  color: var(--theme-accent);
  transform: translateX(0.15rem);
}

body .floating-menu a::after,
body .floating-menu .theme-toggle::after {
  position: absolute;
  left: calc(100% + 0.65rem);
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--theme-border);
  border-radius: 0.35rem;
  background: var(--theme-surface-strong);
  color: var(--theme-text);
  font-size: 0.75rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-0.3rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

body .floating-menu a:hover::after,
body .floating-menu .theme-toggle:hover::after,
body .floating-menu a:focus-visible::after,
body .floating-menu .theme-toggle:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

body .floating-menu a:nth-of-type(1)::after { content: "Home"; }
body .floating-menu a:nth-of-type(2)::after { content: "About"; }
body .floating-menu a:nth-of-type(3)::after { content: "Services"; }
body .floating-menu a:nth-of-type(4)::after { content: "Contact"; }
body .floating-menu .theme-toggle::after { content: "Theme"; }

body .floating-menu a img {
  width: 1.35rem;
  height: 1.35rem;
  filter: none;
  opacity: 0.82;
}

body[data-theme="light"] .floating-menu a img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(27%) saturate(1237%) hue-rotate(181deg) brightness(95%) contrast(92%);
}

body .floating-menu .theme-toggle .fa-sun { display: none; }
body[data-theme="light"] .floating-menu .theme-toggle .fa-moon { display: none; }
body[data-theme="light"] .floating-menu .theme-toggle .fa-sun { display: inline-block; }

body #progress {
  background: conic-gradient(var(--theme-accent) 0%, var(--theme-border) 0%) !important;
  box-shadow: var(--theme-shadow);
}

body #progress #progress-value {
  background: var(--theme-surface) !important;
  color: var(--theme-text) !important;
}

@media (max-width: 700px) {
  body .floating-menu {
    left: auto !important;
    right: max(0.5rem, env(safe-area-inset-right));
    width: 3.25rem;
    min-height: 14rem;
    padding: 0.25rem;
  }

  body .floating-menu a,
  body .floating-menu .theme-toggle {
    height: 2.65rem;
  }

  body .floating-menu a:hover,
  body .floating-menu .theme-toggle:hover {
    transform: translateX(-0.12rem);
  }

  body .floating-menu a::after,
  body .floating-menu .theme-toggle::after {
    right: calc(100% + 0.5rem);
    left: auto;
  }

  body #progress {
    right: 0.75rem;
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body .floating-menu a,
  body .floating-menu .theme-toggle {
    transition: none;
  }
}

/* Responsive hero actions */
section .sec-1 .home .links {
  width: min(100%, 34rem);
  margin-inline: auto;
  flex-wrap: wrap;
}

section .sec-1 .home .links > a:first-child {
  display: inline-flex;
  max-width: 100%;
}

section .sec-1 .home .links button,
section .sec-1 .home .links .cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: fit-content;
  max-inline-size: 100%;
  min-height: 2.875rem;
  padding: 0.8em 1.35em;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.2;
  white-space: nowrap;
}

section .sec-1 .home .links button {
  width: fit-content;
}

@media (max-width: 420px) {
  section .sec-1 .home .links {
    gap: 0.75rem;
  }

  section .sec-1 .home .links button,
  section .sec-1 .home .links .cv {
    font-size: clamp(0.8125rem, 4vw, 0.9375rem);
    padding-inline: 1.15em;
  }
}

/* Intrinsic hero work CTA */
section .sec-1 .home .links .work-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: fit-content;
  max-inline-size: 100%;
  min-height: 2.875rem;
  padding: 0.8em 1.35em;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-text);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

section .sec-1 .home .links .work-cta:hover {
  background: var(--theme-accent);
  color: #ffffff;
  transform: translateY(-0.125rem);
}

@media (max-width: 420px) {
  section .sec-1 .home .links .work-cta {
    font-size: clamp(0.8125rem, 4vw, 0.9375rem);
    padding-inline: 1.15em;
  }
}

/* Header navigation interaction */
header nav a {
  transition: color 0.5s ease, transform 0.5s ease;
}

header nav a:hover,
header nav a:focus-visible {
  color: var(--theme-accent) !important;
  transform: translateY(-0.2rem);
}

