html {
  scroll-behavior: smooth;
}

:root {
  --gunmetal: #393e41;
  --dust-grey: #d3d0cb;
  --alabaster-grey: #e7e5df;
  --ocean-mist: #44bba4;
  --tuscan-sun: #e7bb41;

  --font-main: "Merriweather Local", serif;

  --input-images-background: #ffffff;
  --ghost-white: #fafafa;
  --text-muted-light: #666;
  --text-soft-light: #444;
  --text-muted-dark: #a0aab2;
  --text-soft-dark: #e5e7eb;
  --base-font-size: 1rem;
}

@font-face {
  font-family: "Merriweather Local";
  src: url("./assets/fonts/Merriweather_24pt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-body-color);
  color: var(--text-main-color);
  line-height: 1.6;
  padding: 2rem 1rem;
  font-family: var(--font-main);
  font-size: var(--base-font-size);
}

main {
  background-color: #ffffff;
  margin: 0 auto;
  padding: 3rem 4rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.625rem 1.875rem rgba(57, 62, 65, 0.1);
}

h1,
h2,
h3,
h4 {
  color: var(--text-main-color);
  line-height: 1.2;
}
h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.125rem solid var(--border-divider-color);
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  width: 3.125rem;
  height: 0.125rem;
  background-color: var(--accent-primary);
}

p,
ul {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

.header-title {
  font-size: 3rem;
  margin-bottom: 0.2rem;
}

.header-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent-primary);
  border: none;
  margin: 0;
  padding: 0;
}
.header-subtitle::after {
  display: none;
}

.header-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-top: 1.5rem;
  border: 0.25rem solid var(--border-divider-color);
  object-fit: cover;
  transition: border-color 0.3s ease;
}

.header-img:hover {
  border-color: var(--accent-primary);
}

.laboral-experience {
  list-style: none;
}

.laboral-experience-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.experience-img {
  width: 100px;
  height: 100px;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  object-fit: contain;
  background-color: #fff;
  padding: 5px;
}

.experience-img:hover {
  transform: scale(1.05);
}

.info-title {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.info-subtitle {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.date {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.tasks-list {
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.task-item {
  margin-bottom: 0.5rem;
}

.technical-skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
  gap: 1.5rem;
}

.technical-skill-card {
  background-color: var(--bg-body-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 0.25rem solid var(--accent-primary);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.technical-skill-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 0.5rem 0.9375rem rgba(57, 62, 65, 0.1);
  border-left-color: var(--accent-secondary);
}

.technical-skill-icon {
  margin-bottom: 1rem;
}

.skill-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.skill-desc {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 37.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-input {
  padding: 0.8rem;
  border: 0.0625rem solid var(--border-divider-color);
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--ghost-white);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 0.1875rem rgba(68, 187, 164, 0.2);
  background-color: var(--input-images-background);
}

.send-button {
  background-color: var(--accent-primary);
  color: var(--input-images-background);
  border: none;
  padding: 1rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}

.send-button:hover {
  background-color: var(--text-main-color);
}

footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  color: #777;
  font-size: 0.9rem;
}

@media (max-width: 48rem) {
  main {
    padding: 2rem 1.5rem;
  }

  .laboral-experience-item {
    flex-direction: column;
    gap: 1rem;
  }

  .experience-logo {
    width: 5rem;
    height: 5rem;
  }
}

.experience-logo {
    width: 9.375rem;
  height: 9.375rem;
  border-radius: 50%;
  margin-top: 1.5rem;
  border: 0.25rem solid var(--border-divider-color);
  object-fit: cover;
  transition: border-color 0.3s ease;
}

header img:hover {
  border-color: var(--accent-primary);
}

.image-container img {  
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  object-fit: contain;
  background-color: var(--input-images-background);
  padding: 0.3125rem;
}

.skill-icon-img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

@media (max-width: 48rem) {
  .image-container img {
    width: 5rem;
    height: 5rem;
  }
}

.navigation-menu {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(0.3125rem);
  box-shadow: 0 0.125rem 0.625rem rgba(57, 62, 65, 0.1);
  z-index: 1000;
  
  padding: 0.8rem 1rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 56.25rem;
  margin: 0 auto;
}

.nav-logo-img {
  width: 2.8125rem;
  height: 2.8125rem;
  border-radius: 50%;
  object-fit: cover;
  border: 0.125rem solid var(--accent-primary);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: block;
}

.nav-logo-img:hover {
  transform: scale(1.08);
  box-shadow: 0 0.25rem 0.5rem rgba(68, 187, 164, 0.3);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-main-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

.nav-link:hover {
  color: var(--accent-primary);
  background-color: var(--bg-body-color);
}

@media (max-width: 48rem) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-list {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
}

.theme-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem;
  transition: transform 0.3s ease;
}

.theme-button:hover {
  transform: scale(1.1);
}

body.theme-dark {
  --bg-body-color: #1a1c1e;
  --text-main-color: #f5f5f5;
  --border-divider-color: #393e41;
  
  --text-muted: var(--text-muted-dark);
  --text-soft: var(--text-soft-dark);
}

body.theme-dark main {
  background-color: #2a2e30;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.5);
}

body.theme-dark .navigation-menu {
  background-color: rgba(20, 22, 24, 0.95);
  box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.6);
  border-bottom: 0.0625rem solid #393e41;
}

body.theme-dark .technical-skill-card {
  background-color: #1a1c1e;
}

body.theme-dark .form-input {
  
  background-color: #1a1c1e;
  color: var(--gunmetal);
  border-color: var(--text-soft-light); 
}

body.theme-dark .date {
  color: var(--text-muted-dark); 
}

body.theme-dark .tasks-list {
  color: var(--text-soft-dark);
}

body.theme-dark .info-company-link {
  color: var(--accent-primary);
}

body,
main,
.navigation-menu,
.technical-skill-card,
.form-input {

  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}
