:root {
  --bg: #010a13;
  --bg-elevated: #0c1018;
  --bg-card: #0d1219;
  --bg-input: #0a0e14;
  --border: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.55);
  --accent: #00aeef;
  --accent-hover: #33c4f5;
  --accent-glow: rgba(0, 174, 239, 0.4);
  --container: min(1120px, calc(100% - 48px));
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.nav, main, .footer {
  position: relative;
  z-index: 1;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.text-accent {
  color: var(--accent);
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}



.nav__link:hover {
  text-shadow: 0 0 1px currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
}

.btn--primary {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  transform-origin: left center;
}

.btn--pill {
  border-radius: var(--radius-sm);
  padding-inline: 2rem;
  min-height: 40px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.04em;

  /* SHINE EFFECT */
  background: linear-gradient(
    120deg, 
    #ffffff 30%, 
    #ffffff 50%, 
    #ffffff 70%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  
  /* GLOW EFFECT */
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
  
}

.hero__underline {
  display: block;
  width: min(100%, 800px);
  height: 2px;
  margin: 0.875rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85) 8%, rgba(255, 255, 255, 0.85) 92%, transparent);
  border-radius: 2px;
  opacity: 0.9;
}

.hero__subtitle {
  margin: 0 auto 2.25rem;
  max-width: 560px;
  font-size: 1rem;
  color: var(--text-muted);
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 2.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Sections */
.section {
  padding: 8rem 0;
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0 0 1.75rem;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.section__lead--center {
  margin-inline: auto;
  text-align: center;
}

/* Projects */
.projects {
  text-align: center;
}

.projects .section__title {
  text-align: center;
}

.project-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 174, 239, 0.15);
}

.project-card__media {
  min-height: 240px;
  overflow: hidden;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card__media img:hover {
  transform: scale(1.05);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.25rem;
}

.project-card__title {
  margin: 0 0 0.625rem;
  font-size: 1.375rem;
  font-weight: 600;
}

.project-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.project-card--reverse .project-card__body {
  order: -1;
}

/* About */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}

.about__content {
  display: flex;
  flex-direction: column;
}

.about__text {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.7;
  text-align: justify;
}

.about__portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  position: relative;
  border: 1px solid var(--border-subtle);
  background-image:

    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(0, 175, 239, 0.25) 0%, transparent 100%),
    linear-gradient(160deg, #0a1a2e 0%, #061020 60%, #030c18 100%);
  background-size: 100% 100%;
}

.about__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 60%, rgba(0, 174, 239, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 70% 30%, rgba(0, 120, 200, 0.14) 0%, transparent 70%);
  background-size: 200% 200%;
  animation: portraitPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes portraitPulse {
  0% {
    background-position: 0% 0%;
    opacity: 0.6;
  }
  33% {
    background-position: 60% 40%;
    opacity: 1;
  }
  66% {
    background-position: 100% 60%;
    opacity: 0.75;
  }
  100% {
    background-position: 30% 100%;
    opacity: 1;
  }
}

.about__portrait::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  /* Ak chceš použiť splash_bottom3.png ako textúru prechodu: */
  background: url('splash_bottom3.png') no-repeat bottom;
  background-size: 100% auto;
  pointer-events: none;
  z-index: 2;
}

.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.5);
  transform-origin: top center;
  display: block;
  position: relative;
  z-index: 1;
}

/* Vault */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.vault-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.vault-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 174, 239, 0.15);
}

.vault-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vault-card img:hover {
  transform: scale(1.05);
}

.vault-card__label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 0.5rem 0.875rem;
  background: rgba(5, 7, 10, 0.65);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field__label {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(0, 191, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.socials {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.socials__title {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.socials__text {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.socials__link {
  font-size: 0.9375rem;
  color: var(--accent);
  transition: color 0.2s ease;
}

.socials__link:hover {
  color: var(--accent-hover);
}

/* Footer */
.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* --- RESPONSIVE --- */

/* Hamburger Animation */
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Laptop */
@media screen and (max-width: 1550px) and (min-width: 801px) {
  
  
  .container {
    width: 1000px !important;
    max-width: 90% !important;
    margin-inline: auto !important;
  }

  .section {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }

  
  .project-card {
    min-height: 200px !important;
  }

  .hero__title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.04em;
  }
}

/* Mobile */
@media screen and (max-width: 800px) {

  * {
    -webkit-tap-highlight-color: transparent;
  }

    .hero {
      padding-inline: 1rem;
      padding-top: calc(var(--nav-height) + 0.5rem);
      padding-bottom: 1.5rem;
      min-height: unset;
      transform: scale(0.9);
      transform-origin: top center;
      margin-top: 2rem;
    
  }

  .nav__toggle {
    display: flex;
  }

 .nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 0.75rem;
  background: #05070a;
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.35s;
}

.nav__links--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

.nav__links a {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(8px);
  transition: color 0.2s ease, background 0.2s ease, opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav__links--open a { opacity: 1; transform: translateY(0); }
.nav__links--open a:nth-child(1) { transition-delay: 0.05s; }
.nav__links--open a:nth-child(2) { transition-delay: 0.1s; }
.nav__links--open a:nth-child(3) { transition-delay: 0.15s; }
.nav__links--open a:nth-child(4) { transition-delay: 0.2s; }
.nav__links--open a:nth-child(5) { transition-delay: 0.25s; }

  .eyebrow {
    margin-bottom: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    background: linear-gradient(90deg, #018fc8, #00aeef, #7de8ff, #00aeef, #018fc8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
  }
  
  @keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
  }

  .hero__title {
    margin: 0 0 0.75rem;
    width: 480px;
    font-size: clamp(2rem, 5vw, 6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0.04rem;
  } 

  .hero__subtitle {
    margin: 0 auto 2.25rem;
    padding-top: 0.1rem;
    max-width: 520px;
    font-size: 1rem;
    color: var(--text-muted);
  }
  
  .hero__underline {
    display: block;
    width: min(100%, 350px);
    height: 2px;
    margin: 0.875rem auto 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85) 8%, rgba(255, 255, 255, 0.85) 92%, transparent);
    border-radius: 2px;
    opacity: 0.9;
  }

  .hero__inner {
    padding-inline: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }


  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    min-height: 70px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  }
  
  .hero__actions {
    margin-top: 0%;
    width: 85%;
    flex-direction: column; /* Stack buttons for better thumb accessibility */
    gap: 1rem;
  }
  
  .btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--text);
  }
  
  .btn--outline:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
  }
  
  .btn--primary {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
  }
  
  .btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
  }


  .project-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    min-height: 0;
  }

  .project-card__title {
    margin: 0 0 0rem;
    font-size: 1.375rem;
    font-weight: 600;
  }

  .project-card__text {
    display: none;
  }

  .project-card__media {
    width: 100%;
    height:  110px;
    min-height: 110px;
    max-height: 110px;
    overflow: hidden;
  }

  .project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-card__body {
    padding: 1rem 1.25rem;
  }

  /* Card 1: image stays at top */
  .project-card:first-child .project-card__media {
    order: 1;
  }

  .project-card:first-child .project-card__body {
    order: 2;
  }

  /* Card 2: text stays at top, image stays at bottom */
  .project-card--reverse .project-card__body {
    order: 1;
  }

  .project-card--reverse .project-card__media {
    order: 2;
  }

  .project-card__media {
    width: 100%;
    height: 110px;
    min-height: 110px;
    max-height: 110px;
    overflow: hidden;
  }
  
/* 3D Works card - objects are in center, slight upward crop */
.project-card:first-child .project-card__media img {
  object-fit: cover;
  object-position: center 45%;
  transform: none;
}

/* AR card - phone is in center, crop to show it */
.project-card--reverse .project-card__media img {
  object-fit: cover;
  object-position: center 55%;
  transform: none;
}

.about__media {
  display: none;
}

.about__grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about__portrait {
  display: block !important; /* Overrides the display: none */
  width: 100%;
  max-width: 400px; /* Adjust based on your preference */
  margin: 2rem auto 0; /* Centers it and adds space below text */
  aspect-ratio: 3 / 4;
}

.about__text {
  max-width: 100%;
  text-align: justify;
  line-height: 1.4;
}
/* Update these inside your mobile media query */
.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field input,
.field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.contact-form {
  width: 100%;
}
.contact__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.btn--pill {
  border-radius: var(--radius-sm);
  padding-inline: 2rem;
  min-height: 40px;
}
  .vault-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 1rem;
  }

  .vault-card {
    width: 100% !important;
    aspect-ratio: 16 / 9; /* less tall when stacked */
  }

  .section {
    padding: 7rem 1rem !important;
  }
}