*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; }

:root {
  --navy:       #0a0f1e;
  --navy-2:     #0f172a;
  --navy-card:  #131d30;
  --blue:       #3b82f6;
  --blue-dark:  #2563eb;
  --blue-bright:#60a5fa;
  --blue-glow:  rgba(59,130,246,0.18);
  --cyan:       #06b6d4;
  --white:      #ffffff;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --text:       #0f172a;
  --radius:     14px;
  --t:          0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── CANVAS ─── */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--t);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--t);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
}
.lang-btn {
  padding: 6px 14px;
  cursor: pointer;
  color: var(--gray-400);
  transition: all var(--t);
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0.04em;
}
.lang-btn.active { background: var(--blue); color: var(--white); border-radius: 100px; }
.lang-btn:not(.active):hover { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--t);
}

/* ─── HERO ─── */
#hero {
  height: 88vh;
  min-height: 765px;
  max-height: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* left: photo */
.hero-photo-col {
  position: relative;
  overflow: hidden;
}

.hero-photo-col img {
  width: 100%;
  height: calc(100% + 50px);
  object-fit: cover;
  object-position: center top;
  display: block;
  margin-top: -50px;
}
/* subtle gradient overlay on right edge — blends into text side */
.hero-photo-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--navy) 100%);
}

/* right: text */
.hero-text-col {
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 90px 56px 56px 52px;
  position: relative;
  overflow: hidden;
}
/* orbs only on text side */
.hero-text-col::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  top: -150px; right: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 70%);
  filter: blur(60px);
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-text-col::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  bottom: -100px; left: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.1), transparent 70%);
  filter: blur(50px);
  animation: orbFloat 11s ease-in-out infinite reverse;
  pointer-events: none;
}
.hero-text { position: relative; z-index: 1; width: 100%; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -15px) scale(1.04); }
  66%       { transform: translate(-10px, 20px) scale(0.97); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-glow);
  border: 1px solid rgba(59,130,246,0.35);
  color: var(--blue-bright);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: badgePulse 3s ease-in-out infinite;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue);
  animation: dot 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
  50%       { box-shadow: 0 0 0 6px rgba(59,130,246,0.08); }
}
@keyframes dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero-name {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.hero-name .line-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-typewriter {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--gray-400);
  font-weight: 400;
  margin-bottom: 28px;
  min-height: 2em;
}
.hero-typewriter .typed-text { color: var(--blue-bright); font-weight: 500; }
.hero-typewriter .cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--blue);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.85s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: 0.97rem;
  color: #7a90aa;
  line-height: 1.8;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gray-400);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 2;
}
.hero-scroll svg { opacity: 0.5; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t);
  cursor: pointer;
  font-family: inherit;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--t);
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(59,130,246,0.5); }
.btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-bright);
  transform: translateY(-2px);
  background: var(--blue-glow);
}

/* ─── SECTIONS ─── */
section { padding: 100px 28px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--navy-2);
  margin-bottom: 56px;
  line-height: 1.15;
}
.section-title.light { color: var(--white); }

/* hero nemá dostávať section padding */
#hero { padding: 0; }

/* ─── ABOUT ─── */
#about { background: var(--gray-100); }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 72px;
  align-items: start;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 22px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 24px;
  border: 1px solid var(--gray-200);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.stat-card:hover { box-shadow: 0 12px 40px rgba(59,130,246,0.12); transform: translateY(-4px); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 7px;
}
.stat-label {
  font-size: 0.83rem;
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.4;
}

/* ─── HELP ─── */
#help { background: var(--navy-2); }
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.help-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.help-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.help-card:hover {
  border-color: rgba(59,130,246,0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.help-card:hover::before { opacity: 1; }
.help-icon {
  width: 56px; height: 56px;
  margin-bottom: 22px;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}
.help-card:hover .help-icon { transform: scale(1.1) translateY(-2px); }
.help-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.help-desc {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ─── EXPERIENCE ─── */
#experience { background: var(--white); }
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.exp-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 28px 26px 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.exp-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--blue), var(--cyan));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
  border-radius: 2px 0 0 2px;
}
.exp-card:hover {
  box-shadow: 0 12px 40px rgba(59,130,246,0.1);
  transform: translateX(4px);
  border-color: rgba(59,130,246,0.2);
}
.exp-card:hover::before { transform: scaleY(1); }
.exp-year-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-glow);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 6px;
  padding: 4px 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-top: 3px;
}
.exp-info { flex: 1; }
.exp-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-2);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.exp-company {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
}
.exp-current {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 100px;
  padding: 2px 9px;
  margin-top: 6px;
}
.exp-current::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22c55e;
  animation: dot 2s infinite;
}

/* ─── SKILLS ─── */
#skills { background: var(--gray-100); }
.skills-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-tag {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 11px 22px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-2);
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.skill-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.skill-tag span { position: relative; z-index: 1; }
.skill-tag:hover {
  border-color: transparent;
  color: var(--white);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 20px rgba(59,130,246,0.35);
}
.skill-tag:hover::before { opacity: 1; }

/* ─── CONTACT ─── */
#contact { background: var(--navy); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.contact-intro {
  font-size: 1.05rem;
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  transition: all var(--t);
}
.contact-link:hover {
  border-color: rgba(59,130,246,0.4);
  background: var(--blue-glow);
  transform: translateX(6px);
}
.contact-icon {
  width: 40px; height: 40px;
  background: rgba(59,130,246,0.15);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-bright);
}
.contact-card {
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(6,182,212,0.06));
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 18px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.contact-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
}
.contact-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.contact-card-text {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* ─── FOOTER ─── */
footer {
  background: #050a14;
  padding: 28px;
  text-align: center;
  font-size: 0.8rem;
  color: #3a4a5a;
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
  /* tablet: hero split zúžime padding */
  .hero-text-col { padding: 100px 40px 60px 40px; }
}
@media (min-width: 1800px) {
  .hero-photo-col img {
    height: calc(100% + 150px);
    margin-top: -150px;
  }
}

@media (max-width: 900px) {
  .help-grid { grid-template-columns: 1fr 1fr; }
  .exp-grid  { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: rgba(10,15,30,0.97);
    padding: 24px 28px 32px;
    gap: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .hamburger { display: flex; }

  /* mobile hero: full-screen, photo as background, text overlay */
  #hero {
    display: block;
    position: relative;
    height: 100svh;
    min-height: 580px;
    max-height: none;
  }
  .hero-photo-col {
    position: absolute;
    inset: 0;
  }
  .hero-photo-col img {
    object-position: center 8%;
  }
  /* gradient: transparent top → dark navy bottom for text legibility */
  .hero-photo-col::after {
    background: linear-gradient(
      to bottom,
      rgba(10,15,30,0.25) 0%,
      rgba(10,15,30,0.55) 45%,
      rgba(10,15,30,0.92) 70%,
      var(--navy) 100%
    );
  }
  .hero-text-col {
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 0 28px 52px;
    height: 100%;
    display: flex;
    align-items: flex-end;
  }
  .hero-text-col::before,
  .hero-text-col::after { display: none; }
  .hero-scroll { display: none; }
  .hero-badge { display: none; }

  .help-grid { grid-template-columns: 1fr; }
  section { padding: 80px 24px; }
  .skills-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
  .skill-tag { text-align: center; display: flex; align-items: center; justify-content: center; }
  .skill-tag:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
}
@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
}
