/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

:root {
  --color-bg: #f3f3f3;
  --color-card: #ffffff;
  --color-card-alt: #f9f9f9;
  --color-text: #000000;
  --color-text-secondary: #555555;
  --color-heading-alt: #333333;
  --color-muted: #777777;
  --color-border: #a3a3a3;
  --color-border-light: #dddddd;
  --color-accent: rgb(53, 53, 53);
  --color-accent-dark: rgb(0, 0, 0);
  --color-link-hover: rgb(128, 128, 128);
  --color-underline: rgb(181, 181, 181);
  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
}

h1,
h2,
h3,
h4,
.logo,
.nav-links,
.menu-links,
.btn {
  font-family: var(--font-heading);
}

p {
  color: var(--color-text-secondary);
}

a,
.btn {
  transition: all 300ms ease;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: var(--color-underline);
}

:focus-visible {
  outline: 0.15rem solid var(--color-accent);
  outline-offset: 0.2rem;
}

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

  a,
  .btn,
  .hamburger-icon span,
  .menu-links,
  .project-card {
    transition: none;
  }

  .project-card:hover {
    transform: none;
  }
}

/* NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--color-bg);
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

.logo {
  font-size: 2rem;
  cursor: default;
}

/* HAMBURGER NAV */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease-in-out;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(9px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(9px, -5px);
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-card);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  border-radius: 0 0 0.5rem 0.5rem;
}

.menu-links li {
  list-style: none;
}

.menu-links a {
  display: block;
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 1.25rem;
}

.menu-links.open {
  max-height: 300px;
  visibility: visible;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  margin: 0 10rem;
  scroll-margin-top: 17vh;
  box-sizing: border-box;
  min-height: fit-content;
}

/* PROFILE */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__pic-container img {
  border-radius: 50%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

.icon {
  cursor: pointer;
  height: 2rem;
  display: block;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-family: Arial, sans-serif;
  font-size: 0.833rem;
  font-weight: 600;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn-color-1,
.btn-color-2 {
  border: var(--color-accent) 0.1rem solid;
}

.btn-color-1,
.btn-color-2:hover {
  background: var(--color-accent);
  color: white;
}

.btn-color-1:hover {
  background: var(--color-accent-dark);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: white 0.1rem solid;
}

/* ABOUT */

#about {
  text-align: center;
  padding-bottom: 2vh;
}

.about-containers {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: var(--color-card-alt);
  border-radius: 2rem;
  border: 0.1rem solid var(--color-border);
  text-align: center;
}

.details-container > .icon {
  margin: 0 auto 0.5rem;
}

.details-container h3 {
  margin-bottom: 0.75rem;
}

.details-container p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.about-bio {
  max-width: none;
  margin: 1rem auto 0;
  font-size: 1.35rem;
}

/* EXPERIENCE */

#experience {
  text-align: center;
  padding-bottom: 2vh;
}

.experience-details-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  width: 100%;
  margin-top: 2rem;
}

.experience-sub-title {
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.article-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-around;
  text-align: initial;
}

.article-container article {
  display: flex;
  align-items: center;
  width: 10rem;
  justify-content: flex-start;
  gap: 0.5rem;
}

.article-container article h4 {
  font-size: 1rem;
  font-weight: 600;
}

.article-container article p {
  font-size: 0.85rem;
}

.article-container .icon {
  cursor: default;
}

/* PROJECTS */

#projects {
  text-align: center;
  padding-bottom: 2vh;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 2rem auto 0;
}

.project-card {
  background: var(--color-card-alt);
  border: 1px solid var(--color-border-light);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
  font-size: 1.5rem;
  color: var(--color-heading-alt);
  margin-bottom: 0.5rem;
}

.project-card-img {
  border-radius: 1rem;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.project-card-subtitle {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.project-tech {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.project-btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.project-btn {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 0.833rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-accent);
  border-radius: 0.5rem;
  background: none;
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: none;
  transition: all 300ms ease;
}

.project-btn:hover {
  background: var(--color-accent);
  color: white;
}

/* CONTACT */

#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 4vh;
}

.contact-info-upper-container {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
  border: 0.1rem solid var(--color-border);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container a {
  font-size: 1.2rem;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER */

footer {
  height: 12vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

footer p {
  text-align: center;
}
