* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: white;
  background: black;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

#bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 600;
}

.hero-content p {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 1.05rem;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.92);

  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);

  text-shadow: 0 0 18px rgba(0, 188, 212, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero-content p strong {
  background: linear-gradient(90deg, #00bcd4, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* jemný fade do obsahu */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1));
  z-index: 1;
}

/* ===== SEKCIE ===== */
.section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #00bcd4;
  display: inline-block;
}

.section p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  list-style: none;
}

.skills li {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  transition: 0.25s;
}

.skills li:hover {
  background: #00bcd4;
  color: black;
}
/* Scroll fade overlay (3D sa stratí pri scrollovaní) */
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;               /* nad canvasom, pod textom */
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  transition: background 0.05s linear;
}

/* nech text ostane vždy nad overlayom */
.hero-content {
  position: relative;
  z-index: 2;
}
/* ===== Projects ===== */
.projects-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: white;

  padding: 18px 18px 16px;
  border-radius: 16px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);

  transform: translateY(0);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-6px);
  background: rgba(0,188,212,0.12);
  border-color: rgba(0,188,212,0.35);
}

.project-top {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,188,212,0.18);
  border: 1px solid rgba(0,188,212,0.25);
}

.pill-muted {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 0.98rem;
  line-height: 1.55;
  opacity: 0.88;
}

.project-footer {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
}
/* ===== Cursor ===== */
@media (pointer:fine) {
  body { cursor: none; }
  a, button { cursor: none; }

  .cursor-dot, .cursor-ring {
    position: fixed;
    left: 0; top: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-999px, -999px, 0);
    will-change: transform;
  }

  .cursor-dot {
    width: 8px; height: 8px;
    margin-left: -4px; margin-top: -4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 0 18px rgba(0,188,212,0.20);
  }

  .cursor-ring {
    width: 34px; height: 34px;
    margin-left: -17px; margin-top: -17px;
    border-radius: 999px;
    border: 1px solid rgba(0,188,212,0.55);
    box-shadow:
      0 0 22px rgba(0,188,212,0.12),
      inset 0 0 18px rgba(0,188,212,0.08);
    backdrop-filter: blur(0px);
    opacity: 0.95;
    transition: transform .12s ease, opacity .12s ease, border-color .12s ease;
  }

  /* hover / clickable */
  .cursor-ring.is-hover {
    transform: scale(1.35);
    border-color: rgba(255,255,255,0.55);
    opacity: 1;
  }
}

/* ===== hero fade overlay ===== */
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  transition: background 0.05s linear;
}
.hero-content { position: relative; z-index: 2; }

/* ===== Projects ===== */
.projects-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.project-card {
  display: block;
  text-decoration: none;
  color: white;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  transform: translateY(0);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
}
.project-card:hover {
  transform: translateY(-6px);
  background: rgba(0,188,212,0.12);
  border-color: rgba(0,188,212,0.35);
}
.project-top { display: flex; gap: 8px; margin-bottom: 12px; }
.pill {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,188,212,0.18);
  border: 1px solid rgba(0,188,212,0.25);
}
.pill-muted {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}
.project-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.project-card p { font-size: 0.98rem; line-height: 1.55; opacity: 0.88; }
.project-footer { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
}