@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .header-content {
    padding: 0.75rem 1rem;
  }

  .nav {
    gap: 1rem;
  }

  .nav a {
    font-size: 0.75rem;
  }

  .main {
    padding: 7rem 1rem 2rem;
  }

  .hero {
    margin-bottom: 2.5rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .avatar {
    width: 64px;
    height: 64px;
  }

  .section {
    padding: 1.5rem;
    margin-bottom: 1.75rem;
  }

  .subsection-title {
    font-size: 1.2rem;
  }

  .project-card {
    flex-direction: column;
  }

  .project-image {
    width: 100% !important;
    height: 160px;
  }

  .page-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0.5rem 0.75rem;
  }

  .logo-text {
    display: none;
  }

  .nav {
    gap: 0.75rem;
  }

  .nav a {
    font-size: 0.65rem;
  }

  .hero-title-wrapper {
    gap: 0.5rem;
  }

  .section {
    padding: 1rem;
  }

  .faq-item {
    padding: 0.75rem 1rem;
  }
}

:root {
  --background: hsl(230, 25%, 5%);
  --foreground: hsl(210, 20%, 90%);
  --card: hsl(230, 20%, 8%);
  --card-foreground: hsl(210, 20%, 90%);
  --primary: hsl(180, 70%, 50%);
  --primary-foreground: hsl(230, 25%, 5%);
  --muted-foreground: hsl(215, 15%, 55%);
  --border: hsl(230, 15%, 18%);
  --accent: hsl(293, 100%, 50%);
  
  --python: hsl(45, 90%, 55%);
  --html: hsl(15, 85%, 55%);
  --css: hsl(200, 85%, 55%);
  --javascript: hsl(50, 95%, 55%);
  --discord: hsl(235, 85%, 65%);
  
  --radius: 0.75rem;
}

::selection {
  background: hsla(180, 70%, 50%, 0.3);
  color: var(--foreground);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid hsla(230, 15%, 18%, 0.5);
  background: hsla(230, 25%, 5%, 0.8);
  backdrop-filter: blur(12px);
}

.header-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--discord));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary-foreground);
}

.logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.logo-text span {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--foreground);
}

.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 8rem 1.5rem 3rem;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
  animation: fadeIn 0.6s ease-out;
}

@media (min-width: 640px) {
  .hero {
    flex-direction: row;
    align-items: flex-start;
  }
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--discord), var(--accent));
  padding: 2px;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-text {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--discord);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-badge svg {
  width: 14px;
  height: 14px;
  fill: white;
}

.hero-content {
  flex: 1;
}

.hero-title-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 1.875rem;
  }
}

.hero-title .gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  border-radius: 9999px;
  background: hsla(180, 70%, 50%, 0.2);
  color: var(--primary);
  border: 1px solid hsla(180, 70%, 50%, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}

.hero-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.hero-description strong {
  color: var(--foreground);
  font-weight: 500;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-family: 'JetBrains Mono', monospace;
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.hero-meta .separator {
  color: var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
}

.section-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin-left: 1rem;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), hsla(180, 70%, 50%, 0.06), transparent 40%);
  pointer-events: none;
}

.card:hover {
  border-color: hsla(180, 70%, 50%, 0.3);
  box-shadow: 0 0 20px hsla(180, 70%, 50%, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: 'JetBrains Mono', monospace;
  background: hsla(230, 15%, 15%, 0.5);
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}

.tech-badge:hover {
  transform: scale(1.05);
  border-color: currentColor;
}

.tech-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.tech-badge.python { color: var(--python); }
.tech-badge.html { color: var(--html); }
.tech-badge.css { color: var(--css); }
.tech-badge.javascript { color: var(--javascript); }
.tech-badge.discord { color: var(--discord); }
.tech-badge.git { color: var(--html); }

.project-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  transition: border-color 0.3s;
}

@media (min-width: 640px) {
  .project-card {
    flex-direction: row;
  }
}

.project-card:hover .project-title {
  color: var(--primary);
}

.project-card:hover .project-arrow {
  color: var(--primary);
}

.project-image {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  max-width: 80px;      
  max-height: 80px;     
  width: 100%;
  height: 100%;
  object-fit: contain;   
  border-radius: 0.5rem; 
}


.project-image-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  text-transform: uppercase;
}


@media (min-width: 640px) {
  .project-image {
    width: 160px;
  }
}

.project-image-text {
  font-size: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: hsla(180, 70%, 50%, 0.6);
  transition: color 0.3s;
}

.project-card:hover .project-image-text {
  color: var(--primary);
}

.project-content {
  flex: 1;
  min-width: 0;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-title {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.3s;
}

.project-arrow {
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
  transition: color 0.3s;
  flex-shrink: 0;
}

.project-period {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.project-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.experience-list {
  display: flex;
  flex-direction: column;
}

.experience-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsla(230, 15%, 18%, 0.5);
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.experience-left svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.experience-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

.experience-years {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.section {
  margin-bottom: 3rem;
}

.section.animate {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}

.section.delay-1 { animation-delay: 0.1s; }
.section.delay-2 { animation-delay: 0.2s; }
.section.delay-3 { animation-delay: 0.3s; }
.section.delay-4 { animation-delay: 0.4s; }

.footer {
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.footer-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0; 
}


.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  transition: border-color 0.2s, color 0.2s;
}

.footer-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.footer-link.discord:hover {
  border-color: var(--discord);
  color: var(--discord);
}

.footer-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsla(230, 15%, 18%, 0.5);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom .made-in {
  font-family: 'JetBrains Mono', monospace;
}

.current-project-link {
  font-size: 0.875rem;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  transition: opacity 0.2s;
}

.current-project-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.current-project-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.current-project-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.page-header {
  margin-bottom: 3rem;
}

.page-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-description {
  color: var(--muted-foreground);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

* {
    scrollbar-color: var(--border) var(--background);
    scrollbar-width: thin;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero {
    animation: slideUp 0.6s ease-out;
}

.avatar-wrapper {
    animation: float 3s ease-in-out infinite;
}

.card {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

.main {
  max-width: 800px;
  margin: 0 auto;
  padding: 10rem 1.5rem 3rem;
}

.page-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-description {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 6px 20px hsla(0,0%,0%,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.section:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px hsla(0,0%,0%,0.3);
}

.subsection-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
  padding-left: 0.75rem;
}

.section-text {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.section-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.section-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
}

.section-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

a {
  color: var(--primary);
  text-decoration: underline;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .main {
    padding: 6rem 1rem 2rem;
  }

  .page-title {
    font-size: 1.9rem;
  }

  .subsection-title {
    font-size: 1.2rem;
  }
}

.project-card.vip {
  border: 2px solid #FFD700;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #1a1a1a;
}

.project-card.vip:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6);
}


.project-card.vip .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom: 2px solid #FFD700;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card.vip:hover .project-image img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.project-card.vip .project-title {
  color: #FFD700;
  font-weight: 700;
  font-size: 1.4rem;
}

.project-card.vip .project-period {
  color: #f0e68c;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.project-card.vip .project-description {
  color: #fff;
  line-height: 1.5;
}

.project-card.vip .project-arrow {
  stroke: #FFD700;
}

.faq-item + .faq-item {
  margin-top: 1rem;
}

.faq-item p strong {
  color: var(--primary);
  font-weight: 600;
}

.animate {
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .main {
    padding: 8rem 1rem 2rem;
  }

  .page-title {
    font-size: 1.9rem;
  }

  .subsection-title {
    font-size: 1.2rem;
  }

  .nav a {
    margin-left: 1rem;
  }
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: hsla(0,0%,100%,0.03);
  transition: background 0.3s, transform 0.3s;
}

.faq-item:hover {
  background: hsla(50,90%,55%,0.05);
  transform: translateY(-2px);
}

.faq-item .question {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  cursor: default;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-item .question::before {
  content: "❓"; 
  font-size: 1rem;
}

.faq-item .answer {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--foreground);
  margin-top: 0.25rem;
  line-height: 1.6;
}

.review-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px hsla(0,0%,0%,0.2);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.review-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px hsla(0,0%,0%,0.35);
  border-color: var(--primary);
}

.review-text {
  font-size: 0.95rem;
  color: var(--foreground);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.review-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-stars {
  display: inline-flex;
  gap: 2px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
}

.review-stars .star-empty {
  fill: hsla(0,0%,100%,0.2);
}

.review-item:hover .review-text {
  color: var(--accent);
  transition: color 0.3s;
}

@media (max-width: 640px) {
  .review-item {
    padding: 1rem 1.25rem;
  }

  .review-text {
    font-size: 0.9rem;
  }

  .review-author {
    font-size: 0.8rem;
  }

  .review-stars svg {
    width: 14px;
    height: 14px;
  }
}

/* Skryjeme checkbox */
.menu-toggle {
  display: none;
}

/* Hamburger ikona */
.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--foreground);
  border-radius: 2px;
}

/* Na mobilu ukážeme hamburger a skryjeme nav */
@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card);
    flex-direction: column;
    gap: 0;
    width: 200px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
  }

  .nav a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
  }

  /* Když je checkbox zaškrtnutý, otevře menu */
  .menu-toggle:checked + .menu-icon + .nav {
    max-height: 500px; /* stačí dost na všechny odkazy */
  }
}
