@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap");

/* =========================================================
   GRUNDINDSTILLINGER
========================================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* BAGGRUNDE */

  --background: #fcfbf8;
  --surface: #f6f2eb;
  --surface-light: #ffffff;

  /* TEKST */

  --text: #2e2a28;
  --text-soft: #686868;

  /* NY ACCENT */

  --accent: #7e97b7;
  --accent-dark: #6882a3;

  /* BORDER */

  --border: #e8e3db;

  /* Typografi */
  --font-primary: "DM Sans", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;

  --eyebrow-size: 0.78rem;
  --eyebrow-weight: 700;
  --eyebrow-spacing: 3px;

  --body-size: 1rem;
  --body-line-height: 1.7;

  --section-title-size: clamp(2.9rem, 4vw, 4.2rem);
  --card-title-size: 1.25rem;
}

body {
  overflow-x: hidden;

  background: var(--background);
  color: var(--text);

  font-family: var(--font-primary);
  font-size: var(--body-size);
  line-height: var(--body-line-height);
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

/* =========================================================
   HEADER
========================================================= */

.header {
  position: relative;
  z-index: 50;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 30px 8%;

  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.logo {
  color: var(--text);

  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 35px;

  list-style: none;
}

.nav-list a {
  position: relative;

  color: var(--text);

  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;

  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.nav-list a::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;

  height: 1px;

  background: var(--accent);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.3s ease;
}

.nav-list a:hover {
  color: var(--accent);
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

/* =========================================================
   FÆLLES TYPOGRAFI
========================================================= */

.hero__eyebrow,
.about__eyebrow,
.skills__eyebrow,
.projects__eyebrow,
.site-footer__eyebrow {
  color: var(--accent);

  font-family: var(--font-primary);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  line-height: 1.2;
  letter-spacing: var(--eyebrow-spacing);
  text-transform: uppercase;
}

/* ===== Fælles overskrifter ===== */

.about__content h2,
.skills__intro h2,
.projects__intro h2,
.site-footer__cta h2 {
  color: var(--text);

  font-family: "Manrope", sans-serif;
  font-size: var(--section-title-size);
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 70px;

  min-height: calc(100vh - 240px);
  padding: 10px 8% 40px;

  overflow: hidden;

  background: var(--background);
}

.hero__content {
  position: relative;
  z-index: 5;

  max-width: 620px;
}

.hero__eyebrow {
  margin-bottom: 22px;
}

.hero__title {
  margin: 0;

  color: var(--text);

  font-family: var(--font-display);
  font-size: clamp(4rem, 6vw, 6.8rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero__title span {
  display: block;

  color: var(--accent);

  font-style: italic;
  font-weight: 500;
}

.hero__line {
  width: 48px;
  height: 1px;

  margin: 32px 0 27px;

  background: var(--accent);
}

.hero__description {
  max-width: 460px;
  margin-bottom: 32px;

  color: var(--text-soft);

  font-size: 1.05rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  gap: 22px;

  padding: 16px 24px;

  background: var(--accent);
  color: #ffffff;

  border-radius: 999px;

  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;

  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.hero__button:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

.hero__button span {
  transition: transform 0.3s ease;
}

.hero__button:hover span {
  transform: translateX(4px);
}

.hero__secondary-link {
  position: relative;

  color: var(--text);

  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
}

.hero__secondary-link::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;

  height: 1px;

  background: var(--text);

  transform: scaleX(0.3);
  transform-origin: left;

  transition: transform 0.3s ease;
}

.hero__secondary-link:hover::after {
  transform: scaleX(1);
}

/* Hero-billede */

.hero__visual {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 650px;

  isolation: isolate;
}

.hero__shape,
.hero__image-wrapper {
  position: relative;
  z-index: 2;

  width: min(84%, 550px);
  height: 620px;

  overflow: hidden;

  background: var(--surface);

  border-radius: 270px 270px 28px 28px;

  box-shadow: 0 30px 65px rgba(44, 35, 31, 0.14);
}

.hero__shape--large {
  position: absolute;
  top: 3%;
  right: 3%;
  z-index: -3;

  width: 88%;
  height: 86%;

  background: var(--circle);

  border-radius: 43% 57% 63% 37% / 43% 37% 63% 57%;

  opacity: 0.8;

  animation: hero-shape-large 9s ease-in-out infinite alternate;
}

.hero__shape--accent {
  position: absolute;
  right: 0;
  bottom: 5%;
  z-index: -2;

  width: 48%;
  height: 48%;

  background: var(--accent);

  border-radius: 58% 42% 30% 70% / 42% 56% 44% 58%;

  opacity: 0.88;

  animation: hero-shape-accent 11s ease-in-out infinite alternate;
}

.hero__image-wrapper {
  position: relative;
  z-index: 2;

  width: min(78%, 500px);
  aspect-ratio: 1 / 1;
  height: auto;

  overflow: hidden;

  background: var(--surface);

  border-radius: 58% 42% 63% 37% / 42% 58% 42% 58%;

  box-shadow: 0 30px 65px rgba(44, 35, 31, 0.12);

  animation: hero-image-blob 14s ease-in-out infinite alternate;
}

@keyframes hero-image-blob {
  0% {
    border-radius: 58% 42% 63% 37% / 42% 58% 42% 58%;
  }

  25% {
    border-radius: 48% 52% 44% 56% / 56% 42% 58% 44%;
  }

  50% {
    border-radius: 62% 38% 52% 48% / 39% 61% 43% 57%;
  }

  75% {
    border-radius: 43% 57% 61% 39% / 55% 45% 59% 41%;
  }

  100% {
    border-radius: 55% 45% 39% 61% / 46% 56% 44% 54%;
  }
}

.hero__image {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 20%;

  opacity: 1;
  filter: saturate(0.95);
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 8%;
  z-index: 6;

  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--text-soft);

  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
}

.hero__scroll span:last-child {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 37px;
  height: 37px;

  background: var(--surface);
  border-radius: 50%;

  color: var(--text);
  font-size: 1.1rem;

  animation: hero-scroll-bounce 2.2s ease-in-out infinite;
}

/* Hero-animationer */

@keyframes hero-shape-large {
  from {
    border-radius: 43% 57% 63% 37% / 43% 37% 63% 57%;
  }

  to {
    border-radius: 52% 48% 47% 53% / 37% 52% 48% 63%;

    transform: rotate(2deg) scale(1.015);
  }
}

@keyframes hero-shape-accent {
  from {
    border-radius: 58% 42% 30% 70% / 42% 56% 44% 58%;
  }

  to {
    border-radius: 43% 57% 42% 58% / 60% 40% 60% 40%;

    transform: rotate(-3deg) scale(1.02);
  }
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* =========================================================
   OM MIG
========================================================= */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;

  padding: 100px 8%;

  background: var(--surface);
}

.about__image-wrapper {
  overflow: hidden;

  border-radius: 150px 24px 24px 24px;

  box-shadow: 0 24px 50px rgba(44, 35, 31, 0.09);
}

.about__image {
  width: 100%;
  height: 560px;

  object-fit: cover;
  object-position: center 35%;

  transition: transform 0.5s ease;
}

.about__image-wrapper:hover .about__image {
  transform: scale(1.03);
}

.about__content {
  position: relative;

  max-width: 560px;
}

.about__content::before {
  content: "";

  position: absolute;
  top: -55px;
  left: -45px;
  z-index: 0;

  width: 285px;
  height: 285px;

  background: var(--circle);

  border-radius: 44% 56% 62% 38% / 42% 39% 61% 58%;

  opacity: 0.38;

  transform: rotate(-7deg);
}

.about__content > * {
  position: relative;
  z-index: 1;
}

.about__eyebrow {
  margin-bottom: 18px;
}

.about__content h2 {
  margin-bottom: 28px;
}

.about__content h2 span {
  display: block;

  color: var(--accent);
  font-style: italic;
}

.about__content > p:not(.about__eyebrow) {
  margin-bottom: 18px;

  color: #444444;

  font-size: 1.05rem;
  line-height: 1.8;
}

.about__button {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  margin-top: 18px;
  padding: 16px 26px;

  background: var(--accent);
  color: #ffffff;

  border-radius: 999px;

  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;

  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.about__button:hover {
  background: var(--accent-dark);
  transform: translateY(-4px);
}

/* =========================================================
   VÆRKTØJER
========================================================= */

.skills {
  padding: 100px 8%;

  background: var(--background);

  text-align: center;
}

.skills__intro {
  max-width: 760px;
  margin: 0 auto 70px;
}

.skills__eyebrow {
  margin-bottom: 18px;
}

.skills__intro h2 {
  margin-bottom: 22px;
}

.skills__intro > p:not(.skills__eyebrow) {
  max-width: 620px;
  margin: 0 auto;

  color: var(--text-soft);

  font-size: var(--body-size);
  line-height: var(--body-line-height);
}

.skills__logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;

  max-width: 1200px;
  margin: 0 auto;
}

.tool {
  padding: 18px 12px;

  text-align: center;

  opacity: 0;
  transform: translateY(25px);

  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.tool.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tool__logo {
  width: 88px;
  height: 88px;

  margin: 0 auto 22px;

  object-fit: contain;

  transition: transform 0.3s ease;
}

.tool:hover .tool__logo {
  transform: translateY(-6px) scale(1.04);
}

.tool h3 {
  color: var(--text);

  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

/* =========================================================
   PROJEKTER
========================================================= */

.projects {
  padding: 75px 8% 65px;

  background: var(--surface);
}

.projects__intro {
  position: relative;

  max-width: 520px;
  margin-bottom: 45px;
}

.projects__intro::before {
  content: "";

  position: absolute;
  top: -30px;
  left: -40px;
  z-index: 0;

  width: 160px;
  height: 160px;

  background: var(--circle);
  border-radius: 50%;

  opacity: 0.48;
}

.projects__intro > * {
  position: relative;
  z-index: 1;
}

.projects__eyebrow {
  margin-bottom: 16px;
}

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

.projects__intro h2 span {
  color: var(--accent);
  font-style: italic;
}

.projects__intro > p:last-child {
  color: var(--text-soft);

  font-size: var(--body-size);
  line-height: var(--body-line-height);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.project-card__image-link {
  display: block;

  margin-bottom: 22px;

  text-decoration: none;
}

.project-card__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 76%;
  aspect-ratio: 1 / 1;

  margin: 0 auto;

  overflow: hidden;

  background: var(--background);
  border: 1px solid rgba(173, 91, 73, 0.15);
  border-radius: 50%;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}

.project-card__image {
  width: 86%;
  height: 86%;

  object-fit: contain;

  transition: transform 0.45s ease;
}

.project-card__image-link:hover .project-card__image-wrapper {
  background: #fbf8f4;

  box-shadow: 0 20px 40px rgba(44, 35, 31, 0.1);

  transform: translateY(-8px);
}

.project-card__image-link:hover .project-card__image {
  transform: scale(1.04);
}

.project-card__number {
  margin-bottom: 8px;

  color: var(--accent);

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.project-card h3 {
  margin-bottom: 12px;

  color: var(--text);

  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.project-card__description {
  min-height: 65px;
  margin-bottom: 16px;

  color: var(--text-soft);

  font-size: var(--body-size);
  line-height: 1.6;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  list-style: none;
}

.project-card__tags li {
  padding: 7px 12px;

  background: var(--surface-dark);
  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.projects__footer {
  margin-top: 38px;

  text-align: center;
}

.projects__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  padding: 16px 28px;

  background: var(--accent);
  color: #ffffff;

  border-radius: 999px;

  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;

  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.projects__link:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 55px 8% 24px;

  background: var(--background);
  color: var(--text);

  border-top: 1px solid var(--border);
}

.site-footer__cta {
  max-width: 780px;
  margin: 0 auto 45px;

  text-align: center;
}

.site-footer__eyebrow {
  margin-bottom: 18px;
}

.site-footer__cta h2 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.site-footer__cta h2 span {
  color: var(--accent);
  font-style: italic;
}

.site-footer__text {
  max-width: 500px;
  margin: 0 auto 30px;

  color: var(--text-soft);

  font-size: 1.05rem;
  line-height: 1.7;
}

.site-footer__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 14px 24px;

  background: var(--accent);
  color: #ffffff;

  border-radius: 999px;

  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;

  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.site-footer__button:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

.site-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 45px;

  padding-top: 28px;

  border-top: 1px solid var(--border);
}

.site-footer__identity p {
  margin-top: 5px;

  color: var(--text-soft);

  font-size: 0.9rem;
}

.site-footer__logo {
  color: var(--text);

  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer__nav {
  display: flex;
  gap: 28px;

  list-style: none;
}

.site-footer__nav a,
.site-footer__socials a {
  color: var(--text);

  font-size: 0.9rem;
  text-decoration: none;

  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.site-footer__nav a:hover,
.site-footer__socials a:hover {
  color: var(--accent);
}

.site-footer__socials {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.site-footer__socials p {
  color: var(--text-soft);

  font-size: 0.85rem;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .header {
    flex-direction: column;
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 35px;

    min-height: auto;
    padding-top: 70px;

    text-align: center;
  }

  .hero__content {
    max-width: 680px;
    margin: 0 auto;
  }

  .hero__line {
    margin-inline: auto;
  }

  .hero__description {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    width: min(100%, 680px);
    min-height: 570px;

    margin: 0 auto;
  }

  .hero__image-wrapper {
    width: min(82%, 500px);
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .hero__scroll {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about__image-wrapper,
  .about__content {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .skills__logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__bottom {
    grid-template-columns: 1fr;
    gap: 24px;

    text-align: center;
  }

  .site-footer__nav,
  .site-footer__socials {
    justify-content: center;
  }
}

/* =========================================================
   MOBIL
========================================================= */

@media (max-width: 600px) {
  :root {
    --section-title-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .header {
    padding: 24px;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .hero {
    gap: 20px;

    padding: 55px 24px 60px;
  }

  .hero__title {
    font-size: clamp(3.4rem, 17vw, 4.6rem);
  }

  .hero__line {
    margin-top: 27px;
    margin-bottom: 24px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 20px;
  }

  .hero__visual {
    width: 100%;
    min-height: 455px;
  }

  .hero__shape--large {
    top: 4%;
    right: -6%;

    width: 106%;
    height: 90%;
  }

  .hero__shape--accent {
    right: -15%;
    bottom: 4%;

    width: 60%;
    height: 45%;
  }

  .hero__image-wrapper {
    width: min(82%, 340px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .about,
  .skills,
  .projects {
    padding: 80px 24px;
  }

  .about__image {
    height: 420px;
  }

  .about__content::before {
    top: -35px;
    left: -35px;

    width: 230px;
    height: 230px;
  }

  .skills__logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .project-card__description {
    min-height: auto;
  }

  .site-footer {
    padding: 65px 24px 28px;
  }

  .site-footer__nav,
  .site-footer__socials {
    flex-wrap: wrap;
    gap: 16px 22px;
  }
}

/* =========================================================
   MEGET SMÅ SKÆRME
========================================================= */

@media (max-width: 420px) {
  .skills__logos {
    grid-template-columns: 1fr;
  }

  .hero__button,
  .about__button,
  .projects__link,
  .site-footer__button {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   REDUCERET BEVÆGELSE
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .tool {
    opacity: 1;
    transform: none;
  }
}
