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

body {
  font-family: "Playfair Display", serif;
  background-color: #efe8de;
  color: #2b2b2b;
}

/* ===== Hero sektion ===== */
.hero {
  position: relative;
  width: 100%;
  height: 50vw; /* fast højde der passer til indholdet, i stedet for 100vh */
  overflow: hidden;
  background-color: #efe8de;
}

/* Stor hvid "PORTFOLIO" tekst i baggrunden */
.hero__background-text {
  position: absolute;
  top: 14vw;
  left: -8vw;
  font-family: "Anton", sans-serif;
  font-size: 16vw;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  user-select: none;
  z-index: 1;
  text-align: center;
  width: 100%;
}
/* Navnet i script-font, ligger ovenpå baggrundsteksten */
.hero__name {
  position: absolute;
  top: 24vw;
  left: 47%;
  transform: translateX(-50%);
  font-family: "Mrs Saint Delafield", cursive;
  font-size: 8vw;
  font-weight: 400;
  color: #5c4326; /* mørk brun/oliven farve som på billedet */
  z-index: 2;
  white-space: nowrap;
  text-align: center;
  width: 100%;
}

/* Navigationspille øverst */
.hero__nav {
  position: absolute;
  top: 4vw;
  left: 50%;
  transform: translateX(-50%);
  background-color: #7b272d; /* rustfarve, matcher filmstrippen */
  border-radius: 20px;
  padding: 1rem 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  z-index: 3;
  white-space: nowrap;
}

.hero__nav a {
  font-family: "Playfair Display", serif;
  color: #f5efe6;
  text-decoration: none;
  font-size: 1.05rem;
}

.hero__nav a:hover {
  opacity: 0.8;
}

.hero__nav-divider {
  color: #d9a394;
}

/* Filmstrip-billede i højre side */
.hero__filmstrip {
  position: absolute;
  right: -14vw;
  top: -15vw;
  width: 500px;
  max-width: none;
  z-index: 2;
  transform: rotate(-16deg);
}

.hero__filmstrip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: dropIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Billedet falder ned fra oven og lander med et lille hop */
@keyframes dropIn {
  0% {
    transform: translate(-50%, -120%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 8%);
    opacity: 1;
  }
}

/* Pil der peger ned mod næste sektion */
.hero__scroll-arrow {
  position: absolute;
  left: 6vw;
  bottom: 3vw;
  color: #7b272d;
  z-index: 2;
  animation: bounceArrow 1.8s ease-in-out infinite;
}

.hero__scroll-arrow:hover {
  opacity: 0.75;
}

/* Pilen hopper let op og ned for at signalere "scroll her" */
@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(14px);
  }
}

/* Rød streg i bunden af sektionen */
.hero__divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: #7b272d;
  z-index: 2;
}

/* ===== Intro-sektion under hero ===== */
.intro {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 90vh;
  background-color: #efe8de;
}

.intro__image {
  flex: 0 0 32%;
}

.intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(
    100%
  ); /* gør billedet sort/hvid automatisk, uanset original farve */
}

.intro__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 6vw;
  max-width: 850px;
}

.intro__text {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #2b2b2b;
  margin-bottom: 2rem;
}

.intro__button {
  display: inline-block;
  align-self: flex-start;
  padding: 1rem 2rem;
  border-radius: 20px;
  background-color: #7b272d; /* samme rustfarve som navigationspillen */
  color: #f5efe6;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  transition: opacity 0.2s ease;
}

.intro__button:hover {
  opacity: 0.85;
}

/* Pil, centreret lodret i højre side, med samme hop som i hero */
.intro__scroll-arrow {
  position: absolute;
  right: 6vw;
  top: 80%;
  color: #601b20;
  animation: bounceArrowCentered 1.8s ease-in-out infinite;
}

.intro__scroll-arrow:hover {
  opacity: 0.75;
}

@keyframes bounceArrowCentered {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(calc(-50% + 14px));
  }
}

@media (max-width: 700px) {
  .intro {
    flex-direction: column;
    min-height: auto;
  }

  .intro__image {
    flex: none;
    height: 60vw;
  }

  .intro__content {
    padding: 2.5rem 6vw;
    max-width: none;
  }

  .intro__scroll-arrow {
    display: none; /* for meget rod på mobil med billede + tekst + pil */
  }
}

/* ===== Projekt-sektion ===== */
.projects {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.projects__title {
  font-family: "Anton", sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  text-align: center;
  color: #43301a;
  margin-bottom: 4rem;
  margin-top: 4rem;
}

.project-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

/* Vender rækkefølgen om, så billedet ligger til højre */
.project-row--reverse {
  flex-direction: row-reverse;
}

.project-row__image {
  flex: 1 1 380px;
}

.project-row__image img {
  width: 100%;
  display: block;
}

/* Gør kun Museum Ovartaci-billedet mindre */
.project-row__image--small {
  flex: 0 1 300px; /* mindre max-bredde end den almindelige 380px */
  margin: 0 auto; /* centrerer den i sin kolonne */
}

.project-row__text {
  flex: 1 1 380px;
}

.project-row__title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: #2b2b2b;
}

.project-row__desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #2b2b2b;
  margin-bottom: 1.5rem;
}

.project-row__link {
  color: #a43121;
  font-weight: 600;
}

.project-row__link:hover {
  color: #792216;
}

/* Orange streg mellem projekterne */
.projects__divider {
  height: 3px;
  background-color: #a43121;
  margin: 4rem 0;
}

@media (max-width: 700px) {
  .project-row,
  .project-row--reverse {
    flex-direction: column;
  }
  .bio-section__body {
    flex-direction: column;
  }

  .bio-section__photos {
    min-height: 260px;
    width: 100%;
  }

  .bio-photo--right {
    left: 40%;
  }
}

/* ===== Sektion under stregen ===== */
.about {
  max-width: 700px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.about__title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #5c4326;
}

.about__text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #2b2b2b;
}

/* Billederne flyver ind fra siden, når man scroller ned til dem */
.fly-in-left,
.fly-in-right {
  opacity: 0;
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.9s ease;
}

.fly-in-left {
  transform: translateX(-150px);
}

.fly-in-right {
  transform: translateX(150px);
}

.fly-in-left.is-visible,
.fly-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Kontakt-sektion (forside) ===== */
.contact-cta {
  max-width: 700px;
  margin: 0 auto;
  padding: 6rem 1.5rem 8rem;
  text-align: center;
}

.contact-cta__title {
  font-family: "Anton", sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  text-align: center;
  color: #43301a;
  margin-bottom: 1rem;
}

.contact-cta__text {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: #2b2b2b;
  margin-bottom: 2.5rem;
}

.contact-cta__mail-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.contact-cta__icon {
  color: #2b2b2b;
  font-size: 2rem;
  line-height: 1;
}

.contact-cta__link {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: #a43121;
}

.contact-cta__link:hover {
  text-decoration: underline;
}

/* Sørg for blød scrolling til toppen */
html {
  scroll-behavior: smooth;
}

/* Footer layout */
.footer {
  display: flex;
  justify-content: space-between; /* Skubber venstre side til venstre og linket til højre */
  align-items: center;
  max-width: 1100px; /* Matcher bredden på dine andre sektioner */
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__left a {
  color: #2b2b2b;
  text-decoration: none;
}

.footer__left a:hover {
  color: #a43121;
}

/* Tilbage til toppen - placeret i højre side */
.back-to-top-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2b2b2b;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.back-to-top-inline svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

/* Hover-effekt */
.back-to-top-inline:hover {
  color: #a43121;
}

.back-to-top-inline:hover svg {
  transform: translateY(-3px); /* Løfter pilen en smule ved hover */
}

/* Mobil-visning */
@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* ===== Om mig-siden ===== */
.bio {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.bio__back {
  display: inline-block;
  margin-bottom: 3rem;
  color: #2b2b2b;
  text-decoration: none;
  font-family: "Playfair Display", serif;
}

.bio__back:hover {
  color: #a43121;
}

.bio-section {
  margin-bottom: 5rem;
}

.bio-section__title {
  font-family: "Anton", sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  color: #43301a;
  margin-bottom: 2rem;
}

.bio-section__body {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.bio-section__text {
  flex: 2 1 500px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2b2b2b;
}

.bio-section__text p {
  margin-bottom: 1.5rem;
}

.bio-section__text p:last-child {
  margin-bottom: 0;
}

.bio__contact-row {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.bio__contact-icon {
  color: #2b2b2b;
  font-size: 1.6rem;
  line-height: 1;
}

/* Polaroid-billeder */
.bio-section__photos {
  flex: 1 1 260px;
  position: relative;
  min-height: 320px;
}

.bio-section__photos--single {
  min-height: auto;
  display: flex;
  justify-content: center;
}

.bio-section__closing {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.bio__contact-link {
  display: inline-block;
  color: #a43121;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 1.1rem;
}

.bio__contact-link:hover {
  color: #792216;
}

.bio-photo {
  width: 340px;
  display: block;
}

.bio-photo--left {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 320px;
  transform: rotate(-6deg);
}

.bio-photo--right {
  position: absolute;
  left: 170px;
  top: 70px;
  z-index: 1;
  width: 380px;
  transform: rotate(10deg);
}

/* ===== CV / Uddannelse accordion ===== */
.accordion {
  margin-bottom: 0.5rem;
}

.accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Anton", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #43301a;
  padding: 0.5rem 0;
}

/* Fjerner browserens eget udfoldnings-ikon */
.accordion__summary::-webkit-details-marker {
  display: none;
}
.accordion__summary::marker {
  content: "";
}

/* Selve trekanten, tegnet i ren CSS */
.accordion__arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #a43121;
  transition: transform 0.25s ease;
  transform: rotate(-90deg); /* peger til højre, når lukket */
}

/* Peger nedad, når afsnittet er åbent */
.accordion[open] .accordion__arrow {
  transform: rotate(0deg);
}

.accordion__content {
  padding: 0.5rem 0 1.5rem 1.9rem; /* rykket ind, så det linjer op med teksten efter trekanten */
}

.cv-item {
  margin-bottom: 1.4rem;
}

.cv-item:last-child {
  margin-bottom: 0;
}

.cv-item__title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: #2b2b2b;
  margin-bottom: 0.2rem;
}

.cv-item__date {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  color: #9a9a9a;
}

.accordion__divider {
  height: 2px;
  background-color: #a43121;
  margin: 1.5rem 0 2.5rem;
}

/* ===== Case study-side (projektside) ===== */

.project-case__title {
  text-align: center;
  margin: 10px 0 70px;
  font-size: 3rem;
}

/* .hundehimlen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 10px auto 80px;
  max-width: 1800px;
}

.hundehimlen-tags span {
  padding: 9px 18px;
  border: 2px solid #52685f;
  border-radius: 30px;
  background-color: #aebeb5;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.hundehimlen-tags .tag--light {
  background-color: #d0dad5;
  color: #52685f;
} */

.case-study {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.case-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
  flex-wrap: wrap;
}

.case-row--reverse {
  flex-direction: row-reverse;
}

.case-row__image {
  flex: 1 1 380px;
  display: flex;
  justify-content: center;
}

.case-row__image--stacked {
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.case-row__text {
  flex: 1 1 380px;
}

.case-row__heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.case-row__number {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #2b2b2b;
  margin-bottom: 0.2rem;
}

.case-row__title {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #2b2b2b;
}

.case-row__desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2b2b2b;
  margin-bottom: 1.2rem;
}

.case-row__link {
  color: #a1402a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-row__link:hover {
  color: #7e3020;
}

/* ===== Ovartaci - Projektet ===== */

.case-row--project .case-row__image {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.case-row--project .case-row__image > .case-img,
.case-row--project .case-img-wrapper {
  width: calc(50% - 10px);
}

.case-row--project .case-img-wrapper {
  position: relative;
}

.case-row--project .case-img-wrapper .case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-row--project .case-img__gif {
  position: absolute;
  width: 70%;
  height: auto;
  top: 54.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

/* Basisstil alle billeder deler */
.case-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Individuelle størrelser pr. billede — juster frit efter behov */
.case-img--persona {
  max-width: 420px;
}

.case-img--styleguide {
  max-width: 420px;
}

.case-img--laptop {
  max-width: 680px;
}

.case-img--phone {
  max-width: 260px;
}

.case-img--landingpage {
  max-width: 680px;
}

.computer-video {
  position: relative;
  flex: 1 1 30%;
}

.computer-img {
  display: block;
  width: 100%;
  height: auto;
}

.computer-video__screen {
  position: absolute;
  top: 13%;
  left: 12%;
  width: 75.7%;
  height: 70%;
  object-fit: cover;
  z-index: 2;
}

.case-row__desc--bold {
  font-weight: 600;
}

/* Museum Ovartaci-siden */
.case-img--statue {
  max-width: 440px;
}

.case-img--research {
  max-width: 490px;
}

.case-img--kiosk {
  max-width: 380px;
}

.case-img--video {
  max-width: 350px;
  margin: 0 auto;
}

.case-img--kamera {
  max-width: 340px;
}

@media (max-width: 700px) {
  .case-row,
  .case-row--reverse {
    flex-direction: column;
  }
}

.video-section {
  margin-top: 0%;
}

.video-section__title {
  margin-bottom: 30px;
}

.video-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.video-card video {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.next-project {
  display: flex;
  justify-content: center;
  margin: 4rem 0 2rem;
}

.next-project__button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #7b272d;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 20px;
  transition: 0.2s ease;
}

.next-project__button:hover {
  background-color: #a43121;
  transform: translateY(-2px);
}

/* ===== Responsivt (mobil) ===== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero__background-text {
    position: static;
    font-size: 18vw;
    text-align: center;
    margin-top: 2rem;
  }

  .hero__name {
    position: static;
    font-size: 12vw;
    text-align: center;
    margin: -6vw 0 2rem 0;
  }

  .hero__image-wrapper {
    position: static;
    width: 60vw;
    margin: 0 auto 2rem auto;
  }

  .hero__content {
    position: static;
    max-width: 90%;
    margin: 0 auto;
    text-align: left;
  }

  .hero__divider {
    position: static;
    margin-top: 3rem;
  }

  .video-section__grid {
    grid-template-columns: 1fr;
  }
}
