/* Import czcionki */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

/* Podstawowe resetowanie stylów */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Styl dla całej strony */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f0f0f0;
  color: #333;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Tryb ciemny */
body.dark-theme {
  background-color: #1a1a1a;
  color: #ecf0f1;
}

/* Nawigacja */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.95),
    rgba(44, 62, 80, 0.9)
  );
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  height: 70px;
  display: flex;
  align-items: center;
}

/* Kontener nawigacji */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  height: 100%;
}

/* Logo w nawigacji */
.nav-logo {
  display: flex;
  align-items: center;
  margin-left: 20px;
  margin-top: 20px;
}

.nav-logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-logo img:hover {
  transform: scale(1.1);
}

/* Przycisk przełączania menu mobilnego */
.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s ease;
  z-index: 1010;
}

body.dark-theme .nav-toggle {
  color: #ecf0f1;
}

.nav-toggle:hover,
.nav-toggle.active {
  color: #00d1b2;
}

/* Menu nawigacyjne */
.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  transition: all 0.3s ease;
  margin: 0;
  padding: 0;
  margin-left: 6%;
}

.nav-menu li {
  margin: 0 2px;
  white-space: nowrap;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 2px 25px;
  transition: all 0.3s ease;
  border-radius: 20px;
  display: block;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #00d1b2;
  background: rgba(0, 209, 178, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(0, 209, 178, 0.3);
}

/* Przycisk zmiany motywu */
#theme-toggle {
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(90deg, #00d1b2, #1a1a1a);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  margin-right: 20px !important;
}

#theme-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 209, 178, 0.7);
}

body.dark-theme #theme-toggle {
  background: linear-gradient(90deg, #ecf0f1, #2c3e50);
}

/* Responsywność dla nawigacji */
@media (max-width: 768px) {
  /* Naprawiony hamburger button */
  .nav-toggle {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1010 !important;
  }

  /* Naprawione wyświetlanie projektu */
  #project-detail {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Naprawione menu mobilne */
  .nav-menu.active {
    display: flex !important;
  }

  /* Naprawiona siatka umiejętności */
  .skills-grid {
    display: grid !important;
  }

  /* Naprawiona widoczność elementów umiejętności */
  .skill-item {
    display: flex !important;
  }
}

/* Animacja dla menu mobilnego */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ogólne style dla sekcji */
section {
  padding: 100px 0;
  text-align: center;
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.hidden {
  opacity: 0;
  transform: translateY(50px);
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sekcja główna (home) */
#home {
  background: linear-gradient(135deg, #00d1b2 0%, #2c3e50 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 170px;
  text-align: center;
  color: #e8ecef;
}

#project-button {
  text-decoration: none;
  color: white;
}

/* Zawartość sekcji hero */
.hero-content {
  max-width: 800px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.hero-text .hero-intro {
  font-size: 1.2rem;
  color: #a3bffa;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 2rem;
  color: #a3bffa;
}

.hero-description {
  font-size: 1.2rem;
  color: #d1d9e6;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Przyciski w sekcji hero */
.btn {
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #00a896;
  color: #ffffff;
  border: 2px solid #00a896;
}

.btn-primary:hover {
  background: #008d7e;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Statystyki w sekcji hero */
.hero-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  width: 180px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  color: #ffffff;
}

.stat-label {
  color: #d1d9e6;
  font-size: 1rem;
}

/* Sekcja O mnie */
#about {
  background: linear-gradient(to bottom, #1a1a1a, #2c3e50);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Jasny motyw dla sekcji O mnie */
body:not(.dark-theme) #about {
  background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
  color: #333;
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300d1b2' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 0;
}

.about-container {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  max-width: 1200px;
}

.about-media-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.about-image-wrap {
  position: relative;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  margin: 10px 20px 30px;
  transition: all 0.5s ease;
  overflow: hidden;
}

.about-image-wrap:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 209, 178, 0.2);
}

.about-image-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid rgba(0, 209, 178, 0.3);
  border-radius: 8px;
  z-index: 3;
  transition: all 0.4s ease;
}

.about-image-wrap:hover::before {
  border-color: rgba(0, 209, 178, 0.7);
}

.profile-img {
  width: 280px;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
  position: relative;
  z-index: 2;
  transition: all 0.5s ease;
  transform: scale(1);
  filter: contrast(1.05) saturate(1.05);
  display: block;
}

.about-image-wrap:hover .profile-img {
  transform: scale(1.04);
  filter: contrast(1.1) saturate(1.1);
}

.image-border {
  display: none; /* Removing the separate border element */
}

.experience-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 90px;
  height: 90px;
  background: linear-gradient(45deg, #00d1b2, #00a896);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 4;
  transition: all 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.about-image-wrap:hover .experience-badge {
  transform: scale(1.05) rotate(5deg);
}

.experience-badge span:first-child {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge span:last-child {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Add an elegant shimmer effect to the image frame */
.about-image-wrap::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.8s ease;
  z-index: 3;
}

.about-image-wrap:hover::after {
  top: 100%;
  left: 100%;
}

.about-contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 300px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 18px;
  transition: all 0.3s ease;
  border-left: 3px solid rgba(0, 209, 178, 0.4);
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
  border-left-color: rgba(0, 209, 178, 0.8);
}

.info-icon {
  color: #00d1b2;
  font-size: 1.2rem;
}

.info-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.info-text a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-text a:hover {
  color: #00d1b2;
}

.about-social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: #00d1b2;
  color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 209, 178, 0.3);
}

.about-content-column {
  flex: 1.4;
  padding: 20px 10px;
  position: relative;
}

.about-content-column::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 209, 178, 0.3),
    transparent
  );
}

.about-heading {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #ffffff;
  line-height: 1.3;
  position: relative;
  padding-bottom: 15px;
}

.about-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: #00d1b2;
  border-radius: 2px;
}

.about-heading .specialty {
  color: #00d1b2;
  font-weight: 600;
  display: block;
  margin-top: 5px;
  font-size: 1.4rem;
}

.about-text {
  margin-bottom: 35px;
}

.about-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 40px 0;
}

.highlight {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.highlight:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.highlight i {
  color: #00d1b2;
  font-size: 1.8rem;
  background: rgba(0, 209, 178, 0.1);
  padding: 15px;
  border-radius: 12px;
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.highlight div {
  flex: 1;
  text-align: left;
}

.highlight h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
}

.highlight p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.about-cta {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.about-cta .btn {
  padding: 12px 30px;
}

.about-cta .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.about-cta .btn-outline:hover {
  border-color: #00d1b2;
  color: #00d1b2;
}

/* Style dla elementów w sekcji O mnie w jasnym motywie */
body:not(.dark-theme) .about-heading {
  color: #2c3e50;
}

body:not(.dark-theme) .about-text p {
  color: #444;
  text-shadow: none;
}

body:not(.dark-theme) .highlight {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body:not(.dark-theme) .highlight h4 {
  color: #2c3e50;
}

body:not(.dark-theme) .highlight p {
  color: #555;
}

body:not(.dark-theme) .info-item {
  background: rgba(0, 0, 0, 0.03);
  color: #333;
}

body:not(.dark-theme) .info-text,
body:not(.dark-theme) .info-text a {
  color: #333;
}

body:not(.dark-theme) .social-link {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-theme) .social-link:hover {
  background: #00d1b2;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .about-container {
    padding: 0 20px;
  }

  .profile-img {
    width: 260px;
    height: 330px;
  }
}

@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .about-content-column::before {
    display: none;
  }

  .about-heading {
    text-align: center;
  }

  .about-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-text p {
    text-align: center;
  }

  .about-cta {
    justify-content: center;
  }

  .about-highlights {
    margin: 40px auto;
    max-width: 700px;
  }

  .highlight {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .about-highlights {
    grid-template-columns: 1fr;
    max-width: 450px;
  }

  .profile-img {
    width: 240px;
    height: 300px;
  }

  .experience-badge {
    width: 80px;
    height: 80px;
    bottom: -8px;
    right: -8px;
  }

  .experience-badge span:first-child {
    font-size: 1.8rem;
  }

  .about-heading {
    font-size: 1.8rem;
  }

  .about-heading .specialty {
    font-size: 1.2rem;
  }

  .about-cta {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

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

@media (max-width: 576px) {
  .profile-img {
    width: 220px;
    height: 270px;
  }

  .experience-badge {
    width: 70px;
    height: 70px;
  }

  .experience-badge span:first-child {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 1.05rem;
  }

  .highlight {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .highlight div {
    text-align: center;
  }
}

/* Sekcja Projektów */
#projects h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

/* Wyróżniony projekt */
.featured-project {
  max-width: 800px;
  margin: 0 auto 40px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.dark-theme .featured-project {
  background: #333;
}

.featured-project h3 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

body.dark-theme .featured-project h3 {
  color: #ecf0f1;
}

.featured-project img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.featured-project p {
  font-size: 1.1rem;
  color: #666;
  margin: 15px 0;
}

body.dark-theme .featured-project p {
  color: #bbb;
}

/* Link do projektu */
.project-link {
  display: inline-block;
  padding: 10px 20px;
  background: #00d1b2;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.project-link:hover {
  background: #2c3e50;
  transform: scale(1.05);
  color: white;
}

/* Siatka projektów */
.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Karty projektów */
.project-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

body.dark-theme .project-card {
  background: #333;
}

.project-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-card a {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  transition: color 0.3s ease;
}

body.dark-theme .project-card a {
  color: #ecf0f1;
}

.project-card a:hover {
  color: #00d1b2;
}

/* Przycisk "więcej projektów" */
.more-projects {
  margin-top: 40px;
}

.more-projects-button {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  background: #00d1b2;
  color: white;
  border: 2px solid transparent;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.4s ease;
}

.more-projects-button:hover {
  background: transparent;
  color: #00d1b2;
  border: 2px solid #00d1b2;
  box-shadow: 0 5px 15px rgba(0, 209, 178, 0.4);
  transform: translateY(-2px);
}

/* Strona wszystkich projektów */
#all-projects {
  padding: 120px 20px;
  background: #ecf0f1;
}

body.dark-theme #all-projects {
  background: #2c3e50;
}

#all-projects h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #2c3e50;
}

body.dark-theme #all-projects h1 {
  color: #ecf0f1;
}

.projects-list {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-item {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInProject 0.5s ease-in forwards;
}

body.dark-theme .project-item {
  background: #333;
}

.project-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #00d1b2;
}

.project-content {
  padding: 20px;
}

.project-item h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2c3e50;
}

body.dark-theme .project-item h3 {
  color: #ecf0f1;
}

.project-item p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 15px;
}

body.dark-theme .project-item p {
  color: #bbb;
}

.back-button {
  margin-top: 50px;
}

/* Sekcja narzędzi */
#tools {
  background: #fff;
}

body.dark-theme #tools {
  background: #2c3e50;
}

#tools h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.skills-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.skill-item {
  background: #ecf0f1;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  transition: transform 0.3s ease, background 0.3s ease;
}

body.dark-theme .skill-item {
  background: #444;
  color: #ecf0f1;
}

.skill-item:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 209, 178, 0.4);
}

.skill-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(0, 209, 178, 0.1);
  color: var(--primary-color);
  border-radius: 10px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Sekcja kontaktu */
#contact h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

/* Formularz kontaktowy */
form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

body.dark-theme input,
body.dark-theme textarea {
  background: #333;
  color: #ecf0f1;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 2px 15px rgba(0, 209, 178, 0.5);
  transform: scale(1.02);
}

textarea {
  min-height: 120px;
}

button[type="submit"] {
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  background: #00d1b2;
  color: white;
  border: 2px solid transparent;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;
  display: block;
  min-width: 200px;
  grid-column: span 2;
}

button[type="submit"]:hover {
  background: transparent;
  color: #00d1b2;
  border: 2px solid #00d1b2;
  box-shadow: 0 5px 15px rgba(0, 209, 178, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  button[type="submit"] {
    grid-column: 1;
    width: 100%;
  }
}

/* Stopka */
footer {
  padding: 40px 20px;
  background: #2c3e50;
  color: white;
  text-align: center;
  font-size: 0.9rem;
}

body.dark-theme footer {
  background: #111;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-content p {
  margin-bottom: 10px;
}

.social-links a,
.legal-links a {
  color: #00d1b2;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

social-links a:hover,
.legal-links a:hover {
  color: #ecf0f1;
}

.legal-links {
  margin-top: 10px;
}

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

@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes fadeInProject {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
  #home {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 20px;
  }
  .hero-content {
    padding: 0 20px;
    margin-top: 40px;
  }
  .hero-text {
    margin-top: 30px;
  }
  .about-content {
    flex-direction: column;
    text-align: center;
    margin-top: 30px;
  }
  .about-text {
    text-align: center;
    max-width: 100%;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .projects-list {
    grid-template-columns: 1fr;
  }
  .project-item img {
    height: 150px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .nav-container {
    position: relative;
  }
  .nav-logo {
    flex: 1;
  }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px;
    margin-right: 70px;
  }

  .theme-toggle {
    background: none;
    border: none;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background 0.3s ease;
  }

  .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .dark-theme .theme-toggle {
    color: #00d1b2;
  }
  .nav-toggle {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    padding: 0;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.9);
    padding: 20px 0;
    align-items: center;
    z-index: 1000;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li {
    margin: 15px 0;
    width: 100%;
    text-align: center;
  }

  .nav-menu li a {
    display: inline-block;
    padding: 10px 20px;
    width: auto;
    font-size: 1.1rem;
  }

  /* Include mobile theme toggle in the hamburger menu */
  .navbar .mobile-menu-theme-toggle {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 15px 0;
  }

  .navbar .mobile-menu-theme-toggle button {
    margin: 0 auto;
    padding: 10px 24px;
    background: linear-gradient(90deg, #00d1b2, #1a1a1a);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  body.dark-theme .navbar .mobile-menu-theme-toggle button {
    background: linear-gradient(90deg, #ecf0f1, #2c3e50);
  }
  #theme-toggle {
    margin: 0 auto;
    width: fit-content;
  }
  form {
    max-width: 100%;
    padding: 0 20px;
  }
  .footer-content {
    padding: 0 10px;
  }
  #home h1 {
    font-size: 2.5rem;
  }

  #home h2 {
    font-size: 1.5rem;
  }

  #home p {
    font-size: 1rem;
  }
  .section-container {
    padding: 0 15px;
  }
  section {
    padding: 80px 0;
  }
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  .stat-card {
    width: 100%;
  }
}

/* Sekcje - efekty pojawiania się */
section {
  opacity: 1;
  transform: none;
}

section.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Kontenery i layouty */
.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 30px;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 170px;
  overflow: hidden;
  background: linear-gradient(135deg, #00d1b2 0%, #2c3e50 100%);
}

.hero-content {
  z-index: 2;
}

.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

body {
  overflow-x: hidden;
}

section {
  padding: 100px 0;
}

.animate-in {
  opacity: 1;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.testimonial {
  opacity: 1;
}

.section-header {
  margin-bottom: 60px;
  opacity: 1;
}

#back-to-top {
  display: flex;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
}

.form-group {
  margin-bottom: 15px;
}

.footer-container {
  padding: 60px 20px 30px;
}

@media (max-width: 768px) {
  .section-container {
    padding: 0 15px;
  }

  section {
    padding: 80px 0;
  }

  .hero-stats {
    flex-direction: row;
    gap: 15px;
    margin-bottom: 30px;
    margin-top: -2px;
  }

  .stat-card {
    width: 100%;
  }

  .about-content {
    margin-top: 30px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Zmienne CSS */
:root {
  --primary-color: #00d1b2;
  --secondary-color: #2c3e50;
  --light-bg: #f8f9fa;
  --dark-bg: #1e2a38;
  --text-light: #6c757d;
  --text-dark: #333333;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-alternate {
  background-color: var(--light-bg);
}

body.dark-theme .section-alternate {
  background-color: var(--dark-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  opacity: 1;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
}

.section-divider {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 20px;
  border-radius: 2px;
}

.section-description {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.1rem;
}

body.dark-theme .section-description {
  color: #cbd5e0;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 170px;
  overflow: hidden;
  background: linear-gradient(135deg, #00d1b2, #2c3e50);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  top: 10px;
}

.hero-text {
  max-width: 800px;
}

.hero-intro {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: white;
  margin-bottom: 10px;
}

.hero-subtitle-wrapper {
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 2.2rem;
  color: #a3bffa;
  font-weight: 600;
  position: relative;
}

.hero-description {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 180px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 14px rgba(0, 209, 178, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 209, 178, 0.6);
  background-color: #00c5a8;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: rgba(0, 209, 178, 0.1);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.profile-img {
  width: 250px;
  height: 250px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.experience-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 209, 178, 0.4);
}

.experience-badge span:first-child {
  font-size: 1.8rem;
  line-height: 1;
}

.experience-badge span:last-child {
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.2;
}

.about-highlights {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.highlight i {
  color: var(--primary-color);
  font-size: 1.5rem;
  background: rgba(0, 209, 178, 0.1);
  padding: 10px;
  border-radius: 50%;
  min-width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.highlight p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

body.dark-theme .highlight p {
  color: #cbd5e0;
}

.about-cta {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.skills-container {
  max-width: 1000px;
  margin: 0 auto;
}

.skills-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.skills-category {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid #e9ecef;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

body.dark-theme .skills-category {
  border-color: #4a5568;
  color: #e2e8f0;
}

.skills-category:hover,
.skills-category.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.skill-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease;
}

body.dark-theme .skill-item {
  background: #2d3748;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.skill-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(0, 209, 178, 0.1);
  color: var(--primary-color);
  border-radius: 10px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Błyszczący efekt na ikonie */
.skill-icon::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 250%;
  height: 250%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.skill-item:hover .skill-icon::after {
  top: 100%;
  left: 100%;
}

/* Informacje o umiejętności */
.skill-info {
  flex: 1;
}

.skill-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  background: linear-gradient(to right, #ffffff 40%, #a3bffa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
  position: relative;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding-bottom: 5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.skill-info h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #00d1b2, transparent);
  transition: width 0.5s ease;
  border-radius: 2px;
}

.skill-item:hover .skill-info h3::after {
  width: 40px;
}

.skill-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  background: linear-gradient(to right, #ffffff 40%, #a3bffa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
  position: relative;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding-bottom: 5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.skill-level {
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
}

body.dark-theme .skill-level {
  background: #4a5568;
}

.skill-progress {
  height: 100%;
  background: var(--primary-color);
  border-radius: 3px;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  display: none;
  opacity: 1;
}

.testimonial:first-child {
  display: block;
}

.testimonial-content {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
  position: relative;
}

body.dark-theme .testimonial-content {
  background: #2d3748;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
  position: relative;
  padding-bottom: 20px;
}

.testimonial-text i {
  color: var(--primary-color);
  font-size: 1.8rem;
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: -5px;
}

.testimonial-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

body.dark-theme .testimonial-text p {
  color: #e2e8f0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.testimonial-author h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.testimonial-author p {
  color: var(--text-light);
  font-size: 0.9rem;
}

body.dark-theme .testimonial-author p {
  color: #cbd5e0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  background: #e9ecef;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

body.dark-theme .testimonial-dot {
  background: #4a5568;
}

.testimonial-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.contact-container {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  width: 100%;
  text-align: left;
}

.contact-form-container {
  flex: 2;
  min-width: 300px;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  background: rgba(0, 209, 178, 0.1);
  color: var(--primary-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
  color: var(--text-light);
  font-size: 1rem;
  display: inline-block;
  word-break: break-word;
}

body.dark-theme .contact-item p,
body.dark-theme .contact-item a {
  color: #cbd5e0;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  width: 100%;
}

body.dark-theme .contact-form {
  background: #2d3748;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 1.05rem;
  text-align: left;
}

.form-group input,
.form-group textarea {
  padding: 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1.05rem;
  width: 100%;
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
  background: #444;
  border-color: #4a5568;
  color: #e2e8f0;
}

.form-group textarea {
  min-height: 150px;
}

.g-recaptcha-container {
  grid-column: span 2;
  margin: 10px 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.g-recaptcha {
  transform-origin: center;
  margin: 0 auto;
}

button[type="submit"] {
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  background: #00d1b2;
  color: white;
  border: 2px solid transparent;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;
  display: block;
  min-width: 200px;
  grid-column: span 2;
}

@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info {
    width: 100%;
    margin-bottom: 30px;
  }

  .contact-form-container {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .contact-form {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 20px;
  }

  .form-group.full-width,
  .g-recaptcha-container {
    grid-column: 1;
  }

  .form-group label,
  .form-group input,
  .form-group textarea {
    width: 100%;
  }

  button[type="submit"] {
    width: 100%;
    margin-top: 10px;
    grid-column: 1;
  }

  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center;
  }

  .g-recaptcha-container {
    justify-content: center;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 20px 15px;
  }

  .g-recaptcha {
    transform: scale(0.77);
  }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-brand {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand p {
  margin-top: 15px;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  padding-left: 0;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links-column h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-links-column ul {
  list-style: none;
}

.footer-links-column li {
  margin-bottom: 10px;
}

.footer-links-column a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links-column a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
}

#back-to-top:hover {
  background: #00c5a8;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

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

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
    min-height: 40px;
  }

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

  .btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-cta {
    flex-direction: column;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: 1;
  }
}

@media (max-width: 576px) {
  .skills-categories {
    flex-direction: column;
  }

  .skills-category {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .mobile-theme-toggle,
  #mobile-theme-button,
  .theme-toggle,
  #theme-toggle {
    display: none !important;
  }
}

/* Ensure reCAPTCHA is visible and properly sized on mobile */
.g-recaptcha {
  transform-origin: left top;
  margin-bottom: 15px;
}

@media screen and (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.85);
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 360px) {
  .g-recaptcha {
    transform: scale(0.75);
  }
}

#project-detail {
  padding: 120px 20px;
  background: #ecf0f1;
}

body.dark-theme #project-detail {
  background: #2c3e50;
}

#project-detail h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #2c3e50;
}

body.dark-theme #project-detail h1 {
  color: #ecf0f1;
}

.project-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.project-content p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

body.dark-theme .project-content p {
  color: #bbb;
}

.tableau-container {
  margin: 30px auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  width: 100%;
  overflow: visible;
}

body.dark-theme .tableau-container {
  background: #333;
}

.tableauPlaceholder {
  width: 100% !important;
  height: auto !important;
}

.tableauViz {
  width: 100% !important;
  height: auto !important;
}

@media (max-width: 500px) {
  .tableau-container {
    padding: 5px;
  }
  .tableauPlaceholder,
  .tableauViz {
    height: auto !important;
  }
}

#projects {
  background: #f8f9fa;
  padding: 120px 20px;
}

body.dark-theme #projects {
  background: #1e2a38;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

#projects h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

#projects h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #00d1b2;
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-subheading {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

body.dark-theme .section-subheading {
  color: #adb5bd;
}

.featured-project {
  max-width: 1200px;
  margin: 0 auto 80px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

body.dark-theme .featured-project {
  background: #2d3748;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.featured-project:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.featured-project-content {
  display: flex;
  flex-direction: row;
}

.featured-project-text {
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-project-image {
  flex: 1.3;
  position: relative;
  overflow: hidden;
}

.featured-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-project:hover .featured-project-image img {
  transform: scale(1.05);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
  justify-content: center;
}

.project-tag {
  background: rgba(0, 209, 178, 0.1);
  color: #00d1b2;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

body.dark-theme .project-tag {
  background: rgba(0, 209, 178, 0.2);
}

.featured-project h3 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

body.dark-theme .featured-project h3 {
  color: #f8f9fa;
}

.featured-project p {
  font-size: 1.15rem;
  color: #6c757d;
  margin-bottom: 25px;
  line-height: 1.7;
}

body.dark-theme .featured-project p {
  color: #cbd5e0;
}

.project-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.project-link {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.project-link.primary {
  background: #00d1b2;
  color: white;
  box-shadow: 0 4px 14px rgba(0, 209, 178, 0.4);
}

.project-link.primary:hover {
  background: #00b89e;
  transform: translateY(-3px);
  box-shadow: 0 7px 16px rgba(0, 209, 178, 0.5);
}

.project-link.secondary {
  background: transparent;
  color: #2c3e50;
  border: 2px solid #e9ecef;
}

body.dark-theme .project-link.secondary {
  color: #f8f9fa;
  border: 2px solid #4a5568;
}

.project-link.secondary:hover {
  border-color: #00d1b2;
  color: #00d1b2;
  transform: translateY(-3px);
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  background: transparent;
  border: 2px solid #e9ecef;
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
}

body.dark-theme .filter-btn {
  border: 2px solid #4a5568;
  color: #e2e8f0;
}

.filter-btn:hover,
.filter-btn.active {
  background: #00d1b2;
  border-color: #00d1b2;
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body.dark-theme .project-card {
  background: #2d3748;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.project-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-card-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.1);
}

.project-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card h3 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin: 10px 0;
}

body.dark-theme .project-card h3 {
  color: #f8f9fa;
}

.project-card p {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

body.dark-theme .project-card p {
  color: #cbd5e0;
}

/* Link do szczegółów projektu */
.card-link {
  color: #00d1b2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  gap: 8px;
  align-self: center;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.card-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d1b2 0%, #00a896 100%);
  transition: width 0.3s ease-out;
  border-radius: 2px;
  margin: 0 auto;
}

.card-link:hover {
  color: #00b89e;
}

.card-link:hover::after {
  width: 100%;
}

.card-link i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.card-link:hover i {
  transform: translateX(3px);
}

/* Przycisk "więcej projektów" */
.more-projects {
  text-align: center;
  margin-top: 60px;
}

.more-projects-button {
  display: inline-block;
  padding: 14px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  background: transparent;
  color: #2c3e50;
  border: 2px solid #00d1b2;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

body.dark-theme .more-projects-button {
  color: #f8f9fa;
}

.more-projects-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #00d1b2;
  transition: width 0.4s ease;
  z-index: -1;
}

.more-projects-button:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 7px 16px rgba(0, 209, 178, 0.3);
}

.more-projects-button:hover::before {
  width: 100%;
}

@media (max-width: 992px) {
  .featured-project-content {
    flex-direction: column-reverse;
  }

  .featured-project-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  #projects {
    padding: 80px 15px;
  }

  #projects h2 {
    font-size: 2.5rem;
  }

  .featured-project {
    margin-bottom: 50px;
  }

  .featured-project-text {
    padding: 30px;
  }

  .featured-project h3 {
    font-size: 1.8rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .project-buttons {
    flex-direction: column;
  }

  .project-link {
    width: 100%;
    text-align: center;
  }
}

nav .logo {
  margin-top: 15px !important;
  margin-left: 30px !important;
  display: flex !important;
  align-items: center !important;
  height: 70px !important;
}

nav .logo img,
.footer-logo {
  height: 50px;
  width: auto;
  display: block;
}

nav .nav-actions {
  margin-right: 90px !important;
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
}

nav .logo img,
.footer-logo {
  height: 50px;
  width: auto;
  display: block;
}

nav .nav-actions {
  margin-right: 50px !important;
}

@media (max-width: 768px) {
  .highlight {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .highlight i {
    margin-bottom: 10px;
  }

  .highlight div {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-container {
    text-align: center;
  }

  .footer-brand {
    text-align: center;
    width: 100%;
  }

  .footer-brand .footer-logo {
    margin: 0 auto 15px;
    padding-left: 0;
  }

  .footer-links {
    justify-content: center;
    width: 100%;
  }

  .footer-links-column {
    text-align: center;
    width: 100%;
  }

  .footer-links-column h3 {
    margin-top: 20px;
  }
}

nav .logo {
  margin-top: 0 !important;
  margin-left: 30px !important;
  display: flex !important;
  align-items: center !important;
  height: 70px !important;
}

nav .logo img {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.footer-brand {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand p {
  margin-top: 15px;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  padding-left: 0;
}

/* Style dla powiadomień toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: #fff;
  color: #333;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 250px;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  opacity: 0.95;
}

.toast.show {
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.toast-content i {
  font-size: 1.5rem;
}

.toast-success {
  border-left: 5px solid #00d1b2;
}

.toast-success i {
  color: #00d1b2;
}

.toast-error {
  border-left: 5px solid #ff3860;
}

.toast-error i {
  color: #ff3860;
}

.toast-info {
  border-left: 5px solid #3298dc;
}

.toast-info i {
  color: #3298dc;
}

.toast-close {
  background: transparent;
  border: none;
  font-size: 1rem;
  color: #999;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: #333;
}

.toast-message {
  font-size: 0.9rem;
  line-height: 1.4;
}

body.dark-theme .toast {
  background-color: #2d2d2d;
  color: #ecf0f1;
}

body.dark-theme .toast-close {
  color: #aaa;
}

body.dark-theme .toast-close:hover {
  color: #fff;
}

/* Loader dla przycisku podczas wysyłania */
.btn .fa-spin {
  margin-right: 8px;
}

/* ===== MODERNIZED HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 20px 60px;
  overflow: hidden;
  z-index: 1;
  background: #121212;
}

.hero-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 209, 178, 0.2) 0%,
    rgba(44, 62, 80, 0.3) 100%
  );
  z-index: -1;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 209, 178, 0.15),
    rgba(0, 137, 123, 0.05)
  );
  top: -150px;
  right: -100px;
  animation: floatAnimation 15s ease-in-out infinite;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(66, 99, 235, 0.1),
    rgba(41, 50, 100, 0.05)
  );
  bottom: -80px;
  left: -100px;
  animation: floatAnimation 18s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent);
  top: 40%;
  right: 15%;
  animation: floatAnimation 20s ease-in-out infinite 2s;
}

@keyframes floatAnimation {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-15px, 10px) rotate(2deg);
  }
  50% {
    transform: translate(10px, -15px) rotate(-1deg);
  }
  75% {
    transform: translate(-5px, -8px) rotate(1deg);
  }
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-text-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-text {
  max-width: 800px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.3s;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(
    90deg,
    rgba(0, 209, 178, 0.1),
    rgba(0, 209, 178, 0.2)
  );
  border: 1px solid rgba(0, 209, 178, 0.3);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #00d1b2;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-intro {
  font-size: 1.3rem;
  color: #00d1b2;
  margin-bottom: 5px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #a3bffa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  line-height: 1.1;
}

.hero-subtitle-wrapper {
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 2.2rem;
  color: #a3bffa;
  font-weight: 600;
  position: relative;
}

.hero-description {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

.highlight-text {
  color: #00d1b2;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00ffd0, #00d1b2, #008f7a);
  z-index: -1;
  border-radius: 50px;
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-glow:hover::before {
  opacity: 0.8;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: #00d1b2;
  color: #00d1b2;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-stats-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.8s;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 220px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 209, 178, 0.1);
  border-color: rgba(0, 209, 178, 0.2);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    45deg,
    rgba(0, 209, 178, 0.1),
    rgba(0, 209, 178, 0.05)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  font-size: 1.5rem;
  color: #00d1b2;
}

.stat-content {
  display: flex;
  flex-direction: column;
  text-align: center; /* Ensure all content is centered */
  width: 100%; /* Take full width of container */
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  text-align: center; /* Explicitly center numbers */
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-align: center; /* Explicitly center labels */
  width: 100%; /* Take full width */
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 25px; /* Position further down */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  cursor: pointer;
  opacity: 0.8; /* Increased from 0.7 for better visibility */
  transition: opacity 0.3s ease;
  z-index: 5;
  padding-top: 40px; /* Increased from 30px */
}

.scroll-text {
  color: rgba(255, 255, 255, 0.8); /* Brighter text */
  font-size: 0.9rem; /* Slightly larger */
  margin-bottom: 10px; /* Increased from 8px */
  display: block;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6); /* Stronger shadow */
  font-weight: 500; /* Make text slightly bolder */
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* Increased from 8px */
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6)); /* Stronger shadow */
}

.scroll-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.scroll-icon span {
  display: block;
  width: 12px; /* Larger arrows */
  height: 12px; /* Larger arrows */
  border-bottom: 2px solid rgba(255, 255, 255, 0.8); /* Brighter border */
  border-right: 2px solid rgba(255, 255, 255, 0.8); /* Brighter border */
  transform: rotate(45deg);
  animation: scrollArrow 1.5s infinite;
}

.scroll-icon span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-icon span:nth-child(3) {
  animation-delay: 0.4s;
}

.scroll-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 10px;
  font-weight: 500;
}

@keyframes scrollArrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-10px, -10px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(10px, 10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments for scroll indicator */
@media (max-width: 992px) {
  .hero-content-wrapper {
    margin-bottom: 90px; /* More space on tablets */
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding: 30px 20px 100px; /* More bottom padding on mobile */
  }

  .hero-content-wrapper {
    margin-bottom: 80px; /* Adjust for mobile */
  }

  /* Keep scroll indicator visible on mobile */
  .scroll-indicator {
    bottom: 20px;
  }
}

@media (max-width: 576px) {
  .hero-container {
    padding: 60px 15px 120px; /* Much more bottom padding on small screens */
  }
}

/* ===== MODERNIZED ABOUT SECTION ===== */
#about {
  background: linear-gradient(to bottom, #1a1a1a, #2c3e50);
  padding: 120px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.about-image {
  position: relative;
  z-index: 2;
}

.image-bg-shape {
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  background: linear-gradient(
    45deg,
    rgba(0, 209, 178, 0.15),
    rgba(66, 99, 235, 0.15)
  );
  border-radius: 20px;
  z-index: -1;
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}

.about-image:hover .image-bg-shape {
  transform: rotate(3deg);
}

.profile-img {
  width: 280px;
  height: 280px;
  border-radius: 20px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  filter: grayscale(20%);
}

.about-image:hover .profile-img {
  filter: grayscale(0%);
  transform: scale(1.02);
  border-color: rgba(0, 209, 178, 0.3);
}

.experience-badge {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background: linear-gradient(45deg, #00d1b2, #00a896);
  color: white;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 209, 178, 0.4);
  z-index: 2;
}

.experience-badge span:first-child {
  font-size: 2.2rem;
  line-height: 1;
}

.experience-badge span:last-child {
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.2;
  max-width: 80px;
}

.about-social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: #00d1b2;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 209, 178, 0.4);
}

.about-text {
  color: #f0f0f0;
}

.about-heading {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 25px;
  font-weight: 600;
}

.about-heading-highlight {
  color: #00d1b2;
  position: relative;
  display: inline-block;
}

.about-heading-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 209, 178, 0.3);
  border-radius: 2px;
  z-index: -1;
}

.about-description {
  margin-bottom: 30px;
}

.about-description p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 30px auto;
  max-width: 800px;
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px 20px;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.highlight:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 209, 178, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.highlight i {
  color: #00d1b2;
  font-size: 1.8rem;
  background: rgba(0, 209, 178, 0.1);
  padding: 15px;
  border-radius: 12px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  box-shadow: 0 4px 10px rgba(0, 209, 178, 0.2);
}

.highlight h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.highlight p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  max-width: 200px;
}

.highlight div {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-cta {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

/* Responsive styles for Hero and About sections */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-container {
    margin-bottom: 20px;
  }

  .highlight {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

  .stat-card {
    width: 100%;
    max-width: 280px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .about-cta {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .profile-img {
    width: 240px;
    height: 240px;
  }

  .experience-badge {
    width: 80px;
    height: 80px;
    right: -15px;
    bottom: -15px;
  }

  .experience-badge span:first-child {
    font-size: 1.8rem;
  }

  .about-heading {
    font-size: 1.8rem;
  }
}

/* ...remaining CSS... */

/* ===== NOWA SEKCJA START - CAŁKOWICIE PRZEBUDOWANA ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #121212;
  padding: 0;
  z-index: 1;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.bg-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 209, 178, 0.2) 0%,
    rgba(30, 40, 50, 0.5) 100%
  );
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.shape-1 {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle at center,
    rgba(0, 209, 178, 0.2),
    rgba(0, 165, 140, 0.05)
  );
  animation: floatSlow 15s infinite alternate ease-in-out;
}

.shape-2 {
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle at center,
    rgba(66, 99, 235, 0.15),
    rgba(41, 50, 100, 0.05)
  );
  animation: floatSlow 20s infinite alternate-reverse ease-in-out;
}

.shape-3 {
  top: 40%;
  left: 30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: floatSlow 18s infinite alternate ease-in-out;
}

@keyframes floatSlow {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-20px, 20px);
  }
  100% {
    transform: translate(20px, -20px);
  }
}

.hero-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 20px 100px;
  position: relative;
}

.hero-content-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 70px;
}

.hero-text-side {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 209, 178, 0.15);
  border: 1px solid rgba(0, 209, 178, 0.3);
  color: #00d1b2;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.1;
  text-align: center;
}

.hero-title .greeting {
  display: block;
  font-size: 0.5em;
  color: #a3bffa;
  font-weight: 600;
  margin-bottom: 5px;
}

.hero-title .name {
  background: linear-gradient(to right, #ffffff, #a3bffa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle-container {
  min-height: 60px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-subtitle {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: #00d1b2;
  font-weight: 600;
  position: relative;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-description .highlight {
  color: #00d1b2;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(45deg, #00d1b2, #00a896);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 209, 178, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 209, 178, 0.5);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: #00d1b2;
  color: #00d1b2;
  transform: translateY(-3px);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hero-visual-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-stats-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 209, 178, 0.2);
  box-shadow: 0 8px 25px rgba(0, 209, 178, 0.15);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 209, 178, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d1b2;
  font-size: 1.5rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100%;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  text-align: center;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  z-index: 5;
  padding-top: 40px;
}

.scroll-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: block;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-arrow span {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
  animation: scrollArrow 1.5s infinite;
}

.scroll-arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes scrollArrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments for scroll indicator */
@media (max-width: 992px) {
  .hero-container {
    padding-bottom: 120px;
  }

  .hero-content-wrapper {
    margin-bottom: 90px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding: 30px 20px 100px;
  }

  .hero-content-wrapper {
    margin-bottom: 80px;
  }

  .scroll-indicator {
    bottom: 20px;
  }
}

@media (max-width: 576px) {
  .hero-container {
    padding: 30px 15px 120px;
  }
}

/* ===== ZOPTYMALIZOWANA SEKCJA O MNIE ===== */
.about-section {
  background: linear-gradient(to bottom, #151515, #1e2a38);
  padding: 80px 0;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.about-media-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.about-image-wrap {
  position: relative;
  margin-bottom: 20px;
}

.profile-img {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 15px;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.profile-img:hover {
  border-color: rgba(0, 209, 178, 0.3);
  transform: scale(1.02);
}

.image-border {
  position: absolute;
  top: -15px;
  left: 15px;
  width: 260px;
  height: 320px;
  border: 2px solid rgba(0, 209, 178, 0.3);
  border-radius: 15px;
  z-index: 1;
}

.experience-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #00d1b2, #00a896);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 209, 178, 0.4);
  z-index: 3;
}

.experience-badge span:first-child {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge span:last-child {
  font-size: 0.8rem;
  font-weight: 500;
}

.about-contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 260px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.info-icon {
  color: #00d1b2;
  font-size: 1.1rem;
}

.info-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.info-text a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-text a:hover {
  color: #00d1b2;
}

.about-social-links {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: #00d1b2;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 209, 178, 0.3);
}

.about-content-column {
}

.about-heading {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #ffffff;
  text-align: left;
}

.about-heading .specialty {
  color: #00d1b2;
}

.about-text {
  margin-bottom: 30px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 30px auto;
  max-width: 800px;
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px 20px;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.highlight:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 209, 178, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.highlight i {
  color: #00d1b2;
  font-size: 1.8rem;
  background: rgba(0, 209, 178, 0.1);
  padding: 15px;
  border-radius: 12px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  box-shadow: 0 4px 10px rgba(0, 209, 178, 0.2);
}

.highlight h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.highlight p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  max-width: 200px;
}

.highlight div {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive adjustments for the highlight boxes */
@media (max-width: 992px) {
  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .about-highlights {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .highlight {
    padding: 20px;
  }

  .highlight i {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    padding: 12px;
  }

  .highlight p {
    max-width: 100%;
  }
}

.about-cta {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Dostosowanie responsywności dla sekcji Start i O mnie */
@media (max-width: 992px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-stats-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .stat-card {
    width: calc(50% - 20px);
    margin: 0 auto;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .about-heading,
  .about-text p {
    text-align: center;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding: 30px 20px 40px;
    text-align: center;
  }

  .hero-title,
  .hero-subtitle,
  .hero-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .highlight {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
  }

  .highlight i {
    margin-bottom: 10px;
  }

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

  .about-cta .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
  }

  .about-heading {
    text-align: center;
  }

  .about-content-column {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .about-image-wrap {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    position: relative;
  }

  .hero-container {
    padding: 60px 15px 40px;
  }
}

/* ...remaining CSS... */

/* Enhanced scroll indicator with no text */
.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.3s ease;
  z-index: 5;
  padding: 15px;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.scroll-text {
  display: none;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

.scroll-arrow span {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
  transition: border-color 0.3s ease;
}

.scroll-arrow span:first-child {
  animation: scrollArrowPulse 2s infinite;
}

.scroll-arrow span:last-child {
  animation: scrollArrowPulse 2s infinite 0.5s;
}

@keyframes scrollArrowPulse {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-8px, -8px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(8px, 8px);
  }
}

@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 20px;
  }

  .scroll-arrow span {
    width: 12px;
    height: 12px;
  }
}

/* Przełącznik sekcji umiejętności i certyfikatów */
.skills-section-toggle {
  display: flex;
  justify-content: center;
  margin: 0 auto 40px;
  max-width: 360px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.dark-theme) .skills-section-toggle {
  background: rgba(0, 0, 0, 0.1);
}

.section-toggle-btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: 2px solid #e9ecef;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

body:not(.dark-theme) .section-toggle-btn {
  color: #333;
}

.section-toggle-btn.active {
  color: #ffffff;
}

body:not(.dark-theme) .section-toggle-btn.active {
  color: #000000;
}

.skills-section-toggle {
  display: flex;
  justify-content: center;
  margin: 0 auto 40px;
  max-width: 360px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.toggle-background {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: linear-gradient(45deg, #00d1b2, #00a896);
  border-radius: 28px;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 5px 15px rgba(0, 209, 178, 0.3);
}

.section-toggle-btn:nth-child(2).active ~ .toggle-background {
  transform: translateX(100%);
}

.section-toggle-btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 30px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.section-toggle-btn.active {
  color: white;
}

/* Kontenery sekcji */
.content-section {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
}

.content-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInSection 0.5s ease forwards;
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Styl certyfikatów */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  margin: 20px auto;
}

.certificate-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(0);
}

body.dark-theme .certificate-card {
  background: #2d3748;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.certificate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.certificate-image {
  height: 180px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid rgba(0, 209, 178, 0.7);
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.certificate-card:hover .certificate-image img {
  transform: scale(1.05);
}

.certificate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 209, 178, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
  opacity: 1;
}

.certificate-view-btn {
  padding: 10px 20px;
  background: white;
  color: #00a896;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
}

.certificate-card:hover .certificate-view-btn {
  transform: translateY(0);
  opacity: 1;
}

.certificate-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.certificate-issuer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.issuer-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.certificate-date {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

body.dark-theme .certificate-date {
  color: #a0aec0;
}

.certificate-title {
  font-size: 1.4rem;
  color: #2d3748;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: 600;
}

body.dark-theme .certificate-title {
  color: #f7fafc;
}

.certificate-description {
  font-size: 0.95rem;
  color: #718096;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.6;
}

body.dark-theme .certificate-description {
  color: #cbd5e0;
}

.certificate-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #edf2f7;
  font-size: 0.85rem;
}

body.dark-theme .certificate-footer {
  border-color: #4a5568;
}

.certificate-id {
  color: #718096;
  font-family: monospace;
  font-size: 0.9rem;
}

body.dark-theme .certificate-id {
  color: #a0aec0;
}

.certificate-verify-link {
  color: #00a896;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.certificate-verify-link:hover {
  color: #008080;
}

.certificate-verify-link i {
  font-size: 0.8rem;
}

/* Responsywność dla certyfikatów */
@media (max-width: 992px) {
  .certificates-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .skills-section-toggle {
    max-width: 300px;
  }

  .section-toggle-btn {
    padding: 10px 15px;
    font-size: 1rem;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .certificate-image {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .certificate-image {
    height: 140px;
  }

  .certificate-content {
    padding: 15px;
  }

  .certificate-title {
    font-size: 1.2rem;
  }
}

/* Przełącznik sekcji umiejętności i certyfikatów - ulepszona animacja */
.skills-section-toggle {
  display: flex;
  justify-content: center;
  margin: 0 auto 40px;
  max-width: 360px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.toggle-background {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: linear-gradient(45deg, #00d1b2, #00a896);
  border-radius: 28px;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 5px 15px rgba(0, 209, 178, 0.3);
}

.section-toggle-btn:nth-child(2).active ~ .toggle-background {
  transform: translateX(100%);
}

.section-toggle-btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 30px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.section-toggle-btn.active {
  color: white;
}

/* ...existing code... */

/* Poprawione style dla mobilnego filtrowania umiejętności */
@media (max-width: 768px) {
  .skills-categories {
    display: flex;
    flex-direction: row; /* Zmiana z column na row dla lepszego UX */
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .skills-category {
    text-align: center;
    min-width: auto; /* Usunięcie stałej szerokości */
    width: auto; /* Dopasowanie szerokości do zawartości */
    padding: 10px 16px; /* Zwiększenie powierzchni kliknięcia */
    margin-bottom: 10px;
    font-size: 0.9rem; /* Nieco mniejsza czcionka na małych urządzeniach */
    flex: 0 1 auto; /* Elastyczność elementów */
    touch-action: manipulation; /* Poprawa obsługi dotyku */
    -webkit-tap-highlight-color: rgba(
      0,
      209,
      178,
      0.2
    ); /* Dodanie podświetlenia przy dotknięciu */
  }

  .skills-category.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }

  /* Poprawa wyświetlania elementów umiejętności */
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 15px;
  }

  .skill-item {
    padding: 15px;
    display: flex !important; /* Wymuszenie wyświetlania */
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .skill-item.hidden {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 480px) {
  .skills-category {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .skills-grid {
    grid-template-columns: 1fr !important; /* Jedna kolumna na najmniejszych ekranach */
  }
}

/* ...existing code... */

/* Ulepszone style dla certyfikatów */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin: 20px auto;
}

.certificate-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(0);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

body.dark-theme .certificate-card {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.certificate-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 209, 178, 0.2);
  border-color: rgba(0, 209, 178, 0.2);
}

.certificate-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid rgba(0, 209, 178, 0.7);
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: contrast(1.05) brightness(1.05);
}

.certificate-card:hover .certificate-image img {
  transform: scale(1.08);
}

.certificate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 209, 178, 0.9),
    rgba(0, 209, 178, 0.7)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.certificate-card:hover .certificate-overlay {
  opacity: 1;
}

.certificate-view-btn {
  padding: 12px 24px;
  background: white;
  color: #00a896;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.certificate-card:hover .certificate-view-btn {
  transform: translateY(0);
  opacity: 1;
}

.certificate-view-btn:hover {
  background: transparent;
  color: white;
  border-color: white;
}

.certificate-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}

.certificate-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 209, 178, 0.3),
    transparent
  );
}

.certificate-issuer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.issuer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.certificate-card:hover .issuer-logo {
  filter: grayscale(0%);
}

.certificate-date {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  padding: 5px 12px;
  background: rgba(0, 209, 178, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(0, 209, 178, 0.2);
}

body.dark-theme .certificate-date {
  color: rgba(255, 255, 255, 0.7);
}

.certificate-title {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 600;
  position: relative;
}

body.dark-theme .certificate-title {
  color: rgba(255, 255, 255, 0.95);
}

.certificate-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: rgba(0, 209, 178, 0.7);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.certificate-card:hover .certificate-title::after {
  width: 70px;
}

.certificate-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  flex-grow: 1;
  line-height: 1.6;
}

body.dark-theme .certificate-description {
  color: rgba(255, 255, 255, 0.7);
}

.certificate-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  margin-top: auto;
}

body.dark-theme .certificate-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.certificate-id {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 10px;
  border-radius: 5px;
  letter-spacing: 1px;
}

body.dark-theme .certificate-id {
  color: rgba(255, 255, 255, 0.5);
}

.certificate-verify-link {
  color: #00d1b2;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.certificate-verify-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #00d1b2;
  transition: width 0.3s ease;
}

.certificate-verify-link:hover {
  color: #00e6c5;
}

.certificate-verify-link:hover::after {
  width: 100%;
}

.certificate-verify-link i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.certificate-verify-link:hover i {
  transform: translateX(3px);
}

/* Responsywność dla certyfikatów */
@media (max-width: 992px) {
  .certificates-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .certificates-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .certificate-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .certificate-image {
    height: 160px;
  }

  .certificate-content {
    padding: 20px 15px;
  }

  .certificate-title {
    font-size: 1.3rem;
  }

  .certificate-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .certificate-verify-link {
    align-self: flex-end;
  }
}

/* ...existing code... */

/* Ulepszony filtr umiejętności dla urządzeń mobilnych */
.skills-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.skills-category {
  padding: 12px 20px;
  background: transparent;
  border: 2px solid #e9ecef;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent; /* Usunięcie domyślnego podświetlenia na touch */
}

body.dark-theme .skills-category {
  border-color: #4a5568;
  color: #e2e8f0;
}

.skills-category:hover,
.skills-category.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Style specyficzne dla urządzeń mobilnych */
@media (max-width: 768px) {
  .skills-categories {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .skills-category {
    padding: 10px 15px;
    font-size: 0.9rem;
    margin: 3px;
    min-height: 40px; /* Minimalny obszar dotykowy */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Zapobieganie różnym problemom z interakcją na urządzeniach mobilnych */
    position: relative;
    z-index: 10;
  }

  /* Specjalna klasa dla wersji mobilnej */
  .skills-category:active {
    background-color: rgba(0, 209, 178, 0.7);
    color: white;
  }

  /* Usunięcie wszystkich animacji dla elementu skill-item na urządzeniach mobilnych */
  .skill-item {
    transition: none !important;
    animation: none !important;
    will-change: auto;
    transform: none !important;
  }

  /* Resetowanie możliwych problematycznych stylów */
  .skills-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  /* Zapewnienie prawidłowego wyświetlania elementów */
  .skill-item:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
  }

  .skill-item.hidden {
    display: none !important;
  }
}

/* Extreme dev mode - tylko dla wersji mobilnych w przypadku problemów */
@media (max-width: 480px) {
  /* Ta sekcja zostaje skomentowana, ale można ją włączyć w przypadku problemów */
  /*
  .skills-categories {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .skills-category {
    width: 100% !important;
    margin: 5px 0 !important;
    text-align: center !important;
    padding: 15px !important;
    border-radius: 10px !important;
  }
  */
}

/* ...existing code... */

/* Bardziej kompaktowe bloki umiejętności */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-item {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  padding: 30px 25px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1;
}

body.dark-theme .skill-item {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Efekt błyszczącego obramowania */
.skill-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    #00d1b2 0%,
    rgba(0, 209, 178, 0.1) 50%,
    rgba(78, 84, 200, 0.7) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.skill-item:hover::before {
  opacity: 1;
}

/* Kolorowy efekt tła przy najechaniu */
.skill-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 209, 178, 0.15),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -2;
}

.skill-item:hover::after {
  opacity: 1;
}

.skill-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 209, 178, 0.2);
}

/* Ikona umiejętności */
.skill-icon {
  width: 65px;
  height: 65px;
  background: rgba(0, 209, 178, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d1b2;
  font-size: 2rem;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: rotate(-5deg);
}

.skill-item:hover .skill-icon {
  transform: scale(1.15) rotate(5deg);
  color: #fff;
  background: linear-gradient(135deg, #00d1b2, #00a896);
  box-shadow: 0 8px 25px rgba(0, 209, 178, 0.35);
}

/* Błyszczący efekt na ikonie */
.skill-icon::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 250%;
  height: 250%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.skill-item:hover .skill-icon::after {
  top: 100%;
  left: 100%;
}

/* Informacje o umiejętności */
.skill-info {
  flex: 1;
}

.skill-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  background: linear-gradient(to right, #ffffff 40%, #a3bffa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
  position: relative;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding-bottom: 5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.skill-item:hover .skill-info h3 {
  background: linear-gradient(to right, #00d1b2, #a3ffed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateX(5px);
}

/* Podkreślenie nazwy umiejętności */
.skill-info h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #00d1b2, transparent);
  transition: width 0.5s ease;
  border-radius: 2px;
}

.skill-item:hover .skill-info h3::after {
  width: 40px;
}

/* Responsywność */
@media (max-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  .skill-item {
    padding: 20px;
  }

  .skill-icon {
    width: 55px;
    height: 55px;
    font-size: 1.7rem;
  }

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

@media (max-width: 576px) {
  .skills-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ...existing code... */

/* Bardziej kompaktowe bloki umiejętności */
.skill-item {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 16px 18px; /* Zmniejszony padding */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px; /* Zmniejszony odstęp */
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1;
}

/* Zachowanie efektu obramowania */
.skill-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    #00d1b2 0%,
    rgba(0, 209, 178, 0.1) 50%,
    rgba(78, 84, 200, 0.7) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

/* Bardziej kompaktowa ikona */
.skill-icon {
  width: 46px; /* Zmniejszony rozmiar */
  height: 46px; /* Zmniejszony rozmiar */
  background: rgba(0, 209, 178, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d1b2;
  font-size: 1.5rem; /* Mniejsza czcionka ikony */
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: rotate(-3deg); /* Mniejszy kąt obrotu */
}

/* Zachowanie efektu przy hover dla ikony */
.skill-item:hover .skill-icon {
  transform: scale(1.1) rotate(3deg); /* Mniejszy kąt obrotu przy hover */
  color: #fff;
  background: linear-gradient(135deg, #00d1b2, #00a896);
}

/* Informacje o umiejętności */
.skill-info {
  flex: 1;
}

.skill-info h3 {
  font-size: 1.1rem; /* Mniejszy rozmiar czcionki */
  font-weight: 600;
  background: linear-gradient(to right, #ffffff 40%, #a3bffa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
  position: relative;
  letter-spacing: 0.4px;
  transition: all 0.3s ease;
  padding-bottom: 3px;
}

/* Podkreślenie nazwy umiejętności */
.skill-info h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px; /* Cieńsza linia */
  background: linear-gradient(to right, #00d1b2, transparent);
  transition: width 0.5s ease;
}

/* Responsywność dla bloków umiejętności */
@media (max-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .skill-item {
    padding: 14px;
  }

  .skill-icon {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .skill-info h3 {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ...existing code... */

/* Optymalizacja płynności filtrowania umiejętności */
.skill-item {
  /* Bardziej kompaktowe bloki umiejętności */
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1;

  /* Usprawnienie animacji przejść */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Usuwamy transition dla opacity, aby unikać przycinania */
  will-change: transform, box-shadow;
  opacity: 1;
}

.skill-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 209, 178, 0.2);
}

/* Optymalizacja działania filtrów */
.skills-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 0 15px;
  z-index: 10; /* Wyższy z-index dla filtrów */
}

.skills-category {
  padding: 12px 20px;
  background: transparent;
  border: 2px solid #e9ecef;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  will-change: background-color, color;
}

/* Wszystkie elementy będą preloadowane jako widoczne na początku */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Usunięcie animacji dla wszystkich stanów umiejętności */
@media (max-width: 768px) {
  .skill-item {
    transition: none !important; /* Całkowite usunięcie animacji na mobile */
  }
}

/* ...existing code... */

/* Nowa stopka - całkowicie przeprojektowana */
.footer {
  position: relative;
  background: linear-gradient(135deg, #151a25 0%, #0d111a 100%);
  color: rgba(255, 255, 255, 0.9);
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

/* Górna część stopki */
.footer-top {
  position: relative;
  padding: 80px 0 50px;
  z-index: 1;
}

/* Fala dekoracyjna */
.footer-wave-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' style='fill: %231a1a1a;'/%3E%3C/svg%3E");
  background-size: cover;
  transform: translateY(-99%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 30px;
}

/* Kolumny stopki */
.footer-col {
  padding: 0 10px;
}

.footer-brand-col {
  padding-right: 30px;
}

/* Logo i branding */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(0, 209, 178, 0.5));
}

.footer-tagline {
  font-size: 1.3rem;
  font-weight: 600;
  background: linear-gradient(to right, #ffffff 20%, #00d1b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
}

/* Media społecznościowe */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 209, 178, 0.1);
  color: #00d1b2;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 209, 178, 0.3);
  text-decoration: none;
}

.footer-social-link:hover {
  background: #00d1b2;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 209, 178, 0.3);
}

/* Nagłówki sekcji */
.footer-heading {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  padding-bottom: 10px;
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, #00d1b2, transparent);
  border-radius: 2px;
}

/* Lista linków */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: #00d1b2;
  transform: translateX(5px);
}

.footer-icon {
  margin-right: 10px;
  width: 16px;
  color: rgba(0, 209, 178, 0.8);
  transition: all 0.3s ease;
}

.footer-link:hover .footer-icon {
  color: #00d1b2;
}

/* Newsletter */
.footer-newsletter-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-form-group {
  display: flex;
  position: relative;
  margin-bottom: 20px;
}

.footer-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 12px 20px;
  width: 100%;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-input:focus {
  outline: none;
  border-color: rgba(0, 209, 178, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 209, 178, 0.1);
}

.footer-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-submit-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(45deg, #00d1b2, #00a896);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-submit-btn:hover {
  background: linear-gradient(45deg, #00e6c5, #00b8a6);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 3px 10px rgba(0, 209, 178, 0.4);
}

/* Informacje kontaktowe */
.footer-contact-info {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.footer-contact-icon {
  margin-right: 10px;
  color: #00d1b2;
  width: 16px;
  text-align: center;
}

/* Dolna część stopki */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Przełącznik motywu w stopce */
.footer-theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-theme-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

#footer-theme-btn {
  background: transparent;
  border: 1px solid rgba(0, 209, 178, 0.3);
  color: #00d1b2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

#footer-theme-btn:hover {
  background: rgba(0, 209, 178, 0.1);
  transform: rotate(30deg);
}

/* Responsywność stopki */
@media (max-width: 1200px) {
  .footer-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 50px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

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

  .footer-newsletter-col {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-bottom-content {
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .footer-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    margin-bottom: 30px;
  }

  .footer-heading {
    text-align: center;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-link {
    justify-content: center;
  }

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

  .footer-copyright,
  .footer-theme-toggle {
    text-align: center;
    width: 100%;
    justify-content: center;
    margin: 5px 0;
  }
}

/* Efekt podświetlenia stopki na hover */
.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 209, 178, 0.5),
    transparent
  );
}

/* ...existing code... */

/* Fix for mobile menu to prevent conflicts with filter sidebar */
body.menu-open {
  overflow: hidden;
}

body.menu-open .projects-sidebar.active {
  z-index: 1001; /* Make sure filter sidebar appears above other elements when open */
}

/* Make sure project filter toggles appear correctly */
@media (max-width: 768px) {
  .toggle-filters-mobile {
    display: flex !important;
  }

  .sidebar-close-mobile {
    display: block !important;
  }

  /* Project details view fixes */
  #project-detail {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 100px 15px 60px;
  }

  /* Projects main container */
  .projects-main {
    width: 100%;
    padding: 0 10px;
  }

  .projects-layout {
    display: block;
  }

  /* Ensure project cards are properly visible */
  .project-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column;
  }

  .project-card.hidden {
    display: none !important;
  }
}

/* ...existing code... */

/* Style dla wyróżnionego tekstu - niezależne od motywu */
.hero-description .highlight {
  color: #00d1b2; /* Domyślny kolor - taki sam dla obu motywów */
  font-weight: 600;
  transition: color 0.3s ease;
  /* Nie zmieniamy zawartości, tylko wygląd */
}

/* Dla jasnego motywu - tylko zmiana koloru */
body:not(.dark-theme) .hero-description .highlight {
  color: #009688; /* Kolor dla jasnego motywu */
}

/* Dla ciemnego motywu - tylko zmiana koloru */
body.dark-theme .hero-description .highlight {
  color: #00d1b2; /* Kolor dla ciemnego motywu */
}

/* ...existing code... */

/* Usprawnione style dla mobilnych filtrów umiejętności */
@media (max-width: 768px) {
  .skills-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 10px;
    max-width: 100%;
    overflow-x: visible;
  }

  .skills-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.9rem;
    min-width: 80px; /* Minimum width for touch targets */
    text-align: center;
    margin: 5px;
    touch-action: manipulation; /* Optimize for touch */
    -webkit-tap-highlight-color: rgba(
      0,
      209,
      178,
      0.3
    ); /* Visual feedback on tap */
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .skills-category.active {
    background: rgba(0, 209, 178, 0.2);
    border-color: rgba(0, 209, 178, 0.5);
    color: #00d1b2;
    font-weight: 600;
    transform: scale(1.05);
  }

  .skills-category:active {
    transform: scale(0.95); /* Clear visual feedback when pressing */
  }

  .skill-item {
    transition: opacity 0.2s ease !important; /* Faster transitions on mobile */
    will-change: opacity; /* Optimize rendering */
    backface-visibility: hidden; /* Reduce visual artifacts */
  }

  /* Ensure skill items maintain proper layout */
  .skills-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  /* Show mobile filter tip */
  #mobile-filter-tip {
    transition: opacity 0.5s ease;
    margin-top: 5px;
  }
}

/* ...existing code... */

/* Uproszczone i bardziej niezawodne style dla filtrów umiejętności na urządzeniach mobilnych */
@media (max-width: 768px) {
  /* Kontenery i przyciski */
  .skills-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 5px;
    margin: 0 auto 25px;
  }

  .skills-category {
    min-width: 75px;
    padding: 10px 15px;
    margin: 2px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: normal;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent; /* Usuwa domyślne podświetlenie na iOS */
    user-select: none; /* Zapobiega zaznaczaniu tekstu */
  }

  .skills-category.active {
    background-color: #00d1b2;
    color: white;
    border-color: #00d1b2;
    font-weight: 600;
  }

  /* Upewnij się, że elementy skill-item nie mają konfliktujących stylów */
  .skill-item {
    display: flex !important; /* Po kliknięciu filtra, style inline będą miały priorytet */
    flex-direction: row !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    border-radius: 10px !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: none !important; /* Wyłącz wszystkie animacje */
    transform: none !important; /* Wyłącz wszystkie transformacje */
  }

  .skill-item[style*="display: none"] {
    display: none !important; /* Upewnij się, że ukryte elementy są naprawdę ukryte */
  }

  /* Ikona umiejętności */
  .skill-icon {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    margin-right: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: rgba(0, 209, 178, 0.1) !important;
    transition: none !important; /* Wyłącz animacje */
  }

  /* Informacje o umiejętności */
  .skill-info {
    text-align: left !important;
  }

  .skill-info h3 {
    font-size: 1.1rem !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Wskazówka dla użytkownika */
  #mobile-filter-tip {
    background: rgba(0, 209, 178, 0.08);
    border: 1px solid rgba(0, 209, 178, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
  }
}

/* Jeszcze bardziej uproszczone style dla bardzo małych ekranów */
@media (max-width: 380px) {
  .skills-categories {
    padding: 2px;
    gap: 5px;
  }

  .skills-category {
    min-width: auto;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .skill-item {
    padding: 12px !important;
  }

  .skill-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    margin-right: 10px !important;
  }

  .skill-info h3 {
    font-size: 1rem !important;
  }
}

/* ...existing code... */

/* Certificate text styling for light theme */
body:not(.dark-theme) .certificate-title {
  color: #2c3e50;
}

body:not(.dark-theme) .certificate-description {
  color: #555;
}

body:not(.dark-theme) .certificate-date {
  color: #666;
}

body:not(.dark-theme) .certificate-id {
  color: #777;
}

body:not(.dark-theme) .certificate-footer {
  color: #333;
}

body:not(.dark-theme) .certificate-verify-link {
  color: #00d1b2;
}

body:not(.dark-theme) .certificate-card {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ...existing code... */

body.dark-theme .skill-item {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Błyszczący efekt na ikonie */

/* Responsywność */
@media (max-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  .skill-item {
    padding: 20px;
  }

  .skill-icon {
    width: 55px;
    height: 55px;
    font-size: 1.7rem;
  }

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

@media (max-width: 576px) {
  .skills-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ...existing code... */

/* Desktop-specific skills category styling - fixes active state display */
@media (min-width: 769px) {
  body.dark-theme .skills-category {
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .skills-category:hover {
    border-color: rgba(0, 209, 178, 0.5);
    color: #00d1b2;
  }

  /* Improved active state styling with stronger specificity */
  .skills-category.active,
  .skills-categories .skills-category.active,
  html body .skills-categories .skills-category.active {
    color: white !important;
    font-weight: 600 !important;
  }

  /* Make sure the active state shows correctly in light theme too */
  html body:not(.dark-theme) .skills-category.active,
  body:not(.dark-theme) .skills-categories .skills-category.active {
    color: white !important;
    border-color: #00d1b2 !important;
    box-shadow: 0 4px 10px rgba(0, 209, 178, 0.3) !important;
  }

  body:not(.dark-theme) .skills-category {
    border-color: #e9ecef;
    color: #495057;
  }

  body:not(.dark-theme) .skills-category:hover {
    border-color: rgba(0, 209, 178, 0.5);
    color: #00d1b2;
  }
}

/* Existing mobile-specific styles remain unchanged */
@media (max-width: 768px) {
  .skills-category {
    /* ...existing code... */
  }

  /* ...existing code... */
}

/* ...existing code... */

/* Completely rewritten styles for skills category buttons with maximum specificity */
/* These styles apply to all screen sizes */
.skills-categories .skills-category {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid #e9ecef;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  position: relative;
  margin: 5px;
}

/* Dark theme specific styles */
body.dark-theme .skills-categories .skills-category {
  border-color: #4a5568;
  color: #e2e8f0;
}

/* Hover state for both themes */
.skills-categories .skills-category:hover {
  color: #00d1b2;
}

/* Active state with maximum specificity for both themes */
html body .skills-categories .skills-category.active,
.skills-categories .skills-category.active,
body:not(.dark-theme) .skills-categories .skills-category.active,
body.dark-theme .skills-categories .skills-category.active {
  border-width: 2px;
  transform: translateY(-2px);
  font-weight: 600;
}

/* Light theme specific styles */
body:not(.dark-theme) .skills-categories .skills-category {
  border-color: #e9ecef;
  color: #495057;
}

/* ...existing code... */

/* Style for category filters - simplified for consistent appearance */
.skills-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  position: relative;
}

.skills-category {
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 209, 178, 0.2);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  background: transparent;
}

body.dark-theme .skills-category {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

body:not(.dark-theme) .skills-category {
  color: #000000;
}

.skills-category:hover {
  border-color: rgba(0, 209, 178, 0.5);
}

/* Modified - removed border and added color for light mode */
.skills-category.active {
  transform: translateY(-2px);
  font-weight: 600;
  border-width: 0;
}

body:not(.dark-theme) .skills-category.active {
  color: #000000;
}

/* Hover effect */
.skills-category:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 209, 178, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

/* ...existing code... */

/* Fix for skill blocks text color in light mode */
body:not(.dark-theme) .skill-info h3 {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  color: #000000;
}

body:not(.dark-theme) .skill-item:hover .skill-info h3 {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  color: #000000;
}

/* Ensure skill-item has proper text color in light mode */
body:not(.dark-theme) .skill-item {
  color: #000000;
  background: #f5f5f5 !important;
}
