/* Emoji */
.emoji {
  display: inline-block;
  font-size: 2rem;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { content: "😉"; }
  50% { content: "😊"; }
}

/* Gradient Flow Animation */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.witek {
  background: linear-gradient(90deg, #EBD3F8, #AD49E1, #FFF7F7, #C68FE6, #6C48C5);
  background-size: 200% 200%;
  animation: gradientFlow 4s infinite linear;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.languages {
  color: #D4BEE4;
}

.background {
  background-color: #300054;
  background-image: url("https://www.transparenttextures.com/patterns/green-dust-and-scratches.png");
}

.nav-link {
  color: #D4BEE4;
}

.nav-link:hover {
  color: #9B7EBD;
}

.nav-link.active {
  background-color: #6C48C5 !important;
  color: #FFF7F7 !important;
}

.nav-link:hover:not(.active) {
  background-color: #AD49E1;
  color: #FFF7F7;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #300054;
  z-index: 1000;
}

body {
  color: #EEEEEE;
}

h2 {
  font-family: "Overlock", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.profile-img {
  border-radius: 50%;
}

.skills-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.skill-card {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #F9DBBA;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out, background 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Połączone transition */
  margin: 1rem;
  position: relative;
}

.skill-card img {
  width: 80px;
  height: 80px;
  opacity: 0.8;
  transition: opacity 0.3s ease-in-out;
}

.skill-card:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.skill-card:hover img {
  opacity: 1;
}

.skill-card::after {
  content: attr(data-skill);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill-card:hover::after {
  opacity: 1;
}

.carousel {
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-inner {
  height: 500px;
}

.carousel-item {
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 10px;
}

.carousel:has(.carousel-item.tic-tac-toe.active) .carousel-control-prev-icon,
.carousel:has(.carousel-item.tic-tac-toe.active) .carousel-control-next-icon {
  filter: invert(100%);
}

.hobby-section {
  color: #EEEEEE;
}

.hobby-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.hobby-card {
  position: relative;
  width: 200px;
  height: 250px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #D4BEE4;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.hobby-card img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hobby-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212, 190, 228, 0.5);
}

.hobby-title {
  text-align: center;
  padding: 10px;
  font-family: "Overlock", sans-serif;
  font-weight: 700;
  color: #D4BEE4;
}

.hobby-info {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #D4BEE4;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

.hobby-card[data-hobby="music"] .hobby-info {
  display: none !important;
}

.hobby-card:not([data-hobby="music"]):hover .hobby-info {
  display: block;
}

/* Galeria gier */
.game-gallery {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 5px;
}

.game-gallery-inner {
  display: inline-flex;
  gap: 0px;
  animation: scroll 15s linear infinite;
}

.game-item {
  display: inline-block;
  text-align: center;
  width: 150px;
}

.game-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.game-item img:hover {
  transform: scale(1.1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-80%); }
}

.game-gallery:hover .game-gallery-inner {
  animation-play-state: paused;
}

/* F1 – GIF toru */
.f1-track-container {
  width: 100%;
  height: 80%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.f1-track {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Loga zespołów */
.f1-teams {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hobby-card[data-hobby="f1"]:hover .f1-teams {
  opacity: 1;
}

.team-logo {
  width: 80% !important; /* Poprawiono z 50%px na 50% */
  height: auto !important;
}

/* Music – Animowane struny gitary */
.music-container {
  width: 100%;
  height: calc(100% - 40px);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.guitar-strings {
  width: 100%;
  height: 100%;
}

.hobby-card[data-hobby="music"]:hover .string-1 {
  animation: vibrate 0.5s ease-in-out infinite;
}

.hobby-card[data-hobby="music"]:hover .string-2 {
  animation: vibrate 0.5s ease-in-out 0.1s infinite;
}

.hobby-card[data-hobby="music"]:hover .string-3 {
  animation: vibrate 0.5s ease-in-out 0.2s infinite;
}

.hobby-card[data-hobby="music"]:hover .string-4 {
  animation: vibrate 0.5s ease-in-out 0.3s infinite;
}

.hobby-card[data-hobby="music"]:hover .string-5 {
  animation: vibrate 0.5s ease-in-out 0.4s infinite;
}

.hobby-card[data-hobby="music"]:hover .string-6 {
  animation: vibrate 0.5s ease-in-out 0.5s infinite;
}

@keyframes vibrate {
  0% { transform: translateY(0); }
  25% { transform: translateY(2px); }
  50% { transform: translateY(-2px); }
  75% { transform: translateY(1px); }
  100% { transform: translateY(0); }
}

/* Nutki */
.music-notes {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.note {
  position: absolute;
  color: #D4BEE4;
  font-size: 20px;
  opacity: 1;
  animation: fall 1.5s linear forwards;
}

@keyframes fall {
  0% { transform: translateY(-20px); opacity: 1; }
  100% { transform: translateY(150px); opacity: 0; }
}

/* Responsywność */
@media (max-width: 768px) {
  .carousel-inner {
    height: 300px;
  }
  .hobby-card {
    width: 150px;
    height: 200px;
  }

  .game-item img {
    width: 80%;
    height: auto;
  }

  .f1-teams {
    gap: 10px;
  }

  .music-container {
    height: calc(100% - 30px);
  }
  @keyframes fall {
    0% { transform: translateY(-20px); opacity: 1; }
    100% { transform: translateY(120px); opacity: 0; }
  }


}

/* Fonty Overlock */
.overlock-regular {
  font-family: "Overlock", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.overlock-bold {
  font-family: "Overlock", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.overlock-black {
  font-family: "Overlock", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.overlock-regular-italic {
  font-family: "Overlock", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.overlock-bold-italic {
  font-family: "Overlock", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.overlock-black-italic {
  font-family: "Overlock", sans-serif;
  font-weight: 900;
  font-style: italic;
}