/* Minimal landing + bilingual content — responsive, scrollable when needed */

:root {
  --bg-base: #eef2f7;
  --bg-blob-1: rgba(99, 102, 241, 0.12);
  --bg-blob-2: rgba(14, 165, 233, 0.1);
  --card-bg: rgba(255, 255, 255, 0.86);
  --card-border: rgba(255, 255, 255, 0.95);
  --text-title: #0f172a;
  --text-body: #475569;
  --text-sub: #64748b;
  --text-muted: #94a3b8;
  --icon-default: #475569;
  --icon-linkedin: #0a66c2;
  --icon-mail: #0d9488;
  --icon-blog: #7c3aed;
  --icon-ig: #e4405f;
  --shadow-card:
    0 32px 64px -24px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(15, 23, 42, 0.05);
  --font-ui: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  min-height: calc(var(--vh, 1vh) * 100);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  color: var(--text-title);
  background: var(--bg-base);
}

.shell {
  position: relative;
  min-height: 100dvh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 3vw, 1.75rem);
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  isolation: isolate;
}

@media (min-width: 700px) {
  .shell {
    align-items: center;
  }
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg-base);
  overflow: hidden;
  pointer-events: none;
}

.bg-layer::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 80%;
  top: -20%;
  left: -20%;
  background: radial-gradient(
    ellipse 50% 50% at 30% 40%,
    var(--bg-blob-1) 0%,
    transparent 55%
  );
  filter: blur(2px);
}

.bg-layer::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 100%;
  bottom: -30%;
  right: -15%;
  background: radial-gradient(
    ellipse 45% 45% at 70% 60%,
    var(--bg-blob-2) 0%,
    transparent 50%
  );
  filter: blur(2px);
}

.bg-frost {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(248, 250, 252, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 56rem;
  max-height: min(
    100dvh - clamp(2rem, 5vw, 2.5rem),
    100% - 2rem
  );
  max-height: min(
    calc(var(--vh, 1vh) * 100 - clamp(2rem, 5vw, 2.5rem)),
    100% - 2rem
  );
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.1rem, 2.5vw, 1.5rem);
  padding-top: calc(clamp(1.25rem, 3vw, 1.75rem) + 0.25rem);
  animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
}

.card__scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.15rem;
  margin-right: -0.15rem;
  flex: 1;
  min-height: 0;
}

.lang-toggle {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.5rem 0.4rem 0.45rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-body);
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(99, 102, 241, 0.25);
  color: #4338ca;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.15);
}

.lang-toggle:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.lang-toggle__mono {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lang-toggle__icon {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.lang-toggle[hidden] {
  display: none;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (min-width: 700px) {
  .card__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.75rem 2rem;
  }
}

.col--text {
  width: 100%;
  text-align: center;
  order: 2;
  min-width: 0;
  flex: 1;
  padding-top: 0.25rem;
}

.col--photo {
  flex-shrink: 0;
  order: 1;
  align-self: center;
}

@media (min-width: 700px) {
  .col--text {
    text-align: left;
    order: 0;
    max-width: none;
  }
  .col--photo {
    order: 0;
    align-self: flex-start;
  }
}

.name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-title);
}

.headline {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 700px) {
  .headline {
    margin-left: 0;
  }
}

.role {
  margin: 0 0 0.9rem;
  font-size: clamp(0.92rem, 1.9vw, 1.05rem);
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: 0.01em;
}

@media (min-width: 700px) {
  .role {
    color: #3b4f6a;
  }
}

.bio {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.bio__item {
  position: relative;
  margin: 0 0 0.65rem;
  padding-left: 1.1rem;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  line-height: 1.6;
  color: var(--text-body);
  font-weight: 400;
}

.bio__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  opacity: 0.75;
}

.bio__item:last-child {
  margin-bottom: 0;
}

.story {
  margin: 0 0 1.1rem;
  padding: 0.9rem 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: clamp(0.8rem, 1.45vw, 0.88rem);
  line-height: 1.65;
  color: var(--text-body);
  white-space: pre-line;
  text-align: left;
}

.story__tag {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8em;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

@media (min-width: 700px) {
  .social {
    justify-content: flex-start;
  }
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.55rem;
  color: var(--icon-default);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-decoration: none;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.3s ease;
}

.social__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.2);
}

.social__link:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.social__link--linkedin:hover {
  color: var(--icon-linkedin);
  background: rgba(10, 102, 194, 0.1);
  border-color: rgba(10, 102, 194, 0.22);
}
.social__link--email:hover {
  color: var(--icon-mail);
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.22);
}
.social__link--blog:hover {
  color: var(--icon-blog);
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.22);
}
.social__link--instagram:hover {
  color: var(--icon-ig);
  background: rgba(228, 64, 95, 0.1);
  border-color: rgba(228, 64, 95, 0.25);
}

.social__link svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.cv-links {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 700px) {
  .cv-links {
    justify-content: flex-start;
  }
}

.cv-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cv-link:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(67, 56, 202, 0.45);
}

.cv-link:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.profile-wrap {
  position: relative;
  width: clamp(7.25rem, 22vw, 9.25rem);
  height: clamp(7.25rem, 22vw, 9.25rem);
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(14, 165, 233, 0.35));
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.25);
}

.profile-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

@media (max-width: 699px) {
  .headline .name {
    margin-right: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
  .social__link,
  .lang-toggle {
    transition: none;
  }
  .social__link:hover,
  .lang-toggle:hover,
  .cv-link:hover {
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
