:root {
  --bg-base: radial-gradient(
    ellipse 40% 50% at center bottom,
    #3bc1a8 4%,
    transparent 40%
  );
  --bg-base-hover: radial-gradient(
    circle at bottom center,
    #42a2e2 0%,
    #81bfe9 20%,
    transparent 60%
  );
  --bg-base-active: radial-gradient(
    circle at bottom center,
    #42a2e2 0%,
    #81bfe9 20%,
    transparent 60%
  );
  --bg-blue: radial-gradient(
    ellipse 90% 90% at center bottom,
    #247cff 5%,
    #73abffeb 20%,
    transparent 55%
  );
  --bg-orange: radial-gradient(
    ellipse 90% 90% at center bottom,
    #fdbe39 5%,
    #fecf3e 20%,
    transparent 50%
  );
  --page-bg-blue:
    linear-gradient(0deg, #89d4ff 0%, #cfecf3 15%, #fcfdff9b 80%), #ffffff;

  --page-bg-orange: linear-gradient(
      180deg,
      #fcfdff9b 0%,
      #eeeeeecc 40%,
      #fffbebac 85%,
      #efe3ca 100%
    )
    #ffffff;
}

html {
  font-size: 100%;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

h4,
h5,
h6 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

p {
  font-family: "M Plus Rounded 1c", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

body {
  width: 100vw;
  min-height: 100vh;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: var(--page-bg-blue);
  /* background:
    linear-gradient(0deg, #344dda81 0%, #bbc5f29e 20%, #fcfdff9b 100%), #ffffff; */
  background-blend-mode: multiply;
  transition: background 0.5s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("media/noisy-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: -100;
  pointer-events: none;
}

/* body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://w3.org id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.5s ease;
} */
#main-container-large-screen {
  padding: 0.5rem 2rem;
}
.blob-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}
.blob {
  position: absolute;
  width: 380px;
  height: 380px;
  filter: blur(40px);
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.blob1 {
  top: 140px;
  left: 12%;
  background: radial-gradient(circle at top, #58d5ff 0%, transparent 70%);
  animation: moveBlob1 13s infinite alternate;
}
@keyframes moveBlob1 {
  from {
    transform: translate(40%, 30%) scale(1.7);
  }
  to {
    transform: translate(-20%, -16%) scale(1);
  }
}
.blob2 {
  top: 240px;
  right: 13%;
  background: radial-gradient(circle at top, #fff175 0%, transparent 70%);
  animation: moveBlob2 10s infinite alternate;
}
@keyframes moveBlob2 {
  from {
    transform: translate(-40%, -20%) scale(1.5);
  }
  to {
    transform: translate(4%, 8%) scale(1);
  }
}

header {
  position: sticky;
  display: flex;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100vw;
  background-color: rgba(242, 246, 255, 0.7);
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title-welcome {
  font-size: 3.3rem;
  text-align: center;
  background: linear-gradient(
    to right bottom,
    #5c5d5e 5%,
    #131414 50%,
    #7d808a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navigation - All*/

nav ul li {
  font-size: 1.25rem;
  font-family: "plus jakarta sans", sans-serif;
}

nav ul li a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  color: #595656;
  transition: 0.4s ease;
}

nav ul li a:hover,
nav ul li a:active {
  color: #232323;
}

/* Navigation - Primary*/
nav.primary {
  width: 100%;
  max-width: 1040px;
  margin: auto;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  box-sizing: border-box;
  position: relative;
}
nav.primary ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}
nav.primary ul.nav-list li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 100px;
  display: inline-block;
  text-align: center;
  margin-right: 0.2rem;
  background: radial-gradient(
    circle at center,
    /* #249E94 0%, */ #3bc1a8 25%,
    transparent 80%
  );
  opacity: 0;
  transition: all 0.5s ease-in-out;
}
nav.primary ul.nav-list li:hover::before,
nav.primary ul.nav-list li:active::before {
  opacity: 1;
  width: 0.7rem;
  height: 0.7rem;
}
nav.primary ul.nav-list li.active::before {
  opacity: 1;
  width: 0.7rem;
  height: 0.7rem;
}

/* Navigation - Work Nav */
#work-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  scroll-margin-top: 100px;
  scroll-snap-align: start;
  flex: 0 0 100%;
}

nav#work-nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 6.5rem;
  padding: 0;
  margin: 0;
  transition: 0.4s ease;
}

nav#work-nav ul li {
  position: relative;
  font-size: 2rem;
  padding: 0.2rem 1rem;
  background: var(--bg-base);
  z-index: 1;
  overflow: hidden;
  transition: all 0.5s ease;
}

nav#work-nav ul li::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  /* background: var(--glow); */
  opacity: 0;
  z-index: -1;
  transition: all 1s ease-out;
}
nav#work-nav ul li:hover {
  transform: translateY(-2px);
}

nav#work-nav ul li.active {
  background: var(--bg-blue);
  transform: translateY(-2px);
  color: #232323;
}

nav#work-nav ul li:hover::after,
nav#work-nav ul li.active::after {
  opacity: 1;
}

nav#work-nav ul li a {
  color: #595656;
  text-decoration: none;
  transition: color 0.4s ease;
}
nav#work-nav ul li a:hover {
  color: #232323;
  border: none;
}
nav#work-nav ul li a.active {
  color: #232323;
  border: none;
}

main {
  margin: 1rem;
  padding: 0;
  width: 100%;
  min-height: 85vh;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.carousel-wrapper {
  width: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  /* background-color: blueviolet; */
}
.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Work Sections */
.work-container {
  width: 100%;
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: auto;
  text-align: center;
  border-radius: 8px;
  padding: 2rem;
  background-color: rgba(242, 246, 255, 0.4);
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* Projects Section */
.projects-container {
  margin: 1.5rem auto;
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  background-color: rgb(255, 255, 255);
}

.project-card {
  width: 100%;
  max-height: 320px;
  min-height: 260px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: inherit;
  flex-direction: row;
  gap: 1rem;
  overflow: hidden;
  text-align: left;
}

.project-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 45%;
  padding: 1rem;
  height: auto;
}
.project-card-image {
  width: 55%;
  height: auto;
}

footer {
  text-align: center;
  width: 100vw;
  height: auto;
  position: relative;
  margin: auto;
  bottom: 10px;
  padding: 0rem;
  /* background-color: #f1f2f2; */
}

/* Responsive Design */

/* Adjustments for Laptop/Desktop */
@media (min-width: 1025px) {
  #main-container-large-screen {
    width: 80%;
    max-width: 1200px;
    margin: auto;
  }
}
@media (max-width: 1024px) {
  #main-container-large-screen {
    width: 90%;
    margin: auto;
  }
  .title-welcome {
    font-size: 2.8rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  .work-container {
    width: 85%;
    padding: 1.5rem;
  }

  .projects-container {
    width: 95%;
    gap: 2.5rem;
  }

  .project-card {
    max-height: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .project-card-image,
  .project-card-text {
    width: 100%;
  }
  footer {
    margin-top: 2rem;
  }
}

/* Adjustments for tablets and smaller screens */
@media (max-width: 768px) {
  #main-container-large-screen {
    width: 100%;
    margin: auto;
    padding: 0rem;
  }
  .title-welcome {
    font-size: 2.2rem;
  }

  nav {
    padding: 0.5rem;
  }
  nav ul {
    flex-direction: row;
    gap: 1rem;
  }

  .work-container {
    width: 90%;
    padding: 1rem;
  }

  .projects-container {
    width: 100%;
    gap: 2rem;
  }

  .project-card {
    flex-direction: column;
    max-height: none;
  }

  .project-card-image,
  .project-card-text {
    width: 100%;
  }
}

/* Adjustments for mobile devices */
@media (max-width: 480px) {
  body {
    width: 100vw;
    min-height: 100vh;
    box-sizing: border-box;
  }
  p {
    font-size: 0.85rem;
  }
  .blob-wrapper {
    width: 100vw;
  }
  #body-container-large-screen {
    width: 100%;
    margin: 0rem auto;
    padding: 0rem;
  }
  .title-welcome {
    font-size: 1.5rem;
    width: 96%;
    margin-top: 2rem;
    box-sizing: inherit;
    background-color: rgb(232, 157, 232);
  }
  main {
    margin: auto;
    gap: 1rem;
  }

  nav {
    padding: 0.5rem;
  }
  nav ul {
    gap: 0.6rem;
    flex-direction: row;
  }

  nav ul li {
    font-size: 0.8rem;
  }

  nav .nav-logo {
    height: 1.5rem;
  }
  nav.primary {
    padding: 0rem;
    height: 80px;
  }

  nav#work-nav ul {
    gap: 3rem;
  }
  nav#work-nav ul li {
    font-size: 1rem;
  }

  .work-container {
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
  }

  .projects-container {
    width: 100%;
    gap: 1.5rem;
  }

  .project-card {
    flex-direction: column;
    max-height: none;
  }

  .project-card-image,
  .project-card-text {
    width: 100%;
  }

  .project-card-image {
    max-height: auto;
  }

  footer {
    margin-top: 1rem;
    padding-bottom: 0;
    font-size: 0.8rem;
  }
}
