/* Google Gemini har hjulpet mig med at lave dele af denne CSS fil */
/* =========================================
   1. VARIABLES & THEME
   ========================================= */
:root {
  --primary-light-color: #F4D9B8;
  --primary-dark-color: #101914;
  --primary-pink: #EE81A2;
  --primary-purple: #9047CC;
  --primary-orange: #FF8F1F;
}

/* =========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================= */
body, html {
  margin: auto;
  padding: 0;
  height: 100%;
  font-family: "Cal Sans", sans-serif;
  overflow-x: hidden; /* Forhindrer scrollbar når menuen er skubbet ud */
  background-color: var(--primary-light-color);
  max-width: 1500px;
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1, h2 {
  font-family: "Rammetto One", sans-serif;
  font-size: clamp(1.25rem, 3vw, 3rem);
  margin-top: 0;
}

p {
  font-size: clamp(1rem, 2vw, 2rem);
}

/* =========================================
   4. MAIN LAYOUT (GRID)
   ========================================= */
.page-container {
  display: grid;
  grid-template-areas: 
      "header"
      "ommig"
      "kt"
      "projekter"
      "kontakt"
      "footer";
  grid-template-rows: 5rem auto auto auto auto auto;
  min-height: 100vh;
  gap: 0;
}

/* =========================================
   5. COMPONENTS (Genbrugelige elementer)
   ========================================= */

/* --- Boxes & Cards --- */
.box {
  width: 8rem;
  height: 4rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--primary-purple);
  border-radius: 20px;
  padding-left: 20px;
}

.box span {
  font-size: 1rem;
}

.box2 {
  max-width: 20rem;
  min-width: 15rem;
  height: auto;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background-color: var(--primary-purple);
  border-radius: 20px;
  padding: 2rem;
}

.box2 span {
  font-size: 1.5rem;
}

.box2 span u {
  color: var(--primary-orange);
}

/* --- Logos & Images --- */
.logo {
  width: 5rem;
  height: auto;
  z-index: 20;
}

.logo2 {
  width: 2.5rem;
  height: auto;
  display: inline-block;
  margin-right: 7.5px;
  margin-bottom: 0;
}

.picvid {
  width: 80%;
  align-self: center;
  height: auto;
  display: inline-block;
  margin-bottom: 0;
}

.profil {
  max-width: 20rem;
  height: auto;
  border-radius: 20px;
  flex-shrink: 0;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 30rem;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--primary-pink);
  border-radius: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--primary-light-color);
}

.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px; 
  box-sizing: border-box; 
  font-family: inherit; 
  border: none;
  background-color: var(--primary-light-color);
  color: var(--primary-dark-color);
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-purple);
  color: var(--primary-light-color);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #822bca;
}

/* =========================================
   6. NAVIGATION & BURGER MENU
   ========================================= */

.header {
  grid-area: header;
  background-color: var(--primary-purple);
  color: var(--primary-light-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Burger Toggle Logic */
#menu-toggle {
  display: none; /* Skjult checkbox */
}

.burger-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 20;
}

.bar {
  width: 25px; 
  height: 3px; 
  background-color: var(--primary-light-color); 
  border-radius: 3px;
}

/* Mobile Navbar Styles */
.navbar {
  position: absolute;
  top: 0; right: 0;
  height: 30rem;
  width: 100%;
  background-color: var(--primary-dark-color);
  border-bottom-right-radius: 5rem;
  border-bottom-left-radius: 5rem;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  
  transform: translateY(-100%); 
  transition: transform 0.4s ease-in-out;
  box-shadow: -5px 0 15px rgba(0,0,0,0.3);
  z-index: 15;
}

.navbar a {
  color: var(--primary-light-color);
  text-decoration: none;
  font-size: 5rem;
}

/* burger menu er lavet med hjælp fra Google Gemini */
/* Åben menuen når checkbox er hakket af */
#menu-toggle:checked ~ .navbar {
  transform: translateY(0);
}

/* Specifik Burger Animation (Billed-baseret) */
.burger-checkbox {
  display: none;
  align-self: center;
}

.burger-container {
  display: block;
  width: 142px;
  height: 126px;
  background-image: url('billeder/burger.png');
  background-size: 994px 126px; 
  cursor: pointer;
  align-self: center;
  animation: burger-tilbage .5s steps(6) forwards;
}

.burger-checkbox:checked + .burger-container {
  animation: burger-frem .5s steps(6) forwards;
}

@keyframes burger-frem {
  from { background-position: 0px; }
  to { background-position: -852px; }
}

@keyframes burger-tilbage {
  from { background-position: -852px; }
  to { background-position: 0px; }
}

/* =========================================
   7. PAGE SECTIONS (Top to Bottom)
   ========================================= */

/* --- Om Mig --- */
#ommig {
  grid-area: ommig;
  width: 100%;
  padding: 2rem;
  background-color: var(--primary-purple);
  color: var(--primary-light-color);
  border-bottom-right-radius: 5rem;
  border-bottom-left-radius: 5rem;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.mig-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.om-tekst {
  flex: 1;
  min-width: 50px;
}

/* --- Kompetencer (KT) --- */
#kt {
  grid-area: kt;
  width: 100%;
  padding: 7rem 2rem 2rem 2rem;
  background-color: var(--primary-pink);
  color: var(--primary-light-color);
  border-bottom-right-radius: 5rem;
  border-bottom-left-radius: 5rem;
  box-sizing: border-box;
  margin-top: -5rem; /* Stacking effect */
  position: relative;
  z-index: 9;
}

.kompetence-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;             
  margin-top: 20px;      
}

/* --- Projekter --- */
#projekter {
  grid-area: projekter;
  width: 100%;
  padding: 7rem 2rem 2rem 2rem;
  background-color: var(--primary-orange);
  color: var(--primary-light-color);
  border-bottom-right-radius: 5rem;
  border-bottom-left-radius: 5rem;
  box-sizing: border-box;
  margin-top: -5rem;
  position: relative;
  z-index: 8;
}

.projekter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;             
  margin-top: 20px;      
}

/* --- Kontakt --- */
#kontakt {
  grid-area: kontakt;
  width: 100%;
  padding: 7rem 2rem 2rem 2rem;
  background-color: var(--primary-pink);
  color: var(--primary-light-color);
  border-bottom-right-radius: 5rem;
  border-bottom-left-radius: 5rem;
  box-sizing: border-box;
  margin-top: -5rem;
  position: relative;
  z-index: 7;
}

/* --- Footer --- */
.footer {
  grid-area: footer; 
  background-color: var(--primary-purple); 
  color: var(--primary-light-color); 
  padding: 7rem 2rem 2rem 2rem; 
  text-align: left; 
  margin-top: -5rem;
  position: relative;
  z-index: 6;
}

.foot ul {
  list-style-type: none; 
  padding: 0; 
  margin: 0;
}

.foot h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* =========================================
   8. MEDIA QUERIES (DESKTOP)
   ========================================= */
@media screen and (min-width: 1000px) {

  /* Navbar Adjustments */
  .burger-menu {
    display: none; 
  }

  .navbar {
    gap: 2rem;
    position: static;
    height: auto;
    width: auto;
    background-color: transparent;
    box-shadow: none;
    transform: none;
    flex-direction: row;
    justify-content: flex-end;
  }
  
  .navbar a {
    font-size: 2rem; 
  }

  /* Components Layout */
  .mig-container {
    display: flex;
    flex-direction: row;
  }

  .box {
    width: 20rem;
    height: 10rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--primary-purple);
    border-radius: 20px;
    padding-left: 20px;
  }

  .box span {
    font-size: 2.5rem;
  }

  .logo2 {
    width: 5rem;
    height: auto;
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 0;
  }
}