@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


* {
  margin: 0;
  padding: 0;
}

/* jørn rubens css-tilføjelser, start */

.a-white {
  color: white;
  text-decoration: none;
  font-weight: 700;}

.footer-padding {
  padding: 60px 0;}

.footer-byline {
  font-size: 12px;
  color: #666;
  padding-top: 12px;}

.container-animation {
    width: 100%;
    overflow: hidden; /* skjuler teksten mens den glider ind */
}

.text {
    font-size: 2rem;
    animation: slideIn 1s ease-out forwards,
               shake 0.5s ease-in-out 1s; /* starter efter slideIn */
}

/* Glider ind fra venstre */
@keyframes slideIn {
    from {
        transform: translateX(-200%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Ryster sig på plads */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
    100% { transform: translateX(0); }
}


/* jørn rubens css-tilføjelser, slut */
/* derudover har jeg rettet lidt her og der */

#mouseCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

body {
  font-family:
    "Inter"
}

/* Hero Styling */

.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  display: grid;
  place-content: center;
  overflow: hidden;
}

.Logo {
  height: 60px;
  position: absolute;
  z-index: 3;
  left: 52px;
  top: 52px;
}

.heroVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.darkOverlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.heroText {
  z-index: 5;
  text-align: center;
}

.heroHeading {
  color: white;
  font-size: clamp(3rem, 1.8rem + 6vw, 9rem);
}

.heroSubheading {
  color: white;
  font-size: 32px;
  font-weight: 600;
}



/* Campaign section 1 */

.campaign-story {
  margin: 80px 0;
}

.campaign-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(320px, auto);
}

.campaign-grid-item {
  background: white;
  overflow: hidden;
  position: relative;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.campaign-grid-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.campaign-text-box {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f8f9fa;
  isolation: isolate;
}

.campaign-text-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(0, 103, 105, 0.06) 35%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: campaignSoftSweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes campaignSoftSweep {
  0% {
    transform: translateX(-120%);
  }
  60% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.campaign-text-box h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #006769;
  font-weight: 600;
}

.campaign-text-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
}

.campaign-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #006769;
  animation: campaignIconFloat 3s ease-in-out infinite;
}

@keyframes campaignIconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.campaign-highlight {
  font-weight: 600;
  font-size: 0.95rem;
  background: #ff9a36;
  color: white;
  padding: 10px 15px;
  border-radius: 4px;
  border-left: 3px solid #ff9a36;
  margin: 10px 0;
}

.campaign-image-box {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: #e9ecef;
}

.campaign-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  animation: campaignImageDrift 11s ease-in-out infinite alternate;
}

.campaign-image-box:hover img {
  transform: scale(1.05);
}

@keyframes campaignImageDrift {
  from {
    transform: scale(1.02) translateX(0);
  }
  to {
    transform: scale(1.08) translateX(-1.5%);
  }
}

/* Campaign section 2 */

.campaign-faq {
  background: #efefef;
  padding: 72px 20px;
}

.campaign-faq-section {
  max-width: 720px;
  margin: 0 auto;
}

.campaign-faq-section h2 {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 26px;
}

.campaign-faq-list {
  display: grid;
  gap: 20px;
}

.campaign-faq-item {
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.5s ease;
}

.campaign-faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
  filter: brightness(1.04);
}

.campaign-color-teal {
  background: #006769;
}
.campaign-color-orange-light {
  background: #ff9a36;
}
.campaign-color-orange {
  background: #ff6634;
}

.campaign-faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: #eae9e9;
  padding: 20px 26px;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

.campaign-faq-symbol {
  width: 44px;
  height: 44px;
  margin-left: 20px;
  position: relative;
  flex: 0 0 44px;
  color: transparent;
  font-size: 0;
}

.campaign-faq-symbol::before,
.campaign-faq-symbol::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 4px;
  background: #000;
  border-radius: 99px;
  transform: translate(-50%, -50%);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.campaign-faq-symbol::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.campaign-faq-item.open .campaign-faq-symbol::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.2);
}

.campaign-faq-answer {
  background: rgba(229, 229, 229, 0.92);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease;
  padding: 0;
}

.campaign-faq-answer p {
  padding: 0 26px 20px 26px;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  margin: 0;
}

.campaign-faq-item.open .campaign-faq-answer {
  max-height: 1000px;
  padding: 10px 0;
}

/* Card styling */
.cards {
    padding: 180px 0;
    margin: 0;
    background-position: center;
    background-size: cover;
    position: relative;
}

.sliderOverlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-position: center;
    background-size: cover;
    transition: opacity 2s ease;
    z-index: -1;
}

.bg2 {
    opacity: 0;
}

.cardsIntro {
    max-width: 1240px;
    margin: 20px auto;
    color: white;
    position: relative;
    padding: 0 20px;
}

.cardsIntro > h3 {
  font-size: 34px;
  margin-bottom: 10px;
}

.cardsIntro > p {
  font-size: 20px;
}

.cardContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1240px;
  margin: 0 auto;
  gap: 20px;
  min-height: 350px;
}

.card.styled {
    background-color: #d9d9d9;
    padding: 20px 40px;
    border: 3px solid;
    border-radius: 8px;
    position: relative;
}

.card.styled.HTML {
    background-color: #006769bb;
}
.card.styled.CSS {
    background-color: #ff9b36bb;
}
.card.styled.JS {
    background-color: #FF6634bb;
}

.cardNbtn {
  margin: 10px;
    margin: 10px;
    z-index: 5;
}

.cardHeading, .cardText {
    font-family: 'Times New Roman', Times, serif;
    color: white;
}

.card.styled .cardHeading {
  text-align: center;
  color: white;
  margin-bottom: 12px;
  font-size: 30px;
  font-family:
    "Inter"
}

.card.styled .cardText {
  color: white;
  font-size: 20px;
  font-family: "Inter";
}

.cardBtn {
  padding: 8px 12px;
  margin-top: 6px;
  border-radius: 12px;
  border: none;
  color: white;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
  font-size: 18px;
}

.btnNswitch {
  display: flex;
  justify-content: start;
  gap: 6px;
}

/* Individual card */

.card.HTML {
  border-color: #006769;
}

#HTML {
    background-color: #006769dd;
}

.card.CSS {
  border-color: #ff9a36;
}

#CSS {
    background-color: #FF9A36dd;
}

.card.JS {
  border-color: #ff6634;
}

#JS {
    background-color: #FF6634dd;
}

/* switches */

.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 22px;
  margin-top: 15px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 10px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 15px;
  width: 19px;
  left: 3px;
  bottom: 3.2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 100px;
}
#HTMLswitch:checked + .slider {
  background-color: #006769;
}

#CSSswitch:checked + .slider {
  background-color: #ff9a36;
}

#JSswitch:checked + .slider {
  background-color: #ff6634;
}

input:checked + .slider::before {
  transform: translateX(20px);
}

@keyframes shake {
    0% {transform: translateX(0px);}
    25% {transform: translateX(5px);}
    50% {transform: translateX(-4px);}
    75% {transform: translateX(5px);}
    100% {transform: translateX(0);}
}

.shake {
    animation: shake 0.4s ease;
}


/*skolehjem*/

.info_split {
  background-color: #efefef;
  margin: 0 ;
  display: flex;
  align-items: stretch;
  width: 100%;
  padding: 0px 0 72px 0 ;
  box-sizing: border-box;
}

.skolehjem_container {
 position: relative;
  width: calc(50%);
  box-sizing: border-box;
  background-image: url(../images/skolehjem.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  padding: 60px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: rgb(255, 255, 255);
  overflow: hidden;
}

.skolehjem__tekst h1,
.skolehjem__tekst p {
   z-index: 2;
  position: relative;
  bottom: 13px;
}

.skolehjem__tekst h1 {
  font-size: 42px;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 1px;
}

.skolehjem__tekst p {
   max-width: 560px;
  margin: 10px auto;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
}

.skolehjem__tekst::before{
   content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}


@media (max-width: 768px) {

  .heroSubheading {
    font-size: 20px;
  }


  .info_split {
    flex-direction: column;
  }

  .campaign-grid-container {
    grid-template-columns: 1fr;
  }

  .campaign-grid-container .campaign-grid-item:nth-child(3) {
    order: 4;
  }

  .campaign-grid-container .campaign-grid-item:nth-child(4) {
    order: 3;
  }

  .campaign-text-box {
    padding: 20px;
  }

  .campaign-text-box h2 {
    font-size: 1.1rem;
  }

  .campaign-text-box p {
    font-size: 0.9rem;
  }

  .campaign-faq {
    padding: 48px 16px;
  }

  .campaign-faq-section h2 {
    font-size: 40px;
  }

  .campaign-faq-question {
    min-height: 68px;
    font-size: 18px;
    padding: 16px;
  }

  .campaign-faq-answer p {
    padding: 0 16px 16px;
    font-size: 15px;
  }

  .campaign-faq-symbol {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    margin-left: 12px;
  }

  .campaign-faq-symbol::before,
  .campaign-faq-symbol::after {
    width: 24px;
    height: 3px;
  }

  .skolehjem_container {
    width: 100%;
    padding: 20px;
    height: auto;
    min-height: 80vh;
  }

  .skolehjem__tekst {
    padding: 24px;
  }

  .Sog_her {
    margin-block: 40px;
  }

  .info_split {
    padding-bottom: 40px;
  }
}

/* Tilmeld */

.Sog_her{
  position: relative;
  width: calc(50%);
  box-sizing: border-box;
  background-image: url(../images/mediaCollege.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  padding: 60px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Mørk overlay */
.Sog_her::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.Sog_her h2,
.Sog_her p {
  position: relative;
  z-index: 2;
}

.Sog_her h2 {
  font-size: 42px;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 1px;
}

.Sog_her p {
  max-width: 560px;
  margin: 10px auto;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .Sog_her {
    width: 100%;
    min-height: auto;
    padding: 80px 20px;
    max-width: 768px;
  }
}
.btnTilmeld {
  background-color: #006769;
  color: white;
  font-size: 20px;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
  z-index: 99;
  position: relative;
  text-decoration: none;
  display: inline-block;
  border-radius: 20px;
}

.btnTilmeld:hover {
  background-color: #ff9a36;
  transform: scale(1.05);
}

/* footer*/

.footer_socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.footer_socials .instagram {
  background-color: #006769;
  width: 100%;
  place-items: center;
  text-align: center;
  color: white;
  font-size: 20px;
  padding: 10px;
}
.footer_socials .facebook {
  background-color: #ff9a36;
  width: 100%;
  place-items: center;
  text-align: center;
  color: white;
  font-size: 20px;
  padding: 10px;
}
.footer_socials .tiktok {
  background-color: #ff6634;
  width: 100%;
  place-items: center;
  text-align: center;
  color: white;
  font-size: 20px;
  padding: 10px;
}

i {
  font-size: 30px;
}

footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #000000;
  color: rgb(255, 255, 255);
  padding: 20px;
  gap: 10px;
}

footer img {
  width: 220px;
  height: 60px;
  filter: invert(100);
}

@media (min-width: 768px) {
  .footer_socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .footer_socials .instagram,
  .footer_socials .facebook,
  .footer_socials .tiktok {
    flex: 1;
    text-align: center;
    padding: 50px;
    color: white;
    font-size: 20px;
    background-clip: padding-box;
    transition: flex 0.4s ease;
    cursor: pointer;
  }

  .footer_socials .instagram {
    background-color: #006769;
  }
  .footer_socials .facebook {
    background-color: #ff9a36;
  }
  .footer_socials .tiktok {
    background-color: #ff6634;
  }

  .footer_socials .instagram:hover,
  .footer_socials .facebook:hover,
  .footer_socials .tiktok:hover {
    flex: 10;
  }

  .footer_socials .instagram:hover ~ .facebook,
  .footer_socials .instagram:hover ~ .tiktok,
  .footer_socials .facebook:hover ~ .tiktok,
  .footer_socials .facebook:hover ~ .instagram,
  .footer_socials .tiktok:hover ~ .instagram,
  .footer_socials .tiktok:hover ~ .facebook {
    flex: 1;
  }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */

/* --- Base hidden states --- */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal-flip {
  opacity: 0;
  transform: rotateX(-25deg) translateY(30px);
  transform-origin: top center;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-slide-down {
  opacity: 0;
  transform: translateY(-40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* --- Visible (triggered) states --- */
.reveal-fade-up.is-visible,
.reveal-fade-left.is-visible,
.reveal-fade-right.is-visible,
.reveal-zoom.is-visible,
.reveal-flip.is-visible,
.reveal-slide-down.is-visible {
  opacity: 1;
  transform: none;
}

/* --- Stagger delays for children --- */
.reveal-stagger > *:nth-child(1) {
  transition-delay: 0.05s;
}
.reveal-stagger > *:nth-child(2) {
  transition-delay: 0.15s;
}
.reveal-stagger > *:nth-child(3) {
  transition-delay: 0.25s;
}
.reveal-stagger > *:nth-child(4) {
  transition-delay: 0.35s;
}
.reveal-stagger > *:nth-child(5) {
  transition-delay: 0.45s;
}
.reveal-stagger > *:nth-child(6) {
  transition-delay: 0.55s;
}

/* Hero text special slide-down */
.heroText.reveal-slide-down {
  transition-duration: 0.8s;
}

/* Campaign grid items alternating left/right */
.campaign-grid-item.reveal-fade-left,
.campaign-grid-item.reveal-fade-right {
  transition-duration: 0.75s;
}

/* FAQ items stagger */
.campaign-faq-item.reveal-fade-up {
  transition-duration: 0.6s;
}

/* Cards zoom in */
.cardNbtn.reveal-zoom {
  transition-duration: 0.65s;
}

/* Skolehjem slide from left */
.skolehjem__tekst.reveal-fade-left {
  transition-duration: 0.8s;
}

/* Social icons bounce in from bottom */
.footer_socials.reveal-fade-up {
  transition-duration: 0.55s;
}

/* Søg her flip */
.Sog_her.reveal-flip {
  transition-duration: 0.7s;
}
