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

:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #131722;
  --muted: #4b5563;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

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

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% 18%, #eef2ff 0, transparent 25%), radial-gradient(circle at 82% 8%, #e0f2fe 0, transparent 22%), var(--bg);
}

html {
  scroll-behavior: smooth;
}

p {
  color: var(--muted);
}

/* TRANSITION */

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

/* DESKTOP NAV */

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

nav {
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2.5rem;
  position: sticky;
  top: 0;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(10px);
  z-index: 20;
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  width: min(1200px, 100%);
  margin: 0 auto;
}

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

a {
  color: var(--text);
  text-decoration: none;
  text-decoration-color: white;
  font-weight: 600;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgba(37, 99, 235, 0.35);
}

.logo {
  font-size: 2rem;
  font-weight: 700;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

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

.lang-dropdown {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgb(163, 163, 163);
  background: white;
  cursor: pointer;
  font-weight: 600;
}

.lang-toggle:focus {
  outline: 2px solid rgb(53, 53, 53);
}

.lang-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: white;
  border: 1px solid rgb(163, 163, 163);
  border-radius: 1rem;
  padding: 0.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: none;
  min-width: 9rem;
  z-index: 10;
}

.lang-dropdown.open .lang-menu {
  display: block;
}

.lang-option {
  width: 100%;
  padding: 0.5rem 0.8rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 0.8rem;
  font-weight: 600;
}

.lang-option:hover,
.lang-option.active {
  background: rgb(245, 245, 245);
}

.flag {
  font-size: 1.1rem;
}

.menu-lang-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
}

.menu-lang-row .lang-option {
  width: auto;
  flex: 1;
  text-align: center;
  border: 1px solid rgb(220, 220, 220);
}

.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: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

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

.menu-links.open {
  max-height: 90vh; /* let the full menu + language buttons be visible on mobile */
}

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

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

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

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding: 6rem 1.5rem;
  width: min(1200px, 100% - 3rem);
  margin: 0 auto;
  box-sizing: border-box;
}

.section-container {
  display: flex;
  gap: 3rem;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.section__pic-container {
  display: flex;
  height: 360px;
  width: 360px;
  margin: auto 0;
  background: var(--panel);
  border-radius: 50%;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.section__text {
  align-self: center;
  text-align: left;
  max-width: 480px;
}

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

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

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

.title {
  font-size: 3rem;
  text-align: center;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section__text .section__text__p1,
.section__text .title {
  text-align: left;
}

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

/* ICONS */

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

/* BUTTONS */

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

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem 1.25rem;
  min-width: 8rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

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

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

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

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

.btn-color-2:hover {
  border: 1px solid var(--accent);
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.75rem;
  flex: 1;
  background: var(--panel);
  border-radius: 2rem;
  border: 1px solid var(--border);
  text-align: left;
  box-shadow: var(--shadow);
}

.section-container {
  gap: 3rem;
}

.section__pic-container {
  height: 360px;
  width: 360px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

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

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
}

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

.article-container.vertical {
  flex-direction: column;
  gap: 1.5rem;
}

.experience-item h3 {
  margin-bottom: 0.4rem;
}

.experience-item p {
  margin-bottom: 0.5rem;
}

.bullet-list {
  margin-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge-list li {
  list-style: none;
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  background: rgb(245, 245, 245);
  border: 1px solid rgb(220, 220, 220);
  font-weight: 600;
}

.languages {
  margin-top: 0.5rem;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project-img {
  border-radius: 2rem;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  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 p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: auto;
  margin: 0;
  padding: 2rem 1rem 3rem;
  background: #0f172a;
  /* color: #e5e7eb; */
  justify-content: center;
  text-align: center;
  align-items: center;
}

footer p {
  text-align: center;
  /* color: #e5e7eb; */
}

footer .nav-links {
  justify-content: center;
  text-align: center;
  gap: 1.25rem;  
}

footer a {
  /* color: #e5e7eb; */
}

footer .nav-links a {
  color: #0f172a;
}

footer a:hover {
  color: #75aff6;
}
