*,

::before,

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

:root {
  /***************** ESPACEMENT ***************/
  --large-margin: 1.5rem;
  --size: 2rem;
  --gap: 1rem;

  /***************** COLOR ***************/
  --color-bg-primary: #111114;
  --color-bg-secondary: #19191D;
  --color-bg-tertiary: #202025;
  --color-bg-fourth: #19191F;
  --color-bg-fifth: rgba(220, 220, 250, 0.08);

  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-tertiary: rgba(255, 255, 255, 0.5);
  --color-text-fourth: #6a61ef;

  --color-button-primary-bg: #584EEC;
  --color-button-primary-hover: #362CC0AA;

}

body {
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  scroll-behavior: smooth;

}


/*****************************************NAVBAR***********************************/

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(250px);
  z-index: 0;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.blob-1 {
  top: -20%;
  left: -10%;
  width: 250px;
  rotate: 120deg;
  height: 600px;
  background-color: var(--color-button-primary-bg);
  opacity: 0.1;
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  rotate: 135deg;
  width: 200px;
  height: 600px;
  background-color: var(--color-button-primary-bg);
  opacity: 0.1;
  animation-delay: 2s;
}

#navbar {
  z-index: 2;
  position: fixed;
  width: 100%;
  top: 0;
  transition: 0.2s ease;

}

#navbar header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--large-margin);
  backdrop-filter: blur(2rem);
  background: var(--color-bg-primary);

}

#navbar .nav-item {
  flex-direction: row;
  gap: 1.5rem;

}

#navbar .nav-item a {
  color: var(--color-text-secondary);
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 400;
  border-radius: 0.8rem;
  transition: 0.3s ease-out;
  font-size: 0.95rem;

}

#navbar .nav-item a:hover {
  color: var(--color-text-primary);
  background-color: var(--color-bg-tertiary);

}

.logo {
  display: flex;
  fill: var(--color-text-secondary);
  transition: fill 0.3s ease;

}

.logo:hover {
  fill: var(--color-text-primary);

}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('/fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Dotem-8';
  font-style: normal;
  src: url('/fonts/Dotemp-8bit.ttf') format('truetype');
}

@font-face {
  font-family: 'Dotem';
  font-style: normal;
  font-weight: 100 1000;
  src: url('/fonts/Dotemp-Regular.ttf') format('truetype');
}


h1 {
  font-size: 2rem;
  font-weight: 100;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 1px;
  font-family: 'Dotem';
}


h2 {
  font-size: 2rem;
  line-height: 110%;
  font-weight: 380;
  letter-spacing: 1px;
  font-family: 'Dotem';
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  flex-grow: 1;
  font-family: 'Dotem';
  letter-spacing: 1px;
}

h4 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  font-family: 'Dotem';
}

p {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.8;
  font-family: 'DM Sans';
}

@keyframes Bdanim {
  from {
    transform: translateY(3rem);
    opacity: 0;
  }


  to {
    transform: translateY(0rem);
    opacity: 1;
  }

}

.digital {
  color: var(--color-text-primary);
  font-weight: 300;
  letter-spacing: 1px;
  font-family: 'Dotem-8';
  text-shadow: 0 0 2rem rgba(255, 255, 255, 0.5);
}

html,
body,
.button,
.button-secondary,
a {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 28px;
  height: 28px;
  background-image: url('../img/cursor.svg');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: var(--color-bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #584EEC;
}

.custom-cursor.has-moved {
  transition: transform 0.05s ease-out, opacity 0.2s;
}

.custom-cursor.click {
  top: -12px;
  left: -12px;
  background-image: url('../img/cursor-click.svg');
  transform: scale(0.2);
  width: 40px;
  height: 40px;
  transition: transform 0.05s ease-out;
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }

  html,
  body,
  a,
  button,
  .button-secondary {
    cursor: auto !important;
  }
}

.buttons {
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
}

.button {
  display: inline-flex;
  justify-content: center;
  padding: 1rem 1.6rem;
  border-radius: 4rem;
  background-color: var(--color-button-primary-bg);
  transition: background-color 0.2s ease-out, box-shadow 0.2s ease-out;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 400;
  gap: 0.4rem;
  letter-spacing: 0.4px;
}

.button:hover {
  background-color: var(--color-button-primary-hover);
}

.tag-experience {
  background-color: var(--color-bg-fifth);
  color: var(--color-text-tertiary);
  padding: 6px 10px;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

/******************************************FOOTER************************************/
.footer-mc {
  color: var(--color-text-primary);
  padding: 6rem var(--large-margin) 3rem;
}

.logo-footer {
  display: flex;
  fill: var(--color-text-primary);
  transition: fill 0.3s ease;
  margin-bottom: 0.8rem;
  width: 32px;
}

.footer-content {
  margin: 0 auto;
  gap: 4rem;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-column-left,
.footer-column-center,
.footer-column-right {
  flex: 1;
  min-width: 200px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.footer-socials .linkedin-icon {
  fill: var(--color-text-primary);
  align-items: center;
  display: flex;
  justify-content: center;
  background-color: var(--color-bg-tertiary);
  padding: 1rem;
  border-radius: 4rem;
  transition: background-color 0.3s;
}

.footer-column-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-column-center {
  display: flex;
  justify-content: center;
}

.footer-nav a {
  text-decoration: none;
  text-align: center;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
}

.footer-nav a:hover {
  color: var(--color-text-primary);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.footer-column-left {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.footer-socials a:hover {
  background-color: var(--color-bg-fourth);
  fill: var(--color-text-primary);
}

.button-secondary {
  display: inline-flex;
  background-color: var(--color-bg-tertiary);
  padding: 1rem 1.2rem;
  color: var(--color-text-primary);
  border-radius: 4rem;
  text-decoration: none;
  transition: background-color 0.3s;
  justify-content: center;
  gap: 0.6rem;
  align-items: center;
}

.button-secondary:hover {
  background-color: var(--color-bg-fourth);
}

.footer-bottom {
  margin: 3rem auto 0;
  border-top: 1px solid var(--color-bg-fifth);
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  text-align: center;
  color: var(--color-text-tertiary);
  flex-direction: row;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 1rem;
}

.footer-legal {
  color: var(--color-text-tertiary);
  text-decoration: none;
}

.footer-legal:hover {
  color: var(--color-text-primary);
}



/******************************************RESPONSIVE********************************/

/* --- Breakpoint: 576px --- */
@media (min-width: 576px) {
  :root {
    --large-margin: 2rem;
  }

  .blob-1 {
    top: -20%;
    left: -30%;
    rotate: 120deg;
    width: 300px;
    height: 600px;
  }

  .blob-2 {
    bottom: 0%;
    right: -50%;
    rotate: 45deg;
    width: 700px;
    height: 350px;
  }

  .buttons {
    flex-direction: row;
  }

  .grid {
    gap: 2.5rem;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  .contact-left {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .footer-column-center {
    display: none;
  }
}

/* --- Breakpoint: 768px (merged for navbar) --- */
@media (min-width: 768px) {
  #navbar .nav-item {
    display: flex;
  }

  .footer-content {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .footer-bottom {
    justify-content: flex-start;
    ;
  }

  .blob-1 {
    top: -20%;
    left: -30%;
    rotate: 120deg;
    width: 400px;
    height: 800px;
  }

  .blob-2 {
    bottom: -20%;
    right: -60%;
    rotate: 45deg;
    width: 1000px;
    height: 600px;
  }

  #main {
    gap: 8rem;
  }

  .about {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
  }

  h2 {
    font-size: 2.7rem;
  }

  .footer-column-right {
    align-items: flex-start;
  }

  #portfolio h2 {
    text-align: left;
  }

  .footer-column-left {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
  }

  .footer-nav a {
    justify-content: left;
  }
}

/* --- Breakpoint: 992px --- */
@media (min-width: 992px) {
  :root {
    --large-margin: 6rem;
  }
  
  .blob-1 {
    top: -20%;
    left: 0%;
    width: 400px;
    rotate: 120deg;
    height: 600px;
  }

  .blob-2 {
    bottom: -50%;
    right: -70%;
    rotate: 45deg;
    width: 2000px;
    height: 600px;
  }

  h1 {
    font-size: 4.2rem;
    text-align: left;
  }

  h2 {
    font-size: 3.2rem;
  }

  h3 {
    font-size: 1.7rem;
  }

  .about .box {
    background-color: var(--color-bg-secondary);
    padding: 1.25rem;
    border-radius: 1rem;
    display: flex;
    gap: 1.25rem;
    min-height: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    text-align: left;
    flex-direction: row;
  }

  h4 {
    font-size: 1.4rem;
  }

  #navbar .nav-item a {
    font-size: 1.1rem;
  }

  .intro {
    max-width: 80%;
    align-items: flex-start;
    text-align: left;
  }

  .grid {
    gap: 3rem;
  }

  .grid-item img,
  .image-wrapper {
    height: 300px;
  }

  .glow-section__blob {
    width: 300px;
    height: 300px;
    filter: blur(60px);
  }

  .footer-content {
    gap: 3rem;
  }
}


/* --- Breakpoint: 1200px --- */
@media (min-width: 1200px) {
  :root {
    --large-margin: 8rem;
  }

  .blob-1 {
    top: -20%;
    left: 0%;
    width: 400px;
    rotate: 120deg;
    height: 600px;
  }

  .blob-2 {
    bottom: -50%;
    right: -70%;
    rotate: 45deg;
    width: 2000px;
    height: 600px;
  }

  #myworkexperience {
    flex-direction: row;
  }



  .box-text h3 {
    font-size: 1.7rem;
  }

  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 3.6rem;
  }

  h3 {
    font-size: 1.8rem;
  }

  .welcome .intro {
    max-width: 70%;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .grid-item img,
  .image-wrapper {
    height: 450px;
  }

  .project-container {
    display: grid;
    grid-template-columns: 320px 1fr;
  }

  .project-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
    overflow-y: auto;
  }

}

/* --- Breakpoint: 1800px --- */
@media (min-width: 1800px) {
  :root {
    --large-margin: 20rem;
  }



  .blob-1 {
    top: -40%;
    left: 0%;
    width: 250px;
    rotate: 120deg;
    height: 1200px;
  }

  .blob-2 {
    bottom: -40%;
    right: -60%;
    rotate: 45deg;
    width: 2000px;
    height: 600px;
  }

  .grid {
    gap: 3rem;
  }

  h1 {
    font-size: 6rem;
  }

  h3 {
    font-size: 2rem;
  }
}

@media (min-width: 2200px) {
  :root {
    --large-margin: 34rem;
  }
}