* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Comfortaa", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

body {
  display: flex;
  justify-content: center;
  background-color: #10002b;
  color: #fff;
  line-height: 1.6;
}
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  line-height: 1.6;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  padding: 20px;
  width: 1200px;
  top: 0;
  z-index: 1000;
}


nav .name h1 {
  color: #fff;
  font-size: 1.5rem;
  animation: slideInLeft 1s ease-out;
}

nav .nav-links {
  display: flex;
  gap: 20px;
}

nav .nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav .nav-links a:hover {
  color: #ff1f53;
}

nav .nav-links .language-button{
  color: #48bfe3;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
nav .nav-links .language-button:hover{
  color: #3c9fbd;
}


#hero {
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(
    circle at 50% -20%,
    #240046,
    #230045,
    #200041,
    #170036,
    #12002d,
    #10002b,
    #10002b,
    #10002b,
    #10002b,
    #10002b,
    #10002b,
    #10002b
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  --color: rgba(114, 114, 114, 0.3);
  background-image: linear-gradient(
      0deg,
      transparent 24%,
      var(--color) 25%,
      var(--color) 26%,
      transparent 27%,
      transparent 74%,
      var(--color) 75%,
      var(--color) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      var(--color) 25%,
      var(--color) 26%,
      transparent 27%,
      transparent 74%,
      var(--color) 75%,
      var(--color) 76%,
      transparent 77%,
      transparent
    );
  background-size: 55px 55px;
  z-index: 0;
  mask-image: radial-gradient(
    circle at center,
    black 30%,
    transparent 70%
  ); /* Maska ograniczająca widoczność siatki */
}

#hero .hero-content {
  flex: 1;
  text-align: left;
  max-width: 600px;
  margin-left: 10%;
  position: relative;
  z-index: 1;
}

#hero .hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0px;
  animation: fadeIn 2s ease-in;
}

#hero .hero-content p {
  font-size: 1rem;
  margin-bottom: 20px;
}

#hero .social-links {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}

#hero .social-links a {
  color: #fff;
  font-size: 2.5rem;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#hero .social-links a:hover {
  color: #681acf;
  transform: scale(1.2);
}

#hero .buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

#hero .buttons .btn {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #3c096c;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#hero .buttons .btn:hover {
  background-color: #e5533d;
  transform: scale(1.05);
}

#hero .btn {
  padding: 10px 20px;
  background-color: #ff1f53;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#hero .btn:hover {
  background-color: #c01940;
}

.hero-buttons {
  margin-top: 70px;
}

.hero-content-right {
  width: 400px;
  height: 400px;
  border-radius: 10px;
  margin-right: 150px;
  position: relative;
  z-index: 1;
}

.czarne-cos {
  margin-top: 20%;
  text-align: left;
}

/* Sekcje */
section {
  padding: 100px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  animation: fadeIn 2s ease-in;
}

section p {
  font-size: 1.2rem;
  max-width: 600px;
  animation: fadeIn 3s ease-in;
}

footer {
  background-color: #10002b;
  color: #fff;
  text-align: center;
  padding: 20px;
  position: relative;
  width: 100%;
  border-top: 1px solid #681acf;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

footer p {
  font-size: 16px;
  margin: 0;
}

.scroll-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #681acf;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top:hover {
  background-color: #4c0d9c;
  transform: scale(1.1);
}

.scroll-to-top i {
  font-size: 24px;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.card {
  position: relative;
  width: 190px;
  height: 254px;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 12px;
  gap: 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #ffffff;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -5px;
  margin: auto;
  width: 200px;
  height: 264px;
  border-radius: 10px;
  background: linear-gradient(-45deg, #7400b8 0%, #48bfe3 100%);
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #e0aaff 0%, #240046 100%);
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
}

.heading {
  font-size: 20px;
  text-transform: capitalize;
  font-weight: 700;
}

.card p:not(.heading) {
  font-size: 14px;
}

.card p:last-child {
  color: #e0aaff;
  font-weight: 600;
}

.card:hover::after {
  filter: blur(30px);
}

.card:hover::before {
  transform: rotate(-90deg) scaleX(1.34) scaleY(0.77);
}

#about {
  position: relative;
  overflow: hidden;
  background-color: #10002b;
  padding: 100px 20px;
  width: 100%;
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(104, 26, 207, 0.2) 10%,
    transparent 50%
  );
  animation: rotate 10s infinite linear;
  z-index: 0;
  mask-image: radial-gradient(circle at center, black 50%, transparent 70%);
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-cards {
  display: flex;
  gap: 90px;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
}

.about-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#experience {
  position: relative;
  overflow: hidden;
  background-color: #10002b;
  padding: 100px 20px;
  z-index: 1;
}

.experience-content {
  position: relative;
  z-index: 1;
}

.experience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.exp-card {
  width: 100%;
  max-width: 500px;
  height: 550px;
  --s: 100px;
  --c1: #3c096c;
  --c2: #240046;

  --_g: var(--c2) 6% 14%, var(--c1) 16% 24%, var(--c2) 26% 34%,
    var(--c1) 36% 44%, var(--c2) 46% 54%, var(--c1) 56% 64%, var(--c2) 66% 74%,
    var(--c1) 76% 84%, var(--c2) 86% 94%;
  background: radial-gradient(
      100% 100% at 100% 0,
      var(--c1) 4%,
      var(--_g),
      #0008 96%,
      #0000
    ),
    radial-gradient(
        100% 100% at 0 100%,
        #0000,
        #0008 4%,
        var(--_g),
        var(--c1) 96%
      )
      var(--c1);
  background-size: var(--s) var(--s);
  border-radius: 10px;
  padding: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.exp-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.exp-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.exp-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.exp-content h3 {
  margin: 10px 0;
  font-size: 24px;
  color: inherit;
  transition: color 0.3s ease;
}

.exp-card:hover h3 {
  color: #48bfe3;
}

.exp-content p {
  margin: 5px 0;
}

.exp-company {
  font-size: 1rem;
  color: #e0aaff;
  margin-bottom: 5px;
}

.exp-date {
  font-size: 0.9rem;
  color: #c77dff;
  margin-bottom: 10px;
}

.exp-description {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.6;
  text-align: left;
}

#skills {
  position: relative;
  overflow: hidden;
  background-color: #10002b;
  padding: 100px 20px;
}

.skills-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

#skills::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(104, 26, 207, 0.2) 10%,
    transparent 10.01%
  );
  background-size: 100px 100px;
  animation: circlesMove 20s infinite linear;
  z-index: 0;
  border-radius: 20px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 70%);
}

@keyframes circlesMove {
  0% {
    transform: translate(-50%, -50%) translateY(0) translateX(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-100px) translateX(-100px);
  }
  100% {
    transform: translate(-50%, -50%) translateY(0) translateX(0);
  }
}

.skills-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 40px;
}

.skills-track {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.skills-track:hover {
  animation-play-state: paused;
}

.skill-card {
  background: linear-gradient(145deg, #240046, #3c096c);
  border-radius: 15px;
  border: 2px solid #681acf;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 0 20px;
  padding: 25px;
  width: 250px;
  text-align: center;
  transform: rotateY(0deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
  cursor: pointer;
  color: #fff;
  position: relative;
  overflow: hidden;
  transform: rotateY(0deg);
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(104, 26, 207, 0.3),
    transparent
  );
  transition: 0.5s;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  box-shadow: 0 8px 25px rgba(104, 26, 207, 0.5);
  border-color: #48bfe3;
}

.skill-card i {
  font-size: 3rem;
  color: #48bfe3;
  margin-bottom: 15px;
  transition: color 0.5s ease;
}

.skill-card:hover i {
  color: #681acf;
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  transition: color 0.5s ease;
}

.skill-card:hover h3 {
  color: #48bfe3;
}

.skill-card p {
  font-size: 1rem;
  color: #ccc;
  transition: color 0.5s ease;
}

.skill-card:hover p {
  color: #78c0e0;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

#education {
  position: relative;
  overflow: hidden;
  background-color: #10002b;
  padding: 100px 20px;
}

.education-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.education-container {
  border-radius: 20px;
  border: 3px solid #10002b;
  padding: 40px;
  background: radial-gradient(
    circle at 50% -20%,
    #240046,
    #230045,
    #200041,
    #170036,
    #12002d,
    #10002b,
    #10002b,
    #10002b,
    #10002b,
    #10002b,
    #10002b,
    #10002b
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  flex-grow: 1;
}

.loader {
  position: relative;
  width: 120px;
  height: 90px;
  flex-shrink: 0;
}

.loader:before {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 50px;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #2a9d8f;
  animation: loading-bounce 0.5s ease-in-out infinite alternate;
}

.loader:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 7px;
  width: 45px;
  border-radius: 4px;
  box-shadow: 0 5px 0 #f2f2f2, -35px 50px 0 #f2f2f2, -70px 95px 0 #f2f2f2;
  animation: loading-step 1s ease-in-out infinite;
}
@keyframes loading-bounce {
  0% {
    transform: scale(1, 0.7);
  }

  40% {
    transform: scale(0.8, 1.2);
  }

  60% {
    transform: scale(1, 1);
  }

  100% {
    bottom: 140px;
  }
}

@keyframes loading-step {
  0% {
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0), 0 10px 0 #f2f2f2,
      -35px 50px 0 #f2f2f2, -70px 90px 0 #f2f2f2;
  }

  100% {
    box-shadow: 0 10px 0 #f2f2f2, -35px 50px 0 #f2f2f2, -70px 90px 0 #f2f2f2,
      -70px 90px 0 rgba(0, 0, 0, 0);
  }
}

.education-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.edu-card {
  background: linear-gradient(145deg, #240046, #3c096c);
  border-radius: 15px;
  border: 2px solid #681acf;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 25px;
  width: 300px;
  text-align: center;
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
  cursor: pointer;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.education-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(104, 26, 207, 0.3),
    transparent
  );
  transition: 0.5s;
}

.edu-card:hover::before {
  left: 100%;
}

.edu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.edu-card i {
  font-size: 3rem;
  color: #48bfe3;
  margin-bottom: 15px;
  transition: color 0.5s ease;
}

.edu-card:hover i {
  color: #681acf;
}

.edu-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  transition: color 0.5s ease;
}

.edu-card:hover h3 {
  color: #48bfe3;
}

.edu-card p {
  font-size: 1rem;
  color: #ccc;
  transition: color 0.5s ease;
}

.edu-card:hover p {
  color: #fff;
}

.edu-icon {
  font-size: 40px;
  color: #681acf;
  margin-bottom: 20px;
}

.edu-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #fff;
}

.edu-degree {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 10px;
}

.edu-date {
  font-size: 16px;
  color: #777;
  margin-bottom: 15px;
}

.edu-description {
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
}

.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(104, 26, 207, 0.4),
    transparent
  );
  transition: 0.5s;
}

.edu-card:hover::before {
  left: 100%;
}

#projects {
  position: relative;
  overflow: hidden;
  background-color: #10002b;
  padding: 100px 20px;
}

.stars-background {
  position: absolute;
  top: 5%;
  left: 0;
  width: 100%;
  height: 70%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.projects-content {
  position: relative;
  z-index: 2;
}

.projects-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.project-card {
  background: linear-gradient(145deg, #240046, #3c096c);
  border-radius: 15px;
  border: 2px solid #681acf;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-card.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  z-index: 1000;
  background: linear-gradient(145deg, #240046, #3c096c);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.project-card.expanded .project-image img {
  max-height: 400px;
  object-fit: contain;
}

.project-card.expanded .project-content {
  padding: 40px;
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.project-card:hover h3 {
  color: #48bfe3;
}

.project-card p {
  font-size: 1rem;
  color: #ccc;
  transition: color 0.3s ease;
}

.project-card:hover p {
  color: #fff;
}

.project-card .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #681acf;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
  margin-top: auto;
}

.project-card .btn:hover {
  background-color: #4c0d9c;
  transform: scale(1.05);
}

.project-content {
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #fff;
}

.project-content p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(104, 26, 207, 0.4),
    transparent
  );
  transition: 0.5s;
}

.project-card:hover::before {
  left: 100%;
}

#contact {
  position: relative;
  overflow: hidden;
}

.contact-container {
  display: flex;
  gap: 100px;
  margin-top: 40px;
  text-align: left;
}

.contact-form {
  width: 500px;
  border-radius: 7px;
  border: 2px solid #191124;
  padding: 40px;
  flex: 1;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 16px;
  color: #fff;
}

.form-hint {
  font-size: 14px;
  color: #ccc;
  margin-top: -5px;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  border: 1px solid white;
  border-radius: 5px;
  background-color: transparent;
  color: #fff;
  font-size: 16px;
}

.form-group textarea {
  resize: vertical;
}

.contact-form-wrapper {
  position: relative;
  display: inline-block;
  padding: 2px;
  border-radius: 8px;
  background: linear-gradient(to right, #681acf, #3c096c, #681acf);
  overflow: hidden;
}

.contact-form-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, #fff, transparent);
  animation: slide 2s infinite linear;
  z-index: 1;
}

.contact-form {
  position: relative;
  z-index: 2;
  background: rgb(16, 0, 43);
  background: linear-gradient(
    121deg,
    rgba(16, 0, 43, 1) 0%,
    rgba(36, 0, 70, 1) 100%
  );
}

@keyframes slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.contact-form .btn {
  padding: 10px 20px;
  background-color: #681acf;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form .btn:hover {
  background-color: #4c0d9c;
  transform: scale(1.05);
}

.contact-info {
  margin-top: 50px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-item i {
  font-size: 24px;
  color: #681acf;
}

.info-item p {
  font-size: 16px;
  color: #ccc;
}

.info-item a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: #681acf;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #681acf;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
  background-color: #4c0d9c;
  transform: scale(1.1);
}

.social-icon i {
  font-size: 24px;
}

.line-separator {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #681acf, #3c096c, #681acf);
  position: relative;
  overflow: hidden;
}

.line-separator::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, #fff, transparent);
  animation: slide 2s infinite linear;
}

@keyframes slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.expanded-content {
  display: none;
  margin-top: 20px;
}

.project-card.expanded .expanded-content {
  display: block;
}

.expanded-content h4 {
  font-size: 20px;
  margin-top: 20px;
  color: #48bfe3;
}

.expanded-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.expanded-content ul li {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 10px;
}

.additional-images {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.additional-images img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.expanded-content .btn {
  margin-top: 20px;
  background-color: #48bfe3;
}

.expanded-content .btn:hover {
  background-color: #3a9bbd;
}

.see-more {
  width: 100%;
  text-align: center;
  margin-top: 40px;
}

.see-more .btn {
  background-color: #681acf;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.see-more .btn:hover {
  background-color: #4c0d9c;
  transform: scale(1.05);
}

.zoom-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
}

.zoomed-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .skills-carousel {
    scrollbar-color: #681acf #10002b;
  }

  body,
  html {
    overflow-x: hidden;
    width: 100%;
  }
  .container {
    padding: 0 10px;
  }

  nav {
    width: 100%;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
  }

  .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    position: relative;
  }

  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #fff;
    left: 0;
  }

  .hamburger::before {
    top: -8px;
  }

  .hamburger::after {
    top: 8px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #10002b;
    width: 200px;
    padding: 10px;
    border-radius: 5px;
    text-align: right;

    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  nav .name h1 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  nav .nav-links {
    flex-direction: column;
    gap: 5px;
  }

  #hero {
    margin-top: 100px;
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  #hero .hero-content {
    max-width: 100%;
  }

  #hero .hero-content h1 {
    font-size: 2rem;
  }

  #hero .hero-content p {
    font-size: 0.9rem;
  }

  #hero .hero-content-right {
    margin-right: 0;
    margin-top: 20px;
  }

  .czarne-cos {
    margin-top: 10%;
    margin-left: 20px;
    margin-right: 20px;
  }

  .about-cards {
    flex-direction: column;
    gap: 20px;
  }

  .experience-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .exp-card {
    max-width: 100%;
    height: 500px;
  }

  .skills-carousel {
    overflow-x: auto;
    white-space: nowrap;
  }

  .skills-track {
    animation: none;
  }

  .skill-card {
    width: 150px;
    padding: 15px;
  }

  .skill-card h3 {
    font-size: 1.2rem;
  }

  .skill-card p {
    font-size: 0.9rem;
  }

  .education-content {
    flex-direction: column;
    gap: 20px;
  }

  .education-container {
    padding: 20px;
  }

  .edu-card {
    width: 100%;
  }

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

  .project-card {
    width: 100%;
  }

  .contact-container {
    flex-direction: column;
    gap: 20px;
  }

  .contact-form {
    width: 100%;
    padding: 20px;
  }

  .contact-info {
    margin-top: 20px;
    align-items: center;
    text-align: center;
  }

  .info-item {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  footer .footer-content {
    flex-direction: column;
    gap: 10px;
  }

  .scroll-to-top {
    width: 40px;
    height: 40px;
  }

  .scroll-to-top i {
    font-size: 20px;
  }
}

.hamburger {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #fff;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background-color: #fff;
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

