/* DEFAULT ELEMENTS*/

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  font-family: "Raleway", sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

header {
  background-color: #111;
  color: white;
  padding: 4rem;
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

nav a {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  transform: translateY(-0.5px);
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: white;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

section {
  padding: 1rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

section p {
  text-align: justify;
  text-justify: inter-word;
}

h2 {
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

.my-draw {
  float: right;
  height: 5.15rem;
  width: auto;
}

/* HEADER */

.profile {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile::before {
  content: "";
  position: absolute;

  /*
    Medium point of the image
    left = space on the left (2rem) + half of the width of the img
  */
  left: calc(2rem + 80px);
  top: 80%;

  width: 150px;
  height: 150px;

  transform: translate(-50%, -50%);
  border-radius: 50%;

  border: 15px solid transparent;
  border-top-color: #616161;   /* spin color */

  animation: spin 3s linear infinite;
  z-index: 1;
}

.profile-img {
  position: absolute;
  left: 2rem;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  transform: translateY(10%);
  z-index: 2;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.profile-info {
  text-align: center;
}

.profile-info h1 {
  margin: 0;
  font-size: 2rem;
}

.profile-info p {
  margin: 0;
  font-size: 1.25rem;
  color: #f5f5f5;
}

#nav-menu {
  padding-top: 1.5rem;
  margin-bottom: -1rem;
}

/* CLASSES */

.project {
  margin-bottom: 2rem;
}

.header-right {
  display: flex;
  float: right;
  margin-top: -6.5rem;
}

.header-right select {
  padding: 0.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
}

.header-right select:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* LANGUAGE ICONS */

.custom-select {
  position: relative;
  display: inline-block;
  width: 60px;
  font-family: sans-serif;
  background: transparent;
  padding: 5px;
  cursor: pointer;
  border: none;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: none;
  padding: 5px;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  margin-top: 35px;
}

.custom-select-trigger img {
  height: 60px;
  width: auto;
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #000000;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  z-index: 2;
  border-radius: 20px;
}

.custom-option {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 5px;
  height: 60px;
}

.custom-option img {
  width: 60px;
  height: auto;
  display: block;
}

.custom-option:hover {
  background: #e0e0e0;
}

.open .custom-options {
  max-height: 210px;
}

.es-flag {
  height: 40px !important;
  margin-top: 10px;
}

/* ABOUT ME */

#about-me {
  padding: 0.25rem 1.5rem 0 1.5rem !important;
}

/* PROJECTS */
#projects a {
  color: #333;
}

.button-container {
  display: flex;
  flex-direction: row;
}

.clickable {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: inline-block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  height: 3rem;
  margin: 0.5rem 0 0 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #0077cc, #005fa3);
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  max-width: 180px;
}

.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #005fa3, #004080);
}

.clickable:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, #004080, #003366);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.clickable:focus-visible {
  outline: 3px solid #88ccff;
  outline-offset: 3px;
}

/* CONTACT ICONS */

.contact-container {
  display: flex;
  padding: 4px;
  flex-wrap: wrap;
  word-break: break-all;
}

.contact-container a {
  margin: 5px 0 0 5px;
  color: black;
}

.mail-icon, .linkedin-icon, .github-icon {
  height: 30px;
  width: auto;
}

/* LOGOS */

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  margin: 2rem 0 0 1rem;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 1rem;
}

.logo-container a {
  text-decoration: none;
}

.logo-badge {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 200px;
  min-height: 120px;
}

.logo-badge img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Hover effect */
.logo-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.uvigo {
  width: fit-content;
  height: 4.5rem;
}

.uoradea {
  width: fit-content;
  height: 8rem;
}

.balidea {
  width: 85%;
}

.auria {
  width: fit-content;
  height: 10rem;
  margin-right: -1.5rem;
}

.img-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 20px;
  background: linear-gradient(to bottom right, #f8f9fa, #e0e0e0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.today-container {
  flex-direction: column;
}

.today-container img:hover {
  transform: scale(1.075);
}

.bigger-img {
  width: 55rem !important;
}

.bigger-img:hover {
  transform: scale(1.05) !important;
}

.img-project {
  width: 28rem;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-project:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 1.1);
}

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

/* SKILLS SECTION */

.tech-stack {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tech-stack h2 {
  text-align: left;
  font-size: 28px;
  color: #333;
  margin-bottom: 30px;
}

.tech-group {
  margin-bottom: 30px;
  word-break: break-all;
}

.tech-group h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0077cc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  background-color: #f1f1f1;
  color: #333;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: default;
  transition: all 0.2s ease-in-out;
}

.badge:hover {
  background-color: #0077cc;
  color: #fff;
  transform: translateY(-2px);
}

.badge i {
  font-size: 16px;
  margin-right: 6px;
}

/* RESPONSIVE MEDIA QUERIES */

@media (max-width: 370px) {
  .bigger-img {
    width: 80% !important;
  }
}

@media (max-width: 480px) {
  header {
    padding: 2rem 1rem;
  }
  .profile {
    flex-direction: column;
  }
  .profile-img {
    position: static;
    transform: translateY(0);
    margin-bottom: 1rem;
  }
  .profile::before {
    display: none;
  }
  nav {
    flex-direction: column;
    gap: 0.75rem;
  }
  section, .tech-stack {
    padding: 1rem;
  }
  .logo-container {
    display: none;
  }
  .img-container {
    flex-direction: column !important;
    padding: 1rem 0.25rem;
  }
  .img-project {
    width: 100%;
    max-width: 300px;
  }
  .button-container {
    flex-direction: column;
    align-items: center;
  }
  .clickable {
    width: 90%;
    text-align: center;
  }
  .tech-stack h2 {
    font-size: 24px;
  }
  .badge {
    padding: 6px 10px;
    font-size: 12px;
  }
  .logo-container {
    flex-direction: column;
    align-items: center;
  }

  .logo-badge {
    width: 80%;
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 3rem 1.5rem;
  }
  .profile {
    flex-direction: column;
  }
  .profile-img {
    position: static;
    transform: translateY(0);
    margin-bottom: 1rem;
  }
  .profile::before {
    display: none;
  }
  .header-right {
    position: static;
    float: none;
    margin: 1rem auto 0 auto;
  }
  .custom-options {
    position: relative;
    max-width: 70px;
  }
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .logo-container {
    gap: 1.25rem;
  }

  .logo-badge {
    width: 160px;
    min-height: 100px;
    padding: 1rem;
  }

  .logo-badge img {
    max-height: 50px;
  }
  .tech-stack {
    padding: 30px 20px;
  }
  .img-project:hover {
    transform: scale(1.025) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 875px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .profile {
    flex-direction: column;
    align-items: center;
  }

  .profile-info h1 {
    font-size: 1.5rem;
  }

  .profile-info p {
    font-size: 1rem;
  }

  /*.header-right {*/
  /*  margin: 0;*/
  /*  float: none;*/
  /*}*/

  #nav-menu {
    display: flex;
    gap: 0.75rem;
    margin-top: 3rem;
  }

  #nav-menu a {
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {
  section {
    padding: 1.5rem;
  }
  .button-container h3 {
    font-size: 1.25rem;
  }
  .tech-stack h2 {
    font-size: 26px;
  }
  .badge {
    font-size: 13px;
  }
}
