/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #010101;
  --second-bg-color: #101010;
  --text-color: #ffffff;
  --main-color: #e7e7e7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;

  padding: 2rem 10%; /* mindre vertikal, bedre balance */

  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem; /* <-- giver luft mellem logo/menu/knap */

  z-index: 1000;
}

main {
  margin-top: 8rem; /* <-- skaber plads til headeren */
}

#menu-icon {
  font-size: 3.5rem;
  color: var(--main-color);
  display: none;
}

.logo {
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 50%;
}

.logo:hover {
  transform: scale(1.1);
}

.logo span,
.home-content span {
  background: linear-gradient(270deg, #e6e6e6 10%, #979797 100%);
  background-clip: text;
  color: transparent;
}

.navbar ul {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  font-weight: 500;
  transition: 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
  padding-bottom: 5px; /* <-- tilføjer lidt plads under teksten for bedre hover-effekt */
}

.navbar a:hover {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

.gradient-btn {
  font-size: 1.8rem;
  padding: 1rem 2rem;
  border-radius: 3rem;
  background: linear-gradient(270deg, #1d1d1d 10%, #0a0a0a 100%);
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  color: #fff;
  border: none;
  text-wrap: nowrap;
}

.gradient-btn:hover {
  transform: scale(1.05);
}

section {
  min-height: 100vh;
  padding: 8rem 12%;
  background-color: #fff;
  color: #000;
  scroll-margin-top: 100px; /* Så når man klikker på et link, lander det ikke under menuen */
}

.section-title {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 2rem;
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8rem;
  max-width: 1400px;
  margin: auto;

  background-color: #010101; /* sort baggrund */
  color: #fff; /* hvid tekst */
  padding: 8rem 12%;
}

.home-content {
  display: flex;
  flex-direction: column;

  align-items: flex-start;
  text-align: left;

  gap: 2rem;
}

.home-content h1 {
  font-size: 8rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}

.home-content h2 {
  margin: 1rem 0;
  font-size: 4rem;
}

.home-content p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
}

.home-img {
  width: 15vw; /* 15% af viewport width */
  height: 15vw; /* samme for højde, gør cirklen perfekt */
  max-width: 400px; /* stopper ved en rimelig størrelse */
  max-height: 400px;
  border-radius: 50%;
  overflow: hidden;
  background: #010101;
  flex-shrink: 0;
}

.home-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  transition: 0.4s ease-in-out;
}

.home-img img:hover {
  box-shadow:
    0 0 25px var(--text-color),
    0 0 50px var(--text-color),
    0 0 100px var(--text-color);
}

/* Mobil */
@media (max-width: 768px) {
  .home-img {
    width: 35vw; /* fylder mere på små skærme */
    height: 35vw;
    max-width: 180px;
    max-height: 180px;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .home-content h2 {
    font-size: 2.5rem;
  }
}

.social-icons {
  display: inline-flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 55px;
  height: 55px;

  border-radius: 50%;
  border: 2px solid var(--main-color);

  transition: 0.3s ease;
}

.social-icons img {
  width: 26px;
  height: 26px;
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.1);

  background: var(--main-color);

  box-shadow:
    0 0 10px var(--main-color),
    0 0 25px var(--main-color),
    0 0 50px var(--main-color);
}

.btn-group {
  display: flex;
  gap: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 3rem;
  font-size: 1.8rem;
  color: #000;
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.3s ease-in-out;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 25px var(--main-color),
    0 0 50px var(--main-color);
}

.btn-group a:nth-of-type(2) {
  background-color: #000;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
  color: #000;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
}

.social-icons-footer {
  display: flex;
  gap: 1rem;
}

.social-icons-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--main-color);
  transition: 0.3s;
}

.social-icons-footer a:hover {
  background: var(--main-color);
  transform: scale(1.1);
}

.social-icons-footer img {
  width: 20px;
  height: 20px;
}

.footer {
  background: var(--second-bg-color);
  padding: 6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4rem;
  text-align: center;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column p {
  line-height: 1.6;
}

.footer a {
  color: var(--main-color);
  transition: 0.3s;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 1.3rem;
}

.footer-bottom {
  font-size: 1.4rem;
  opacity: 0.7;
  margin-top: 1rem;
}

.om-os {
  background: #ffffff;
  color: #000;
}

.about-container {
  display: flex;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  max-width: 1200px;
  text-align: center;
  margin: auto;
  align-items: center;
}

.about-text {
  flex: 1;
  font-size: 1.6rem;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 2rem;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-stats {
  display: flex;
  gap: 5rem;
  margin-top: 3rem;
  align-items: center;
  justify-content: center;
}

.about-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.about-stats h3 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #111;
}

.about-stats p {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
}

@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
  }

  .about-stats {
    justify-content: space-between;
  }
}

.services {
  background-image: url("img/services_bg2.jpeg");
  background-size: cover;
  background-position: center;
  padding: 8rem 10%;
  color: var(--text-color);
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #f04;
  margin: 12px auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.service-card {
  background: #e0e0e0;
  color: #111;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.service-content {
  padding: 1.8rem;
}

.service-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.service-content p {
  color: #555;
  font-size: 0.95rem;
}

.service-icon {
  width: 40px;
  margin-bottom: 1.5rem;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.projects-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

/* ============================================================
   REPLACE the existing .kontakt block in style.css with this
   ============================================================ */

.kontakt {
  background: linear-gradient(135deg, #101010 0%, #1a1a1a 100%);
  color: #fff;
  padding: 8rem 12% 4rem; /* less bottom padding — footer info sits below */
  text-align: center;
  min-height: unset; /* remove the 100vh that caused the void */
}

.kontakt h2 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.kontakt > p {
  font-size: 1.5rem;
  color: #ccc;
  margin-bottom: 4rem;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 6rem;
}

/* ── MERGED FOOTER INFO inside .kontakt ─────────────────── */

.kontakt-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  font-size: 1.4rem;
  color: #aaa;
}

.kontakt-footer a {
  color: var(--main-color);
  text-decoration: none;
  transition: 0.2s;
}

.kontakt-footer a:hover {
  text-decoration: underline;
}

.kontakt-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 1.3rem;
}

.kontakt-footer-copy {
  opacity: 0.5;
  margin-top: 0.5rem;
  font-size: 1.3rem;
}

/* ── Remove the old standalone footer (optional — or keep minimal) */
.footer {
  display: none; /* hidden — info now lives inside .kontakt */
}

/* Ring nu button */
.kontakt-btn {
  padding: 1rem 3rem;
  border-radius: 3rem;
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

.kontakt-btn:hover {
  background-color: var(--main-color);
  color: #000;
  transform: scale(1.05);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 1rem;
  border: 2px solid var(--main-color);
  font-size: 1.5rem;
  background-color: #1a1a1a;
  color: #fff;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #ccc;
}

/* Form submit button */
.form-btn {
  padding: 1rem 2rem;
  border-radius: 2rem;
  background-color: var(--main-color);
  color: #000;
  font-size: 1.6rem;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.form-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--main-color);
}

/* Footer Social Icons in Contact Section */
.social-icons-footer {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.social-icons-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--main-color);
  transition: 0.3s;
}

.social-icons-footer a:hover {
  background: var(--main-color);
  transform: scale(1.1);
}

.social-icons-footer img {
  width: 20px;
  height: 20px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
    align-items: center;
  }

  .kontakt-btn {
    width: 80%;
    text-align: center;
  }

  .contact-form {
    width: 80%;
  }
}

/* ── HAMBURGER ICON ─────────────────────────────────────── */

#menu-icon {
  width: 30px;
  height: 22px;
  display: none; /* shown via media query below */
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}

#menu-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-color);
  border-radius: 3px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Animate to × when active */
#menu-icon.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
#menu-icon.active span:nth-child(2) {
  opacity: 0;
}
#menu-icon.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ── HEADER SHRINK ON SCROLL ────────────────────────────── */

.header {
  transition:
    padding 0.3s ease,
    background 0.3s ease;
}

.header.scrolled {
  padding: 1.2rem 10%;
  background: rgba(0, 0, 0, 0.85);
}

/* ── ACTIVE NAV LINK ────────────────────────────────────── */

.navbar a.active {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

/* ── FORM STATUS MESSAGE ─────────────────────────────────── */

.form-status {
  font-size: 1.4rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  margin-top: 0.5rem;
  text-align: center;
}

.form-status--success {
  background: rgba(29, 158, 117, 0.15);
  color: #1d9e75;
  border: 1px solid rgba(29, 158, 117, 0.4);
}

.form-status--error {
  background: rgba(226, 75, 74, 0.12);
  color: #e24b4a;
  border: 1px solid rgba(226, 75, 74, 0.3);
}

/* ── MOBILE NAV ─────────────────────────────────────────── */

@media (max-width: 768px) {
  #menu-icon {
    display: flex;
  }

  .gradient-btn {
    display: none; /* hide newsletter btn on small screens */
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.4s ease,
      padding 0.3s ease;
  }

  .navbar.open {
    max-height: 400px;
    padding: 2rem 0;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .navbar a {
    font-size: 2rem;
  }
}

/* ============================================================
   MOBILE FIXES — append to the bottom of style.css
   ============================================================ */

@media (max-width: 768px) {
  /* ── GENERAL ── */
  section {
    padding: 6rem 5%; /* tighter horizontal padding on all sections */
  }

  /* ── HOME ── */
  .home {
    flex-direction: column-reverse; /* image on top, text below */
    align-items: center;
    text-align: center;
    gap: 3rem;
    padding: 6rem 5%;
  }

  .home-content {
    align-items: center; /* center social icons + buttons */
  }

  .home-content h1 {
    font-size: 3.6rem; /* was 8rem — way too big for mobile */
    line-height: 1.15;
    text-align: center;
  }

  .home-content h2 {
    font-size: 2rem;
    text-align: center;
  }

  .home-content p {
    font-size: 1.4rem;
    text-align: center;
  }

  .home-img {
    width: 45vw;
    height: 45vw;
    max-width: 180px;
    max-height: 180px;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* ── OM OS ── */
  .om-os {
    padding: 6rem 5%;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-text {
    font-size: 1.5rem;
  }

  .about-stats {
    gap: 2rem;
    flex-wrap: wrap; /* allow wrapping if still too tight */
  }

  .about-stats h3 {
    font-size: 2.8rem;
  }

  .about-stats p {
    font-size: 1.2rem;
  }

  .about-image {
    order: -1; /* show image above text on mobile */
  }
}

/* LEGAL PAGES UPGRADE */

.legal {
  padding: 140px 20px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.legal .container {
  background: #111;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Typography */
.legal h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #aaa;
}

.legal h2 {
  margin-top: 40px;
  font-size: 1.6rem;
  color: #ccc;
}

.legal h3 {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #aaa;
}

.legal p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: #ddd;
}

.legal ul {
  margin-left: 20px;
  margin-bottom: 20px;
  color: #ddd;
}

/* Back button */
.back-btn {
  display: inline-block;
  margin-bottom: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.back-btn:hover {
  color: #00bcd4;
}

/* Make header sticky */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* Small screen fix */
@media (max-width: 768px) {
  .legal .container {
    padding: 20px;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 500px;
  width: 90%;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #ddd;
}

.cookie-content a {
  color: #00bcd4;
  text-decoration: none;
}

.cookie-buttons button {
  background: #00bcd4;
  border: none;
  padding: 8px 14px;
  color: #000;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.cookie-buttons button:hover {
  opacity: 0.85;
}

/* Mobile fix */
@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
  }

  .cookie-buttons button {
    width: 100%;
  }
}
