html {
  scroll-behavior: smooth;
  font-family: 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: #1f1f1f;
  color: #f0f0f0;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #121212;
  color: #f0f0f0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background-color: rgba(18, 18, 18, 0.7);
  z-index: 1000;
}



.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  flex-direction: column;
  background: #2c2c2c;
  padding: 0 1rem;
  transition: max-height 0.4s ease-in-out, padding 0.3s ease;
}

.mobile-menu a {
  color: #f0f0f0;
  text-decoration: none;
  margin: 0.75rem 0;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.mobile-menu a:hover {
  background-color: #444;
  color: #fff;
}



.mobile-menu.show {
  max-height: 500px;
  padding: 1rem;
}

.mobile-menu.show a {
  opacity: 1;
}


.section {
  background-color: #2a2a2a;
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.section.alt {
  background-color: #333;
}

.profile-image {
  width: 160px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border: 4px solid #444;
}

.skills-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.skills-list li {
  background: #444;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.footer {
  text-align: center;
  padding: 2rem;
  background-color: #121212;
  color: #999;
  font-size: 0.9rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


.cta-button {
  background-color: #f0f0f0;
  color: #1f1f1f;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  display: inline-block;
  margin-top: 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s;
}

.cta-button:hover {
  background-color: #cccccc;
}

.nav-links li a.active {
  color: #ffa500;
  font-weight: 600;
}


@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-menu.show {
    display: flex;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}


.service-card {
  background-color: #3a3a3a;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}


.service-card h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.service-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.about-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  text-align: left;
  flex-wrap: wrap;
}

.profile-large {
  max-width: 280px;
  width: 100%;
  border-radius: 12px;
  border: 4px solid #444;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.about-text {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  color: #ddd;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.contact-link {
  color: #f0f0f0;
  background-color: #2f2f2f;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: background 0.3s, color 0.3s;
}

.contact-link:hover {
  background-color: #444;
  color: #fff;
}

.contact-link i {
  font-size: 1.2rem;
}

#technologies.section {
  padding: 3rem 2rem; /* zamiast 6rem */
}

.tech-intro {
  font-size: 1.05rem;
  color: #ccc;
  margin-top: 1rem;
}

/* Slider wrapper */
.tech-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 3rem;
}

.tech-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
  gap: 4rem;
  align-items: center;
  padding: 1rem 0;
}

.tech-track i {
  font-size: 3rem;
  color: #f0f0f0;
  transition: transform 0.3s ease;
}

.tech-track i:hover {
  transform: scale(1.2);
  color: #ffa500;
}

/* Infinite scroll animation */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .tech-track i {
    font-size: 2.2rem;
  }
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.tech-img {
  height: 72px;
  max-width: 128px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}


.tech-item:hover .tech-img {
  transform: scale(1.1);
}

.tech-item span {
  font-size: 0.85rem;
  color: #ccc;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-item:hover span {
  opacity: 1;
}

.tech-icon {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.tech-track {
  gap: 4rem;
  padding: 2rem 0;
}



/* Brand colors for each tech */
.tech-icon.kubernetes { filter: invert(41%) sepia(73%) saturate(2643%) hue-rotate(199deg) brightness(95%) contrast(100%); }
.tech-icon.aws        { filter: invert(71%) sepia(66%) saturate(800%) hue-rotate(359deg) brightness(103%) contrast(102%); }
.tech-icon.docker     { filter: invert(53%) sepia(61%) saturate(514%) hue-rotate(185deg) brightness(94%) contrast(90%); }
.tech-icon.terraform  { filter: invert(29%) sepia(18%) saturate(3695%) hue-rotate(230deg) brightness(85%) contrast(97%); }
.tech-icon.gitlab     { filter: invert(70%) sepia(65%) saturate(530%) hue-rotate(346deg) brightness(103%) contrast(95%); }
.tech-icon.helm       { filter: invert(39%) sepia(65%) saturate(447%) hue-rotate(166deg) brightness(90%) contrast(90%); }
.tech-icon.openai     { filter: invert(25%) sepia(53%) saturate(738%) hue-rotate(232deg) brightness(85%) contrast(98%); }
/* itd... */

.tech-item:hover .tech-icon {
  transform: scale(1.2);
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #ffa500;
}


#scrollTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  background-color: #444;
  color: #fff;
  border: none;
  outline: none;
  padding: 0.8rem 1.2rem;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, background-color 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #666;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

.section:nth-of-type(even) {
  background-color: #1c1c1c;
}
.section:nth-of-type(odd) {
  background-color: #2d2d2d;
}


.case-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.case-card {
  background-color: #3a3a3a;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  text-align: left;
}

.case-card h3 {
  color: #ffa500;
  margin-bottom: 0.5rem;
}

.case-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
}

body {
  touch-action: manipulation;
  overflow-x: hidden;
}


.swipe-hint {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: #444;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem 0.4rem;
  border-radius: 6px 0 0 6px;
  opacity: 0.6;
  z-index: 500;
  animation: pulse 2s infinite;
  display: none;
}

@media (max-width: 768px) {
  .swipe-hint {
    display: block;
  }
}

@keyframes pulse {
  0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0.6; }
  50% { transform: translateY(-50%) translateX(-5px); opacity: 1; }
}
