/* WHY ME */

.why-content,
.skills-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 80px;
  gap: 52px;
}

.location-box {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 16px;
  font-size: 30px;
  font-weight: 700;
  min-height: 64px;
  margin-left: 90px;
}

.location-box img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.why-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.4;
}

.why-text h3 {
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--secondary);
}

.why-text .btn {
  margin-left: auto;
  width: 160px;
  padding: 0 15px;
  position: relative;
  right: 20px;
}

.btn,
.project-buttons a {
  width: 135px;
  height: 48px;
  border: 1px solid var(--primary);
  border-radius: 30px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-top: 24px;
}

.btn:hover,
.project-buttons a:hover {
  background-color: var(--btn-hover);
}

/* SKILLS */

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--primary);
  row-gap: 32px;
}

.skills-content {
  display: flex;
  justify-content: space-between;
  gap: 80px !important;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  transition: 125ms ease-in-out;
}

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

.skill img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.skills-grid .skill:nth-child(9) p {
  max-width: 85px;
  line-height: 1.05;
  text-align: center;
}

.learning-circle {
  width: 400px;
  min-width: 400px;
  min-height: 400px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.learning-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.learning-content {
  position: relative;
  z-index: 1;
  padding: 0 45px;
  font-size: 18px;
}

.learning-content > p:first-child {
  color: var(--primary);
}

.learning-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 19px 0;
}

.learning-icons img {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
}

.learning-btn {
  display: none;
}


/* PROJECTS */

.projects h2 {
  width: min(100% - 64px, var(--content-width));
  margin: 0 auto;
}

.project-tabs {
  width: min(100% - 64px, var(--content-width));
  margin: 0 auto;
  padding-top: 80px;
  display: flex;
}

.project-tabs button {
  min-width: 250px;
  height: 97px;
  color: var(--primary);
  font-size: 30px;
  font-weight: 500;
  border-radius: 30px 30px 0 0;
}

.project-tabs button.active {
  background-color: var(--section);
}

.project-content {
  display: none;
  background-color: var(--section);
  color: var(--secondary);
  padding: 31px max(72px, calc((100% - var(--content-width)) / 2)) 28px;
  gap: 56px;
}

.project-content.active {
  display: flex;
}

.project-text {
  flex: 1.2;
}

.project-point {
  display: flex;
  gap: 18px;
  margin-bottom: 40px;
}

.project-point > img {
  width: 24px;
  height: 24px;
  margin-top: 4px;
  flex-shrink: 0;
}

.project-point h3 {
  font-size: 28px;
}

.project-point p {
  margin: 16px 0 40px;
  font-size: 18px;
  line-height: 1.35;
}

.project-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0.8;
  text-align: center;
}

.project-preview > p {
  padding-bottom: 12px;
  font-size: 18px;
}

.project-tech {
  display: flex;
  gap: 32px;
  margin-bottom: 16px;
}

.project-tech img {
  width: 36px;
  height: 36px;
}

.project-image {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 30px;
}

.project-buttons {
  display: flex;
  gap: 40px;
  margin: 34px 0 28px;
}

.project-buttons a:first-child {
  background-color: var(--primary);
  color: var(--bg-and-main);
}

/* REFERENCES */

.references {
  margin-top: 80px;
}

.references h2 {
  font-size: 28px;
  text-align: center;
  color: var(--primary);
  font-weight: 400;
  font-family: 'Josefin Sans', sans-serif;
}

.references-container {
  width: 100%;
  max-width: 1080px;
  margin: 56px auto 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
}

.reference-image-card {
  width: 400px;
  min-width: 400px;
  height: 400px;
  flex: 0 0 400px;
  position: relative;
  text-align: center;
  transition: transform 0.2s ease;
}

.reference-image-card:hover {
  transform: translateY(-6px);
}

.reference-image-card > img {
  position: absolute;
  inset: 0;
  width: 400px;
  height: 400px;
  object-fit: contain;
}

.reference-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 55px 18px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reference-content h3 {
  font-size: 24px;
  padding-bottom: 6px;
}

.reference-content span {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
}

.reference-content p {
  font-size: 18px;
  line-height: 1.35;
  text-align: center;
  max-width: 300px;
  flex: 1;
}

.reference-content a {
  color: var(--primary);
  font-size: 16px;
  margin-top: auto;
  position: relative;
  text-decoration: none;
}

.reference-content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
}

.reference-content a:hover::after {
  width: 100%;
}

