@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

/* ===== GLOBAL STYLES ===== */
html {
  scroll-behavior: smooth;
}
* {
  text-decoration: none;
}
body {
  font-family: "Rubik", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #30333b;
  color: #ebe8e8;
  font-size: 16px;
  text-decoration: none;
}

/* ===== NAVBAR ===== */
navbar {
  position: sticky;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px;
  top: 0;
  background-color: #30333b;
  z-index: 1000;
  overflow: hidden;

}

.nav-list {
  list-style: none;
  display: flex;
  color: inherit;
}

.nav-item {
  margin: 0 10px;
}

.nav-item a {
  font-size: 1.3rem;
  color: #ebe8e8;
  transition: all 0.3s ease;
}

.nav-item a:hover {
  color: gold;
}

.nav-toggles {
  display: flex;
  position: absolute;
  align-items: center;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
  right: 30px;
}

.nav-toggles svg {
  width: 40px;
  height: 40px;
  margin: 0 2px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.language-toggle {
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-toggle:hover svg {
  transform: scale(1.1);
  border: 2px solid gold;
}

.language-toggle.active-language svg {
  border: 2px solid gold;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(48, 43, 43);
  min-height: 80vh;
  padding: 2rem;
}
.hero * {
  background-color: transparent;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 700px;
  height: 700px;
  margin-right: 10%;
  position: relative;
}

/* Animated Stars Background */
.stars-background {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 80%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0a0a0e;
}

.stars-svg {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 100%;
  width: auto;
  animation: moveStarsLeft 120s linear infinite;
  will-change: transform;
}

.stars-svg-clone {
  left: 100%;
}

@keyframes moveStarsLeft {
  from {
    transform: translateY(-50%) translateX(0);
  }
  to {
    transform: translateY(-50%) translateX(-100%);
  }
}

.hero-image > svg:not(.stars-svg) {
  position: relative;
  z-index: 1;
}

.name-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.name-line h3 {
  font-size: 1.5rem;
  color: #ebe8e8;
  margin: 0;
}

.name-line h1 {
  font-size: 4rem;
  color: gold;
  margin: 0;
}

.title {
  font-size: 1.5rem;
  color: #ebe8e8;
  margin: 10px 0 0 0;
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  position: fixed;
  right: 30px;
  bottom: 50px;
  z-index: 1000;
}

.social-icons::before {
  content: "";
  position: absolute;
  right: 15px;
  top: -170px;
  width: 2px;
  height: 150px;
  background-color: gold;
}

.social-icons svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.social-icons svg:hover {
  transform: scale(1.1);
}

/* ===== ABOUT SECTION ===== */
.about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 40px;
  padding: 2rem;
}

.about h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: left;
  position: relative;
}

.about p::before {
  content: "";
  position: absolute;
  bottom: -120px;
  left: 32px;
  width: 70px;
  height: 3px;
  background-color: gold;
}

.about p {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 20px;
  margin-left: 80px;
  text-align: left;
  width: 90%;
  line-height: 1.6;
}

/* ===== SKILLS SECTION ===== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 80%;
  margin: 0 auto;
  padding: 2rem;
}

.skill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: 10px;
  background-color: rgb(48, 43, 43);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}

.skill:hover {
  border-color: gold;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.skill svg {
  background-color: transparent !important;
  transition: all 0.3s ease;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.skill svg * {
  background-color: transparent !important;
}

.skill-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background-color: transparent;
}

.skill-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  transition: transform 0.3s ease;
  z-index: 2;
}

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

.skill-description {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 80%;
  background-color: transparent;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
  text-align: center;
}

.skill-description p {
  font-size: 0.7rem;
  line-height: 1.4;
  color: #b8b8b8;
  background-color: transparent;
  margin: 0 0 8px 0;
  text-align: center;
}

.skill-description p:last-child {
  margin-bottom: 0;
}

.skill:hover .skill-description {
  transform: translateX(-50%) translateY(-20px);
  opacity: 1;
}

.skill:hover svg {
  fill: gold !important;
  color: gold !important;
}

.skill:hover svg * {
  fill: gold !important;
  color: gold !important;
  background-color: transparent !important;
}

.skill:hover svg rect {
  fill: transparent !important;
}

.skill:hover svg path {
  fill: gold !important;
}

.skill p {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  transition: color 0.3s ease;
  margin: 0;
  background-color: transparent;
}

.skill:hover p {
  color: gold;
}

.skill:hover .skill-description {
  color: #e0e0e0;
}

@media (max-width: 1024px) {
  .skills-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .skills-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ===== PROJECTS SECTION ===== */
.projects-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* ===== GENERAL CAROUSEL STYLES ===== */
.projects-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 60px 35px;
  padding: 20px;
  position: relative;
}

.project-list {
  position: relative;
}

.project-list .project-item {
  width: 400px;
  display: block;
  padding: 18px;
  border-radius: 12px;
  list-style: none;
  border: 2px solid transparent;
  box-shadow: 0 10px 10px rgba(255, 215, 0, 0.05);
  transition: 0.2s ease;
}

.project-list .project-item:hover {
  border-color: gold;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.project-list
  .project-item
  .project-images-list
  .swiper-wrapper
  .project-image {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.project-list .swiper-button-next,
.project-list .swiper-button-prev {
  display: flex;
}

.swiper-pagination-bullets {
  margin-top: 10px;
  background-color: transparent;
  display: flex;
  justify-content: center;
}

.swiper-pagination-bullet-active {
  background: gold !important;
}

.project-images-list {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.project-list .project-item .project-info .project-title {
  font-size: 1.9rem;
  text-align: center;
  font-weight: 600;
}

.project-list .project-item .project-info .badge {
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  width: fit-content;
  border-radius: 50px;
  margin: 4px;
}

.project-list .project-item .project-info .badge.angular {
  color: #b22485;
  background: #f7dff5;
}

.project-list .project-item .project-info .badge.react {
  color: #b0b224;
  background: #440d40;
}

.project-list .project-item .project-info .badge.nestjs {
  color: #1324b4;
  background: #2e232d;
}
.project-list .project-item .project-info .badge.mysql {
  color: #00758f;
  background: #d0eff4;
}

.project-list .project-item .project-info .badge.php {
  color: #777bb4;
  background: #d6d8e0;
}

.project-list .project-item .project-info .badge.github {
  color: #b25a2b;
  background: #ffe3d2;
}

.project-list .project-item .project-info .badge.html {
  color: #205c20;
  background: #d6f8d6;
}

.project-list .project-item .project-info .badge.spring {
  color: #1a5007;
  background: #fff3cd;
}

.project-list .project-item .project-info .badge.java {
  color: #ff0000;
  background: #d6d8e0;
}

.project-list .project-item .project-info .badge.devops {
  color: #156a56;
  background: #8694cc;
}

.project-list .project-item .project-info .badge.postgres {
  color: #ab0808;
  background: #b896dd;
}

.project-list .project-item .project-info .project-badges {
  display: flex;
  flex-wrap: wrap;
  margin: 16px;
  align-items: center;
  justify-content: center;
}

.project-list .project-item .project-info .project-description {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 10px;
  margin-left: 0px;
  text-align: center;
  width: 100%;
  line-height: 1.6;
}

.project-list {
  width: 100%;
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
  padding: 5px 2rem;
  background-color: #3a3f48;
}

.experience-container {
  width: 80%;
  margin: 0 auto;
  position: relative;
  padding-left: 80px;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: -1%;
  top: 22px;
  width: 2px;
  height: 80%;
  background-color: #ababab;
}

.experience-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.experience-year {
  position: absolute;
  left: -80px;
  top: 0;
  width: 50px;
  font-size: 1rem;
  font-weight: 600;
  color: #ebe8e8;
  text-align: center;
  background: none;
  border: none;
  padding: 0;
}

.experience-year::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 2px;
  width: 12px;
  height: 12px;
  background-color: #f0c069;
  border-radius: 50%;
  box-shadow: 0 0 20px 1.9px rgba(255, 215, 0, 0.4);
}

.experience-content {
  flex: 1;
  padding-left: 20px;
}

.job-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ebe8e8;
  margin: 0 0 4px 0;
}

.company {
  font-size: 0.9rem;
  color: #b8b8b8;
  margin: 0 0 12px 0;
  font-weight: 400;
}

.job-description {
  font-size: 0.85rem;
  color: #a0a0a0;
  line-height: 1.4;
  margin: 0;
  text-align: justify;
}
