﻿/* ==========================================================
   Štěpán Zámostný — osobní web
   Tmavý styl inspirovaný jan-zamostny.vercel.app
   ========================================================== */

:root {
  --bg-1: #040340;
  --bg-2: #180022;

  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --accent-2: #22d3ee;

  --gray-800: #1f2937;
  --gray-900: #111827;

  --text: #e5e7eb;
  --muted: #9ca3af;

  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  --header-h: 128px;
  --radius: 1rem;

  --pad-x: 2rem;
  --max-w: 1600px;
}

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

html {
  min-height: 100%;
  background-color: var(--bg-2);
  background-image:
    radial-gradient(circle at 14% 6%, rgba(16, 185, 129, 0.16), transparent 42%),
    radial-gradient(circle at 86% 12%, rgba(34, 211, 238, 0.08), transparent 45%),
    radial-gradient(rgba(52, 211, 153, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom right, var(--bg-1), var(--bg-2));
  background-size: auto, auto, 30px 30px, auto;
  background-attachment: fixed;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--emerald-600);
  color: #fff;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

@media (min-width: 768px) {
  :root {
    --pad-x: 6rem;
  }
}

@media (min-width: 1600px) {
  :root {
    --pad-x: 13rem;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  color: #fff;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.logo span {
  color: var(--emerald-600);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  position: relative;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-400), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--emerald-400);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--emerald-600);
  border-radius: var(--radius);
  background: var(--gray-900);
  color: var(--emerald-600);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.lang-btn:hover {
  border-color: var(--emerald-400);
  color: var(--emerald-400);
}

.menu-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--emerald-600);
  cursor: pointer;
}

.menu-toggle:hover {
  color: var(--emerald-400);
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #4ade80, #16a34a);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: rgba(4, 3, 64, 0.96);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.mobile-menu a.active {
  color: var(--emerald-400);
}

.mobile-menu .menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  border: 0;
  background: none;
  color: var(--emerald-600);
  cursor: pointer;
}

/* ---------- Home / hero ---------- */

.hero {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.hero-text {
  flex: 1 1 55%;
  max-width: 820px;
}

.kicker {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.25;
}

.hero-name {
  margin: 1rem 0 0;
  font-size: clamp(1.4rem, 2.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.3;
}

.accent {
  color: var(--emerald-400);
}

.grad {
  background: linear-gradient(90deg, var(--emerald-300), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.08);
  color: var(--emerald-300);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
  animation: pulse 2s ease-in-out infinite;
}

.hero-desc {
  margin: 2rem 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.5vw, 1.375rem);
  line-height: 1.75;
  color: var(--text);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2.25rem;
}

.contact-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--emerald-600);
  border-radius: 999px;
  background: var(--gray-900);
  color: var(--emerald-600);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.icon-btn:hover {
  border-color: var(--emerald-400);
  color: var(--emerald-400);
  transform: translateY(-2px);
}

.icon-btn .tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.95);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px) scale(0.94);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.icon-btn:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.25rem 1.1rem;
  border: 2px solid var(--emerald-600);
  border-radius: 0.75rem;
  background: var(--gray-900);
  color: var(--emerald-600);
  font-family: var(--font);
  font-size: 1.125rem;
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cta-btn:hover {
  border-color: var(--emerald-400);
  color: var(--emerald-400);
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.22);
}

.cta-btn svg {
  transition: transform 0.3s ease;
}

.cta-btn:hover svg {
  transform: translateX(4px);
}

/* Decorative terminal removed */

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ---------- Sub pages ---------- */

.page {
  min-height: calc(100vh - var(--header-h));
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.page-intro {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.page-intro .accent {
  color: var(--emerald-400);
}

.page-path {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.page-path .tilde {
  color: var(--emerald-400);
  font-weight: 700;
}

/* ---------- Skills ---------- */

.skills-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

.skill-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.skill-group h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 400;
  color: #fff;
  text-align: center;
}

.skill-group h2::before {
  content: "// ";
  color: var(--emerald-400);
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 900px;
}

.skill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.95),
    rgba(17, 24, 39, 0.68)
  );
  color: var(--text);
  cursor: default;
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

.skill:hover {
  color: #fff;
  border-color: var(--emerald-400);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.18);
  transform: translateY(-2px);
}

.skill i {
  font-size: 1.45rem;
  line-height: 1;
  color: var(--emerald-300);
  transition: color 0.3s ease;
}

.skill svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: var(--emerald-300);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.skill:hover i,
.skill:hover svg {
  color: #fff;
  stroke: #fff;
}

.skill .tooltip {
  position: static;
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
  pointer-events: none;
  transform: none;
}

/* ---------- Experience ---------- */

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.exp-card {
  padding: 1.5rem;
  border: 2px solid var(--emerald-600);
  border-radius: var(--radius);
  background: var(--gray-900);
}

.exp-date {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text);
}

.exp-company {
  margin: 0.5rem 0 0;
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--emerald-400);
  line-height: 1.25;
}

.exp-role {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 400;
  color: #fff;
}

.exp-card ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.exp-card li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.exp-card li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 0.62rem;
  border-radius: 50%;
  background: var(--emerald-600);
}

/* ---------- Projects ---------- */

.projects-section {
  margin-bottom: 3.5rem;
}

.projects-section h2.section-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 400;
  color: #fff;
}

.projects-section h2.section-title::before {
  content: "// ";
  color: var(--emerald-400);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.5rem;
  border: 2px solid var(--emerald-600);
  border-radius: var(--radius);
  background: var(--gray-900);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.25);
  transform: translateY(-3px);
}

.project-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -1.5rem -1.5rem 1rem;
  aspect-ratio: 16 / 9;
  background: radial-gradient(
      circle at 50% 30%,
      rgba(16, 185, 129, 0.18),
      transparent 60%
    ),
    linear-gradient(150deg, #0b0a2e 0%, #111827 60%, #08121a 100%);
  border-bottom: 1px solid rgba(5, 150, 105, 0.35);
}

.project-banner .banner-icon {
  width: 64px;
  height: 64px;
  stroke: var(--emerald-400);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.project-banner .badge {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--emerald-300);
  font-size: 0.7rem;
}

.project-card h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--emerald-400);
}

.project-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text);
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 1.5rem;
  color: var(--emerald-400);
}

.tech-icons svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Live preview inside a standard project card */

.projects-grid--web {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .projects-grid--web {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .projects-grid--web {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project-banner--live {
  display: block;
  overflow: hidden;
}

.browser-shot {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.browser-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.browser-shot:hover img,
.browser-shot:focus-visible img {
  transform: scale(1.04);
  filter: brightness(0.6);
}

.browser-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(5, 10, 20, 0.05),
    rgba(5, 10, 20, 0.5)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.browser-shot:hover .browser-overlay,
.browser-shot:focus-visible .browser-overlay {
  opacity: 1;
}

.overlay-btn {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--emerald-400);
  border-radius: 0.5rem;
  background: rgba(5, 150, 105, 0.22);
  color: #fff;
  font-size: 0.72rem;
  white-space: nowrap;
  backdrop-filter: blur(3px);
}

.live-pill {
  position: absolute;
  z-index: 2;
  top: 0.6rem;
  right: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--emerald-300);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(3px);
}

.live-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  animation: livePulse 2.2s ease-out infinite;
}

@keyframes livePulse {
  70% {
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.project-banner--live .badge {
  z-index: 2;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--emerald-300);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.3s ease, gap 0.3s ease;
}

.project-link:hover {
  gap: 0.65rem;
  color: #fff;
}

.projects-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 4rem;
  text-align: center;
}

.projects-cta p {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2rem var(--pad-x) 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer .accent {
  color: var(--emerald-400);
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal[data-dir="left"] {
  transform: translateX(-42px);
}
.reveal[data-dir="right"] {
  transform: translateX(42px);
}
.reveal[data-dir="down"] {
  transform: translateY(-42px);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 999px) {
  .main-nav,
  .lang-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 96px;
  }

  .main-nav,
  .lang-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .contact-row {
    justify-content: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-icons {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .skill {
    font-size: 0.85rem;
    padding: 0.55rem 0.85rem;
  }
}

