:root {
  --bg: #0b1020;
  --bg-alt: #11182b;
  --card: #151e33;
  --text: #f3f6fb;
  --muted: #aab4c5;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --border: rgba(255, 255, 255, 0.1);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Výška tvojej fixnej hlavičky, ak ju máš fixnutú, aby ti neprekrývala nadpisy */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 32, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 30px;
}

.brand {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--text);
}

.hero {
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: 100px 0;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(56, 189, 248, 0.16),
      transparent 34%
    ),
    linear-gradient(180deg, #0b1020 0%, #0e1425 100%);
}

.hero-inner {
  max-width: 900px;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  max-width: 760px;
  margin-bottom: 42px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-text {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent-strong);
  color: #06121a;
}

.button-primary:hover {
  background: var(--accent);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(125, 211, 252, 0.55);
}

.section {
  padding: 110px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background:
    linear-gradient(
      135deg,
      rgba(56, 189, 248, 0.12),
      transparent 45%
    ),
    #080d19;
}

.card-grid,
.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card,
.project {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.card p,
.project p,
#about p {
  color: var(--muted);
}

.project {
  min-height: 220px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.contact-links a {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.contact-links a:hover {
  border-color: var(--accent);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: #080d19;
  color: var(--muted);
}

.site-footer p {
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 820px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .main-nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
    padding: 90px 0;
  }

  .card-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .hero-actions,
  .contact-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .contact-links a {
    width: 100%;
  }
}



.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: 100px 0;
  overflow: hidden;
  background: #0b1020;
}

/* Video: Mierne stiahnutý jas, aby text lepšie vynikol */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 0;
  filter: brightness(0.85) contrast(1.1); /* Znížený jas namiesto 1.3 */
}

/* Overlay: Silné krytie vľavo (98% až 90%), ktoré plynule prechádza do 40% vpravo */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /*
  background:
    linear-gradient(
      90deg,
      rgba(11, 16, 32, 0.98) 0%,
      rgba(11, 16, 32, 0.90) 40%,
      rgba(11, 16, 32, 0.40) 100%
    ),
    linear-gradient(
      180deg,
      rgba(11, 16, 32, 0.2) 0%,
      rgba(11, 16, 32, 0.6) 100%
    );
  */
  background: rgba(11, 16, 32, 0.6);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
