@font-face {
  font-family: 'San Francisco';
  src: url('img/sf-pro-text-regular.woff') format('woff'),
    url('img/sf-pro-text-regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Reset & základní styl */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === RESPONSIVE RESET === */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'San Francisco', sans-serif;
  background-color: #0a0a0a;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------ */
/* Layout */
/* ------------------------------------ */
.center-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 2rem;
  flex-wrap: wrap;
}

.box {
  background: #0d0d0d;
  border-radius: 50px;
  border: 1px solid #3a3a3a;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.05),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.rectangle {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ------------------------------------ */
/* Karty / Profil / Texty */
/* ------------------------------------ */
.rectangle.wide-rectangle {
  width: 100%;
  max-width: 1200px;
  height: auto;
  padding: 2rem;
  margin: 0 auto;
}

.card-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  text-align: left;
}

/* === Úvodní sekce === */
.card-header {
  width: 100%;
  display: flex;
  flex-direction: column; /* 💡 vertikální rozložení i na desktopu */
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
}

.text .name {
  font-weight: bold;
  font-size: 1.8rem;
}

.text .subtitle {
  font-size: 1.1rem;
  color: #aaa;
}
/* Sociální odkazy */
.social-links {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-links a:hover {
  background-color: #333;
  transform: scale(1.05);
}

.social-links img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Obsah karty */
.card-content {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
}

.card-content h1 {
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 700;
}

.card-content .italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
}

.card-content .description {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------ */
/* Carousel */
/* ------------------------------------ */
.logo-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 2rem auto;
  overflow: hidden;
  padding: 1rem 0;
}

.logo-carousel {
  display: flex;
  transition: transform 0.5s linear;
}

.logo-carousel img {
  height: 40px;
  margin: 0 1.5rem;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo-carousel img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.logo-carousel-wrapper::before,
.logo-carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #0a0a0a, transparent);
}

.logo-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #0a0a0a, transparent);
}

/* ------------------------------------ */
/* About sekce */
/* ------------------------------------ */
.about-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-image img {
  width: 220px;
  border-radius: 20px;
}

.about-text {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 2rem;
}

.about-text .italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: transparent;
  color: #fff;
  border: 1px solid #444;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  background-color: #1a1a1a;
  border-color: #666;
}

/* ------------------------------------ */
/* Experience sekce */
/* ------------------------------------ */
.about-section .about-image img {
  width: 180px;
}

.footer {
  background-color: #3a3a3a;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #444;
}

/* ------------------------------------ */
/* RESPONSIVITA */
/* ------------------------------------ */
@media (max-width: 992px) {
  .center-container {
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
  }

  .rectangle.wide-rectangle {
    padding: 1.5rem;
  }

  .card-content h1 {
    font-size: 1.4rem;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .btn {
    margin: 0 auto;
  }

  .logo-carousel img {
    height: 30px;
    margin: 0 1rem;
  }
}

@media (max-width: 600px) {
  .card-header {
    flex-direction: column;
  }

  .text .name {
    font-size: 1.4rem;
  }

  .card-content h1 {
    font-size: 1.3rem;
  }

  .about-text h2 {
    font-size: 1.6rem;
  }

  footer.footer {
    font-size: 0.9rem;
    padding: 1.5rem;
  }
}

/* ------------------------------------ */
/* 🌍 MAP SECTION (desktop) */
/* ------------------------------------ */
.map-section {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem;
  background-color: #0a0a0a;
  transform: none !important;
}

.map-wrapper {
  position: relative;
  max-width: 1100px;
  width: 100%;
}

.world-map {
  width: 100%;
  border-radius: 20px;
  opacity: 0.9;
  display: block;
}

.map-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #ff3333;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 51, 51, 0.8);
  cursor: pointer;
  animation: pulse 1.5s infinite;
  z-index: 3;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

.map-dot:hover {
  background-color: #cc0000;
  animation: none;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 51, 51, 0.8); }
  50% { transform: scale(1.2); box-shadow: 0 0 20px rgba(255, 51, 51, 1); }
  100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 51, 51, 0.8); }
}

/* Tooltip desktop */
.map-tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a1a1a;
  color: white;
  padding: 2rem;
  border-radius: 25px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
  width: 700px;
  min-height: 280px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 50;
  border: 1px solid rgba(255, 51, 51, 0.5);
}

.map-dot.active .map-tooltip {
  opacity: 1;
  pointer-events: auto;
}

/* Tooltip obsah */
.map-tooltip h4 {
  margin-bottom: 1.4rem;
  font-size: 1.8rem;
  color: #ff3333;
}

.map-tooltip p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.map-tooltip .flag {
  position: absolute;
  top: 10px;
  right: 15px;
}

.map-tooltip .flag img {
  width: 30px;
  border-radius: 4px;
}

/* ------------------------------------ */
/* 📱 MOBILE / TABLET MAP MODAL */
/* ------------------------------------ */
@media (pointer: coarse) {
  .map-dot .map-tooltip {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* === MODAL pro mobily === */
.map-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease forwards;
}

.map-modal-content {
  position: relative;
  width: min(720px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  background-color: #111;
  border: 1px solid #ff3333;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 0 25px rgba(255, 51, 51, 0.35);
  animation: popIn 0.25s ease forwards;
  color: #fff;
  text-align: left;
}

.map-modal .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: #0d0d0d;
  border: 1px solid #444;
  border-radius: 50%;
  color: #ccc;
  font-size: 1.6rem;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-modal .close-btn:hover {
  color: #fff;
  border-color: #666;
}

.map-modal.closing { animation: fadeOut 0.25s ease forwards; }

@keyframes fadeIn { from {opacity:0} to {opacity:1} }
@keyframes fadeOut { from {opacity:1} to {opacity:0} }
@keyframes popIn { from {transform:scale(.97); opacity:0} to {transform:scale(1); opacity:1} }
