/* Vivid Dreams CSS made by Nick Figner (nickfigner.com)*/

:root {
    --primary-color: #90A4DF;
    --secondary-color: #B092D2;
    --background-color: #0D0101;
    --text-color: #ffffff;
    --comment-color: #ffffff40;
    --font-family: 'Urbanist', sans-serif;

    --blur: 22px;
    --shadow: 0 4px 74px 0 rgba(0, 0, 0, 0.25);

    color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  scroll-behavior: smooth;
}

input,
textarea,
button,
select,
a {
    -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--background-color);
}

/* Text Stylse */
.hero {
  font-family: var(--font-family);
  font-size: 128px;
  font-weight: 800;
  color: var(--text-color);
  font-style: normal;
}

h1 {
  font-family: var(--font-family);
  font-size: 64px;
  font-weight: 800;
  color: var(--text-color);
  font-style: normal;
}

h2 {
  font-family: var(--font-family);
  font-size: 30px;
  font-weight: 800;
  color: var(--text-color);
  font-style: normal;
}

p {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  font-style: normal;
}

comment {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  color: var(--comment-color);
  font-style: normal;
}

/* Other Things */

img {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: none;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  border-radius: 999px;
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--text-color);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.mobile-nav-open {
  overflow: hidden;
}


/* Header */

header {
  background-color: #20202051;
  height: 5rem;
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;

  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
  align-items: center;
  padding: 0 1rem;
  z-index: 10;
}

header > a:first-child {
  grid-column: 1;
  flex-shrink: 0; 
  display: flex;
  align-items: center;
}

header img {
  height: 3rem;
  width: auto;
  display: block;
  max-width: 220px;
  object-fit: contain;
}

.nav-links {
  grid-column: 2;
  position: relative;
  width: 100%;
}

.nav-links-inner {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  gap: 2rem;
  font-family: var(--font-family);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-color);
  font-style: normal;
}

.nav-links-inner a {
  text-decoration: none;
  color: var(--text-color);
}

/* Sections */

main  {
  min-height: 70vh;
  margin-top: -5rem;
}

.bg-preview {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

.bg-preview {
  /* 1. Container auf die gewünschte Breite setzen */
  width: 80vw; 
  
  /* 2. Container nach rechts rücken */
  margin-left: auto;
  margin-right: 0; /* Sicherstellen, dass er rechtsbündig ist */
  
  /* 3. Positionierungskontext für das Overlay */
  position: relative; 
}

.bg-preview img {
  /* 4. Bild füllt den 80vw-Container komplett aus */
  width: 100%; 
  height: auto;
  
  /* Wichtig, um kleinen Leerraum unter dem Bild zu entfernen */
  display: block; 
}

.bg-preview::after {
  /* 5. Overlay wird korrekt angezeigt */
  content: "";
  position: absolute;
  left: 0;
  
  /* 6. Overlay füllt ebenfalls den 80vw-Container */
  width: 100%;
  height: 100%;

  /* Deine Gradienten (mit Fallback-Farbe) */
  background: 
    linear-gradient(to right, var(--background-color, white) 0%, transparent 25%),
    linear-gradient(to top, var(--background-color, white) 0%, transparent 25%);

  pointer-events: none;
}

.not-image-area {
  z-index: 3;
  position: absolute;
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  padding-left: 4rem;
  padding-top: 15vh;
}

.not-image-area img{
  width: auto;
  max-height: 13rem;
  object-fit: contain;

}

.not-image-area h2{
  margin-top: 2rem;
  margin-bottom: 2rem;
  max-width: 40vw;
}


/* Button Primary */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;

  background: linear-gradient(180deg, #f84f4f 0%, #d92525 100%);
  color: white;
  border: none;
  border-radius: 999px;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  
}

.btn-primary svg {
  width: 1.25em;
  height: 1.25em;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ff5c5c 0%, #e02f2f 100%);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.5), 
    0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
  transform: translateY(1px);
}


/* Button Secondary */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;

  background: linear-gradient(180deg, #262626 0%, #262626 100%);
  color: white;
  border: none;
  border-radius: 999px;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-secondary svg {
  width: 1.25em;
  height: 1.25em;
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #26262690 0%, #262626 100%);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.5), 
    0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary:active {
  transform: translateY(1px);
}



/* ABout Section */

#about {
  margin-top: 5rem;
  text-align: center; 
}

#about h1 {
  margin-bottom: 2rem;
}

#about p {
  max-width: 600px; 
  margin: 0 auto; 
  margin-bottom: 4rem;
  line-height: 1.6;
}


/* Screenshots Section */


#screenshots {
  margin-top: 5rem;
  text-align: center; 
}

.screenshot-gallery {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.screenshot-gallery img {
  width: 40vw;
  height: auto;
  border-radius: 12px;
}



/* Download Section */

#download {
  margin-top: 15vh;
  text-align: center; 
  margin-bottom: 10vh;
}

#download .button-align {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

#download p {
  margin-bottom: 0;
}


/* Resources Section */

#res {
  margin-top: 5rem;
  text-align: center; 
}

#res p {
  margin-bottom: 0;
}

#res .text {
  margin-bottom: 2rem;
}


/* Rest */

.spacer-footer {
  height: 21vh;
}


.footer-frame {
  margin: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
}


@media (max-width: 920px) {
  body.mobile-nav-enabled header {
    grid-template-columns: auto auto;
    gap: 1rem;
    padding: 0 1rem;
    overflow: visible; /* ensure dropdown isn't clipped */
  }

  body.mobile-nav-enabled header img {
    height: 2.4rem;
    width: auto;
    display: block;
  }

  body.mobile-nav-enabled .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 60;
  }

  body.mobile-nav-enabled .nav-links {
    /* simple dropdown beneath the header */
    position: absolute;
    top: 100%;
    left: 0;
    grid-column: 1 / -1; /* span full header width so left:0 aligns with page left */
    width: 100%;
    margin: 0;
    display: none;
    text-align: left;
    padding: 0;
    z-index: 50;
  }

  body.mobile-nav-enabled .nav-links.is-open {
    display: block;
  }

  body.mobile-nav-enabled .nav-links::before {
    display: none; /* no full-page backdrop for dropdown */
  }

  body.mobile-nav-enabled .nav-links-inner {
    position: relative;
    z-index: 51;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0.25rem 0.5rem;
    background: rgba(32, 32, 32, 0.98);
    box-shadow: var(--shadow);
    border-radius: 0 0 12px 12px;
  }

  body.mobile-nav-enabled .nav-links-inner a {
    font-size: 18px;
    width: 100%;
    display: block;
    text-decoration: none;
    padding: 1rem 1rem;
    color: var(--text-color);
    border-bottom: 1px solid rgba(255,255,255,0.025);
  }
}
