/* SEO Optimalized Portfolio CSS - Clean Version */

/* Active nav link */
.nav-link.active,
.mobile-nav-link.active {
  color: #000;
  font-weight: 600;
}

.nav-link.active::after,
.mobile-nav-link.active::after {
  width: 100%;
}

/* Portfolio Hero */
.portfolio-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.portfolio-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(1.875rem);
  transition: all 0.8s ease;
}

.hero-title-line.animate {
  opacity: 1;
  transform: translateY(0);
}

.hero-title-highlight {
  background: linear-gradient(135deg, #1a1a1a 0%, #666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: #666;
  margin-bottom: 3rem;
  line-height: 1.6;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1s forwards;
  transform: translateY(1.25rem);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.scroll-indicator {
  margin-top: 3rem;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.5s forwards;
}

.scroll-arrow {
  display: inline-block;
  cursor: pointer;
  transition: all 0.4s ease;
  font-size: 4.5rem;
  font-weight: 900;
  font-family: 'Arial Black', sans-serif;
  transform: rotate(90deg);
  background: linear-gradient(90deg, #555, #777, #999, #777, #555, #777, #999, #777, #555);
  background-size: 800% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chevronBounce 3s ease-in-out infinite, infiniteGradient 20s linear infinite;
  border: none;
  background-color: transparent;
  padding: 0.5rem;
  border-radius: 0.5rem;
  outline: none;
}

.scroll-arrow:hover {
  transform: rotate(90deg) scale(1.15);
}

.scroll-arrow span {
  display: inline-block;
}

@keyframes chevronBounce {
  0%, 100% {
    transform: rotate(90deg) translateX(0);
  }
  50% {
    transform: rotate(90deg) translateX(-1rem);
  }
}

@keyframes infiniteGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 800% 50%;
  }
}

/* Portfolio Section */
.portfolio-section {
  background: #0a0a0a;
  color: #ffffff;
  padding: 5rem 0;
}

/* Portfolio Intro */
.portfolio-intro {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-intro h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-intro-text {
  font-size: 1.25rem;
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.portfolio-intro-interaction {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.interaction-item {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-width: 280px;
}

.interaction-item.show {
  display: flex;
}

.interaction-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.interaction-text {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Project Cards */
.project-card {
  background: #1a1a1a;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInScale 0.6s ease forwards;
  position: relative;
  outline: none;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.project-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #111;
}

.project-image,
.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.project-video {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Corner indicator */
.corner-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 3;
}

.project-card:hover .corner-indicator {
  opacity: 1;
  transform: translateY(0);
}

.corner-indicator-icon {
  font-size: 12px;
  color: #ffffff;
  display: block;
  text-align: center;
}

.corner-indicator-text {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  font-weight: 500;
}

/* Project Info */
.project-info {
  padding: 2rem;
}

.project-category {
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.project-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.project-description {
  color: #a0a0a0;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-tech span {
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-tech span:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Portfolio CTA */
.portfolio-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  color: #a0a0a0;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .project-card {
    border-width: 2px;
  }
  
  .hero-title-highlight {
    -webkit-text-fill-color: #000;
    color: #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-title-line,
  .hero-subtitle,
  .scroll-indicator,
  .project-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .scroll-arrow {
    animation: none;
  }
  
  .project-card:hover {
    transform: none;
  }
  
  .corner-indicator {
    opacity: 1;
    transform: none;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .portfolio-hero {
    min-height: 100vh;
    padding-top: 6rem; /* Zvětšeno z 3rem na 6rem */
  }

  .portfolio-section {
    padding: 3rem 0;
  }

  .portfolio-intro {
    margin-bottom: 3rem;
  }

  .portfolio-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .portfolio-intro-text {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }

  .portfolio-intro-interaction {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .interaction-item {
    min-width: 280px;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card:hover {
    transform: translateY(-5px) scale(1.01);
  }

  .corner-indicator {
    opacity: 1;
    transform: translateY(0);
    animation: mobilePulse 2s ease-in-out infinite;
  }

  .portfolio-cta {
    padding: 3rem 0;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    min-width: 250px;
    text-align: center;
  }

  .scroll-indicator {
    margin-top: 2rem;
  }

  .scroll-arrow {
    font-size: 3.5rem;
  }
}

@keyframes mobilePulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  }
  50% {
    transform: translateY(0) scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 1024px) {
  .portfolio-grid {
    gap: 2rem;
    max-width: 900px;
  }
  
  .project-info {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .portfolio-hero {
    padding-top: 7rem; /* Zvětšeno z původního na 7rem */
  }

  .hero-content {
    padding: 0 1rem; /* Přidán padding pro lepší spacing na stranách */
  }

  .hero-title {
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    margin-bottom: 2rem;
    padding: 0;
  }

  .scroll-indicator {
    margin-top: 2rem;
  }

  .scroll-arrow {
    font-size: 3rem;
  }

  .portfolio-intro {
    margin-bottom: 2rem;
  }

  .portfolio-intro h2 {
    font-size: 1.75rem;
  }

  .portfolio-intro-text {
    font-size: 1rem;
  }

  .interaction-item {
    min-width: 260px;
    padding: 0.75rem 1.25rem;
  }

  .interaction-text {
    font-size: 0.9rem;
  }

  .portfolio-grid {
    gap: 1.5rem;
  }

  .project-info {
    padding: 1.25rem;
  }

  .project-name {
    font-size: 1.25rem;
  }

  .project-description {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .project-tech {
    gap: 0.5rem;
  }

  .project-tech span {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Performance optimizations */
.project-video {
  will-change: opacity;
}

.project-card {
  will-change: transform;
}

/* Print styles */
@media print {
  .portfolio-hero,
  .portfolio-cta {
    background: #fff !important;
    color: #000 !important;
  }
  
  .project-card {
    border: 1px solid #000 !important;
    break-inside: avoid;
  }
  
  .corner-indicator {
    display: none;
  }
}