/* General */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");

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

:root {
  --primary-font: "Noto Sans", sans-serif;
  --primary-bg-color: #ffffff;
  --primary-text-color: #000000;
  --secondary-text-color: #575757;
  --btn-bg-color: #000000;
  --cta-hover-color: #000000;
  --btn-bg-light: #eeeeee;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--primary-font);
  line-height: 1.6;
  color: var(--primary-text-color);
  background: var(--primary-bg-color);
}

h1,
h2,
h3,
.btn,
.wrapper h3,
.project-wrapper {
  font-weight: 600;
  margin: 0;
  cursor: default;
}

/* Combine flex containers */
article,
footer,
.hero,
.logo-container,
.experience,
.cta,
.Projects,
.skill,
.Projects-group,
.skill-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.hero,
.Projects,
.skill {
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.hero,
.experience,
.wrapper {
  text-align: center;
}

.hero-pic {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.hero-pic img,
.wrapper img {
  width: 100%;
}

.hero-pic img {
  height: 100%;
  object-fit: cover;
  object-position: top 0.4rem right -1.3rem;
  transform: scale(1.9);
}

.hero-info h1,
h2 {
  font-weight: 400;
}

article p,
.hero-info h2 {
  color: var(--secondary-text-color);
}

.hero-info h2 {
  font-size: 1rem;
  margin: 0 0 1rem 0;
}

footer,
.logo-container,
.experience,
.cta {
  justify-content: center;
}

.logo-container a,
.logo-container img {
  height: 1.5rem;
}

.experience {
  margin: 1.4rem auto 0 auto;
  max-width: 20rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta {
  margin-top: 1.2rem;
}

.cta {
  gap: 2rem;
}

.btn {
  border-radius: 0.7rem;
  border: none;
  height: 3rem;
  width: 9rem;
  font-weight: 600;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-color 0.3s ease, color 0.3s ease;
}

.download-btn {
  background-color: var(--btn-bg-color);
  color: white;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: var(--cta-hover-color);
  cursor: pointer;
}

.btn:hover {
  transform: scale(0.98);
}

.btn:active {
  transform: scale(1);
}

.contact-btn:hover,
.download-btn {
  background-color: var(--btn-bg-color);
  color: white;
}

.contact-btn:hover {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.active-btn {
  background-color: white;
}

.btn {
  height: 3rem;
}

.btn {
  width: 9rem;
}

.download-btn {
  transition: background-color 0.3s ease;
}

.wrapper {
  width: 20rem;
}

.wrapper img {
  border-radius: 1rem;
  width: 100%;
}

article,
.wrapper h3 {
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

article p {
  background-color: var(--btn-bg-light);
  border-radius: 0.5rem;
  flex-grow: 20;
  padding: 1rem;
  color: var(--secondary-text-color);
}

footer {
  margin: 3rem 0;
}

.section-title-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.experience-group {
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
  align-items: flex-end;
}

.experience-group h2 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.5px;
}

.experience-group h2 b {
  display: block;
  font-size: 1rem;
  font-weight: 200;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.introduction {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 1rem;
  font-family: var(--primary-font);
  color: #000;
  font-weight: 500;
  letter-spacing: 1px;
}

.experience-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.experience-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #222;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.experience-label {
  font-size: 1em;
  text-align: center;
  color: #555;
  line-height: 1.5;
}

/* Mobile styles - both groups stack vertically */
.skill-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.Projects-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.project-wrapper {
  display: flex;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.project-wrapper a {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
  border-radius: 1rem;
  overflow: hidden;
}

.project-wrapper img:hover ~ .project-overlay,
.project-wrapper:hover .project-overlay {
  opacity: 1;
}

.project-wrapper:hover {
  transform: translateY(-8px);
}

.project-wrapper img {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  width: 100%;
  border-radius: 1rem;
  position: relative;
  z-index: 1;
}

.project-wrapper img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.project-wrapper:hover .project-overlay {
  pointer-events: auto;
}

.project-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--primary-font);
}

.project-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
  margin: 0;
}

/* Desktop styles - both groups display side by side */
@media screen and (min-width: 900px) {
  .skill,
  .Projects {
    width: 45rem;
    margin: 2rem auto 0;
  }

  .Projects {
    flex-wrap: wrap;
    justify-content: center;
  }

  .skill-group {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    width: 100%;
  }

  .Projects-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    width: 100%;
  }

  .wrapper {
    width: calc(48%);
    flex: none;
  }

  .project-wrapper {
    flex: 0 1 calc(50% - 1rem);
    box-sizing: border-box;
    max-width: calc(50% - 1rem);
  }
}

.logo-container {
  display: flex;
  gap: 1.5rem;
  margin-top: 10px;
  justify-content: center;
}

.logo-container img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.2s;
  cursor: pointer;
}

.logo-container img:hover {
  transform: scale(1.1);
}

#popupDialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
}

#popupDialog img {
  width: 200px;
  margin-bottom: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 1rem;
}
