/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
  font-family: 'Wagon Extra Light';
  src: url('/fonts/Wagon-ExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Wagon Bold';
  src: url('/fonts/Wagon-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root { --sidebar-w: 340px; }

body {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  font-family: 'Wagon Extra Light', Georgia, 'Times New Roman', serif;
  background-color: #08090a;
  color: #fff;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 58% 42% at 20% 30%, rgba(210, 214, 218, .98) 0%, rgba(64, 64, 64, .3) 35%, transparent 70%),
    radial-gradient(ellipse 54% 46% at 80% 25%, rgba(112, 116, 120, .72) 0%, rgba(34, 36, 38, .3) 40%, transparent 74%),
    radial-gradient(ellipse 56% 44% at 65% 80%, rgba(168, 172, 176, .82) 0%, rgba(54, 56, 58, .3) 40%, transparent 74%),
    radial-gradient(ellipse 48% 52% at 18% 78%, rgba(40, 43, 46, .72) 0%, rgba(23, 25, 27, .3) 40%, transparent 76%),
    radial-gradient(circle at 50% 50%, #090a0b 0%, #000000 84%, #030405 100%);
  background-size: 155% 155%, 145% 145%, 165% 165%, 150% 150%, 135% 135%;
  filter: blur(44px) saturate(115%);
  animation: gradient-drift 13s ease-in-out infinite alternate,
             gradient-shift 18s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: rgba(0, 0, 0, .16);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.42'/%3E%3C/svg%3E");
  background-size: 260px 260px;
  mix-blend-mode: soft-light;
  opacity: .42;
  animation: noise-drift 12s steps(8) infinite;
}

@keyframes gradient-drift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.14) rotate(7deg); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 0%, 100% 10%, 80% 100%, 0% 80%, 0% 0%; }
  50% { background-position: 70% 25%, 20% 60%, 100% 30%, 40% 0%, 100% 35%; }
  100% { background-position: 20% 100%, 0% 30%, 30% 0%, 100% 70%, 20% 100%; }
}

@keyframes noise-drift {
  0% { transform: translate3d(0, 0, 0); background-position: 0 0; }
  25% { transform: translate3d(-1.5%, 1%, 0); background-position: 40px -25px; }
  50% { transform: translate3d(1%, -1.5%, 0); background-position: -30px 35px; }
  75% { transform: translate3d(1.5%, 1%, 0); background-position: 25px 45px; }
  100% { transform: translate3d(0, 0, 0); background-position: -20px -35px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .sidebar h1.logo-bounce span {
    animation: none;
  }
}

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  padding: 64px 48px;
  z-index: 10;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar h1 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
  font-family: 'Wagon Bold', Georgia, 'Times New Roman', serif;
  margin: 0 0 70px 0;
  cursor: pointer;
  transition: opacity .2s;
}
.sidebar h1:hover { opacity: 0.7; }

.sidebar h1 span {
  display: inline-block;
}

.sidebar h1.logo-bounce span {
  animation: logo-letter-bounce .45s ease;
}

.sidebar h1.logo-bounce span:nth-child(1) { animation-delay: 0s; }
.sidebar h1.logo-bounce span:nth-child(2) { animation-delay: .06s; }
.sidebar h1.logo-bounce span:nth-child(3) { animation-delay: .12s; }
.sidebar h1.logo-bounce span:nth-child(4) { animation-delay: .18s; }
.sidebar h1.logo-bounce span:nth-child(5) { animation-delay: .24s; }
.sidebar h1.logo-bounce span:nth-child(6) { animation-delay: .30s; }
.sidebar h1.logo-bounce span:nth-child(7) { animation-delay: .36s; }

@keyframes logo-letter-bounce {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-6px); }
  70% { transform: translateY(1px); }
}


nav.sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
nav.sections button {
  all: unset;
  cursor: pointer;
  font-family: inherit;
  font-size: 24px;
  color: #fff;
  opacity: .65;
  transition: opacity .2s;
}
nav.sections button:hover { opacity: 1; }
nav.sections button.active {
  opacity: 1;
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
  width: fit-content;
}

.menu-toggle {
  display: none;
}

.sidebar-contact {
  margin-top: auto;
}

.sidebar-contact p {
  margin-bottom: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}

.sidebar-contact .social-links {
  justify-content: flex-start;
  gap: 10px;
  margin-top: 0;
}

.sidebar-contact .social-links a {
  min-width: 42px;
  font-size: 0;
}

.sidebar-contact .social-links svg {
  width: 26px;
  height: 26px;
}

.about-details > p,
.about-details > .social-links {
  display: none;
}

.sidebar nav.sections button span {
  display: inline-block;
}

.sidebar nav.sections button.nav-bounce span {
  animation: nav-letter-bounce .45s ease;
}

.sidebar nav.sections button.nav-bounce span:nth-child(1) { animation-delay: 0s; }
.sidebar nav.sections button.nav-bounce span:nth-child(2) { animation-delay: .06s; }
.sidebar nav.sections button.nav-bounce span:nth-child(3) { animation-delay: .12s; }
.sidebar nav.sections button.nav-bounce span:nth-child(4) { animation-delay: .18s; }
.sidebar nav.sections button.nav-bounce span:nth-child(5) { animation-delay: .24s; }
.sidebar nav.sections button.nav-bounce span:nth-child(6) { animation-delay: .30s; }
.sidebar nav.sections button.nav-bounce span:nth-child(7) { animation-delay: .36s; }
.sidebar nav.sections button.nav-bounce span:nth-child(8) { animation-delay: .42s; }
.sidebar nav.sections button.nav-bounce span:nth-child(9) { animation-delay: .48s; }
.sidebar nav.sections button.nav-bounce span:nth-child(10) { animation-delay: .54s; }
.sidebar nav.sections button.nav-bounce span:nth-child(11) { animation-delay: .60s; }

@keyframes nav-letter-bounce {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-6px); }
  70% { transform: translateY(1px); }
}

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── PAGE ── */
.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 100px;
}

.page h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
}
.page p {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
}

.about-content {
  width: min(100%, 1100px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
  align-items: start;
  gap: 80px;
  text-align: center;
}

.about-details {
  padding-top: 20px;
}

.profile-picture {
  display: block;
  width: 320px;
  height: 220px;
  margin: 0 auto 28px;
  border-radius: 0;
  object-fit: cover;
}

.about-content p {
  margin: 0 auto;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
}

.social-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 78px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  opacity: .7;
  transition: opacity .2s, transform .2s;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.social-links svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links svg.linkedin-icon {
  fill: currentColor;
  stroke: none;
}

.social-links svg.linkedin-icon path {
  fill: #000;
}

.tools-heading {
  margin-top: 58px;
  font-size: 22px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
}

.software-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.software-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 92px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.software-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 10px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -1px;
}

.contact-section {
  width: 100%;
  margin: 0;
  padding-top: 20px;
}

.contact-section h3 {
  margin-bottom: 24px;
  font-size: 26px;
  font-weight: 400;
}

.contact-section form {
  display: grid;
  gap: 18px;
  text-align: left;
}

.contact-section label {
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font: inherit;
  resize: vertical;
}

.contact-section input:focus,
.contact-section textarea:focus {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
}

.contact-section button {
  justify-self: center;
  padding: 12px 26px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition: background .2s, color .2s;
}

.contact-section button:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 760px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-section {
    padding-top: 0;
  }
}

/* ── CAROUSEL ── */
.carousel {
  width: 100%;
  max-width: 1100px;
  position: relative;
}
.stage {
  position: relative;
  border: 1.5px solid #fff;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(10px);
  touch-action: pan-y;
}
.track {
  display: flex;
  transition: transform .45s cubic-bezier(.65,0,.35,1);
}
.slide {
  flex: 0 0 100%;
  position: relative;
  padding-top: 56.25%;
  background: #0a0a0a;
}
.slide iframe {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  border: 0;
}
.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}
.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  transition: background .2s;
}
.placeholder:hover::before { background: rgba(0,0,0,0.5); }
.placeholder-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.play {
  width: 64px; height: 64px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.play::after {
  content: '';
  border-left: 18px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 5px;
}
.placeholder span {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  letter-spacing: .4px;
  text-align: center;
  max-width: 300px;
}
.arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; padding: 14px; z-index: 5;
}
.arrow svg { width: 38px; height: 38px; stroke: #fff; }
.arrow.prev { left: -72px; }
.arrow.next { right: -72px; }
.arrow:hover svg { opacity: .6; }
.dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.dots button {
  all: unset; cursor: pointer;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background .2s, transform .2s;
}
.dots button.active { background: #fff; transform: scale(1.2); }
.caption {
  text-align: center;
  margin-top: 20px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  letter-spacing: .4px;
}

/* ── PHOTOGRAPHY GALLERY ── */
#page-photography {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 60px 80px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.gallery a { display: block; }

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.gallery img:hover { opacity: 0.8; transform: scale(1.02); }

#page-concept-art .gallery img {
  filter: grayscale(1);
  transition: filter .25s ease, opacity .2s ease, transform .2s ease;
}

#page-concept-art .gallery img:hover {
  filter: grayscale(.3) saturate(1.25);
}

@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .gallery { grid-template-columns: 1fr; } }

/* ── ANIMATIONS PAGE ── */
#page-animations {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.video-item {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding: 40px 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.video-item video {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.video-item figure {
  width: 100%;
}

.video-item figcaption {
  margin-top: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) and (pointer: coarse) {
  body::before,
  body::after {
    animation: none;
  }

  body::before {
    filter: none;
    background-image: radial-gradient(circle at 50% 50%, #111315 0%, #000 88%);
  }

  body::after {
    opacity: .22;
    mix-blend-mode: normal;
  }

  #page-concept-art .gallery img {
    filter: none;
  }

  :root { --sidebar-w: 0px; }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 28px 20px 20px;
  }
  .sidebar h1 {
    margin-bottom: 18px;
    font-size: 34px;
    text-align: center;
  }
  .sidebar {
    align-items: center;
  }
  .menu-toggle {
    align-self: center;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 0;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    opacity: .8;
  }
  .menu-toggle[aria-expanded="true"] { opacity: 1; }
  .menu-icon {
    display: grid;
    gap: 4px;
    width: 22px;
  }
  .menu-icon i {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform .2s, opacity .2s;
  }
  .menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
  nav.sections {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0 8px;
  }
  nav.sections.menu-open { display: flex; }
  nav.sections button {
    padding: 3px 0;
    border: 0;
    border-radius: 0;
    font-size: 20px;
  }
  nav.sections button.active {
    border-bottom: 1px solid #fff;
    padding-bottom: 3px;
  }
  .sidebar-contact {
    display: none;
  }
  .sidebar.menu-open .sidebar-contact {
    display: block;
    margin-top: 18px;
  }
  .sidebar-contact .social-links {
    gap: 18px;
  }
  .main-content { margin-left: 0; }
  .page { padding: 12px 20px 48px; }
  .carousel { max-width: 100%; }
  #page-home {
    align-items: flex-start;
    padding-top: 12px;
  }
  .arrow { padding: 8px; }
  .arrow svg { width: 28px; height: 28px; }
  .arrow.prev { left: 2px; }
  .arrow.next { right: 2px; }
  .dots { margin-top: 18px; }
  .video-item { padding: 20px; }
}
