:root {
  --blue: #3B4866;
  --cream: #FAF6EF;
  --ink: #0f1320;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font: 600 16px/1.4 'Poppins', sans-serif;
}

.brand a {
  color: #FAF6EF;        /* hvid/lys tekst */
  text-decoration: none;  /* fjern understregning */
  font-weight: 600;       /* samme font som resten */
}

.brand a:hover {
  color: #ffd700;        /* beholder farven ved hover */
  text-decoration: none;  
}

.nav-right a{
  color: #FAF6EF;       /* sætter tekstfarven til hvid/lys */
  text-decoration: none; /* fjerner understregning */
  font-weight: 600;
}

.nav-right a:hover{
  color: #ffd700;        /* beholder samme farve ved hover */
  text-decoration: none;
  
}


/* Topbar */
.topbar {
  background: var(--blue);
  color: #FAF6EF;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand { font-size: 24px; }
.nav-right { justify-self: end; font-size: 22px; }
.logoWrap { display: grid; place-items: center; }
.logoWrap img { max-height: 120px; max-width: 120px; display: block; }


.stage {
  flex: 1;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 310px; 
  display: flex;
  justify-content: center;
  align-items: center;
}

.takePic {
  position: absolute;
  top: 10%;          /* justér lodret placering */
  left: 55%;         /* justér vandret placering */
  width: 200px;      /* justér størrelse */
  transform: rotate(-10deg); /* gør det legende */
  pointer-events: none; /* gør så det ikke blokerer klik */
  z-index: 50;       /* ovenpå kameraet */
}

.cameraBtn {
  position: relative;
  z-index: 20;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.cameraImg {
  width: min(540px, 70vw);
  height: auto;
  display: block;
  margin-top: 60px;
}

/* Polaroids */
.polas {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 30; 
  pointer-events: none;
}
.polaroid {
  position: absolute;
  background: #fff;
  border: 1px solid #EAE6DF;
  padding: 5px 5px 55px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  width: 220px;  
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}
.polaroid img {
  width: 220px;  
  height: 240px;  
  object-fit: cover;
  border-radius: 8px;
  display: block;
  padding-right: 11px;
  padding-top: 10px;
}



.p-top-left    { left: calc(0.001%);  top: 5%;  transform: rotate(-10deg); }
.p-bottom-left { left: calc(0.001%);  bottom: 5%; transform: rotate(6deg); }
.p-top-right   { right: calc(0.001%); top: 5%;  transform: rotate(8deg); }
.p-bottom-right{ right: calc(0.001%); bottom: 5%; transform: rotate(-5deg); }


.flash {
  position: fixed;       /* fixed relative to viewport */
  top: 0;                /* start at top */
  left: 0;               /* start at left */
  width: 100vw;          /* full viewport width */
  height: 100vh;         /* full viewport height */
  background: #fff;      /* white flash */
  opacity: 0;            /* invisible by default */
  pointer-events: none;  /* allows clicks through it */
  z-index: 9999; 
}
.flash.go { animation: flashPulse .65s ease-in-out; }
@keyframes flashPulse {
  0% { opacity: 0; }
  10% { opacity: 1; }
  100% { opacity: 0; }
}


body.develop .polaroid { animation: develop 1.45s ease forwards; }
@keyframes develop {
  0% { opacity: 0; filter: blur(8px) brightness(.6) saturate(.7) contrast(.8); }
  70% { filter: blur(2px); }
  100% { opacity: 1; filter: blur(0) brightness(1) saturate(1) contrast(1); }
}

/*om mig*/
.about {
  background: var(--cream);
  padding: 64px 16px 24px;
}
.about__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about__text h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--ink);
}
.about__text p {
  margin: 10px 0;
  line-height: 1.65;
  font-weight: 400;
  margin-right: 20px;
}
.about__text h3 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.about_programs {
  margin-top: 150px;
}

.about__facts {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.about_programs h2{
  display: flex;
  justify-content: center;
}

.fact img{
  width: 90px;
  height: 90px;
  margin: 5px;
}

.fact  {
  width: 90px;
  height: 90px;
  border-radius: 20%;
  background: #3B4866;
}

/* billede og polaroid-stak */
.about__media {
  position: relative;
}
.stack {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.stack__bg {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}

.polaroid2 {
  position: absolute;
  background: #fff;
  border: 1px solid #EAE6DF;
  padding: 6px 6px 56px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  width: 173px;
  height: 220px;
  z-index: 2;
}

.polaroid2 img {
  width: 170px;
  height: 190px;
  object-fit: cover;
  display: block;
  padding-right: 11px;
  padding-top: 10px;
}

/* Positionering */
.p-left {
  top: 200px;
  left: -100px;
  transform: rotate(-7deg);
  z-index: 2;
}

.p-right {
  top: 190px;
  left: 50px;
  transform: rotate(6deg);
  z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 640px) {
  .fact {
    width: 90px;
    height: 90px;
  }
  .polaroid2,
  .polaroid2 img {
    width: 180px;
  }
  .polaroid2 img {
    height: 200px;
  }
}

/*portfolio*/
#portfolio {
  padding: 60px 20px;
  background-color: #fefaf5;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.project {
  background-color: #ddd;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  padding-bottom: 20px;
}

.project img {
  width: 100%;
  height: auto;
  display: block;
}

.project h3 {
  margin: 20px 0 10px;
  font-size: 1.2rem;
  color: #0d0d19;
}

.project p {
  margin: 0 20px;
  font-size: 1rem;
  color: #333;
}

.spriteanimation {
  width: 400px;  
  height: 400px; 
  background: url("assets/Animation7.png") no-repeat 0 0;
  background-size: 20000px 400px; 
  animation: spritePlay 5s steps(50) infinite;
}
@keyframes spritePlay {
  from { background-position: 0px; }
  to   { background-position: -20000px; }
}


/* Footer */
.footer {
  background: var(--blue);
  color: #FAF6EF;
  margin-top: 70px;
}
.footerInner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 16px;
}
.icons {
  display: flex;
  gap: 20px;
}
.icons img {
  width: 32px;
  height: 32px;
}

@media (max-width: 768px) {
  .polaroid,
  .takePic {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .polaroid2 {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .fact {
    width: 60px;
    height: 60px;
  }
  .fact img {
    width: 100%;
    height: 100%;
  }
  .about_programs{
    margin-top: 0px;
  }
  .stack__bg{
    margin-bottom: 0px;
  }

}

@media (max-width: 480px) {
  .fact {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .topbar {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    gap: 12px;
  }
  .brand, .logoWrap, .nav-right {
    justify-self: center;
  }
  .nav-right {
    font-size: 18px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .stage {
    padding: 40px 60px;   /* less side padding */
  }
  .cameraImg {
    max-width: 300px;     /* scale down camera */
  }
}

/* Mobile */
@media (max-width: 768px) {
  .stage {
    flex-direction: column;
    padding: 20px;        /* very small padding */
  }
  .cameraImg {
    width: 100%;
    max-width: 260px;
    margin-top: 20px;
  }
  .takePic,
  .polaroid {
    display: none !important;  /* hide text + polaroids */
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .cameraImg {
    max-width: 220px;
  }
}
@media (max-width: 768px) {
  .topbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
  }

  .brand, .nav-right {
    font-size: 20px;    /* keep both same size */
  }

  .logoWrap {
    order: -1;          /* move logo on top */
    margin-bottom: 8px;
  }

  .nav-right {
    justify-self: center;
  }
}

