.projekty-page {
  padding-top: 0;
  background: linear-gradient(135deg, rgba(74, 138, 77, 0.05) 0%, rgba(255, 107, 53, 0.02) 100%);
  min-height: 100vh;
}

.projekty-hero {
  position: relative;
  background: linear-gradient(-45deg, #0f172a, #1e3a5f, #134e4a, #1e3a5f);
  background-size: 400% 400%;
  animation: heroGradientFlow 15s ease infinite;
  color: white;
  padding: 8rem 2rem;
  text-align: center;
  margin-bottom: 4rem;
  overflow: hidden;
}

.projekty-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(74, 138, 77, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

@keyframes heroGradientFlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.projekty-hero h1 {
    font-family: 'Rajdhani', sans-serif;
  position: relative;
  z-index: 1;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.3), 0 0 80px rgba(74, 138, 77, 0.4);
  background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroTextShine 3s ease-in-out infinite;
}

@keyframes heroTextShine {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 200% center;
  }
}

.projekty-hero p {
  position: relative;
  z-index: 1;
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Inner Layout */
.projekty-hero .hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
}

.projekty-hero .hero-content {
  flex: 1;
  text-align: left;
}

.projekty-hero .hero-content p {
  margin: 0;
}

/* Hero Logo Styles */
.projekty-hero .hero-logo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.projekty-hero .hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(74, 138, 77, 0.6) 0%, rgba(99, 102, 241, 0.3) 40%, transparent 70%);
  filter: blur(40px);
  animation: logoGlowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.projekty-hero .hero-logo {
  position: relative;
  width: 200px;
  height: 200px;
  object-fit: contain;
  animation: logoFloat 6s ease-in-out infinite, logoMorph 8s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(74, 138, 77, 0.5)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.2));
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.projekty-hero .hero-logo:hover {
  transform: scale(1.1) rotateY(15deg);
  filter: drop-shadow(0 0 50px rgba(74, 138, 77, 0.8)) drop-shadow(0 0 100px rgba(255, 255, 255, 0.4));
}

@keyframes logoGlowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0) rotateY(0deg);
  }

  25% {
    transform: translateY(-15px) rotateY(5deg);
  }

  50% {
    transform: translateY(0) rotateY(0deg);
  }

  75% {
    transform: translateY(-10px) rotateY(-5deg);
  }
}

@keyframes logoMorph {

  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }

  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }

  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

@media (max-width: 768px) {
  .projekty-hero .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .projekty-hero .hero-content {
    text-align: center;
  }

  .projekty-hero .hero-logo {
    width: 150px;
    height: 150px;
  }

  .projekty-hero .hero-logo-glow {
    width: 200px;
    height: 200px;
  }
}

.projects-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.projects-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--light-green);
  background: transparent;
  color: var(--light-green);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

[data-theme="dark"] .filter-btn {
  border-color: var(--light-green);
  color: var(--light-green);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--light-green);
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 380px));
  gap: 2.5rem;
  margin-bottom: 4rem;
  justify-content: center;
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .project-card {
  background: #2a2a2a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.project-image {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

[data-theme="dark"] .project-image {
  background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
}

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

.status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(10px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-aktywny {
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

[data-theme="dark"] .status-aktywny {
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.5);
}

.status-w-trakcie {
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

[data-theme="dark"] .status-w-trakcie {
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.5);
}

.status-planowane {
  background: linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

[data-theme="dark"] .status-planowane {
  background: linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.5);
}

.project-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
    font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

[data-theme="dark"] .project-content h3 {
  color: #fff;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

[data-theme="dark"] .project-description {
  color: #999;
}

.technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-badge {
  display: inline-block;
  background: rgba(74, 138, 77, 0.15);
  color: var(--light-green);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

[data-theme="dark"] .tech-badge {
  background: rgba(74, 138, 77, 0.25);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-green);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  width: fit-content;
}

.project-link:hover {
  gap: 1rem;
  color: var(--accent-orange);
}

@media (max-width: 768px) {
  .projekty-hero h1 {
    font-size: 2rem;
  }

  .projects-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

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