/* ===== BASE & SCROLLBAR ===== */

html {
  scrollbar-color: #06b6d4 #0a0a0f;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

::selection {
  background: rgba(6, 182, 212, 0.3);
  color: #fff;
}

/* ===== NAVIGATION ===== */

.nav-link {
  font-size: 0.875rem;
  color: #9ca3af;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: #06b6d4;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #06b6d4;
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.text-accent::after {
  width: 100%;
}

.mobile-nav-link {
  font-size: 0.875rem;
  color: #d1d5db;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: #06b6d4;
}

#navbar {
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(31, 41, 55, 0.5);
}

/* ===== LANGUAGE SWITCHER ===== */

.lang-btn,
.lang-btn-mobile {
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover,
.lang-btn-mobile:hover {
  color: #d1d5db;
}

.lang-btn.active-lang,
.lang-btn-mobile.active-lang {
  background: #0a0a0f;
  color: #e5e7eb;
  font-weight: 700;
}

.flag-icon {
  width: 20px;
  height: auto;
  display: block;
  border-radius: 2px;
  overflow: hidden;
}

.flag-icon-lg {
  width: 28px;
  height: auto;
  display: block;
  border-radius: 3px;
  overflow: hidden;
}

/* ===== HERO ===== */

.hero-bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(168, 85, 247, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.profile-ring {
  position: relative;
  display: inline-block;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #06b6d4, #a855f7, #06b6d4);
}

.profile-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #06b6d4, #a855f7, #06b6d4);
  opacity: 0.3;
  filter: blur(12px);
  z-index: -1;
  animation: ring-glow 4s linear infinite;
}

@keyframes ring-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ===== SPEECH BUBBLE ===== */

.speech-bubble {
  position: absolute;
  bottom: -18px;
  left: 50%;
  translate: -50% 0;
  background: #ffffff;
  border: 3px solid #1e1e3a;
  border-radius: 20px;
  padding: 10px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #1e1e3a;
  white-space: nowrap;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  z-index: 10;
  animation: bubble-float 3s ease-in-out infinite;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 40px;
  border: 9px solid transparent;
  border-bottom: 16px solid #1e1e3a;
  border-top: 0;
  transform: skewX(-12deg);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 43px;
  border: 7px solid transparent;
  border-bottom: 11px solid #ffffff;
  border-top: 0;
  transform: skewX(-12deg);
}

.speech-bubble.pop {
  animation: bubble-pop 0.35s ease-out;
}

@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes bubble-pop {
  0% { transform: scale(0.9); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ===== SKILLS TAGLINE ===== */

.skills-tagline {
  max-width: 46rem;
  margin: -0.5rem auto 2.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.55;
  min-height: 3.5rem;
}

.skills-tagline-category {
  color: #fff;
  font-weight: 700;
  margin-right: 0.25rem;
}

.skills-tagline-cursor {
  display: inline-block;
  color: #06b6d4;
  font-weight: 700;
  margin-left: 2px;
  transform: translateY(-1px);
}

.skills-tagline.typing-idle .skills-tagline-cursor {
  animation: skills-tagline-cursor-blink 1s steps(2, start) infinite;
}

@keyframes skills-tagline-cursor-blink {
  to { visibility: hidden; }
}

/* ===== FOOTER DIVIDER ===== */

.footer-divider {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(107,114,128,0.3) 30%, rgba(107,114,128,0.3) 70%, transparent) 1;
}

/* ===== FOOTER TAGLINE ===== */

.footer-tagline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  min-height: 1.1em;
}

.footer-tagline-prompt {
  color: #86F30E;
  font-weight: 700;
  margin-right: 0.25rem;
}

.footer-tagline-text {
  color: #0891b2;
}

.footer-tagline-text.text-purple {
  color: #a855f7;
}

.footer-tagline-cursor {
  display: inline-block;
  color: #86F30E;
  font-weight: 700;
  margin-left: 2px;
}

.footer-tagline.typing-idle .footer-tagline-cursor {
  animation: footer-tagline-cursor-blink 1s steps(2, start) infinite;
}

@keyframes footer-tagline-cursor-blink {
  to { visibility: hidden; }
}

/* ===== SECTION HEADING ===== */

.section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #a855f7);
  margin: 0.75rem auto 0;
  border-radius: 1px;
}

/* ===== GLASS CARD ===== */

.glass-card {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.4);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.glass-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.06);
  transform: translateY(-2px);
}

/* ===== BUTTONS ===== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #0a0a0f;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #06b6d4;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
  transform: translateY(-1px);
}

/* ===== TIMELINE ===== */

.timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #06b6d4, #a855f7, transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -5px;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

/* ===== SKILL TAGS ===== */

.skill-tag {
  display: inline-block;
  flex: 1 1 auto;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.skill-tag[data-rating] {
  cursor: pointer;
}

.skill-label {
  position: relative;
  z-index: 1;
}

.skill-rating {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-weight: 600;
  background: rgba(30, 30, 36, 0.97);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.35s ease;
  z-index: 2;
  pointer-events: none;
}

.skill-tag.hovered .skill-rating {
  clip-path: inset(0 0 0 0);
}

.skill-tag-primary {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.skill-tag.hovered.skill-tag-primary {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.skill-tag-secondary {
  background: rgba(55, 65, 81, 0.5);
  color: #9ca3af;
  border: 1px solid rgba(75, 85, 99, 0.4);
}

.skill-tag.hovered.skill-tag-secondary {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.skill-tag-accent {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.skill-tag.hovered.skill-tag-accent {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.skill-tag-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.skill-tag.hovered.skill-tag-gold {
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.skill-tag-soft {
  background: rgba(31, 41, 55, 0.6);
  color: #9ca3af;
  border: 1px solid rgba(55, 65, 81, 0.5);
}

.skill-tag-soft:hover {
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

/* ===== CERTIFICATION CARDS ===== */

.cert-card {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(55, 65, 81, 0.35);
  border-radius: 0.75rem;
  padding: 1.25rem;
  padding-bottom: 2.75rem;
  transition: all 0.3s;
}

.cert-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.05);
}

.cert-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #06b6d4;
  font-weight: 500;
}

.cert-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-top: 0.25rem;
}

.cert-provider {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Clickable cert card affordance */

.cert-clickable {
  cursor: pointer;
  position: relative;
}

.cert-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: #4b5563;
  margin-top: 0;
  opacity: 1;
  transform: none;
  transition: color 0.25s;
}

.cert-clickable:hover .cert-hint,
.cert-clickable:focus-visible .cert-hint {
  opacity: 1;
  transform: none;
  color: #a855f7;
}

.cert-clickable:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

/* ===== CERT CAROUSEL ===== */

.cert-carousel {
  position: relative;
}

.cert-carousel-viewport {
  overflow: hidden;
  position: relative;
}

.cert-carousel-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  transition: transform 3s cubic-bezier(0.65, 0, 0.85, 0.65);
}

.cert-page {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .cert-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cert-page {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cert-page .cert-card {
  height: 100%;
}

.cert-carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.cert-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.45);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.cert-dot:hover {
  background: rgba(34, 211, 238, 0.5);
  transform: scale(1.15);
}

.cert-dot:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 3px;
}

.cert-dot.active {
  background: #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .cert-carousel-track {
    transition: none;
  }
  .cert-dot {
    transition: none;
  }
}

/* ===== CERT DETAIL MODAL ===== */

.cert-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  display: none;
}

.cert-modal-overlay.active {
  display: flex;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.cert-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 182, 212, 0.06);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.cert-modal-overlay.active .cert-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cert-modal::-webkit-scrollbar {
  width: 6px;
}

.cert-modal::-webkit-scrollbar-track {
  background: transparent;
}

.cert-modal::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 3px;
}

/* ===== CERT MODAL TOOLBAR ===== */

.cert-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cert-modal-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cert-modal-nav-btn {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  color: #6b7280;
  background: transparent;
  border: 1px solid rgba(55, 65, 81, 0.4);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.cert-modal-nav-btn:hover,
.cert-modal-nav-btn:focus-visible {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
  outline: none;
}

.cert-modal-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #6b7280;
  user-select: none;
  min-width: 3rem;
  text-align: center;
}

.cert-modal-close {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: #9ca3af;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.3s, background 0.3s, border-color 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.cert-modal-close:hover,
.cert-modal-close:focus-visible {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg);
  outline: none;
}

.cert-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cert-modal-meta-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Year — same palette as .skill-tag-gold (Technical skills) */
.cert-modal-meta-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Company (společnost) — cyan accent */
.cert-modal-meta-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* Course code — purple */
.cert-modal-meta-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Duration — gray */
.cert-modal-meta-gray {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.cert-modal-provider-link {
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.cert-modal-provider-link:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.5);
}

.cert-modal-desc {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.4);
  text-align: justify;
  hyphens: none;
}

.cert-modal-preview {
  padding-top: 0;
}

.cert-preview-wrapper {
  position: relative;
  display: block;
}

.cert-modal-img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid rgba(55, 65, 81, 0.4);
  background: rgba(0, 0, 0, 0.3);
  display: block;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Loading skeleton shown while image is fetching */
.cert-img-loading .cert-preview-wrapper {
  min-height: 180px;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, rgba(55,65,81,0.4) 25%, rgba(75,85,99,0.5) 50%, rgba(55,65,81,0.4) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

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

/* Zoom toggle button */
.cert-zoom-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 0.4rem;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cert-zoom-btn:hover {
  color: #fff;
  background: rgba(10, 10, 15, 0.9);
  border-color: rgba(6, 182, 212, 0.4);
}

/* Expanded (zoomed) modal state */
.cert-modal.expanded {
  max-width: 95vw;
  max-height: 92vh;
}

.cert-modal.expanded .cert-modal-desc {
  display: none;
}

.cert-modal.expanded .cert-modal-img {
  max-height: 78vh;
}

@media (max-width: 640px) {
  .cert-modal {
    padding: 1.5rem;
    max-height: 90vh;
  }

  .cert-modal-img {
    max-height: 240px;
  }

  .cert-modal.expanded .cert-modal-img {
    max-height: 70vh;
  }

}

/* ===== EXPERIENCE CARD BULLETS ===== */

.exp-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-bullet {
  position: relative;
  padding-left: 1rem;
  line-height: 1.5;
}

.exp-bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.4);
}

/* Clickable experience card affordance */

.exp-clickable {
  cursor: pointer;
  position: relative;
}

.exp-title-link {
  transition: color 0.2s;
}

.exp-clickable:hover .exp-title-link {
  color: #06b6d4;
}

.exp-title-link:hover {
  color: #a855f7 !important;
}

.exp-clickable:focus-visible .exp-title-link {
  color: #06b6d4;
}

.exp-clickable > .exp-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: #4b5563;
  transition: color 0.25s;
}

.exp-clickable:hover > .exp-hint,
.exp-clickable:focus-visible > .exp-hint {
  color: #a855f7;
}

.exp-clickable:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

/* ===== EXPERIENCE DETAIL MODAL ===== */

.exp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  display: none;
}

.exp-modal-overlay.active {
  display: flex;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.exp-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 182, 212, 0.06);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.exp-modal-overlay.active .exp-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.exp-modal::-webkit-scrollbar {
  width: 6px;
}

.exp-modal::-webkit-scrollbar-track {
  background: transparent;
}

.exp-modal::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 3px;
}

/* Company name */

.exp-modal-company-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #06b6d4;
  text-decoration: none;
  transition: color 0.2s;
}

.exp-modal-company-link:hover {
  color: #a855f7;
}

/* Summary section */

.exp-modal-summary {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.4);
}

.exp-modal-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.exp-modal-bullet {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  color: #d1d5db;
  line-height: 1.5;
}

.exp-modal-bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

/* Detail section */

.exp-modal-detail {
  margin-bottom: 0.5rem;
}

.exp-modal-detail-text p {
  margin-bottom: 1rem;
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.7;
  text-align: justify;
  hyphens: none;
}

.exp-modal-detail-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .exp-modal {
    padding: 1.5rem;
    max-height: 90vh;
  }
}

/* ===== CV DOWNLOAD MODAL ===== */

.cv-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cv-modal-header-icon {
  flex-shrink: 0;
  color: #06b6d4;
}

.cv-modal-header-text {
  flex: 1;
  min-width: 0;
}

.cv-modal-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cv-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.5);
  background: rgba(17, 24, 39, 0.6);
  color: #d1d5db;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  cursor: pointer;
}

.cv-option:hover {
  transform: translateX(4px);
}

.cv-option-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.cv-option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.cv-option-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e5e7eb;
}

.cv-option-file {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.cv-option-arrow {
  flex-shrink: 0;
  color: #4b5563;
  transition: color 0.2s, transform 0.2s;
}

.cv-option:hover .cv-option-arrow {
  transform: translateY(2px);
}

/* Purple variant (CZ + EN) — subtle tint by default */
.cv-option-purple {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.45);
}

.cv-option-purple .cv-option-icon {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

/* Fully saturated gradient on hover/focus */
.cv-option-purple:hover,
.cv-option-purple:focus-visible {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border-color: transparent;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  outline: none;
}

.cv-option-purple:hover .cv-option-icon,
.cv-option-purple:focus-visible .cv-option-icon {
  background: rgba(10, 10, 15, 0.15);
  color: #0a0a0f;
}

.cv-option-purple:hover .cv-option-label,
.cv-option-purple:focus-visible .cv-option-label {
  color: #0a0a0f;
}

.cv-option-purple:hover .cv-option-file,
.cv-option-purple:focus-visible .cv-option-file {
  color: rgba(10, 10, 15, 0.7);
}

.cv-option-purple:hover .cv-option-arrow,
.cv-option-purple:focus-visible .cv-option-arrow {
  color: #0a0a0f;
}

/* Cyan variant (both versions / ZIP) — subtle tint by default */
.cv-option-cyan {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.45);
}

.cv-option-cyan .cv-option-icon {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
}

/* Fully saturated gradient on hover/focus — matches .btn-primary */
.cv-option-cyan:hover,
.cv-option-cyan:focus-visible {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border-color: transparent;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
  outline: none;
}

.cv-option-cyan:hover .cv-option-icon,
.cv-option-cyan:focus-visible .cv-option-icon {
  background: rgba(10, 10, 15, 0.15);
  color: #0a0a0f;
}

.cv-option-cyan:hover .cv-option-label,
.cv-option-cyan:focus-visible .cv-option-label {
  color: #0a0a0f;
}

.cv-option-cyan:hover .cv-option-file,
.cv-option-cyan:focus-visible .cv-option-file {
  color: rgba(10, 10, 15, 0.7);
}

.cv-option-cyan:hover .cv-option-arrow,
.cv-option-cyan:focus-visible .cv-option-arrow {
  color: #0a0a0f;
}

/* ===== CONTACT ===== */

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: background 0.2s;
}

.contact-link:hover {
  background: rgba(17, 24, 39, 0.5);
}

.contact-icon-wrapper {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-wrapper--linkedin {
  background: rgba(10, 102, 194, 0.1);
  color: #0A66C2;
}

.group:hover .contact-link-linkedin-text,
.group:focus .contact-link-linkedin-text {
  color: #0A66C2;
}

.contact-icon-wrapper--purple {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}


/* ===== SCROLL ANIMATIONS ===== */

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

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

/* ===== NAVBAR BEAM ===== */

.navbar-beam {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}

.navbar-beam::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #06b2d0 30%,
    #7a4cc3 70%,
    transparent 100%
  );
  animation: beam-slide 9s linear infinite;
}

@keyframes beam-slide {
  0%         { left: -60%; opacity: 0; }
  2%         { left: -55%; opacity: 1; }
  14%        { left: 10%;  opacity: 1; }
  18%        { left: 18%;  opacity: 1; }
  20%        { left: 20%;  opacity: 1; }
  37%        { left: 20%;  opacity: 1; }
  39%        { left: 22%;  opacity: 1; }
  43%        { left: 32%;  opacity: 1; }
  52%        { left: 150%; opacity: 1; }
  55%        { left: 160%; opacity: 0; }
  55%, 100%  { left: 160%; opacity: 0; }
}

/* ===== CARD ORBIT HOVER ===== */

.card-orbit {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  isolation: isolate;
  -webkit-clip-path: inset(0 round 1rem);
  clip-path: inset(0 round 1rem);
}

.card-orbit::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 75%,
    #7a4cc3 88%,
    rgba(122, 76, 195, 0.15) 94%,
    transparent 100%
  );
  transform-origin: center center;
  opacity: 0;
  transition: opacity 0.4s;
  animation: orbit-spin 4s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
  z-index: 0;
}

.card-orbit::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: calc(1rem - 10px);
  background: rgba(17, 24, 39, 0.97);
  box-shadow: 0 0 0 7px rgba(17, 24, 39, 0.97);
  pointer-events: none;
  z-index: 0;
}

.card-orbit > * {
  position: relative;
  z-index: 1;
}

.card-orbit:hover::before,
.card-orbit-always::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== QR SHIMMER ===== */

.qr-shimmer {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.qr-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(6, 182, 212, 0.5) 50%,
    transparent 70%
  );
  transform: translateX(-150%);
  animation: shimmer-slide 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer-slide {
  0%, 35% { transform: translateX(-150%); }
  51%      { transform: translateX(150%); }
  100%     { transform: translateX(150%); }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 640px) {
  .section-heading {
    font-size: 1.5rem;
  }

  .hero-bg-glow {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 767px) {
  .speech-bubble {
    translate: -50% 0;
    font-size: 0.78rem;
    padding: 8px 16px;
    bottom: -28px;
  }

  .speech-bubble::before {
    left: 50%;
    margin-left: -9px;
    transform: none;
  }

  .speech-bubble::after {
    left: 50%;
    margin-left: -7px;
    transform: none;
  }
}

@media (max-width: 380px) {
  .speech-bubble {
    font-size: 0.7rem;
    padding: 7px 12px;
  }
}
