:root {
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --default-font-family: "DM Sans", sans-serif;
  --default-mono-font-family: "DM Mono", monospace;
  --font-heading: "Lora", serif;
  --color-red-500: oklch(63.7% .237 25.331);
  --color-white: #fff;
  --spacing: .25rem;
  --container-2xl: 42rem;
  --container-3xl: 48rem;
  --container-5xl: 64rem;
  --text-xs: .75rem;
  --text-xs--line-height: calc(1 / .75);
  --text-sm: .875rem;
  --text-sm--line-height: calc(1.25 / .875);
  --text-base: 1rem;
  --text-base--line-height: calc(1.5 / 1);
  --text-lg: 1.125rem;
  --text-lg--line-height: calc(1.75 / 1.125);
  --text-xl: 1.25rem;
  --text-xl--line-height: calc(1.75 / 1.25);
  --text-2xl: 1.5rem;
  --text-2xl--line-height: calc(2 / 1.5);
  --text-3xl: 1.875rem;
  --text-3xl--line-height: calc(2.25 / 1.875);
  --text-4xl: 2.25rem;
  --text-4xl--line-height: calc(2.5 / 2.25);
  --text-5xl: 3rem;
  --text-5xl--line-height: 1;
  --text-6xl: 3.75rem;
  --text-6xl--line-height: 1;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --tracking-tight: -.025em;
  --radius: .75rem;
  --radius-sm: calc(var(--radius) * .5);
  --radius-md: calc(var(--radius) * .667);
  --radius-2xl: 1rem;

  --background: #f9f7f4;
  --foreground: #1a1a1a;
  --muted: #e8e4df;
  --muted-foreground: #6b7280;
  --border: #d8d4cf;
  --ring: #7c9e8a;
  --accent: #e8e4df;
  --accent-foreground: #1a1a1a;
  --card: #e8e4df;
  --card-foreground: #1a1a1a;
  --popover: #f9f7f4;
  --popover-foreground: #1a1a1a;
  --primary: #7c9e8a;
  --primary-foreground: #f9f7f4;
  --primary-dark: #4a7c5f;
  --secondary: #e8e4df;
  --secondary-foreground: #1a1a1a;
  --destructive: oklch(57.7% .245 27.325);
  --input: #d8d4cf;
  --radius: .75rem;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --surface: #e8e4df;
  --accent-green: #7c9e8a;
  --accent-green-dark: #4a7c5f;
}

/* Use a more-intuitive box-sizing model */

html {
    box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

* {
    padding: 0;
}

/* Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

.light{
  --background: #f9f7f4;
  --foreground: #1a1a1a;
  --muted: #e8e4df;
  --muted-foreground: #6b7280;
  --border: #d8d4cf;
  --ring: #7c9e8a;
  --accent: #e8e4df;
  --accent-foreground: #1a1a1a;
  --card: #e8e4df;
  --card-foreground: #1a1a1a;
  --popover: #f9f7f4;
  --popover-foreground: #1a1a1a;
  --primary: #7c9e8a;
  --primary-foreground: #f9f7f4;
  --primary-dark: #4a7c5f;
  --secondary: #e8e4df;
  --secondary-foreground: #1a1a1a;
  --destructive: oklch(57.7% .245 27.325);
  --input: #d8d4cf;
  --radius: .75rem;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --surface: #e8e4df;
  --accent-green: #7c9e8a;
  --accent-green-dark: #4a7c5f;
}

.dark{
  --background: #101828;
  --foreground: #e5e6eb;
  --muted: #1c1f2a;         
  --muted-foreground: #b4b8c5;         
  --border: #2e3240;                   
  --ring: #6ee7b7;
  --accent: #1c1f2a;
  --accent-foreground: #e5e6eb;
  --card: #151821;
  --card-foreground: #e5e6eb;
  --popover: #151821;
  --popover-foreground: #e5e6eb;
  --primary: #6ee7b7;
  --primary-foreground: #0a0e14;
  --primary-dark: #34d399;
  --secondary: #1c1f2a;
  --secondary-foreground: #e5e6eb;
  --input: #2e3240;
  --text-primary: #e5e6eb;
  --text-secondary: #b4b8c5;        
  --surface: #1e2939;
  --accent-green: #6ee7b7;
  --accent-green-dark: #34d399;
  --color-white: #e5e6eb;
}

body {
  /* Increase line-height */
  line-height: 1.5;
  /* Improve text rendering */
  -webkit-font-smoothing: antialiased;

  background-color: var(--background);
  font-family: var(--default-font-family);
}

/* Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-tight);
}

/*
  Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

header {
  padding: calc(var(--spacing) * 3) var(--text-base);
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background-color: color-mix(in oklab, var(--background) 80%, transparent);
  z-index: 1;
}


header a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-tight);
  line-height: var(--text-lg--line-height);
}

header .sub-header {
  width: var(--container-3xl);
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .sub-header .menu {
  display: none;
  fill: var(--text-primary);
}

header .sub-header .nav-mobile {
  position: absolute;
  top: 0;
  left: -100%;
  transition: left 250ms ease-in-out;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: calc(var(--spacing) * 4);
}

header nav {
  display: flex;
  align-items: center;
}

header nav button {
  height: 34px;
  width: 34px;
  padding: 4px;
  background-color: var(--accent);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--text-4xl);
  cursor: pointer;
}

.dark-button,
.light-button {
  align-items: center;
  justify-content: center;
}

header nav .dark-button {
    display: flex;
}

header nav .light-button {
  display: none;
}

.dark nav .dark-button {
  display: none;
} 

.dark nav .light-button {
    display: flex;
} 

.light nav .dark-button {
    display: flex;
} 

.light nav .light-button {
  display: none;
} 

header nav button svg{
  fill: var(--text-primary);
  opacity: 0.7;
}

.light header nav button svg:last-child {
  display: block;
}

header nav a {
  font-weight: normal;
}

header nav a:hover {
  color: var(--primary);
}

main {
  display: flex;
  justify-content: center;
  width: var(--container-3xl);
  max-width: 100%;
  margin: 0 auto;
  padding: calc(var(--spacing) *24) var(--text-base);
  gap: 40px;
}

main .image img {
  width: 14rem;
  border-radius: 50%;
}

main .about-me {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main .about-me .circle {
  gap: 4px;
  background-color: var(--accent);
  width: fit-content;
  display: flex;
  align-items: center;
  padding: 0 calc(var(--spacing) *2);
  border-radius: 9999px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

main .about-me .circle svg {
  height: 10px;
  width: 10px;
  border: none;
  fill: var(--accent-green-dark);
  background-color: var(--accent-green-dark);
  border-radius: 50%;
}

main .about-me .main-text .introduction {
  display: flex;
  align-items: center;
  font-size: var(--text-3xl);
  line-height: var(--text-3xl--line-height);
  letter-spacing: var(--tracking-tight);
  gap: 8px;
}

main .about-me .main-text .introduction h2 {
  color: var(--muted-foreground);
  font-size: inherit;
  line-height: inherit;
} 

main .about-me .main-text .introduction h1 {
  color: var(--accent-green);
  font-size: inherit;
  line-height: inherit;
}

main .about-me .main-text > h2 {
  font-size: var(--text-3xl);
  line-height: var(--text-3xl--line-height);
}

main .about-me .main-more-info {
  display: flex;
  margin-top: 20px;
  font-size: var(--text-lg);
  gap: 20px;
}

main .about-me .main-more-info svg {
  width: 24px;
  height: 24px;
  fill: var(--text-primary);
}

main .about-me .main-more-info .location p {
  color: var(--text-primary);
}

main .about-me .main-more-info .pro-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

main .about-me .main-more-info .pro-links a {
  display: flex;
  text-decoration: none;
  font-weight: 400;
  color: var(--text-primary);
  gap: 2px;
}  

main .about-me .main-more-info .pro-links a:hover {
  color: var(--accent-green-dark);
}

.skills {
 width: var(--container-3xl);
 max-width: 100%;
 margin: 0 auto;
 padding: 0 var(--text-base) calc(var(--spacing) * 24) var(--text-base);
}

.skills .skills-intro h1 {
  font-size: calc(var(--text-3xl) - 0.3rem);
  line-height: var(--text-3xl--line-height);
}

.skills .skills-intro p {
  color: var(--muted-foreground);
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
}

.skills .stack svg {
  width: 24px;
  height: 24px;
  fill: var(--text-primary);
}

.skills .stack > div > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 8px;
}

.skills .stack > div > div > div {
  font-family: var(--default-mono-font-family);
  font-size: var(--text-lg);
  display: flex;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  justify-content: space-between;
  align-items: center;
  transition: 250ms ease-in-out;
  cursor: pointer;
}

.skills .stack > div > div > div:hover {
  box-shadow: 2px 2px 2px var(--border);
}

.skills .stack > div > div > div span {
  font-size: 14px;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  opacity: 0.7;
  gap: 2px;
}

.skills .stack > div > div > div span svg {
  width: 6px;
  height: 6px;
}

.skills .stack > div > div > div > div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.skills .stack > div > div > div > div span {
  font-size: var(--text-sm);
  color: var(--text-primary);
  /* color: var(--muted-foreground); */
}

.skills > div > div h1{
  font-size:calc(var(--text-2xl) - 0.3rem);
  line-height: var(--text-2xl--line-height);
  padding: calc(var(--spacing) *4) 0;
}

.work-experience {
  width: var(--container-3xl);
  max-width: 100%;
  padding: 0 var(--text-base) calc(var(--spacing) * 24) var(--text-base);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--text-lg);
}

.work-experience h1 {
  font-size: calc(var(--text-3xl) - 0.3rem);
  line-height: var(--text-3xl--line-height);
}

.work-experience p {
  color: var(--muted-foreground);
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
}

.work-experience > div {
  display: grid;
  grid-template-columns: 20% calc(80% - var(--text-base));
  gap: var(--text-base);
}

.work-experience > div  h1 {
  font-size: calc(var(--text-2xl) - 0.3rem);
  line-height: 1.75rem;
}

.work-experience > div h2,
.work-experience > div p  {
  color: var(--muted-foreground);
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
}

.work-experience > div h2 {
  color: var(--accent-green);
  font-size: var(--text-sm);
}

.work-experience > div h2 .data-mobile {
  display: none;
 } 

.work-experience > div > div > div:first-child {
  padding-bottom: calc(var(--text-sm) - 0.3rem);
}

.projects {
  width: var(--container-3xl);
  max-width: 100%;
  padding: 0 var(--text-base) calc(var(--spacing) * 24) var(--text-base);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--text-base);
}

.projects svg {
  width: 20px;
  height: 20px;
  fill: var(--text-primary);
}

.projects .section-header h1 {
  font-size: calc(var(--text-3xl) - 0.3rem);
  line-height: var(--text-3xl--line-height);
}
.projects .section-header p {
  color: var(--muted-foreground);
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
}

.projects .showcase .project {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--text-base);
}

.projects .showcase .first-project, 
.projects .showcase .second-project {
  padding: calc(var(--spacing) * 3);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;

  transition: 250ms ease-in-out;
}

.projects .showcase .first-project:hover, 
.projects .showcase .second-project:hover,
.projects .showcase .first-project:hover img,
.projects .showcase .second-project:hover img {
  box-shadow: 2px 2px 4px var(--border);
}


.projects .showcase > div > div > div h1 {
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
}

.projects .showcase > div > div > div h2 {
  font-size: var(--text-sm);
  line-height: var(--tw-leading, var(--text-sm--line-height));
  color: var(--accent-green-dark);
}

.projects .showcase .project-header {
  display: flex;
  justify-content: space-between;
}

.projects .showcase .project-header .project-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.projects .showcase .project-header .project-links svg {
  opacity: 0.6;
  transition: 250ms ease-in;
}

.projects .showcase .project-header .project-links a:last-of-type svg {
  position: relative;
  top: -1px;
}

.projects .showcase .project-header .project-links svg:hover {
  opacity: 1;
}

.projects .showcase .project-img img {
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: 250ms ease-in-out;
}

.projects .showcase .details p {
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  color: var(--text-primary);
  opacity: 0.85;
}

.projects .showcase .technologies {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing) * 1.5);
}

.projects .showcase .technologies > div {
  font-family: var(--default-mono-font-family);
  min-width: fit-content;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * .667);
  padding-block: calc(var(--spacing) *1);
  padding-inline: calc(var(--spacing) *2);
  gap: 6px;
}

.projects .showcase .technologies > div svg {
  width: 18px;
  height: 18px;
}

.projects .showcase .technologies > div span {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--text-primary);
  display: flex;
}

.see-more p {
  font-size: var(--text-lg);
  line-height: var(--tw-leading, var(--text-lg--line-height));
  color: var(--muted-foreground);
  text-align: center;
}

.see-more a {
  text-decoration: none;
  transition: 300ms ease-in-out;
  display: inline-flex;
  gap: 2px;
  align-items: center;
  text-decoration: underline;
  color: var(--muted-foreground);
}

.see-more a:hover{
  color: var(--text-primary);
}

.see-more svg {
  width: 24px;
  height: 24px;
  display: inline-block;
  opacity: 0.6;
  transition: 200ms ease-in-out;
}

.see-more a:hover svg {
  opacity: 1;
}
 
.contact {
  width: var(--container-3xl);
  max-width: 100%;
  padding: 0 var(--text-base) calc(var(--spacing) * 24) var(--text-base);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--text-base);
}

.contact .contact-header h1 {
  font-size: calc(var(--text-3xl) - 0.3rem);
  line-height: var(--text-3xl--line-height);
}
.contact .contact-header p {
  color: var(--muted-foreground);
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
}

.contact svg{
  width: 20px;
  height: 20px;
  fill: var(--text-primary);
  opacity: 0.6;
  transition: 200ms ease-in-out;
}

.contact .contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}

.contact .contact-links a{
  text-decoration: none;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  padding-inline: calc(var(--spacing) *1);
  padding-block: calc(var(--spacing) *2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: 200ms ease-in-out;
}

.contact .contact-links a:hover{
  border-color: var(--text-primary);
}

.contact .contact-links a:hover svg {
  opacity: 1;
}

footer {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  padding: calc(var(--spacing) *6) var(--text-base);
}

footer p {
  color: var(--muted-foreground);
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
}



@media (min-width: 785px) {
  header .sub-header .nav-mobile {
    left: -100% !important;
  }
}

@media (max-width: 784px) {

  .sub-header .hide-on-mobile {
    display: none;
  }

  header .sub-header .menu {
    display: block;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
  }

  header .sub-header .nav-mobile {
    background-color: var(--background);
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    height: 100dvh;
    gap: calc(var(--spacing) * 28);
    padding: calc(var(--spacing) * 3) var(--text-base);
  }

  header .sub-header .nav-mobile .bottom-elements {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing) * 4);
  }

  header nav ul {
    flex-direction: column;
    align-items: center;
  }

  header nav ul a {
    font-size: var(--text-2xl);
    padding: var(--text-base);
  }

  header nav button,
  header .sub-header .nav-mobile .button-close {
    margin-left: 0;
    width: 42px;
    height: 42px;
  }

  header nav button svg {
    width: 30px;
    height: 30px;
  }

  header .sub-header .nav-mobile .button-close {
    align-self: flex-end;
  }

   header .sub-header .nav-mobile .button-close .close {
      fill: var(--text-primary);
      display: block;
   }

  main {
    flex-direction: column;
    align-items: center;
  }

  main .about-me {
    align-items: center;
  }

  main .about-me .main-text .introduction {
    justify-content: center;
  }

  main .about-me .main-text > h2 {
    text-align: center;
  }

  main .about-me .main-more-info {
    gap: 20px;
  }

}

@media (max-width:640px) {

  main .about-me .main-text .introduction,
  main .about-me .main-text > h2 {
    font-size: var(--text-2xl);
    line-height: var(--text-2xl--line-height);
  }
  
  main .about-me .main-text .introduction {
    flex-wrap: wrap;
  }

  main .about-me .main-more-info  {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  main .about-me .main-more-info p,
  main .about-me .main-more-info .pro-links a {
    font-size: var(--text-base);
    line-height: var(--text-base--line-height);
    display: flex;
    align-items: center;
  }

  main .about-me .main-more-info svg {
    width: 18px;
    height: 18px;
  }

  .skills .stack svg,
  .see-more svg
  {
    width: 20px;
    height: 20px;
  }

  .work-experience > div {
    grid-template-columns: 1fr;
  }

  .work-experience > div .data p {
    display: none;
  }

 .work-experience > div h2 .data-mobile {
  display: inline-block;
 }

  main {
    padding: calc(var(--spacing) * 21) var(--text-base);
  }

  main .image img  {
    width: 172px;
    height: 172px;
  }

  .skills .skills-intro h1,
  .work-experience h1,
  .projects .section-header h1,
  .contact .contact-header h1 {
    font-size: 22px;
    line-height: var(--text-2xl--line-height);
  }

  .skills > div > div h1,
  .work-experience > div h1 {
    font-size: 18px;
  }

  .skills .stack > div > div > div {
    font-size: var(--text-lg);
    line-height: var(--text-lg--line-height);
  }

  .skills .skills-intro p,
  .work-experience p,
  .projects .section-header p,
  .contact .contact-header p,
  .see-more p  {
    font-size: 17px;
  }

   .skills .stack > div > div {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));;
  }

  .contact .contact-links {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }

  .contact .contact-links a span {
    font-size: var(--text-sm);
    list-style: var(--text-sm--line-height);
  }
}

@media (max-width:500px) {
    footer p {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    line-height: var(--text-sm);
    text-align: center;
  }
}

@media (max-width:384px) {

  main .about-me .main-text .introduction,
  main .about-me .main-text > h2 {
    font-size: clamp(16px, var(--text-base) + 1.92vw, var(--text-2xl));
    line-height: var(--text-2xl--line-height);
  }

  .projects .showcase .project {
    grid-template-columns:  1fr;
  }

  header a,
  main .about-me .main-text .introduction h1,
  main .about-me .main-more-info .location p {
    text-align: center;
  }
  
}

@media (max-width:292px) {
 .projects .showcase .project-header .project-links {
    flex-direction: column;
    justify-content: center;
  }

  .projects .showcase .project-header {
    flex-direction: column;
    text-align: center;
  }

  .projects .showcase .project-header .project-links {
    flex-direction: row;
    margin-top: 4px;
  }
}

@media (max-width:214px) {

  header a {
    font-size: var(--text-sm);
  }

  .about-me .circle span{
    font-size: var(--text-xs);
  }

  main .image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .skills .stack > div > div {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  body{
    --background: #101828;
    --foreground: #e5e6eb;
    --muted: #1c1f2a;         
    --muted-foreground: #b4b8c5;         
    --border: #2e3240;                   
    --ring: #6ee7b7;
    --accent: #1c1f2a;
    --accent-foreground: #e5e6eb;
    --card: #151821;
    --card-foreground: #e5e6eb;
    --popover: #151821;
    --popover-foreground: #e5e6eb;
    --primary: #6ee7b7;
    --primary-foreground: #0a0e14;
    --primary-dark: #34d399;
    --secondary: #1c1f2a;
    --secondary-foreground: #e5e6eb;
    --input: #2e3240;
    --text-primary: #e5e6eb;
    --text-secondary: #b4b8c5;        
    --surface: #1e2939;
    --accent-green: #6ee7b7;
    --accent-green-dark: #34d399;
    --color-white: #e5e6eb;
  }

  .dark nav .dark-button {
    display: none;
  } 

  .dark nav .light-button {
    display: flex;
  } 

  header nav .light-button {
    display: flex;
  }

  header nav .dark-button {
    display: none;
  }

}



