/* Base styles */
:root {
  --blue-400: #60a5fa;
  --purple-400: #c084fc;
  --pink-400: #f472b6;
  --green-400: #4ade80;
  --red-400: #de4a4a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: white;
  background: linear-gradient(135deg, #111827 0%, #000000 100%);
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Navigation */
.navbar {
  position: fixed;
  width: 100%;
  z-index: 50;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
}

.nav-links {
  display: none;
}

.nav-links a {
  color: #9ca3af;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.menu-button {
  display: block;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: black;
  padding: 2rem 1rem;
}

.gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  animation: gradient 15s ease infinite;
  background-size: 400% 400%;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
}

.text-center {
  text-align: center;
  margin-bottom: 3rem;
}

.gradient-text {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--blue-400), var(--purple-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 1.25rem;
  color: #9ca3af;
  margin-bottom: 2rem;
}

/* Info Card */
.info-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 3rem;
}

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

.info-section {
  margin-bottom: 1.5rem;
}

.info-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.purple-text { color: var(--purple-400); }
.blue-text { color: var(--blue-400); }
.pink-text { color: var(--pink-400); }
.green-text { color: var(--green-400); }
.red-text { color: var(--red-400); }

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

/* Buttons */
.button-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-gradient {
  background: linear-gradient(to right, #3b82f6, #9333ea);
  color: white;
}

.btn-gradient:hover {
  opacity: 0.9;
}

/* Projects Section */
.projects {
  min-height: 100vh;
  padding: 5rem 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
}

.projects-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.5s;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.project-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

.project-content {
  padding: 1.5rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-header h3 {
  font-size: 1.25rem;
  font-weight: bold;
}

.status {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.completed {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
}

.in-progress {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.tech-stack span {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}
#ai {
  background: rgba(255, 0, 0, 0.15);
  color: rgb(255, 80, 80);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}
#db {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
}
#szyfr {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}
#googleintegration {
  background: rgba(41, 176, 255, 0.2);
  color: #0b87fa;
}
#regionapi {
  background: rgba(230, 41, 255, 0.2);
  color: #ea00ff;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.project-link:hover {
  color: white;
}

/* About Section */
.about {
  min-height: 100vh;
  padding: 5rem 1rem;
  position: relative;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(147, 51, 234, 0.2));
}

.about-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.service-icon.blue {
  background: rgba(59, 130, 246, 0.2);
  color: var(--blue-400);
}

.service-icon.purple {
  background: rgba(147, 51, 234, 0.2);
  color: var(--purple-400);
}

.service-icon.pink {
  background: rgba(236, 72, 153, 0.2);
  color: var(--pink-400);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #9ca3af;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: none;
  border-radius: 9999px;
  padding: 1rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(4rem);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Media Queries */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 1rem;
  }

  .menu-button {
    display: none;
  }

  .gradient-text {
    font-size: 4.5rem;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .static-name {
    color: #ffffff;
  }
  
  .headline {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    white-space: nowrap;
    position: relative;
  }
  
  .changing-text {
    color: white;
    transition: opacity 0.8s ease, filter 1.5s ease;
    display: inline-block;
    white-space: nowrap;
  }
  
  /* .gradient-text {
    background: linear-gradient(to right, var(--blue-400), var(--purple-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: transform 0.4s ease;
    margin-left: 0.5rem;
  } */
  .text-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  
}

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

#figma {
  background: 
    radial-gradient(37.44% 109.75% at 82.64% 95.34%, #ea00ff6b, #0acf8300),
    radial-gradient(40.33% 118.22% at 63.08% 105.93%, #00b7ff5b, #1abcfe00),
    radial-gradient(39.75% 116.53% at 38.28% 108.9%, #7c18ff83, #a259ff00),
    radial-gradient(41.2% 120.76% at 15.5% 100%, #fa450e6c, #f24e1e00);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fd8ef4;
  border: 1px solid rgba(255, 0, 242, 0.4);
  border-radius: 9999px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease-in-out;
  animation: animatedGradient 1.5s ease-in-out infinite alternate;
}


/* // */

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

.gradient-text {
  background: linear-gradient(270deg, var(--blue-400), var(--purple-400), var(--blue-400));
  background-size: 200% 200%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: transform 0.4s ease;
  margin-left: 0.5rem;
  animation: shimmer 1.5s ease-in-out infinite alternate;
}

/* ---------- TRAINLY ---------- */

.project-image.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0.75rem;
}

/* slajdy*/
.project-image.slider .slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

/* pojedynczy slajd */
.project-image.slider .slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.35s ease;
}

/* widoczny slajd */
.project-image.slider .slide.active {
  opacity: 1;
}

/* strzałki */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: 0.2s;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.55);
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* kropki */
.dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 15;
}

.dot {
  width: 9px;
  height: 9px;
  background: #fff;
  opacity: 0.4;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.dot.active {
  background: #bdbdbd;
  opacity: 1;
  transform: scale(1.15);
}

.project-image.slider:hover .slide.active {
  transform: scale(1.06); /* płynny zoom */
}
