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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  display: flex;
  background: #0b0b0b;
  color: #eaeaea;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  width: 220px;
  height: 100vh;
  background: #000;
  padding: 40px 24px;
}

.branding {
  margin-bottom: 60px;
  padding-bottom: 20px;
  border-bottom: 1px solid #222;
}

.logo {
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.subtitle {
  color: #999;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sidebar ul {
  list-style: none;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #222;
}

.sidebar li {
  margin-bottom: 20px;
}

.sidebar a {
  color: #777;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.sidebar a:hover,
.sidebar a.active {
  color: #fff;
}

/* LAYOUT */
.content {
  margin-left: 220px;
  width: calc(100% - 220px);
}

.content-inner {
  padding: 0 40px;
}

.section {
  min-height: 100vh;
  padding: 100px 0;
}

.section h2 {
  margin-bottom: 20px;
}

.section:not(.showreel-section) {
  padding-left: clamp(20px, 5vw, 60px);
  padding-right: clamp(20px, 5vw, 60px);
}

.showreel-section {
  padding: 0;
}

#contact h2 {
  margin-bottom: 30px;
}

.mail {
  margin-bottom: 30px;
}

.socials {
  margin-top: 0;
}

/* SHOWREEL */
.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.play-button {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
  border-color: white;
}

.showreel-text {
  position: absolute;
  bottom: 6%;
  left: 40px;
  pointer-events: none;

  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);

  padding: 6px 10px;

  /* Subtle directional gradient (not a box) */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.05)
  );

  /* Softer, more cinematic than full pill */
  border-radius: 4px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  /* Key detail: vertical accent instead of full border */
  border-left: 2px solid rgba(255, 255, 255, 0.25);

  opacity: 0.9;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.showreel-video {
  cursor: pointer;
}

/* Controls sichtbar halten */
.showreel-video::-webkit-media-controls {
  opacity: 1 !important;
}

/* External "Watch on YouTube" link */
.external-link {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.external-link a {
  display: inline-block;
  padding: 10px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.external-link a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* BIO */

.bio {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: center;
}

.bio-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

.bio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* PORTFOLIO */
.portfolio-wrapper {
  /* No longer needs flex, let grid handle layout */
}

.portfolio-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.project-card {
  width: 100%;
}

.project-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.project-card video {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-media video {
  opacity: 1;
}

.project-card:focus-within {
  outline: 1px solid rgba(255, 255, 255, 0.3);
}

.project-media {
  aspect-ratio: 16 / 9;
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 10px;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-media img,
.project-media video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media video {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-media:hover video {
  opacity: 1;
}

.project-media:hover img {
  opacity: 0;
}

.project-info p {
  font-size: 0.85rem;
  color: #aaa;
}

.project-info .roles {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ddd;
}

/* CONTACT */
.socials {
  display: flex;
  gap: 20px;
}

.socials a {
  font-size: 2rem;
  color: #777;
}

.socials a:hover {
  color: #fff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  display: flex;
  background: #0b0b0b;
  color: #eaeaea;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  width: 220px;
  height: 100vh;
  background: #000;
  padding: 40px 24px;
}

.branding {
  margin-bottom: 60px;
  padding-bottom: 20px;
  border-bottom: 1px solid #222;
}

.logo {
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.subtitle {
  color: #999;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sidebar ul {
  list-style: none;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #222;
}

.sidebar li {
  margin-bottom: 20px;
}

.sidebar a {
  color: #777;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.sidebar a:hover,
.sidebar a.active {
  color: #fff;
}

/* LAYOUT */
.content {
  margin-left: 220px;
  width: calc(100% - 220px);
}

.content-inner {
  padding: 0 40px;
}

.section {
  min-height: 100vh;
  padding: 100px 0;
}

.section h2 {
  margin-bottom: 20px;
}

.section:not(.showreel-section) {
  padding-left: clamp(20px, 5vw, 60px);
  padding-right: clamp(20px, 5vw, 60px);
}

.showreel-section {
  padding: 0;
}

#contact h2 {
  margin-bottom: 30px;
}

.mail {
  margin-bottom: 30px;
}

.socials {
  margin-top: 0;
}

/* SHOWREEL */
.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.play-button {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
  border-color: white;
}

.showreel-video {
  cursor: pointer;
}

/* Controls sichtbar halten */
.showreel-video::-webkit-media-controls {
  opacity: 1 !important;
}

/* BIO */

.bio {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: center;
}

.bio-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

.bio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* PORTFOLIO */
.portfolio-wrapper {
  /* No longer needs flex, let grid handle layout */
}

.portfolio-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.project-card {
  width: 100%;
}

.project-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.project-card video {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-media video {
  opacity: 1;
}

.project-card:focus-within {
  outline: 1px solid rgba(255, 255, 255, 0.3);
}

.project-media {
  aspect-ratio: 16 / 9;
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 10px;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-media img,
.project-media video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media video {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-media:hover video {
  opacity: 1;
}

.project-media:hover img {
  opacity: 0;
}

.project-info p {
  font-size: 0.85rem;
  color: #aaa;
}

.project-info .roles {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ddd;
}

/* CONTACT */
.socials {
  display: flex;
  gap: 20px;
}

.socials a {
  font-size: 2rem;
  color: #777;
}

.socials a:hover {
  color: #fff;
}

.site-footer {
  padding: 20px 40px;
  border-top: 1px solid #222;
  font-size: 0.8rem;
}

.site-footer a {
  color: #777;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.legal-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.legal-separator {
  color: #444;
}

.modal-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #aaa;
}

.modal-content p,
.modal-content li {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #ddd;
}

.modal-content ul {
  margin-left: 16px;
  margin-bottom: 10px;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .sidebar {
    width: 180px;
  }

  .content {
    margin-left: 180px;
  }
}

@media (max-width: 600px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .content {
    margin-left: 0;
  }

  .bio {
    flex-direction: column;
  }
}

@media (max-width: 1200px) {
  .portfolio-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .portfolio-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-track {
    grid-template-columns: 1fr;
  }
}

/* IMPRESSUM MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 999;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(12px);
  padding: 40px 30px;
  max-width: 700px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  color: #eaeaea;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transform: translateY(30px) scale(0.98);
  opacity: 0;
  transition: all 0.4s ease;
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  font-size: 22px;
  color: #aaa;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 10px;
  z-index: 2;
}

.modal-close:hover {
  color: #fff;
  transform: scale(1.1);
}
.modal-content::before,
.modal-content::after {
  content: "";
  position: sticky;
  left: 0;
  right: 0;
  height: 20px;
  pointer-events: none;
  z-index: 1;
}

.modal-content::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0.9), transparent);
}

.modal-content::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.9), transparent);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .sidebar {
    width: 180px;
  }

  .content {
    margin-left: 180px;
  }
}

@media (max-width: 600px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .content {
    margin-left: 0;
  }

  .bio {
    flex-direction: column;
  }
}

@media (max-width: 1200px) {
  .portfolio-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .portfolio-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-track {
    grid-template-columns: 1fr;
  }
}
